Skip to content
Draft
839 changes: 664 additions & 175 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@adobe/spacecat-shared-data-access-v2": "npm:@adobe/spacecat-shared-data-access@2.109.0",
"@adobe/spacecat-shared-gpt-client": "1.6.20",
"@adobe/spacecat-shared-http-utils": "1.25.1",
"@adobe/spacecat-shared-ims-client": "1.12.2",
"@adobe/spacecat-shared-ims-client": "https://gist.github.com/dipratap/c893e5f937a62e34bee0a889b0b5287b/raw/e492902c02de47c81e3593786cb6ee524b53e1e6/adobe-spacecat-shared-ims-client-1.12.5.tgz",
"@adobe/spacecat-shared-rum-api-client": "2.40.10",
"@adobe/spacecat-shared-scrape-client": "2.6.0",
"@adobe/spacecat-shared-slack-client": "1.6.4",
Expand Down
28 changes: 1 addition & 27 deletions src/controllers/llmo/llmo-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,7 @@
// LLMO constants
export const LLMO_SHEETDATA_SOURCE_URL = 'https://main--project-elmo-ui-data--adobe.aem.live';

// Supported CDN / log source types. Aligned with auth-service (cdn-logs-infrastructure/common.js).
export const LOG_SOURCES = {
BYOCDN_FASTLY: 'byocdn-fastly',
BYOCDN_AKAMAI: 'byocdn-akamai',
BYOCDN_CLOUDFRONT: 'byocdn-cloudfront',
BYOCDN_CLOUDFLARE: 'byocdn-cloudflare',
BYOCDN_IMPERVA: 'byocdn-imperva',
BYOCDN_OTHER: 'byocdn-other',
AMS_CLOUDFRONT: 'ams-cloudfront',
AMS_FRONTDOOR: 'ams-frontdoor',
AEM_CS_FASTLY: 'aem-cs-fastly',
COMMERCE_FASTLY: 'commerce-fastly',
};

// Per-CDN strategies for edge optimize routing.
export const EDGE_OPTIMIZE_CDN_STRATEGIES = {
[LOG_SOURCES.AEM_CS_FASTLY]: {
buildUrl: (cdnConfig, domain) => {
const base = cdnConfig.cdnRoutingUrl.trim().replace(/\/+$/, '');
return `${base}/${domain}/edgeoptimize`;
},
buildBody: (enabled) => ({ enabled }),
method: 'POST',
},
};

export const EDGE_OPTIMIZE_CDN_TYPES = Object.keys(EDGE_OPTIMIZE_CDN_STRATEGIES);
export const LLMO_ADMIN_GROUP_NAME = 'LLMO Admin';

// Apply filters to data arrays with case-insensitive exact matching
export const applyFilters = (rawData, filterFields) => {
Expand Down
Loading
Loading