diff --git a/.firebaserc b/.firebaserc index 3ba429ef..80edbbab 100644 --- a/.firebaserc +++ b/.firebaserc @@ -1,5 +1,9 @@ { "projects": { - "default": "checkmate-373101" - } -} + "default": "checkmate-373101", + "prod": "checkmate-373101", + "uat": "checkmate-uat" + }, + "targets": {}, + "etags": {} +} \ No newline at end of file diff --git a/.github/workflows/firebase-deploy.yml b/.github/workflows/firebase-deploy.yml index 82bc2b54..f8bb55bc 100644 --- a/.github/workflows/firebase-deploy.yml +++ b/.github/workflows/firebase-deploy.yml @@ -1,11 +1,14 @@ name: Deploy Cloud Functions + on: workflow_dispatch: push: branches: - main + - develop paths: - - 'functions/**' + - "functions/**" + jobs: build_and_deploy: runs-on: ubuntu-latest @@ -22,15 +25,32 @@ jobs: ${{ runner.os }}-node- - name: Create env file run: | - echo "${{ secrets.ENV_FILE }}" > .env + if [ "${{ github.ref }}" == "refs/heads/main" ]; then + echo "${{ secrets.ENV_FILE }}" > .env + else + echo "${{ secrets.ENV_FILE_NONPROD }}" > .env + fi working-directory: functions - name: Build Cloud Functions run: npm ci working-directory: functions - name: Create SA key - run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' > $HOME/gcloud.json + run: | + if [ "${{ github.ref }}" == "refs/heads/main" ]; then + echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' > $HOME/gcloud.json + else + echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NONPROD }}' > $HOME/gcloud.json + fi - name: Install Firebase CLI run: npm install -g firebase-tools + - name: Set Firebase project + run: | + if [ "${{ github.ref }}" == "refs/heads/main" ]; then + firebase use prod + else + firebase use uat + fi + working-directory: functions - name: Deploy Cloud Functions run: export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcloud.json && npm run deploy - working-directory: functions \ No newline at end of file + working-directory: functions diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a8b34330..90f72ec3 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -17,7 +17,7 @@ jobs: - name: Start docker compose for testing run: docker-compose -f docker-compose-base.yml up -d - name: Wait for emulator to start - run: timeout 30 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:15001/checkmate-373101/asia-southeast1/healthcheck)" != "200" ]]; do sleep 1; done' || false + run: timeout 30 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:15001/checkmate-uat/asia-southeast1/healthcheck)" != "200" ]]; do sleep 1; done' || false - name: Install newman and lodash run: npm ci working-directory: integration-tests diff --git a/functions/.env.checkmate-uat b/functions/.env.checkmate-uat new file mode 100644 index 00000000..5af64148 --- /dev/null +++ b/functions/.env.checkmate-uat @@ -0,0 +1,5 @@ +NUM_SHARDS_INSTANCE_COUNT=5 +NUM_SHARDS_VOTE_COUNT=5 +GRAPH_API_VERSION=v15.0 +ENVIRONMENT=UAT +SIMILARITY_THRESHOLD=0.85 \ No newline at end of file diff --git a/functions/.secret.local.test b/functions/.secret.local.test index 82cfc551..d2f77eb3 100644 --- a/functions/.secret.local.test +++ b/functions/.secret.local.test @@ -4,7 +4,7 @@ WHATSAPP_TOKEN=WHATSAPP_TOKEN TELEGRAM_CHECKER_BOT_TOKEN=TELEGRAM_CHECKER_BOT_TOKEN TELEGRAM_REPORT_BOT_TOKEN=TELEGRAM_REPORT_BOT_TOKEN VERIFY_TOKEN=VERIFY_TOKEN -BITLY_TOKEN=BITLY_TOKEN +OPENAI_API_KEY=OPEN_API_KEY TYPESENSE_TOKEN=TYPESENSE_TOKEN ML_SERVER_TOKEN=ML_SERVER_TOKEN TELEGRAM_BOT_TOKEN=TELEGRAM_BOT_TOKEN diff --git a/functions/package.json b/functions/package.json index 6a951d2a..55d4746f 100644 --- a/functions/package.json +++ b/functions/package.json @@ -3,7 +3,7 @@ "description": "Cloud Functions for Firebase", "scripts": { "lint": "", - "serve": "firebase emulators:start", + "serve": "firebase emulators:start --project checkmate-uat", "shell": "firebase functions:shell", "start": "npm run shell", "predeploy": "npm run build", diff --git a/functions/src/definitions/api/api.ts b/functions/src/definitions/api/api.ts index d25412c2..6194fa57 100644 --- a/functions/src/definitions/api/api.ts +++ b/functions/src/definitions/api/api.ts @@ -37,7 +37,7 @@ main.use("/api", app) const apiHandler = onRequest( { - secrets: ["TELEGRAM_BOT_TOKEN"], + secrets: ["TELEGRAM_CHECKER_BOT_TOKEN"], }, main ) diff --git a/functions/src/definitions/api/authentication.ts b/functions/src/definitions/api/authentication.ts index 630d5fc6..c303700e 100644 --- a/functions/src/definitions/api/authentication.ts +++ b/functions/src/definitions/api/authentication.ts @@ -14,7 +14,7 @@ const CHECKER1_PHONE_NUMBER: string = String(process.env.CHECKER1_PHONE_NUMBER) app.post("/", async (req, res) => { const initData = req.body // Assuming you send initData in the body of your requests - const botToken = String(process.env.TELEGRAM_BOT_TOKEN) // Replace with your bot token + const botToken = String(process.env.TELEGRAM_CHECKER_BOT_TOKEN) // Replace with your bot token // Extract the data from initData (convert from query string format) const params = new URLSearchParams(initData) @@ -99,7 +99,7 @@ main.use("/telegramAuth", app) const telegramAuthHandler = onRequest( { - secrets: ["TELEGRAM_BOT_TOKEN"], + secrets: ["TELEGRAM_CHECKER_BOT_TOKEN"], }, main ) diff --git a/functions/src/definitions/webhookHandlers/telegram.ts b/functions/src/definitions/webhookHandlers/telegram.ts index c949140a..60291b09 100644 --- a/functions/src/definitions/webhookHandlers/telegram.ts +++ b/functions/src/definitions/webhookHandlers/telegram.ts @@ -5,7 +5,7 @@ import express from "express" import TelegramBot from "node-telegram-bot-api" import { onRequest } from "firebase-functions/v2/https" -const TOKEN = "YOUR_TELEGRAM_BOT_TOKEN" +const TOKEN = String(process.env.TELEGRAM_CHECKER_BOT_TOKEN) const bot = new TelegramBot(TOKEN) const app = express() @@ -23,7 +23,7 @@ app.post("/", async (req, res) => { const telegramHandler = onRequest( { - secrets: ["TELEGRAM_BOT_TOKEN"], + secrets: ["TELEGRAM_CHECKER_BOT_TOKEN"], }, app ) diff --git a/functions/src/definitions/webhookHandlers/whatsapp.ts b/functions/src/definitions/webhookHandlers/whatsapp.ts index f11bbfc8..7b7b0455 100644 --- a/functions/src/definitions/webhookHandlers/whatsapp.ts +++ b/functions/src/definitions/webhookHandlers/whatsapp.ts @@ -11,6 +11,8 @@ import { Request, Response } from "express" const runtimeEnvironment = defineString("ENVIRONMENT") const webhookPath = process.env.WEBHOOK_PATH +const ingressSetting = + process.env.ENVIRONMENT === "PROD" ? "ALLOW_INTERNAL_AND_GCLB" : "ALLOW_ALL" if (!admin.apps.length) { admin.initializeApp() @@ -139,11 +141,6 @@ const postHandler = async (req: Request, res: Response) => { } } -// Accepts POST requests at /webhook endpoint -// Note: TODO: Will delete after webhook is pointed to new endpoint and everything is stable -app.post("/whatsapp", postHandler) -app.get("/whatsapp", getHandler) - // Accepts POST requests at /{webhookPath} endpoint app.post(`/${webhookPath}`, postHandler) app.get(`/${webhookPath}`, getHandler) @@ -159,7 +156,7 @@ app.post("/telegram", async (req, res) => { const webhookHandlerV2 = onRequest( { - ingressSettings: "ALLOW_INTERNAL_AND_GCLB", + ingressSettings: ingressSetting, secrets: [ "WHATSAPP_USER_BOT_PHONE_NUMBER_ID", "WHATSAPP_CHECKERS_BOT_PHONE_NUMBER_ID", diff --git a/integration-tests/checkmate.postman_collection.json b/integration-tests/checkmate.postman_collection.json index 6873384b..9ceb7233 100644 --- a/integration-tests/checkmate.postman_collection.json +++ b/integration-tests/checkmate.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "5218f5ab-c512-43d1-b8a3-0831e12514c1", + "_postman_id": "f9991f6c-049a-4e5c-be8e-a80284402235", "name": "checkmate", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "25230076" @@ -32,12 +32,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/healthcheck", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/healthcheck", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "healthcheck" ] @@ -97,15 +97,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -147,14 +147,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents:listCollectionIds", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents:listCollectionIds", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents:listCollectionIds" @@ -215,15 +215,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -334,15 +334,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -467,15 +467,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -599,15 +599,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -716,15 +716,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -835,15 +835,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -973,15 +973,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -1118,14 +1118,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/users/{{USER_1_NUMBER}}", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/users/{{USER_1_NUMBER}}", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -1189,15 +1189,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -1380,15 +1380,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -1551,15 +1551,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -1998,15 +1998,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -2188,15 +2188,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -2393,15 +2393,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -2578,15 +2578,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -2631,14 +2631,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages/{{spamMessageId}}/instances", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages/{{spamMessageId}}/instances", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -2778,15 +2778,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -2930,15 +2930,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -3060,15 +3060,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -3202,15 +3202,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -3330,15 +3330,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -3520,15 +3520,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -3725,15 +3725,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -3906,15 +3906,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -4033,15 +4033,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -4223,15 +4223,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -4428,15 +4428,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -4815,15 +4815,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -4915,14 +4915,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages/{{spamMessageId}}/instances/{{spamInstanceId}}", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages/{{spamMessageId}}/instances/{{spamInstanceId}}", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -4984,15 +4984,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -5111,15 +5111,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -5243,15 +5243,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -5689,15 +5689,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -5884,15 +5884,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -6046,14 +6046,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages/{{infoMessageId}}/instances", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages/{{infoMessageId}}/instances", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -6113,15 +6113,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -6254,15 +6254,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -6386,14 +6386,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages/{{infoMessageId}}/instances/{{infoInstanceId}}", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages/{{infoMessageId}}/instances/{{infoInstanceId}}", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -6439,15 +6439,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -6634,15 +6634,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -6902,15 +6902,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -7097,15 +7097,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -7280,15 +7280,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -7411,15 +7411,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -7857,15 +7857,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -8047,15 +8047,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -8251,15 +8251,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -8433,15 +8433,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -8486,14 +8486,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages/{{unsureMessageId}}/instances", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages/{{unsureMessageId}}/instances", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -8632,15 +8632,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -8756,14 +8756,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages/{{unsureMessageId}}/instances/{{unsureInstanceId}}", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages/{{unsureMessageId}}/instances/{{unsureInstanceId}}", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -8818,15 +8818,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -8996,15 +8996,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -9128,14 +9128,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages/{{unsureMessageId}}/instances/{{unsureInstanceId}}", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages/{{unsureMessageId}}/instances/{{unsureInstanceId}}", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -9196,15 +9196,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -9318,14 +9318,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages/{{unsureMessageId}}/instances/{{unsureInstanceId}}", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages/{{unsureMessageId}}/instances/{{unsureInstanceId}}", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -9371,15 +9371,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -9561,15 +9561,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -9763,15 +9763,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -9941,15 +9941,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -10070,15 +10070,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -10260,15 +10260,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -10464,15 +10464,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -10752,15 +10752,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -10880,15 +10880,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -11043,15 +11043,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -11161,15 +11161,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -11279,15 +11279,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -11397,15 +11397,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -11515,15 +11515,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -11695,15 +11695,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -11819,15 +11819,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -11988,15 +11988,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -12130,14 +12130,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/users/{{USER_1_NUMBER}}", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/users/{{USER_1_NUMBER}}", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -12201,15 +12201,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -12343,14 +12343,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/users/{{USER_1_NUMBER}}", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/users/{{USER_1_NUMBER}}", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -12409,15 +12409,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -12513,14 +12513,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -12556,14 +12556,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages/{{infoMessageId}}/instances", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages/{{infoMessageId}}/instances", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -12612,15 +12612,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -12663,14 +12663,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -12706,14 +12706,14 @@ } ], "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents/messages", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents/messages", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents", @@ -12773,15 +12773,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -12824,15 +12824,15 @@ } }, "url": { - "raw": "{{FUNCTIONS_URL}}/checkmate-373101/asia-southeast1/webhookHandlerV2/whatsapp", + "raw": "{{FUNCTIONS_URL}}/{{PROJECT_ID}}/asia-southeast1/webhookHandlerV2/{{WEBHOOK_PATH}}", "host": [ "{{FUNCTIONS_URL}}" ], "path": [ - "checkmate-373101", + "{{PROJECT_ID}}", "asia-southeast1", "webhookHandlerV2", - "whatsapp" + "{{WEBHOOK_PATH}}" ] } }, @@ -12883,14 +12883,14 @@ } }, "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents:runQuery", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents:runQuery", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents:runQuery" @@ -12943,14 +12943,14 @@ } }, "url": { - "raw": "{{FIRESTORE_URL}}/v1/projects/checkmate-373101/databases/(default)/documents:runQuery", + "raw": "{{FIRESTORE_URL}}/v1/projects/{{PROJECT_ID}}/databases/(default)/documents:runQuery", "host": [ "{{FIRESTORE_URL}}" ], "path": [ "v1", "projects", - "checkmate-373101", + "{{PROJECT_ID}}", "databases", "(default)", "documents:runQuery" diff --git a/integration-tests/env.json b/integration-tests/env.json index 715dbdf6..013d63d5 100644 --- a/integration-tests/env.json +++ b/integration-tests/env.json @@ -13,6 +13,16 @@ "value": "wamid.HBgKNjU5Njg4MDMyMBUCABIYIEY4MDAwNTlEODQyMDZDMkNDOEU1NEVEQjc1MTNCMjlFAA==", "enabled": true }, + { + "key": "PROJECT_ID", + "value": "checkmate-uat", + "enabled": true + }, + { + "key": "WEBHOOK_PATH", + "value": "whatsapp", + "enabled": true + }, { "key": "FIRESTORE_URL", "value": "http://localhost:18080", @@ -382,4 +392,4 @@ "_postman_variable_scope": "environment", "_postman_exported_at": "2023-04-30T14:17:56.196Z", "_postman_exported_using": "Postman/10.13.0" -} \ No newline at end of file +}