diff --git a/.sauce/dev.yml b/.sauce/dev.yml index 946ad5ff5..f9afc5d97 100644 --- a/.sauce/dev.yml +++ b/.sauce/dev.yml @@ -36,8 +36,8 @@ suites: [ "test/functional/specs/Personalization/C205528.js", "test/functional/specs/Identity/C6842981.js", - "test/functional/specs/Privacy/IAB/C224677.js", - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/IAB/C224677.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/LibraryInfo/C2589.js", ] - name: "Firefox" @@ -47,7 +47,7 @@ suites: src: - "test/functional/specs/**/*.js" platformName: "Windows 11" - excludedTestFiles: ["test/functional/specs/Privacy/C5594870.js"] + excludedTestFiles: ["test/functional/specs/Consent/C5594870.js"] - name: "Chrome" browserName: "chrome" headless: true @@ -57,7 +57,7 @@ suites: platformName: "Windows 11" excludedTestFiles: [ - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/Personalization/C7494472.js", "test/functional/specs/Personalization/C8631576.js", "test/functional/specs/Personalization/C8631577.js", diff --git a/.sauce/ee-prd.yml b/.sauce/ee-prd.yml index 39bb09535..bf0df1bc7 100644 --- a/.sauce/ee-prd.yml +++ b/.sauce/ee-prd.yml @@ -43,8 +43,8 @@ suites: [ "test/functional/specs/Personalization/C205528.js", "test/functional/specs/Identity/C6842981.js", - "test/functional/specs/Privacy/IAB/C224677.js", - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/IAB/C224677.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/LibraryInfo/C2589.js", ] - name: "Firefox" @@ -54,7 +54,7 @@ suites: src: - "test/functional/specs/**/*.js" platformName: "Windows 11" - excludedTestFiles: ["test/functional/specs/Privacy/C5594870.js"] + excludedTestFiles: ["test/functional/specs/Consent/C5594870.js"] - name: "Chrome" browserName: "chrome" browserVersion: "latest" @@ -64,9 +64,9 @@ suites: excludedTestFiles: [ "test/functional/specs/Data Collector/C81182.js", - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/Personalization/C7494472.js", - "test/functional/specs/Privacy/C1576777.js", + "test/functional/specs/Consent/C1576777.js", "test/functional/specs/Audiences/C12411.js", "test/functional/specs/Audiences/C31436.js", ] diff --git a/.sauce/pre-edge-deploy.yml b/.sauce/pre-edge-deploy.yml index 1f337c82e..589236370 100644 --- a/.sauce/pre-edge-deploy.yml +++ b/.sauce/pre-edge-deploy.yml @@ -38,7 +38,7 @@ suites: excludedTestFiles: [ "test/functional/specs/Personalization/C782718.js", - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/Personalization/C8631577.js", ] - name: "Safari" @@ -52,8 +52,8 @@ suites: [ "test/functional/specs/Personalization/C205528.js", "test/functional/specs/Identity/C6842981.js", - "test/functional/specs/Privacy/IAB/C224677.js", - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/IAB/C224677.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/LibraryInfo/C2589.js", ] - name: "Firefox" @@ -63,7 +63,7 @@ suites: src: - "test/functional/specs/**/*.js" platformName: "Windows 11" - excludedTestFiles: ["test/functional/specs/Privacy/C5594870.js"] + excludedTestFiles: ["test/functional/specs/Consent/C5594870.js"] - name: "Chrome" browserName: "chrome" headless: true @@ -73,7 +73,7 @@ suites: platformName: "Windows 11" excludedTestFiles: [ - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/Personalization/C7494472.js", "test/functional/specs/Personalization/C8631576.js", "test/functional/specs/Personalization/C8631577.js", diff --git a/.sauce/pre-prod-upstreams.yml b/.sauce/pre-prod-upstreams.yml index 7916b018e..a252d1603 100644 --- a/.sauce/pre-prod-upstreams.yml +++ b/.sauce/pre-prod-upstreams.yml @@ -38,7 +38,7 @@ suites: excludedTestFiles: [ "test/functional/specs/Personalization/C782718.js", - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/Personalization/C8631577.js", ] - name: "Safari" @@ -52,8 +52,8 @@ suites: [ "test/functional/specs/Personalization/C205528.js", "test/functional/specs/Identity/C6842981.js", - "test/functional/specs/Privacy/IAB/C224677.js", - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/IAB/C224677.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/LibraryInfo/C2589.js", ] - name: "Firefox" @@ -63,7 +63,7 @@ suites: src: - "test/functional/specs/**/*.js" platformName: "Windows 11" - excludedTestFiles: ["test/functional/specs/Privacy/C5594870.js"] + excludedTestFiles: ["test/functional/specs/Consent/C5594870.js"] - name: "Chrome" browserName: "chrome" headless: true @@ -73,7 +73,7 @@ suites: platformName: "Windows 11" excludedTestFiles: [ - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/Personalization/C7494472.js", "test/functional/specs/Personalization/C8631576.js", "test/functional/specs/Personalization/C8631577.js", diff --git a/.sauce/prod-chrome.yml b/.sauce/prod-chrome.yml index 3ce8139c8..b7ea2e88c 100644 --- a/.sauce/prod-chrome.yml +++ b/.sauce/prod-chrome.yml @@ -43,9 +43,9 @@ suites: excludedTestFiles: [ "test/functional/specs/Data Collector/C81182.js", - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/Personalization/C7494472.js", - "test/functional/specs/Privacy/C1576777.js", + "test/functional/specs/Consent/C1576777.js", "test/functional/specs/Audiences/C12411.js", "test/functional/specs/Audiences/C31436.js", ] diff --git a/.sauce/prod-firefox.yml b/.sauce/prod-firefox.yml index 8fe63e058..f57f3b4df 100644 --- a/.sauce/prod-firefox.yml +++ b/.sauce/prod-firefox.yml @@ -43,9 +43,9 @@ suites: excludedTestFiles: [ "test/functional/specs/Data Collector/C81182.js", - "test/functional/specs/Privacy/C2593.js", - "test/functional/specs/Privacy/C5594870.js", - "test/functional/specs/Privacy/C1576777.js", + "test/functional/specs/Consent/C2593.js", + "test/functional/specs/Consent/C5594870.js", + "test/functional/specs/Consent/C1576777.js", "test/functional/specs/Audiences/C12411.js", "test/functional/specs/Audiences/C31436.js", ] diff --git a/.sauce/prod-safari.yml b/.sauce/prod-safari.yml index 4e25e5998..c185ef60d 100644 --- a/.sauce/prod-safari.yml +++ b/.sauce/prod-safari.yml @@ -42,14 +42,14 @@ suites: platformName: "macOS 13" excludedTestFiles: [ - "test/functional/specs/Privacy/C1472435.js", + "test/functional/specs/Consent/C1472435.js", "test/functional/specs/Data Collector/C81182.js", "test/functional/specs/Personalization/C205528.js", "test/functional/specs/Identity/C6842981.js", - "test/functional/specs/Privacy/IAB/C224677.js", - "test/functional/specs/Privacy/C5594870.js", + "test/functional/specs/Consent/IAB/C224677.js", + "test/functional/specs/Consent/C5594870.js", "test/functional/specs/LibraryInfo/C2589.js", - "test/functional/specs/Privacy/C1576777.js", + "test/functional/specs/Consent/C1576777.js", "test/functional/specs/Audiences/C12411.js", "test/functional/specs/Audiences/C31436.js", "test/functional/specs/Personalization/C8631576.js", diff --git a/sandbox/public/perf/js/1281f6ff0c59/07c2a9012ef3/6232856ef9ff/launch-fac34f2b8065.js b/sandbox/public/perf/js/1281f6ff0c59/07c2a9012ef3/6232856ef9ff/launch-fac34f2b8065.js index b66fd2fe0..e0016cdd4 100644 --- a/sandbox/public/perf/js/1281f6ff0c59/07c2a9012ef3/6232856ef9ff/launch-fac34f2b8065.js +++ b/sandbox/public/perf/js/1281f6ff0c59/07c2a9012ef3/6232856ef9ff/launch-fac34f2b8065.js @@ -7290,7 +7290,7 @@ module.exports = function (instanceNames) { governing permissions and limitations under the License. */ - var createPrivacy = function createPrivacy(_ref) { + var createConsent = function createConsent(_ref) { var config = _ref.config, consent = _ref.consent, sendEdgeNetworkRequest = _ref.sendEdgeNetworkRequest; @@ -7316,7 +7316,7 @@ module.exports = function (instanceNames) { }); }; - createPrivacy.namespace = "Privacy"; + createConsent.namespace = "Consent"; /* Copyright 2019 Adobe. All rights reserved. This file is licensed to you under the Apache License, Version 2.0 (the "License"); @@ -7393,7 +7393,7 @@ module.exports = function (instanceNames) { */ // TODO: Figure out how sub-components will be made available/registered - var componentCreators = [createDataCollector, createActivityCollector, createIdentity, createAudiences, createPersonalization, createContext, createPrivacy, createEventMerge, createLibraryInfo]; + var componentCreators = [createDataCollector, createActivityCollector, createIdentity, createAudiences, createPersonalization, createContext, createConsent, createEventMerge, createLibraryInfo]; /* Copyright 2019 Adobe. All rights reserved. This file is licensed to you under the Apache License, Version 2.0 (the "License"); diff --git a/sandbox/public/perf/js/1281f6ff0c59/07c2a9012ef3/6232856ef9ff/launch-fac34f2b8065.min.js b/sandbox/public/perf/js/1281f6ff0c59/07c2a9012ef3/6232856ef9ff/launch-fac34f2b8065.min.js index 95d4e68f6..d1fcae722 100644 --- a/sandbox/public/perf/js/1281f6ff0c59/07c2a9012ef3/6232856ef9ff/launch-fac34f2b8065.min.js +++ b/sandbox/public/perf/js/1281f6ff0c59/07c2a9012ef3/6232856ef9ff/launch-fac34f2b8065.min.js @@ -1,4 +1,4 @@ // For license information, see `launch-fac34f2b8065.js` within the same directory. window._satellite=window._satellite||{},window._satellite.container={buildInfo:{minified:!0,buildDate:"2020-11-05T04:04:34Z",environment:"production",turbineBuildDate:"2020-08-10T20:14:17Z",turbineVersion:"27.0.0"},dataElements:{},extensions:{core:{displayName:"Core",modules:{"core/src/lib/events/libraryLoaded.js":{name:"library-loaded",displayName:"Library Loaded (Page Top)",script:function(e,n,t){"use strict";var r=t("./helpers/pageLifecycleEvents");e.exports=function(e,n){r.registerLibraryLoadedTrigger(n)}}},"core/src/lib/events/helpers/pageLifecycleEvents.js":{script:function(e,n,t){"use strict";var r=t("@adobe/reactor-window"),o=t("@adobe/reactor-document"),i=-1!==r.navigator.appVersion.indexOf("MSIE 10"),a="WINDOW_LOADED",u="DOM_READY",c="PAGE_BOTTOM",s=[c,u,a],f=function(e,n){return{element:e,target:e,nativeEvent:n}},d={};s.forEach(function(e){d[e]=[]});var l=function(e,n){s.slice(0,p(e)+1).forEach(function(e){m(n,e)})},g=function(){return"complete"===o.readyState?a:"interactive"===o.readyState?i?null:u:void 0},p=function(e){return s.indexOf(e)},m=function(n,e){d[e].forEach(function(e){v(n,e)}),d[e]=[]},v=function(e,n){var t=n.trigger,r=n.syntheticEventFn;t(r?r(e):null)};r._satellite=r._satellite||{},r._satellite.pageBottom=l.bind(null,c),o.addEventListener("DOMContentLoaded",l.bind(null,u),!0),r.addEventListener("load",l.bind(null,a),!0),r.setTimeout(function(){var e=g();e&&l(e)},0),e.exports={registerLibraryLoadedTrigger:function(e){e()},registerPageBottomTrigger:function(e){d[c].push({trigger:e})},registerDomReadyTrigger:function(e){d[u].push({trigger:e,syntheticEventFn:f.bind(null,o)})},registerWindowLoadedTrigger:function(e){d[a].push({trigger:e,syntheticEventFn:f.bind(null,r)})}}}}},hostedLibFilesBaseUrl:"/perf/js/1281f6ff0c59/07c2a9012ef3/6232856ef9ff/hostedLibFiles/EP2e2f86ba46954a2b8a2b3bb72276b9f8/"},"adobe-alloy":{displayName:"AEP Web SDK",modules:{"adobe-alloy/dist/lib/actions/sendEvent/index.js":{name:"send-event",displayName:"Send Event",script:function(e,n,t,r){"use strict";var o=t("./createSendEvent"),i=t("../../instanceManager/index"),a=t("../../decisionsCallbackStorage");e.exports=o({instanceManager:i,turbine:r,decisionsCallbackStorage:a})}},"adobe-alloy/dist/lib/instanceManager/index.js":{script:function(e,n,t,r){"use strict";var o=t("../runAlloy"),i=t("./createInstanceManager");e.exports=i({turbine:r,window:window,runAlloy:o,orgId:_satellite.company.orgId})}},"adobe-alloy/dist/lib/actions/sendEvent/createSendEvent.js":{script:function(e,n,t){"use strict";function a(e,n){if(null==e)return{};var t,r,o=u(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=n||0===o.length)return r;for(var i=n-r.length;i>o.length;)o+=o;return o.slice(0,i)+r},Ye=function Ye(e){return e instanceof Error?e:new Error(e)},Ze=function Ze(e){var n=e.error,t=e.message;try{n.message=t}catch(r){}},en=function en(e){var n=e.error,t=e.message,r=Ye(n),o=t+"\nCaused by: "+r.message;return Ze({error:r,message:o}),r},nn=function nn(r,o,i){return{getItem:function t(e){try{return r[o].getItem(i+e)}catch(n){return null}},setItem:function a(e,n){try{return r[o].setItem(i+e,n),!0}catch(t){return!1}}}},tn=function tn(t){return function(e){var n=Me+e;return{session:nn(t,"sessionStorage",n),persistent:nn(t,"localStorage",n)}}},rn=function rn(e){return Ge(e)&&"true"===e.toLowerCase()},on=function on(e){var n=e.getFullYear(),t=Ke(e.getMonth()+1,2,"0"),r=Ke(e.getDate(),2,"0"),o=Ke(e.getHours(),2,"0"),i=Ke(e.getMinutes(),2,"0"),a=Ke(e.getSeconds(),2,"0"),u=Ke(e.getMilliseconds(),3,"0"),c=e.getTimezoneOffset();return n+"-"+t+"-"+r+"T"+o+":"+i+":"+a+"."+u+(0>>((3&n)<<3)&255;return r}}}),cn=[],sn=0;sn<256;++sn)cn[sn]=(sn+256).toString(16).substr(1);var fn=m,dn=v,ln=function ln(t,r,e){var n=2?\s*/,Gr=function Gr(e){return e.replace(Wr,"").trim()},Qr=function Qr(e,n,t){return""+n+Br(t)},Xr=function Xr(e){return e.replace(Jr,Qr)},$r=function $r(e){for(var n=[],t=Xr(e.trim()),r=Hr(t),o=r.length,i=0;i?\s*/,Gr=function Gr(e){return e.replace(Wr,"").trim()},Qr=function Qr(e,n,t){return""+n+Br(t)},Xr=function Xr(e){return e.replace(Jr,Qr)},$r=function $r(e){for(var n=[],t=Xr(e.trim()),r=Hr(t),o=r.length,i=0;i ")),e):c(e,n)}},ae=function(o){return function(e,n){if("string"==typeof e)o[arguments[0]]=n;else if(arguments[0]){var t=arguments[0];for(var r in t)o[r]=t[r]}}},ue=setTimeout;i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,n){var t=new this.constructor(r);return a(this,new d(e,n,t)),t},i.prototype["finally"]=n,i.all=function(n){return new i(function(o,i){function a(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void t.call(e,function(e){a(n,e)},i)}u[n]=e,0==--c&&o(u)}catch(r){i(r)}}if(!s(n))return i(new TypeError("Promise.all accepts an array"));var u=Array.prototype.slice.call(n);if(0===u.length)return o([]);for(var c=u.length,e=0;e?\s*/,Gr=function Gr(e){return e.replace(Wr,"").trim()},Qr=function Qr(e,n,t){return""+n+Br(t)},Xr=function Xr(e){return e.replace(Jr,Qr)},$r=function $r(e){for(var n=[],t=Xr(e.trim()),r=Hr(t),o=r.length,i=0;i=n||0===o.length)return r;for(var i=n-r.length;i>o.length;)o+=o;return o.slice(0,i)+r},Ye=function Ye(e){return e instanceof Error?e:new Error(e)},Ze=function Ze(e){var n=e.error,t=e.message;try{n.message=t}catch(r){}},en=function en(e){var n=e.error,t=e.message,r=Ye(n),o=t+"\nCaused by: "+r.message;return Ze({error:r,message:o}),r},nn=function nn(r,o,i){return{getItem:function t(e){try{return r[o].getItem(i+e)}catch(n){return null}},setItem:function a(e,n){try{return r[o].setItem(i+e,n),!0}catch(t){return!1}}}},tn=function tn(t){return function(e){var n=Me+e;return{session:nn(t,"sessionStorage",n),persistent:nn(t,"localStorage",n)}}},rn=function rn(e){return Ge(e)&&"true"===e.toLowerCase()},on=function on(e){var n=e.getFullYear(),t=Ke(e.getMonth()+1,2,"0"),r=Ke(e.getDate(),2,"0"),o=Ke(e.getHours(),2,"0"),i=Ke(e.getMinutes(),2,"0"),a=Ke(e.getSeconds(),2,"0"),u=Ke(e.getMilliseconds(),3,"0"),c=e.getTimezoneOffset();return n+"-"+t+"-"+r+"T"+o+":"+i+":"+a+"."+u+(0>>((3&n)<<3)&255;return r}}}),cn=[],sn=0;sn<256;++sn)cn[sn]=(sn+256).toString(16).substr(1);var fn=m,dn=v,ln=function ln(t,r,e){var n=2?\s*/,Gr=function Gr(e){return e.replace(Wr,"").trim()},Qr=function Qr(e,n,t){return""+n+Br(t)},Xr=function Xr(e){return e.replace(Jr,Qr)},$r=function $r(e){for(var n=[],t=Xr(e.trim()),r=Hr(t),o=r.length,i=0;i?\s*/,Gr=function Gr(e){return e.replace(Wr,"").trim()},Qr=function Qr(e,n,t){return""+n+Br(t)},Xr=function Xr(e){return e.replace(Jr,Qr)},$r=function $r(e){for(var n=[],t=Xr(e.trim()),r=Hr(t),o=r.length,i=0;i ")),e):c(e,n)}},ae=function(o){return function(e,n){if("string"==typeof e)o[arguments[0]]=n;else if(arguments[0]){var t=arguments[0];for(var r in t)o[r]=t[r]}}},ue=setTimeout;i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,n){var t=new this.constructor(r);return a(this,new d(e,n,t)),t},i.prototype["finally"]=n,i.all=function(n){return new i(function(o,i){function a(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void t.call(e,function(e){a(n,e)},i)}u[n]=e,0==--c&&o(u)}catch(r){i(r)}}if(!s(n))return i(new TypeError("Promise.all accepts an array"));var u=Array.prototype.slice.call(n);if(0===u.length)return o([]);for(var c=u.length,e=0;e { identity: "Identity", audiences: "Audiences", context: "Context", - privacy: "Privacy", + consent: "Consent", eventMerge: "EventMerge", libraryInfo: "LibraryInfo", - decisioningEngine: "DecisioningEngine", + rulesEngine: "RulesEngine", }; // Adjust componentNames using the mapping diff --git a/src/components/Privacy/computeConsentHash.js b/src/components/Consent/computeConsentHash.js similarity index 100% rename from src/components/Privacy/computeConsentHash.js rename to src/components/Consent/computeConsentHash.js diff --git a/src/components/Privacy/configValidators.js b/src/components/Consent/configValidators.js similarity index 100% rename from src/components/Privacy/configValidators.js rename to src/components/Consent/configValidators.js diff --git a/src/components/Privacy/createComponent.js b/src/components/Consent/createComponent.js similarity index 100% rename from src/components/Privacy/createComponent.js rename to src/components/Consent/createComponent.js diff --git a/src/components/Privacy/createConsentHashStore.js b/src/components/Consent/createConsentHashStore.js similarity index 100% rename from src/components/Privacy/createConsentHashStore.js rename to src/components/Consent/createConsentHashStore.js diff --git a/src/components/Privacy/createConsentRequest.js b/src/components/Consent/createConsentRequest.js similarity index 100% rename from src/components/Privacy/createConsentRequest.js rename to src/components/Consent/createConsentRequest.js diff --git a/src/components/Privacy/createConsentRequestPayload.js b/src/components/Consent/createConsentRequestPayload.js similarity index 100% rename from src/components/Privacy/createConsentRequestPayload.js rename to src/components/Consent/createConsentRequestPayload.js diff --git a/src/components/Privacy/createStoredConsent.js b/src/components/Consent/createStoredConsent.js similarity index 100% rename from src/components/Privacy/createStoredConsent.js rename to src/components/Consent/createStoredConsent.js diff --git a/src/components/Privacy/index.js b/src/components/Consent/index.js similarity index 94% rename from src/components/Privacy/index.js rename to src/components/Consent/index.js index 96e28a55d..29c4a64c4 100644 --- a/src/components/Privacy/index.js +++ b/src/components/Consent/index.js @@ -26,7 +26,7 @@ import parseConsentCookie from "./parseConsentCookie.js"; import validateSetConsentOptions from "./validateSetConsentOptions.js"; import configValidators from "./configValidators.js"; -const createPrivacy = ({ +const createConsent = ({ config, consent, sendEdgeNetworkRequest, @@ -66,6 +66,6 @@ const createPrivacy = ({ }); }; -createPrivacy.namespace = "Privacy"; -createPrivacy.configValidators = configValidators; -export default createPrivacy; +createConsent.namespace = "Consent"; +createConsent.configValidators = configValidators; +export default createConsent; diff --git a/src/components/Privacy/injectSendSetConsentRequest.js b/src/components/Consent/injectSendSetConsentRequest.js similarity index 100% rename from src/components/Privacy/injectSendSetConsentRequest.js rename to src/components/Consent/injectSendSetConsentRequest.js diff --git a/src/components/Privacy/parseConsentCookie.js b/src/components/Consent/parseConsentCookie.js similarity index 100% rename from src/components/Privacy/parseConsentCookie.js rename to src/components/Consent/parseConsentCookie.js diff --git a/src/components/Privacy/validateSetConsentOptions.js b/src/components/Consent/validateSetConsentOptions.js similarity index 100% rename from src/components/Privacy/validateSetConsentOptions.js rename to src/components/Consent/validateSetConsentOptions.js diff --git a/src/components/LegacyMediaAnalytics/constants/constants.js b/src/components/MediaAnalyticsBridge/constants/constants.js similarity index 100% rename from src/components/LegacyMediaAnalytics/constants/constants.js rename to src/components/MediaAnalyticsBridge/constants/constants.js diff --git a/src/components/LegacyMediaAnalytics/constants/mediaKeysToXdmConverter.js b/src/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.js similarity index 100% rename from src/components/LegacyMediaAnalytics/constants/mediaKeysToXdmConverter.js rename to src/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.js diff --git a/src/components/LegacyMediaAnalytics/createGetInstance.js b/src/components/MediaAnalyticsBridge/createGetInstance.js similarity index 100% rename from src/components/LegacyMediaAnalytics/createGetInstance.js rename to src/components/MediaAnalyticsBridge/createGetInstance.js diff --git a/src/components/LegacyMediaAnalytics/createLegacyMediaComponent.js b/src/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js similarity index 100% rename from src/components/LegacyMediaAnalytics/createLegacyMediaComponent.js rename to src/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js diff --git a/src/components/LegacyMediaAnalytics/createMediaHelper.js b/src/components/MediaAnalyticsBridge/createMediaHelper.js similarity index 100% rename from src/components/LegacyMediaAnalytics/createMediaHelper.js rename to src/components/MediaAnalyticsBridge/createMediaHelper.js diff --git a/src/components/LegacyMediaAnalytics/index.js b/src/components/MediaAnalyticsBridge/index.js similarity index 88% rename from src/components/LegacyMediaAnalytics/index.js rename to src/components/MediaAnalyticsBridge/index.js index c4c3a1128..38722fc8b 100644 --- a/src/components/LegacyMediaAnalytics/index.js +++ b/src/components/MediaAnalyticsBridge/index.js @@ -16,12 +16,12 @@ import createMediaSessionCacheManager from "../StreamingMedia/createMediaSession import createTrackMediaEvent from "../StreamingMedia/createTrackMediaEvent.js"; import createTrackMediaSession from "../StreamingMedia/createTrackMediaSession.js"; import createMediaResponseHandler from "../StreamingMedia/createMediaResponseHandler.js"; -import createLegacyMediaComponent from "./createLegacyMediaComponent.js"; +import createMediaAnalyticsBridgeComponent from "./createMediaAnalyticsBridgeComponent.js"; import createMediaHelper from "./createMediaHelper.js"; import createGetInstance from "./createGetInstance.js"; import injectTimestamp from "../Context/injectTimestamp.js"; -const createLegacyMediaAnalytics = ({ +const createMediaAnalyticsBridge = ({ eventManager, sendEdgeNetworkRequest, config, @@ -55,7 +55,7 @@ const createLegacyMediaAnalytics = ({ trackMediaEvent, }); - return createLegacyMediaComponent({ + return createMediaAnalyticsBridgeComponent({ mediaResponseHandler, trackMediaSession, trackMediaEvent, @@ -66,6 +66,6 @@ const createLegacyMediaAnalytics = ({ }); }; -createLegacyMediaAnalytics.namespace = "Legacy Media Analytics"; +createMediaAnalyticsBridge.namespace = "Legacy Media Analytics"; -export default createLegacyMediaAnalytics; +export default createMediaAnalyticsBridge; diff --git a/src/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js b/src/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js similarity index 100% rename from src/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js rename to src/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js diff --git a/src/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js b/src/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js similarity index 100% rename from src/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js rename to src/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js diff --git a/src/components/DecisioningEngine/constants.js b/src/components/RulesEngine/constants.js similarity index 100% rename from src/components/DecisioningEngine/constants.js rename to src/components/RulesEngine/constants.js diff --git a/src/components/DecisioningEngine/createApplyResponse.js b/src/components/RulesEngine/createApplyResponse.js similarity index 100% rename from src/components/DecisioningEngine/createApplyResponse.js rename to src/components/RulesEngine/createApplyResponse.js diff --git a/src/components/DecisioningEngine/createConsequenceAdapter.js b/src/components/RulesEngine/createConsequenceAdapter.js similarity index 100% rename from src/components/DecisioningEngine/createConsequenceAdapter.js rename to src/components/RulesEngine/createConsequenceAdapter.js diff --git a/src/components/DecisioningEngine/createContextProvider.js b/src/components/RulesEngine/createContextProvider.js similarity index 100% rename from src/components/DecisioningEngine/createContextProvider.js rename to src/components/RulesEngine/createContextProvider.js diff --git a/src/components/DecisioningEngine/createDecisionHistory.js b/src/components/RulesEngine/createDecisionHistory.js similarity index 100% rename from src/components/DecisioningEngine/createDecisionHistory.js rename to src/components/RulesEngine/createDecisionHistory.js diff --git a/src/components/DecisioningEngine/createDecisionProvider.js b/src/components/RulesEngine/createDecisionProvider.js similarity index 100% rename from src/components/DecisioningEngine/createDecisionProvider.js rename to src/components/RulesEngine/createDecisionProvider.js diff --git a/src/components/DecisioningEngine/createEvaluableRulesetPayload.js b/src/components/RulesEngine/createEvaluableRulesetPayload.js similarity index 100% rename from src/components/DecisioningEngine/createEvaluableRulesetPayload.js rename to src/components/RulesEngine/createEvaluableRulesetPayload.js diff --git a/src/components/DecisioningEngine/createEvaluateRulesetsCommand.js b/src/components/RulesEngine/createEvaluateRulesetsCommand.js similarity index 100% rename from src/components/DecisioningEngine/createEvaluateRulesetsCommand.js rename to src/components/RulesEngine/createEvaluateRulesetsCommand.js diff --git a/src/components/DecisioningEngine/createEventRegistry.js b/src/components/RulesEngine/createEventRegistry.js similarity index 100% rename from src/components/DecisioningEngine/createEventRegistry.js rename to src/components/RulesEngine/createEventRegistry.js diff --git a/src/components/DecisioningEngine/createOnResponseHandler.js b/src/components/RulesEngine/createOnResponseHandler.js similarity index 100% rename from src/components/DecisioningEngine/createOnResponseHandler.js rename to src/components/RulesEngine/createOnResponseHandler.js diff --git a/src/components/DecisioningEngine/createSubscribeRulesetItems.js b/src/components/RulesEngine/createSubscribeRulesetItems.js similarity index 100% rename from src/components/DecisioningEngine/createSubscribeRulesetItems.js rename to src/components/RulesEngine/createSubscribeRulesetItems.js diff --git a/src/components/DecisioningEngine/index.js b/src/components/RulesEngine/index.js similarity index 96% rename from src/components/DecisioningEngine/index.js rename to src/components/RulesEngine/index.js index e28e86805..ecdfdae30 100644 --- a/src/components/DecisioningEngine/index.js +++ b/src/components/RulesEngine/index.js @@ -27,7 +27,7 @@ import { objectOf, boolean } from "../../utils/validation/index.js"; import createCollect from "../../utils/createCollect.js"; import { mergeDecisionsMeta } from "../../utils/event.js"; -const createDecisioningEngine = ({ +const createRulesEngine = ({ config, eventManager, createNamespacedStorage, @@ -134,8 +134,8 @@ const createDecisioningEngine = ({ }; }; -createDecisioningEngine.namespace = "DecisioningEngine"; -createDecisioningEngine.configValidators = objectOf({ +createRulesEngine.namespace = "RulesEngine"; +createRulesEngine.configValidators = objectOf({ personalizationStorageEnabled: boolean().default(false), }); -export default createDecisioningEngine; +export default createRulesEngine; diff --git a/src/components/DecisioningEngine/utils.js b/src/components/RulesEngine/utils.js similarity index 100% rename from src/components/DecisioningEngine/utils.js rename to src/components/RulesEngine/utils.js diff --git a/src/core/componentCreators.js b/src/core/componentCreators.js index e84109eb4..23344d9de 100644 --- a/src/core/componentCreators.js +++ b/src/core/componentCreators.js @@ -17,9 +17,9 @@ governing permissions and limitations under the License. export { default as activityCollector } from "../components/ActivityCollector/index.js"; export { default as audiences } from "../components/Audiences/index.js"; export { default as context } from "../components/Context/index.js"; -export { default as decisioningEngine } from "../components/DecisioningEngine/index.js"; +export { default as rulesEngine } from "../components/RulesEngine/index.js"; export { default as eventMerge } from "../components/EventMerge/index.js"; -export { default as legacyMediaAnalytics } from "../components/LegacyMediaAnalytics/index.js"; +export { default as mediaAnalyticsBridge } from "../components/MediaAnalyticsBridge/index.js"; export { default as personalization } from "../components/Personalization/index.js"; -export { default as privacy } from "../components/Privacy/index.js"; +export { default as consent } from "../components/Consent/index.js"; export { default as streamingMedia } from "../components/StreamingMedia/index.js"; diff --git a/src/core/createLifecycle.js b/src/core/createLifecycle.js index ba86a2a69..784abab79 100644 --- a/src/core/createLifecycle.js +++ b/src/core/createLifecycle.js @@ -30,7 +30,7 @@ const hookNames = [ "onRequestFailure", // A user clicked on an element. "onClick", - // Called by DecisioningEngine when a ruleset is satisfied with a list of + // Called by RulesEngine when a ruleset is satisfied with a list of // propositions "onDecision", ]; diff --git a/test/functional/specs/Privacy/C14404.js b/test/functional/specs/Consent/C14404.js similarity index 100% rename from test/functional/specs/Privacy/C14404.js rename to test/functional/specs/Consent/C14404.js diff --git a/test/functional/specs/Privacy/C14405.js b/test/functional/specs/Consent/C14405.js similarity index 100% rename from test/functional/specs/Privacy/C14405.js rename to test/functional/specs/Consent/C14405.js diff --git a/test/functional/specs/Privacy/C14406.js b/test/functional/specs/Consent/C14406.js similarity index 100% rename from test/functional/specs/Privacy/C14406.js rename to test/functional/specs/Consent/C14406.js diff --git a/test/functional/specs/Privacy/C14407.js b/test/functional/specs/Consent/C14407.js similarity index 100% rename from test/functional/specs/Privacy/C14407.js rename to test/functional/specs/Consent/C14407.js diff --git a/test/functional/specs/Privacy/C14409.js b/test/functional/specs/Consent/C14409.js similarity index 100% rename from test/functional/specs/Privacy/C14409.js rename to test/functional/specs/Consent/C14409.js diff --git a/test/functional/specs/Privacy/C14410.js b/test/functional/specs/Consent/C14410.js similarity index 100% rename from test/functional/specs/Privacy/C14410.js rename to test/functional/specs/Consent/C14410.js diff --git a/test/functional/specs/Privacy/C14411.js b/test/functional/specs/Consent/C14411.js similarity index 100% rename from test/functional/specs/Privacy/C14411.js rename to test/functional/specs/Consent/C14411.js diff --git a/test/functional/specs/Privacy/C14414.js b/test/functional/specs/Consent/C14414.js similarity index 100% rename from test/functional/specs/Privacy/C14414.js rename to test/functional/specs/Consent/C14414.js diff --git a/test/functional/specs/Privacy/C1472433.js b/test/functional/specs/Consent/C1472433.js similarity index 100% rename from test/functional/specs/Privacy/C1472433.js rename to test/functional/specs/Consent/C1472433.js diff --git a/test/functional/specs/Privacy/C1472434.js b/test/functional/specs/Consent/C1472434.js similarity index 100% rename from test/functional/specs/Privacy/C1472434.js rename to test/functional/specs/Consent/C1472434.js diff --git a/test/functional/specs/Privacy/C1472435.js b/test/functional/specs/Consent/C1472435.js similarity index 100% rename from test/functional/specs/Privacy/C1472435.js rename to test/functional/specs/Consent/C1472435.js diff --git a/test/functional/specs/Privacy/C1472436.js b/test/functional/specs/Consent/C1472436.js similarity index 100% rename from test/functional/specs/Privacy/C1472436.js rename to test/functional/specs/Consent/C1472436.js diff --git a/test/functional/specs/Privacy/C1472437.js b/test/functional/specs/Consent/C1472437.js similarity index 100% rename from test/functional/specs/Privacy/C1472437.js rename to test/functional/specs/Consent/C1472437.js diff --git a/test/functional/specs/Privacy/C1472438.js b/test/functional/specs/Consent/C1472438.js similarity index 100% rename from test/functional/specs/Privacy/C1472438.js rename to test/functional/specs/Consent/C1472438.js diff --git a/test/functional/specs/Privacy/C1576777.js b/test/functional/specs/Consent/C1576777.js similarity index 100% rename from test/functional/specs/Privacy/C1576777.js rename to test/functional/specs/Consent/C1576777.js diff --git a/test/functional/specs/Privacy/C1631712.js b/test/functional/specs/Consent/C1631712.js similarity index 100% rename from test/functional/specs/Privacy/C1631712.js rename to test/functional/specs/Consent/C1631712.js diff --git a/test/functional/specs/Privacy/C225953.js b/test/functional/specs/Consent/C225953.js similarity index 100% rename from test/functional/specs/Privacy/C225953.js rename to test/functional/specs/Consent/C225953.js diff --git a/test/functional/specs/Privacy/C25148.js b/test/functional/specs/Consent/C25148.js similarity index 100% rename from test/functional/specs/Privacy/C25148.js rename to test/functional/specs/Consent/C25148.js diff --git a/test/functional/specs/Privacy/C2593.js b/test/functional/specs/Consent/C2593.js similarity index 100% rename from test/functional/specs/Privacy/C2593.js rename to test/functional/specs/Consent/C2593.js diff --git a/test/functional/specs/Privacy/C2594.js b/test/functional/specs/Consent/C2594.js similarity index 100% rename from test/functional/specs/Privacy/C2594.js rename to test/functional/specs/Consent/C2594.js diff --git a/test/functional/specs/Privacy/C2660.js b/test/functional/specs/Consent/C2660.js similarity index 100% rename from test/functional/specs/Privacy/C2660.js rename to test/functional/specs/Consent/C2660.js diff --git a/test/functional/specs/Privacy/C28754.js b/test/functional/specs/Consent/C28754.js similarity index 100% rename from test/functional/specs/Privacy/C28754.js rename to test/functional/specs/Consent/C28754.js diff --git a/test/functional/specs/Privacy/C5594870.js b/test/functional/specs/Consent/C5594870.js similarity index 100% rename from test/functional/specs/Privacy/C5594870.js rename to test/functional/specs/Consent/C5594870.js diff --git a/test/functional/specs/Privacy/IAB/C224670.js b/test/functional/specs/Consent/IAB/C224670.js similarity index 100% rename from test/functional/specs/Privacy/IAB/C224670.js rename to test/functional/specs/Consent/IAB/C224670.js diff --git a/test/functional/specs/Privacy/IAB/C224671.js b/test/functional/specs/Consent/IAB/C224671.js similarity index 100% rename from test/functional/specs/Privacy/IAB/C224671.js rename to test/functional/specs/Consent/IAB/C224671.js diff --git a/test/functional/specs/Privacy/IAB/C224672.js b/test/functional/specs/Consent/IAB/C224672.js similarity index 100% rename from test/functional/specs/Privacy/IAB/C224672.js rename to test/functional/specs/Consent/IAB/C224672.js diff --git a/test/functional/specs/Privacy/IAB/C224673.js b/test/functional/specs/Consent/IAB/C224673.js similarity index 100% rename from test/functional/specs/Privacy/IAB/C224673.js rename to test/functional/specs/Consent/IAB/C224673.js diff --git a/test/functional/specs/Privacy/IAB/C224674.js b/test/functional/specs/Consent/IAB/C224674.js similarity index 100% rename from test/functional/specs/Privacy/IAB/C224674.js rename to test/functional/specs/Consent/IAB/C224674.js diff --git a/test/functional/specs/Privacy/IAB/C224675.js b/test/functional/specs/Consent/IAB/C224675.js similarity index 100% rename from test/functional/specs/Privacy/IAB/C224675.js rename to test/functional/specs/Consent/IAB/C224675.js diff --git a/test/functional/specs/Privacy/IAB/C224676.js b/test/functional/specs/Consent/IAB/C224676.js similarity index 100% rename from test/functional/specs/Privacy/IAB/C224676.js rename to test/functional/specs/Consent/IAB/C224676.js diff --git a/test/functional/specs/Privacy/IAB/C224677.js b/test/functional/specs/Consent/IAB/C224677.js similarity index 100% rename from test/functional/specs/Privacy/IAB/C224677.js rename to test/functional/specs/Consent/IAB/C224677.js diff --git a/test/functional/specs/Privacy/IAB/C224678.js b/test/functional/specs/Consent/IAB/C224678.js similarity index 100% rename from test/functional/specs/Privacy/IAB/C224678.js rename to test/functional/specs/Consent/IAB/C224678.js diff --git a/test/functional/specs/DecisioningEngine/C13348429.js b/test/functional/specs/RulesEngine/C13348429.js similarity index 100% rename from test/functional/specs/DecisioningEngine/C13348429.js rename to test/functional/specs/RulesEngine/C13348429.js diff --git a/test/functional/specs/DecisioningEngine/C13405889.js b/test/functional/specs/RulesEngine/C13405889.js similarity index 100% rename from test/functional/specs/DecisioningEngine/C13405889.js rename to test/functional/specs/RulesEngine/C13405889.js diff --git a/test/functional/specs/DecisioningEngine/C13419240.js b/test/functional/specs/RulesEngine/C13419240.js similarity index 100% rename from test/functional/specs/DecisioningEngine/C13419240.js rename to test/functional/specs/RulesEngine/C13419240.js diff --git a/test/integration/customBuildSize.js b/test/integration/customBuildSize.js index 85b22672e..7a7155f59 100755 --- a/test/integration/customBuildSize.js +++ b/test/integration/customBuildSize.js @@ -46,7 +46,7 @@ const components = [ "audiences", "personalization", "eventmerge", - "decisioningengine", + "rulesengine", ]; // Run tests for all components diff --git a/test/unit/specs/components/Privacy/computeConsentHash.spec.js b/test/unit/specs/components/Consent/computeConsentHash.spec.js similarity index 94% rename from test/unit/specs/components/Privacy/computeConsentHash.spec.js rename to test/unit/specs/components/Consent/computeConsentHash.spec.js index edb7daa66..06701ea5b 100644 --- a/test/unit/specs/components/Privacy/computeConsentHash.spec.js +++ b/test/unit/specs/components/Consent/computeConsentHash.spec.js @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -import computeConsentHash from "../../../../../src/components/Privacy/computeConsentHash.js"; +import computeConsentHash from "../../../../../src/components/Consent/computeConsentHash.js"; describe("computeConsentHash", () => { it("works", () => { diff --git a/test/unit/specs/components/Privacy/configValidators.spec.js b/test/unit/specs/components/Consent/configValidators.spec.js similarity index 91% rename from test/unit/specs/components/Privacy/configValidators.spec.js rename to test/unit/specs/components/Consent/configValidators.spec.js index a9e4a2a19..12b3b689f 100644 --- a/test/unit/specs/components/Privacy/configValidators.spec.js +++ b/test/unit/specs/components/Consent/configValidators.spec.js @@ -1,4 +1,4 @@ -import configValidators from "../../../../../src/components/Privacy/configValidators.js"; +import configValidators from "../../../../../src/components/Consent/configValidators.js"; describe("defaultConsent", () => { it("validates defaultConsent=undefined", () => { diff --git a/test/unit/specs/components/Privacy/createComponent.spec.js b/test/unit/specs/components/Consent/createComponent.spec.js similarity index 98% rename from test/unit/specs/components/Privacy/createComponent.spec.js rename to test/unit/specs/components/Consent/createComponent.spec.js index 92056ddca..88c27be0e 100644 --- a/test/unit/specs/components/Privacy/createComponent.spec.js +++ b/test/unit/specs/components/Consent/createComponent.spec.js @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -import createComponent from "../../../../../src/components/Privacy/createComponent.js"; +import createComponent from "../../../../../src/components/Consent/createComponent.js"; import { createTaskQueue, defer } from "../../../../../src/utils/index.js"; import flushPromiseChains from "../../../helpers/flushPromiseChains.js"; @@ -28,7 +28,7 @@ const createConsent = (generalConsent) => ({ const CONSENT_IN = createConsent("in"); const CONSENT_OUT = createConsent("out"); -describe("privacy:createComponent", () => { +describe("consent:createComponent", () => { let storedConsent; let taskQueue; let defaultConsent; diff --git a/test/unit/specs/components/Privacy/createConsentHashStore.spec.js b/test/unit/specs/components/Consent/createConsentHashStore.spec.js similarity index 98% rename from test/unit/specs/components/Privacy/createConsentHashStore.spec.js rename to test/unit/specs/components/Consent/createConsentHashStore.spec.js index ad7e2533d..833623787 100644 --- a/test/unit/specs/components/Privacy/createConsentHashStore.spec.js +++ b/test/unit/specs/components/Consent/createConsentHashStore.spec.js @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -import createConsentHashStore from "../../../../../src/components/Privacy/createConsentHashStore.js"; +import createConsentHashStore from "../../../../../src/components/Consent/createConsentHashStore.js"; const CONSENT_IN = { standard: "Adobe", diff --git a/test/unit/specs/components/Privacy/createConsentRequest.spec.js b/test/unit/specs/components/Consent/createConsentRequest.spec.js similarity index 97% rename from test/unit/specs/components/Privacy/createConsentRequest.spec.js rename to test/unit/specs/components/Consent/createConsentRequest.spec.js index aac40fb10..940b2166c 100644 --- a/test/unit/specs/components/Privacy/createConsentRequest.spec.js +++ b/test/unit/specs/components/Consent/createConsentRequest.spec.js @@ -11,7 +11,7 @@ governing permissions and limitations under the License. */ import describeRequest from "../../../helpers/describeRequest.js"; -import createConsentRequest from "../../../../../src/components/Privacy/createConsentRequest.js"; +import createConsentRequest from "../../../../../src/components/Consent/createConsentRequest.js"; describe("createConsentRequest", () => { describeRequest(createConsentRequest); diff --git a/test/unit/specs/components/Privacy/createConsentRequestPayload.spec.js b/test/unit/specs/components/Consent/createConsentRequestPayload.spec.js similarity index 97% rename from test/unit/specs/components/Privacy/createConsentRequestPayload.spec.js rename to test/unit/specs/components/Consent/createConsentRequestPayload.spec.js index 02c04660d..d794e09bd 100644 --- a/test/unit/specs/components/Privacy/createConsentRequestPayload.spec.js +++ b/test/unit/specs/components/Consent/createConsentRequestPayload.spec.js @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -import createConsentRequestPayload from "../../../../../src/components/Privacy/createConsentRequestPayload.js"; +import createConsentRequestPayload from "../../../../../src/components/Consent/createConsentRequestPayload.js"; import describeRequestPayload from "../../../helpers/describeRequestPayload.js"; describe("createConsentRequestPayload", () => { diff --git a/test/unit/specs/components/Privacy/createStoredConsent.spec.js b/test/unit/specs/components/Consent/createStoredConsent.spec.js similarity index 92% rename from test/unit/specs/components/Privacy/createStoredConsent.spec.js rename to test/unit/specs/components/Consent/createStoredConsent.spec.js index ecc821ce9..508acd50b 100644 --- a/test/unit/specs/components/Privacy/createStoredConsent.spec.js +++ b/test/unit/specs/components/Consent/createStoredConsent.spec.js @@ -9,9 +9,9 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createStoredConsent from "../../../../../src/components/Privacy/createStoredConsent.js"; +import createStoredConsent from "../../../../../src/components/Consent/createStoredConsent.js"; -describe("Privacy:createStoredConsent", () => { +describe("Consent:createStoredConsent", () => { let parseConsentCookie; const orgId = "myorgid@mycompany"; let cookieJar; diff --git a/test/unit/specs/components/Privacy/injectSendSetConsentRequest.spec.js b/test/unit/specs/components/Consent/injectSendSetConsentRequest.spec.js similarity index 97% rename from test/unit/specs/components/Privacy/injectSendSetConsentRequest.spec.js rename to test/unit/specs/components/Consent/injectSendSetConsentRequest.spec.js index 1ffcca8e9..4cbd86bd5 100644 --- a/test/unit/specs/components/Privacy/injectSendSetConsentRequest.spec.js +++ b/test/unit/specs/components/Consent/injectSendSetConsentRequest.spec.js @@ -9,9 +9,9 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import injectSendSetConsentRequest from "../../../../../src/components/Privacy/injectSendSetConsentRequest.js"; +import injectSendSetConsentRequest from "../../../../../src/components/Consent/injectSendSetConsentRequest.js"; -describe("Privacy:injectSendSetConsentRequest", () => { +describe("Consent:injectSendSetConsentRequest", () => { let sendEdgeNetworkRequest; let requestPayload; let request; diff --git a/test/unit/specs/components/Privacy/parseConsentCookie.spec.js b/test/unit/specs/components/Consent/parseConsentCookie.spec.js similarity index 89% rename from test/unit/specs/components/Privacy/parseConsentCookie.spec.js rename to test/unit/specs/components/Consent/parseConsentCookie.spec.js index aa8177046..c0d6def50 100644 --- a/test/unit/specs/components/Privacy/parseConsentCookie.spec.js +++ b/test/unit/specs/components/Consent/parseConsentCookie.spec.js @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -import parseConsentCookie from "../../../../../src/components/Privacy/parseConsentCookie.js"; +import parseConsentCookie from "../../../../../src/components/Consent/parseConsentCookie.js"; describe("parseConsentCookie", () => { it("returns preferences by purpose", () => { diff --git a/test/unit/specs/components/Privacy/validateSetConsentOptions.spec.js b/test/unit/specs/components/Consent/validateSetConsentOptions.spec.js similarity index 97% rename from test/unit/specs/components/Privacy/validateSetConsentOptions.spec.js rename to test/unit/specs/components/Consent/validateSetConsentOptions.spec.js index dc9be56b0..f82ffb38a 100644 --- a/test/unit/specs/components/Privacy/validateSetConsentOptions.spec.js +++ b/test/unit/specs/components/Consent/validateSetConsentOptions.spec.js @@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import validateSetConsentOptions from "../../../../../src/components/Privacy/validateSetConsentOptions.js"; +import validateSetConsentOptions from "../../../../../src/components/Consent/validateSetConsentOptions.js"; import describeValidation from "../../../helpers/describeValidation.js"; const validGeneralConsent = [ @@ -17,7 +17,7 @@ const validGeneralConsent = [ ]; describeValidation( - "Privacy:validateSetConsentOptions", + "Consent:validateSetConsentOptions", validateSetConsentOptions, [ { diff --git a/test/unit/specs/components/Identity/injectAddQueryStringIdentityToPayload.spec.js b/test/unit/specs/components/Identity/injectAddQueryStringIdentityToPayload.spec.js index c888b5191..fa4e4ccd9 100644 --- a/test/unit/specs/components/Identity/injectAddQueryStringIdentityToPayload.spec.js +++ b/test/unit/specs/components/Identity/injectAddQueryStringIdentityToPayload.spec.js @@ -13,7 +13,7 @@ governing permissions and limitations under the License. import injectAddQueryStringIdentityToPayload from "../../../../../src/components/Identity/injectAddQueryStringIdentityToPayload.js"; import createDataCollectionRequestPayload from "../../../../../src/utils/request/createDataCollectionRequestPayload.js"; import createIdentityRequestPayload from "../../../../../src/components/Identity/getIdentity/createIdentityRequestPayload.js"; -import createConsentRequestPayload from "../../../../../src/components/Privacy/createConsentRequestPayload.js"; +import createConsentRequestPayload from "../../../../../src/components/Consent/createConsentRequestPayload.js"; describe("Identity::injectAddQueryStringIdentityToPayload", () => { let locationSearch; diff --git a/test/unit/specs/components/LegacyMediaAnalytics/createGetInstance.spec.js b/test/unit/specs/components/MediaAnalyticsBridge/createGetInstance.spec.js similarity index 99% rename from test/unit/specs/components/LegacyMediaAnalytics/createGetInstance.spec.js rename to test/unit/specs/components/MediaAnalyticsBridge/createGetInstance.spec.js index f34e9f4db..26e268788 100644 --- a/test/unit/specs/components/LegacyMediaAnalytics/createGetInstance.spec.js +++ b/test/unit/specs/components/MediaAnalyticsBridge/createGetInstance.spec.js @@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const createGetInstance = require("../../../../../src/components/LegacyMediaAnalytics/createGetInstance.js"); +const createGetInstance = require("../../../../../src/components/MediaAnalyticsBridge/createGetInstance.js"); describe("createGetInstance", () => { const logger = { diff --git a/test/unit/specs/components/LegacyMediaAnalytics/createLegacyMediaComponent.spec.js b/test/unit/specs/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.spec.js similarity index 82% rename from test/unit/specs/components/LegacyMediaAnalytics/createLegacyMediaComponent.spec.js rename to test/unit/specs/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.spec.js index e1697fcbb..e60cbc281 100644 --- a/test/unit/specs/components/LegacyMediaAnalytics/createLegacyMediaComponent.spec.js +++ b/test/unit/specs/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.spec.js @@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -import createLegacyMediaComponent from "../../../../../src/components/LegacyMediaAnalytics/createLegacyMediaComponent.js"; +import createMediaAnalyticsBridgeComponent from "../../../../../src/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js"; -describe("LegacyMediaAnalytics::createLegacyMediaComponent", () => { +describe("MediaAnalyticsBridge::createMediaAnalyticsBridgeComponent", () => { const config = { streamingMedia: { channel: "testChannel", @@ -21,7 +21,7 @@ describe("LegacyMediaAnalytics::createLegacyMediaComponent", () => { }, }; let logger; - let legacyMediaComponent; + let mediaAnalyticsBridgeComponent; let trackMediaEvent; let mediaResponseHandler; let trackMediaSession; @@ -29,7 +29,7 @@ describe("LegacyMediaAnalytics::createLegacyMediaComponent", () => { let createGetInstance; const build = (configs) => { - legacyMediaComponent = createLegacyMediaComponent({ + mediaAnalyticsBridgeComponent = createMediaAnalyticsBridgeComponent({ config: configs, logger, trackMediaEvent, @@ -53,7 +53,7 @@ describe("LegacyMediaAnalytics::createLegacyMediaComponent", () => { it("should reject promise when called with invalid config", async () => { build({}); const getMediaAnalyticsTracker = - legacyMediaComponent.commands.getMediaAnalyticsTracker; + mediaAnalyticsBridgeComponent.commands.getMediaAnalyticsTracker; return expectAsync(getMediaAnalyticsTracker.run()).toBeRejected(); }); @@ -61,7 +61,7 @@ describe("LegacyMediaAnalytics::createLegacyMediaComponent", () => { it("should call createGetInstance when getInstance Media API is called", async () => { build(config); - const { getMediaAnalyticsTracker } = legacyMediaComponent.commands; + const { getMediaAnalyticsTracker } = mediaAnalyticsBridgeComponent.commands; const mediaApi = await getMediaAnalyticsTracker.run(); mediaApi.getInstance(); expect(createGetInstance).toHaveBeenCalled(); @@ -70,7 +70,7 @@ describe("LegacyMediaAnalytics::createLegacyMediaComponent", () => { it("should call onBeforeMediaEvent when onBeforeEvent is called with legacy flag", async () => { build(config); const getPlayerDetails = () => {}; - const { onBeforeEvent } = legacyMediaComponent.lifecycle; + const { onBeforeEvent } = mediaAnalyticsBridgeComponent.lifecycle; const mediaOptions = { legacy: true, playerId: "testPlayerId", @@ -90,7 +90,7 @@ describe("LegacyMediaAnalytics::createLegacyMediaComponent", () => { it("should not call onBeforeMediaEvent when onBeforeEvent is called without legacy flag", async () => { build(config); const getPlayerDetails = () => {}; - const { onBeforeEvent } = legacyMediaComponent.lifecycle; + const { onBeforeEvent } = mediaAnalyticsBridgeComponent.lifecycle; const mediaOptions = { legacy: false, playerId: "testPlayerId", diff --git a/test/unit/specs/components/LegacyMediaAnalytics/createMediaHelper.spec.js b/test/unit/specs/components/MediaAnalyticsBridge/createMediaHelper.spec.js similarity index 98% rename from test/unit/specs/components/LegacyMediaAnalytics/createMediaHelper.spec.js rename to test/unit/specs/components/MediaAnalyticsBridge/createMediaHelper.spec.js index c1425f45c..b0f2d151c 100644 --- a/test/unit/specs/components/LegacyMediaAnalytics/createMediaHelper.spec.js +++ b/test/unit/specs/components/MediaAnalyticsBridge/createMediaHelper.spec.js @@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createMediaHelper from "../../../../../src/components/LegacyMediaAnalytics/createMediaHelper.js"; +import createMediaHelper from "../../../../../src/components/MediaAnalyticsBridge/createMediaHelper.js"; describe("createMediaHelper", () => { let logger; diff --git a/test/unit/specs/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.spec.js b/test/unit/specs/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.spec.js similarity index 93% rename from test/unit/specs/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.spec.js rename to test/unit/specs/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.spec.js index bb536e872..9df10f791 100644 --- a/test/unit/specs/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.spec.js +++ b/test/unit/specs/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.spec.js @@ -9,10 +9,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import inAppMessageConsequenceAdapter from "../../../../../../src/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js"; +import inAppMessageConsequenceAdapter from "../../../../../../src/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js"; import { TEXT_HTML } from "../../../../../../src/constants/contentType.js"; -describe("DecisioningEngine:inAppMessageConsequenceAdapter", () => { +describe("RulesEngine:inAppMessageConsequenceAdapter", () => { it("handles cjmiam", () => { expect( inAppMessageConsequenceAdapter( diff --git a/test/unit/specs/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.spec.js b/test/unit/specs/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.spec.js similarity index 94% rename from test/unit/specs/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.spec.js rename to test/unit/specs/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.spec.js index 98aedb8be..de2c542d4 100644 --- a/test/unit/specs/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.spec.js +++ b/test/unit/specs/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.spec.js @@ -10,10 +10,10 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -import schemaTypeConsequenceAdapter from "../../../../../../src/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js"; +import schemaTypeConsequenceAdapter from "../../../../../../src/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js"; import { TEXT_HTML } from "../../../../../../src/constants/contentType.js"; -describe("DecisioningEngine:schemaTypeConsequenceAdapter", () => { +describe("RulesEngine:schemaTypeConsequenceAdapter", () => { it("handles schema", () => { expect( schemaTypeConsequenceAdapter( diff --git a/test/unit/specs/components/DecisioningEngine/constants.spec.js b/test/unit/specs/components/RulesEngine/constants.spec.js similarity index 100% rename from test/unit/specs/components/DecisioningEngine/constants.spec.js rename to test/unit/specs/components/RulesEngine/constants.spec.js diff --git a/test/unit/specs/components/DecisioningEngine/contextTestUtils.js b/test/unit/specs/components/RulesEngine/contextTestUtils.js similarity index 94% rename from test/unit/specs/components/DecisioningEngine/contextTestUtils.js rename to test/unit/specs/components/RulesEngine/contextTestUtils.js index 21c466b75..84d11fcc4 100644 --- a/test/unit/specs/components/DecisioningEngine/contextTestUtils.js +++ b/test/unit/specs/components/RulesEngine/contextTestUtils.js @@ -9,10 +9,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createContextProvider from "../../../../../src/components/DecisioningEngine/createContextProvider.js"; -import createOnResponseHandler from "../../../../../src/components/DecisioningEngine/createOnResponseHandler.js"; -import createEventRegistry from "../../../../../src/components/DecisioningEngine/createEventRegistry.js"; -import createDecisionProvider from "../../../../../src/components/DecisioningEngine/createDecisionProvider.js"; +import createContextProvider from "../../../../../src/components/RulesEngine/createContextProvider.js"; +import createOnResponseHandler from "../../../../../src/components/RulesEngine/createOnResponseHandler.js"; +import createEventRegistry from "../../../../../src/components/RulesEngine/createEventRegistry.js"; +import createDecisionProvider from "../../../../../src/components/RulesEngine/createDecisionProvider.js"; import { injectGetBrowser } from "../../../../../src/utils/index.js"; export const proposition = { diff --git a/test/unit/specs/components/DecisioningEngine/createApplyResponse.spec.js b/test/unit/specs/components/RulesEngine/createApplyResponse.spec.js similarity index 94% rename from test/unit/specs/components/DecisioningEngine/createApplyResponse.spec.js rename to test/unit/specs/components/RulesEngine/createApplyResponse.spec.js index 8fd639008..7c0668ece 100644 --- a/test/unit/specs/components/DecisioningEngine/createApplyResponse.spec.js +++ b/test/unit/specs/components/RulesEngine/createApplyResponse.spec.js @@ -9,9 +9,9 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createApplyResponse from "../../../../../src/components/DecisioningEngine/createApplyResponse.js"; +import createApplyResponse from "../../../../../src/components/RulesEngine/createApplyResponse.js"; -describe("DecisioningEngine:createApplyResponse", () => { +describe("RulesEngine:createApplyResponse", () => { const proposition = { id: "AT:eyJhY3Rpdml0eUlkIjoiMTQxMDY0IiwiZXhwZXJpZW5jZUlkIjoiMCJ9", scope: "__view__", diff --git a/test/unit/specs/components/DecisioningEngine/createConsequenceAdapter.spec.js b/test/unit/specs/components/RulesEngine/createConsequenceAdapter.spec.js similarity index 95% rename from test/unit/specs/components/DecisioningEngine/createConsequenceAdapter.spec.js rename to test/unit/specs/components/RulesEngine/createConsequenceAdapter.spec.js index e9cfb2b0d..d96381cea 100644 --- a/test/unit/specs/components/DecisioningEngine/createConsequenceAdapter.spec.js +++ b/test/unit/specs/components/RulesEngine/createConsequenceAdapter.spec.js @@ -9,10 +9,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createConsequenceAdapter from "../../../../../src/components/DecisioningEngine/createConsequenceAdapter.js"; +import createConsequenceAdapter from "../../../../../src/components/RulesEngine/createConsequenceAdapter.js"; import { TEXT_HTML } from "../../../../../src/constants/contentType.js"; -describe("DecisioningEngine:createConsequenceAdapter", () => { +describe("RulesEngine:createConsequenceAdapter", () => { const ADAPTED_CONSEQUENCE = { schema: "https://ns.adobe.com/personalization/message/in-app", data: { diff --git a/test/unit/specs/components/DecisioningEngine/createContextProvider.spec.js b/test/unit/specs/components/RulesEngine/createContextProvider.spec.js similarity index 95% rename from test/unit/specs/components/DecisioningEngine/createContextProvider.spec.js rename to test/unit/specs/components/RulesEngine/createContextProvider.spec.js index 7f994a6d3..a6a3ef349 100644 --- a/test/unit/specs/components/DecisioningEngine/createContextProvider.spec.js +++ b/test/unit/specs/components/RulesEngine/createContextProvider.spec.js @@ -9,10 +9,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createContextProvider from "../../../../../src/components/DecisioningEngine/createContextProvider.js"; -import createEventRegistry from "../../../../../src/components/DecisioningEngine/createEventRegistry.js"; +import createContextProvider from "../../../../../src/components/RulesEngine/createContextProvider.js"; +import createEventRegistry from "../../../../../src/components/RulesEngine/createEventRegistry.js"; -describe("DecisioningEngine:createContextProvider", () => { +describe("RulesEngine:createContextProvider", () => { let contextProvider; let eventRegistry; let storage; diff --git a/test/unit/specs/components/DecisioningEngine/createDecisionHistory.spec.js b/test/unit/specs/components/RulesEngine/createDecisionHistory.spec.js similarity index 90% rename from test/unit/specs/components/DecisioningEngine/createDecisionHistory.spec.js rename to test/unit/specs/components/RulesEngine/createDecisionHistory.spec.js index aea97d5ae..6da185a03 100644 --- a/test/unit/specs/components/DecisioningEngine/createDecisionHistory.spec.js +++ b/test/unit/specs/components/RulesEngine/createDecisionHistory.spec.js @@ -9,10 +9,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createDecisionHistory from "../../../../../src/components/DecisioningEngine/createDecisionHistory.js"; -import createEventRegistry from "../../../../../src/components/DecisioningEngine/createEventRegistry.js"; +import createDecisionHistory from "../../../../../src/components/RulesEngine/createDecisionHistory.js"; +import createEventRegistry from "../../../../../src/components/RulesEngine/createEventRegistry.js"; -describe("DecisioningEngine:decisionHistory", () => { +describe("RulesEngine:decisionHistory", () => { let storage; let history; diff --git a/test/unit/specs/components/DecisioningEngine/createDecisionProvider.spec.js b/test/unit/specs/components/RulesEngine/createDecisionProvider.spec.js similarity index 98% rename from test/unit/specs/components/DecisioningEngine/createDecisionProvider.spec.js rename to test/unit/specs/components/RulesEngine/createDecisionProvider.spec.js index 200f48c19..25c51b2ce 100644 --- a/test/unit/specs/components/DecisioningEngine/createDecisionProvider.spec.js +++ b/test/unit/specs/components/RulesEngine/createDecisionProvider.spec.js @@ -9,10 +9,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createDecisionProvider from "../../../../../src/components/DecisioningEngine/createDecisionProvider.js"; -import createEventRegistry from "../../../../../src/components/DecisioningEngine/createEventRegistry.js"; +import createDecisionProvider from "../../../../../src/components/RulesEngine/createDecisionProvider.js"; +import createEventRegistry from "../../../../../src/components/RulesEngine/createEventRegistry.js"; -describe("DecisioningEngine:createDecisionProvider", () => { +describe("RulesEngine:createDecisionProvider", () => { let decisionProvider; let storage; let eventRegistry; diff --git a/test/unit/specs/components/DecisioningEngine/createEvaluableRulesetPayload.spec.js b/test/unit/specs/components/RulesEngine/createEvaluableRulesetPayload.spec.js similarity index 97% rename from test/unit/specs/components/DecisioningEngine/createEvaluableRulesetPayload.spec.js rename to test/unit/specs/components/RulesEngine/createEvaluableRulesetPayload.spec.js index 380978114..05de49c2a 100644 --- a/test/unit/specs/components/DecisioningEngine/createEvaluableRulesetPayload.spec.js +++ b/test/unit/specs/components/RulesEngine/createEvaluableRulesetPayload.spec.js @@ -9,11 +9,11 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createEvaluableRulesetPayload from "../../../../../src/components/DecisioningEngine/createEvaluableRulesetPayload.js"; -import createEventRegistry from "../../../../../src/components/DecisioningEngine/createEventRegistry.js"; -import createDecisionHistory from "../../../../../src/components/DecisioningEngine/createDecisionHistory.js"; +import createEvaluableRulesetPayload from "../../../../../src/components/RulesEngine/createEvaluableRulesetPayload.js"; +import createEventRegistry from "../../../../../src/components/RulesEngine/createEventRegistry.js"; +import createDecisionHistory from "../../../../../src/components/RulesEngine/createDecisionHistory.js"; -describe("DecisioningEngine:createEvaluableRulesetPayload", () => { +describe("RulesEngine:createEvaluableRulesetPayload", () => { let storage; let eventRegistry; let decisionHistory; diff --git a/test/unit/specs/components/DecisioningEngine/createEvaluateRulesetsCommand.spec.js b/test/unit/specs/components/RulesEngine/createEvaluateRulesetsCommand.spec.js similarity index 94% rename from test/unit/specs/components/DecisioningEngine/createEvaluateRulesetsCommand.spec.js rename to test/unit/specs/components/RulesEngine/createEvaluateRulesetsCommand.spec.js index c19352ddf..eb0aad99b 100644 --- a/test/unit/specs/components/DecisioningEngine/createEvaluateRulesetsCommand.spec.js +++ b/test/unit/specs/components/RulesEngine/createEvaluateRulesetsCommand.spec.js @@ -9,14 +9,14 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createEvaluateRulesetsCommand from "../../../../../src/components/DecisioningEngine/createEvaluateRulesetsCommand.js"; -import createContextProvider from "../../../../../src/components/DecisioningEngine/createContextProvider.js"; -import createEventRegistry from "../../../../../src/components/DecisioningEngine/createEventRegistry.js"; -import createDecisionProvider from "../../../../../src/components/DecisioningEngine/createDecisionProvider.js"; -import createApplyResponse from "../../../../../src/components/DecisioningEngine/createApplyResponse.js"; +import createEvaluateRulesetsCommand from "../../../../../src/components/RulesEngine/createEvaluateRulesetsCommand.js"; +import createContextProvider from "../../../../../src/components/RulesEngine/createContextProvider.js"; +import createEventRegistry from "../../../../../src/components/RulesEngine/createEventRegistry.js"; +import createDecisionProvider from "../../../../../src/components/RulesEngine/createDecisionProvider.js"; +import createApplyResponse from "../../../../../src/components/RulesEngine/createApplyResponse.js"; import injectGetBrowser from "../../../../../src/utils/injectGetBrowser.js"; -describe("DecisioningEngine:evaluateRulesetsCommand", () => { +describe("RulesEngine:evaluateRulesetsCommand", () => { let onDecision; let applyResponse; let storage; diff --git a/test/unit/specs/components/DecisioningEngine/createEventRegistry.spec.js b/test/unit/specs/components/RulesEngine/createEventRegistry.spec.js similarity index 98% rename from test/unit/specs/components/DecisioningEngine/createEventRegistry.spec.js rename to test/unit/specs/components/RulesEngine/createEventRegistry.spec.js index 6795cc694..beb8a6e7a 100644 --- a/test/unit/specs/components/DecisioningEngine/createEventRegistry.spec.js +++ b/test/unit/specs/components/RulesEngine/createEventRegistry.spec.js @@ -11,9 +11,9 @@ governing permissions and limitations under the License. */ import createEventRegistry, { createEventPruner, -} from "../../../../../src/components/DecisioningEngine/createEventRegistry.js"; +} from "../../../../../src/components/RulesEngine/createEventRegistry.js"; -describe("DecisioningEngine:createEventRegistry", () => { +describe("RulesEngine:createEventRegistry", () => { let storage; let mockedTimestamp; beforeEach(() => { diff --git a/test/unit/specs/components/DecisioningEngine/createOnResponseHandler.spec.js b/test/unit/specs/components/RulesEngine/createOnResponseHandler.spec.js similarity index 97% rename from test/unit/specs/components/DecisioningEngine/createOnResponseHandler.spec.js rename to test/unit/specs/components/RulesEngine/createOnResponseHandler.spec.js index cfa21a146..ba3075834 100644 --- a/test/unit/specs/components/DecisioningEngine/createOnResponseHandler.spec.js +++ b/test/unit/specs/components/RulesEngine/createOnResponseHandler.spec.js @@ -9,12 +9,12 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createOnResponseHandler from "../../../../../src/components/DecisioningEngine/createOnResponseHandler.js"; -import createDecisionProvider from "../../../../../src/components/DecisioningEngine/createDecisionProvider.js"; -import createApplyResponse from "../../../../../src/components/DecisioningEngine/createApplyResponse.js"; -import createEventRegistry from "../../../../../src/components/DecisioningEngine/createEventRegistry.js"; +import createOnResponseHandler from "../../../../../src/components/RulesEngine/createOnResponseHandler.js"; +import createDecisionProvider from "../../../../../src/components/RulesEngine/createDecisionProvider.js"; +import createApplyResponse from "../../../../../src/components/RulesEngine/createApplyResponse.js"; +import createEventRegistry from "../../../../../src/components/RulesEngine/createEventRegistry.js"; -describe("DecisioningEngine:createOnResponseHandler", () => { +describe("RulesEngine:createOnResponseHandler", () => { let lifecycle; let storage; let eventRegistry; diff --git a/test/unit/specs/components/DecisioningEngine/createSubscribeRulesetItems.spec.js b/test/unit/specs/components/RulesEngine/createSubscribeRulesetItems.spec.js similarity index 99% rename from test/unit/specs/components/DecisioningEngine/createSubscribeRulesetItems.spec.js rename to test/unit/specs/components/RulesEngine/createSubscribeRulesetItems.spec.js index fc9678e62..b14c4cb0f 100644 --- a/test/unit/specs/components/DecisioningEngine/createSubscribeRulesetItems.spec.js +++ b/test/unit/specs/components/RulesEngine/createSubscribeRulesetItems.spec.js @@ -13,10 +13,10 @@ import { DOM_ACTION, MESSAGE_CONTENT_CARD, } from "../../../../../src/constants/schema.js"; -import createSubscribeRulesetItems from "../../../../../src/components/DecisioningEngine/createSubscribeRulesetItems.js"; +import createSubscribeRulesetItems from "../../../../../src/components/RulesEngine/createSubscribeRulesetItems.js"; import { PropositionEventType } from "../../../../../src/constants/propositionEventType.js"; -describe("DecisioningEngine:subscribeRulesetItems", () => { +describe("RulesEngine:subscribeRulesetItems", () => { let collect; let subscribeRulesetItems; diff --git a/test/unit/specs/components/DecisioningEngine/decisioningContext.browser.spec.js b/test/unit/specs/components/RulesEngine/decisioningContext.browser.spec.js similarity index 96% rename from test/unit/specs/components/DecisioningEngine/decisioningContext.browser.spec.js rename to test/unit/specs/components/RulesEngine/decisioningContext.browser.spec.js index b97dd8a96..b87da1c8d 100644 --- a/test/unit/specs/components/DecisioningEngine/decisioningContext.browser.spec.js +++ b/test/unit/specs/components/RulesEngine/decisioningContext.browser.spec.js @@ -15,7 +15,7 @@ import { proposition, } from "./contextTestUtils.js"; -describe("DecisioningEngine:globalContext:browser", () => { +describe("RulesEngine:globalContext:browser", () => { let applyResponse; beforeEach(() => { applyResponse = jasmine.createSpy(); diff --git a/test/unit/specs/components/DecisioningEngine/decisioningContext.page.spec.js b/test/unit/specs/components/RulesEngine/decisioningContext.page.spec.js similarity index 99% rename from test/unit/specs/components/DecisioningEngine/decisioningContext.page.spec.js rename to test/unit/specs/components/RulesEngine/decisioningContext.page.spec.js index 4e41a35c9..7bc89133d 100644 --- a/test/unit/specs/components/DecisioningEngine/decisioningContext.page.spec.js +++ b/test/unit/specs/components/RulesEngine/decisioningContext.page.spec.js @@ -15,7 +15,7 @@ import { proposition, } from "./contextTestUtils.js"; -describe("DecisioningEngine:globalContext:page", () => { +describe("RulesEngine:globalContext:page", () => { let applyResponse; beforeEach(() => { applyResponse = jasmine.createSpy(); diff --git a/test/unit/specs/components/DecisioningEngine/decisioningContext.referringPage.spec.js b/test/unit/specs/components/RulesEngine/decisioningContext.referringPage.spec.js similarity index 99% rename from test/unit/specs/components/DecisioningEngine/decisioningContext.referringPage.spec.js rename to test/unit/specs/components/RulesEngine/decisioningContext.referringPage.spec.js index 82d3d7719..da0df74df 100644 --- a/test/unit/specs/components/DecisioningEngine/decisioningContext.referringPage.spec.js +++ b/test/unit/specs/components/RulesEngine/decisioningContext.referringPage.spec.js @@ -15,7 +15,7 @@ import { proposition, } from "./contextTestUtils.js"; -describe("DecisioningEngine:globalContext:referringPage", () => { +describe("RulesEngine:globalContext:referringPage", () => { let applyResponse; beforeEach(() => { applyResponse = jasmine.createSpy(); diff --git a/test/unit/specs/components/DecisioningEngine/decisioningContext.sdkVersion.spec.js b/test/unit/specs/components/RulesEngine/decisioningContext.sdkVersion.spec.js similarity index 96% rename from test/unit/specs/components/DecisioningEngine/decisioningContext.sdkVersion.spec.js rename to test/unit/specs/components/RulesEngine/decisioningContext.sdkVersion.spec.js index 28d4da26a..b4c8ddc26 100644 --- a/test/unit/specs/components/DecisioningEngine/decisioningContext.sdkVersion.spec.js +++ b/test/unit/specs/components/RulesEngine/decisioningContext.sdkVersion.spec.js @@ -16,7 +16,7 @@ import { proposition, } from "./contextTestUtils.js"; -describe("DecisioningEngine:globalContext:sdkVersion", () => { +describe("RulesEngine:globalContext:sdkVersion", () => { let applyResponse; const currentVersion = libraryVersion; beforeEach(() => { diff --git a/test/unit/specs/components/DecisioningEngine/decisioningContext.timestamp.spec.js b/test/unit/specs/components/RulesEngine/decisioningContext.timestamp.spec.js similarity index 99% rename from test/unit/specs/components/DecisioningEngine/decisioningContext.timestamp.spec.js rename to test/unit/specs/components/RulesEngine/decisioningContext.timestamp.spec.js index ba450f73f..5fa4a6017 100644 --- a/test/unit/specs/components/DecisioningEngine/decisioningContext.timestamp.spec.js +++ b/test/unit/specs/components/RulesEngine/decisioningContext.timestamp.spec.js @@ -16,7 +16,7 @@ import { } from "./contextTestUtils.js"; let mockedTimestamp; -describe("DecisioningEngine:globalContext:timeContext", () => { +describe("RulesEngine:globalContext:timeContext", () => { let applyResponse; beforeEach(() => { applyResponse = jasmine.createSpy(); diff --git a/test/unit/specs/components/DecisioningEngine/decisioningContext.window.spec.js b/test/unit/specs/components/RulesEngine/decisioningContext.window.spec.js similarity index 98% rename from test/unit/specs/components/DecisioningEngine/decisioningContext.window.spec.js rename to test/unit/specs/components/RulesEngine/decisioningContext.window.spec.js index 914c72d7a..9c032e78a 100644 --- a/test/unit/specs/components/DecisioningEngine/decisioningContext.window.spec.js +++ b/test/unit/specs/components/RulesEngine/decisioningContext.window.spec.js @@ -15,7 +15,7 @@ import { proposition, } from "./contextTestUtils.js"; -describe("DecisioningEngine:globalContext:window", () => { +describe("RulesEngine:globalContext:window", () => { let applyResponse; beforeEach(() => { applyResponse = jasmine.createSpy(); diff --git a/test/unit/specs/components/DecisioningEngine/index.spec.js b/test/unit/specs/components/RulesEngine/index.spec.js similarity index 85% rename from test/unit/specs/components/DecisioningEngine/index.spec.js rename to test/unit/specs/components/RulesEngine/index.spec.js index 038aee9c2..59945682d 100644 --- a/test/unit/specs/components/DecisioningEngine/index.spec.js +++ b/test/unit/specs/components/RulesEngine/index.spec.js @@ -9,14 +9,14 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import createDecisioningEngine from "../../../../../src/components/DecisioningEngine/index.js"; +import createRulesEngine from "../../../../../src/components/RulesEngine/index.js"; import { defer } from "../../../../../src/utils/index.js"; import { mockRulesetResponseWithCondition, proposition, } from "./contextTestUtils.js"; -describe("createDecisioningEngine:commands:evaluateRulesets", () => { +describe("createRulesEngine:commands:evaluateRulesets", () => { let mergeData; let mockEvent; let onResponseHandler; @@ -56,18 +56,18 @@ describe("createDecisioningEngine:commands:evaluateRulesets", () => { orgId: "exampleOrgId", personalizationStorageEnabled, }; - const decisioningEngine = createDecisioningEngine({ + const rulesEngine = createRulesEngine({ config, createNamespacedStorage, consent, getBrowser, }); - decisioningEngine.lifecycle.onComponentsRegistered(() => {}); - return decisioningEngine; + rulesEngine.lifecycle.onComponentsRegistered(() => {}); + return rulesEngine; }; it("should run the evaluateRulesets command and satisfy the rule based on global context", async () => { - const decisioningEngine = setUpDecisionEngine({ + const rulesEngine = setUpDecisionEngine({ personalizationStorageEnabled: true, }); await awaitConsentDeferred.resolve(); @@ -83,20 +83,20 @@ describe("createDecisioningEngine:commands:evaluateRulesets", () => { }), }); }; - decisioningEngine.lifecycle.onBeforeEvent({ + rulesEngine.lifecycle.onBeforeEvent({ event: mockEvent, renderDecisions: true, personalization: { decisionContext: {} }, onResponse: onResponseHandler, }); - const result = decisioningEngine.commands.evaluateRulesets.run({}); + const result = rulesEngine.commands.evaluateRulesets.run({}); expect(result).toEqual({ propositions: [proposition], }); }); it("should run the evaluateRulesets command and does not satisfy rule due to unmatched global context", async () => { - const decisioningEngine = setUpDecisionEngine({ + const rulesEngine = setUpDecisionEngine({ personalizationStorageEnabled: true, }); await awaitConsentDeferred.resolve(); @@ -112,20 +112,20 @@ describe("createDecisioningEngine:commands:evaluateRulesets", () => { }), }); }; - decisioningEngine.lifecycle.onBeforeEvent({ + rulesEngine.lifecycle.onBeforeEvent({ event: mockEvent, renderDecisions: true, personalization: { decisionContext: {} }, onResponse: onResponseHandler, }); - const result = decisioningEngine.commands.evaluateRulesets.run({}); + const result = rulesEngine.commands.evaluateRulesets.run({}); expect(result).toEqual({ propositions: [], }); }); it("should run the evaluateRulesets command and return propositions with renderDecisions true", async () => { - const decisioningEngine = setUpDecisionEngine({ + const rulesEngine = setUpDecisionEngine({ personalizationStorageEnabled: true, }); await awaitConsentDeferred.resolve(); @@ -141,20 +141,20 @@ describe("createDecisioningEngine:commands:evaluateRulesets", () => { }), }); }; - decisioningEngine.lifecycle.onBeforeEvent({ + rulesEngine.lifecycle.onBeforeEvent({ event: mockEvent, renderDecisions: true, personalization: { decisionContext: {} }, onResponse: onResponseHandler, }); - const result = decisioningEngine.commands.evaluateRulesets.run({}); + const result = rulesEngine.commands.evaluateRulesets.run({}); expect(result).toEqual({ propositions: [proposition], }); }); it("should run the evaluateRulesets command returns propositions with renderDecisions false", async () => { - const decisioningEngine = setUpDecisionEngine({ + const rulesEngine = setUpDecisionEngine({ personalizationStorageEnabled: true, }); await awaitConsentDeferred.resolve(); @@ -170,13 +170,13 @@ describe("createDecisioningEngine:commands:evaluateRulesets", () => { }), }); }; - decisioningEngine.lifecycle.onBeforeEvent({ + rulesEngine.lifecycle.onBeforeEvent({ event: mockEvent, renderDecisions: false, personalization: { decisionContext: {} }, onResponse: onResponseHandler, }); - const result = decisioningEngine.commands.evaluateRulesets.run({}); + const result = rulesEngine.commands.evaluateRulesets.run({}); expect(result).toEqual({ propositions: [proposition], }); diff --git a/test/unit/specs/components/DecisioningEngine/utils.spec.js b/test/unit/specs/components/RulesEngine/utils.spec.js similarity index 98% rename from test/unit/specs/components/DecisioningEngine/utils.spec.js rename to test/unit/specs/components/RulesEngine/utils.spec.js index a14b76111..01ce8b8d5 100644 --- a/test/unit/specs/components/DecisioningEngine/utils.spec.js +++ b/test/unit/specs/components/RulesEngine/utils.spec.js @@ -15,9 +15,9 @@ import { createSaveStorage, getActivityId, getExpirationDate, -} from "../../../../../src/components/DecisioningEngine/utils.js"; +} from "../../../../../src/components/RulesEngine/utils.js"; -describe("DecisioningEngine:utils", () => { +describe("RulesEngine:utils", () => { let storage; let inMemoryStorage; diff --git a/test/unit/specs/core/consent/createConsentStateMachine.spec.js b/test/unit/specs/core/consent/createConsentStateMachine.spec.js index a4de2f745..3b7b02b04 100644 --- a/test/unit/specs/core/consent/createConsentStateMachine.spec.js +++ b/test/unit/specs/core/consent/createConsentStateMachine.spec.js @@ -96,7 +96,7 @@ describe("createConsentStateMachine", () => { }); }); - // This is what would happen when the privacy component is not included + // This is what would happen when the consent component is not included it("resolves promises when it is not initialized", () => { const onFulfilled = jasmine.createSpy("onFulfilled"); subject.awaitConsent().then(onFulfilled);