in libs/@guardian/libs/src/consent-management-platform/mergeUserConsent.ts [62:83]
await sendUserCustomConsentToNonAdvertisingVendorList(
purposesAndVendors.vendors,
purposesAndVendors.purposes,
purposesAndVendors.legitimateInterestPurposeIds,
);
await sendUserConsentStringToNonAdvertisingVendorList();
}
};
/**
* Fetches the users consent to the main GDPR vendor list from the sourcepoint API
*
* @return {Promise<UserConsentStatus[]>} user consent status
*/
const getUserConsentForAdvertisingVendorList = async (): Promise<
UserConsentStatus[]
> => {
const consentUUID = getCookie({ name: 'consentUUID' });
const url = `${spBaseUrl}/history/${PROPERTY_ID_MAIN}?consentUUID=${consentUUID}`;
const getUserConsentOnAdvertisingListResponse = await fetch(url, {