Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:rudderlabs/rudder-transformer in…
Browse files Browse the repository at this point in the history
…to chore.cicd-workflow-cancel
  • Loading branch information
Sai Sankeerth committed Aug 1, 2024
2 parents dd628c2 + 9d06546 commit 029a1d4
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/v0/destinations/facebook_conversions/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { getMappingConfig } = require('../../util');

const ENDPOINT = (datasetId, accessToken) =>
`https://graph.facebook.com/v18.0/${datasetId}/events?access_token=${accessToken}`;
`https://graph.facebook.com/v20.0/${datasetId}/events?access_token=${accessToken}`;

const CONFIG_CATEGORIES = {
USERDATA: {
Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/facebook_pixel/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { getMappingConfig } = require('../../util');

const VERSION = 'v18.0';
const VERSION = 'v20.0';

const CONFIG_CATEGORIES = {
USERDATA: {
Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/fb/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');

const VERSION = 'v18.0';
const VERSION = 'v20.0';

const getPath = (file) => path.resolve(__dirname, file);

Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/fb_custom_audience/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const BASE_URL = 'https://graph.facebook.com/v18.0';
const BASE_URL = 'https://graph.facebook.com/v20.0';

function getEndPoint(audienceId) {
return `${BASE_URL}/${audienceId}/users`;
Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/fb_custom_audience/util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const basePayload = {
const baseResponse = {
version: '1',
type: 'REST',
endpoint: 'https://graph.facebook.com/v18.0/23848494844100489/users',
endpoint: 'https://graph.facebook.com/v20.0/23848494844100489/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -433,7 +433,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -552,7 +552,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -671,7 +671,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -797,7 +797,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -917,7 +917,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -1036,7 +1036,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -1155,7 +1155,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -1283,7 +1283,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -1411,7 +1411,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -1511,7 +1511,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -1632,7 +1632,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -150,7 +150,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyID/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const ecommTestData: ProcessorTestData[] = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyPixelId/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyPixelId/events?access_token=09876',
headers: {},
params: {},
FORM: {
Expand Down Expand Up @@ -572,7 +572,7 @@ export const ecommTestData: ProcessorTestData[] = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyPixelId/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyPixelId/events?access_token=09876',
headers: {},
params: {},
FORM: {
Expand Down Expand Up @@ -890,7 +890,7 @@ export const ecommTestData: ProcessorTestData[] = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyPixelId/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyPixelId/events?access_token=09876',
headers: {},
params: {},
FORM: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export const validationTestData = [
JSON_ARRAY: {},
XML: {},
},
endpoint: 'https://graph.facebook.com/v18.0/dummyPixelId/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyPixelId/events?access_token=09876',
files: {},
headers: {},
method: 'POST',
Expand Down
4 changes: 2 additions & 2 deletions test/integrations/destinations/facebook_pixel/router/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyPixelId/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyPixelId/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down Expand Up @@ -165,7 +165,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/dummyPixelId/events?access_token=09876',
endpoint: 'https://graph.facebook.com/v20.0/dummyPixelId/events?access_token=09876',
headers: {},
params: {},
body: {
Expand Down
20 changes: 10 additions & 10 deletions test/integrations/destinations/fb_custom_audience/router/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'DELETE',
endpoint: 'https://graph.facebook.com/v18.0/aud1/users',
endpoint: 'https://graph.facebook.com/v20.0/aud1/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down Expand Up @@ -79,7 +79,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/aud1/users',
endpoint: 'https://graph.facebook.com/v20.0/aud1/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down Expand Up @@ -187,7 +187,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'DELETE',
endpoint: 'https://graph.facebook.com/v18.0/aud1/users',
endpoint: 'https://graph.facebook.com/v20.0/aud1/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down Expand Up @@ -238,7 +238,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/aud1/users',
endpoint: 'https://graph.facebook.com/v20.0/aud1/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down Expand Up @@ -369,7 +369,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/23848494844100489/users',
endpoint: 'https://graph.facebook.com/v20.0/23848494844100489/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down Expand Up @@ -558,7 +558,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'DELETE',
endpoint: 'https://graph.facebook.com/v18.0/23848494844100489/users',
endpoint: 'https://graph.facebook.com/v20.0/23848494844100489/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down Expand Up @@ -647,7 +647,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/23848494844100489/users',
endpoint: 'https://graph.facebook.com/v20.0/23848494844100489/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down Expand Up @@ -720,7 +720,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/23848494844100489/users',
endpoint: 'https://graph.facebook.com/v20.0/23848494844100489/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down Expand Up @@ -877,7 +877,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/23848494844100489/users',
endpoint: 'https://graph.facebook.com/v20.0/23848494844100489/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down Expand Up @@ -907,7 +907,7 @@ export const data = [
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://graph.facebook.com/v18.0/23848494844100489/users',
endpoint: 'https://graph.facebook.com/v20.0/23848494844100489/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down

0 comments on commit 029a1d4

Please sign in to comment.