Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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/168ab6300112b5f4f8f1fe2b1369bc9d35bbd585/adobe-spacecat-shared-ims-client-1.12.2.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