Reestruturação dos arquivos e pastas do código da extensão

This commit is contained in:
Paulo Porto
2026-05-13 23:40:29 -03:00
parent f196067b21
commit c989088ab1
33 changed files with 13154 additions and 11866 deletions

View File

@@ -1,24 +1,20 @@
const COMCIP_ORIGIN = "https://comcipapic-oalprod.integration.ocp.oraclecloud.com";
const COMCIP_APP_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_semc/live/webApps/Dashboard/?page=shell&shell=main&main=service-requests-detailed-view`;
const COMCIP_QUERY_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_semc/live;profile=PROD/services/auth/1.1/proxy/oalsetCRMRestAPIElastic/uri/https/eeho.fa.us2.oraclecloud.com/crmRestApi/searchResources/latest/custom-actions/queries`;
const COMCIP_CLIENT_ID_PROBE_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_semc/live;profile=PROD/services/auth/1.1/proxy/oalsetSeaaSOKECustomRestAPI/uri/https/gxpap.oracle.com/oalcrm/service/set/seaas/crm/countries`;
const COMCIP_TIME_ENTRY_APP_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_timeentrymobile/live/webApps/timeentry/`;
const COMCIP_TIME_ENTRY_CLIENT_ID_PROBE_URL =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_timeentrymobile/live;profile=PROD/services/auth/1.1/proxy/oke_seaas/uri/https/gxpap.oracle.com/oalcrm/service/set/seaas/crm/lookups?lookupType=SCTA_TASK_TYPE&type=CUSTOM`;
const COMCIP_TIME_ENTRY_APP_VERSION = "version_1774016034953";
const COMCIP_TAB_URL_PATTERN =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_semc/live*`;
const COMCIP_TIME_ENTRY_TAB_URL_PATTERN =
`${COMCIP_ORIGIN}/ic/builder/rt/oalset_timeentrymobile/live*`;
const SPA_WORKBENCH_FRAME_URL =
"https://spa.oracle.com/oalcrm/web/api/g2m-consumer-application/ui/index.html?ojr=workload_workbench";
const SPA_WORKBENCH_FRAME_ID = "arch-panel-extension-spa-frame";
const SPA_WORKBENCH_FRAME_HOST_ID = "arch-panel-extension-spa-frame-host";
const SPA_FRAME_DNR_RULE_ID = 92001;
importScripts("src/background/config.js");
const {
COMCIP_ORIGIN,
COMCIP_APP_URL,
COMCIP_QUERY_URL,
COMCIP_CLIENT_ID_PROBE_URL,
COMCIP_TIME_ENTRY_APP_URL,
COMCIP_TIME_ENTRY_CLIENT_ID_PROBE_URL,
COMCIP_TIME_ENTRY_APP_VERSION,
COMCIP_TAB_URL_PATTERN,
COMCIP_TIME_ENTRY_TAB_URL_PATTERN,
SPA_WORKBENCH_FRAME_URL,
SPA_WORKBENCH_FRAME_ID,
SPA_WORKBENCH_FRAME_HOST_ID,
SPA_FRAME_DNR_RULE_ID,
} = globalThis.ArchPanelBackgroundConfig;
void installSpaFrameHeaderRules();