TASK22109: email api contract cleanup and phase21 coverage

This commit is contained in:
2026-03-17 14:23:42 +00:00
parent 864da9fe23
commit 6610e5c7f3
6 changed files with 195 additions and 10 deletions
-2
View File
@@ -188,8 +188,6 @@ const buildNotifyPayloads = (watchlistByEmail) => {
const prefLanguage = entries[0].pinswg_preferredlanguage;
console.log("Language to use for email tmeplace:", prefLanguage);
const personalisation = {
contact_name: contactName,
case_sections: filteredEntries
-3
View File
@@ -1,6 +1,5 @@
import axios from "axios";
import CryptoJS from "crypto-js";
import _ from "lodash";
import { azureHeadersPaged } from "../../../actions/core/headers";
import { consoleLogger } from "../../../actions/core/logger";
import { getToken } from "../../../actions/core/token";
@@ -67,8 +66,6 @@ export default async function ApiProxy(req, res) {
const fullUrl = `${WEBAPI_URL}${query}${hashAPIPath(query)}`;
console.log("Querying documents from:", fullUrl);
const { data } = await axios.get(
fullUrl,
azureHeadersPaged(token.access_token)
-2
View File
@@ -1,5 +1,4 @@
import axios from "axios";
import CryptoJS from "crypto-js";
import _ from "lodash";
import { azureHeaders } from "../../../actions/core/headers";
import { consoleLogger } from "../../../actions/core/logger";
@@ -7,7 +6,6 @@ import { getToken } from "../../../actions/core/token";
import { hashAPIPath } from "../../../actions/core/hash";
import { respondError, respondSuccess } from "../middleware/apiResponse";
const WORDKEY = process.env.HASHKEY;
const WEBAPI_URL =
process.env.RELAY_ROOT ||
"https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/";