@adv-ui/boros-tcf
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -13,3 +13,3 @@ const {version, name} = require("./package.json") | ||
"__PACKAGE_NAME__": name, | ||
"__PACKAGE_MINOR_VERSION__": version.split('.')[1] | ||
"__PACKAGE_MINOR_VERSION__": parseInt(version.split('.')[1]) | ||
} | ||
@@ -16,0 +16,0 @@ ] |
@@ -79,6 +79,2 @@ "use strict"; | ||
var _tcModel = tcModel, | ||
publisher = _tcModel.publisher, | ||
purpose = _tcModel.purpose, | ||
specialFeatures = _tcModel.specialFeatures; | ||
var vendor; | ||
@@ -97,11 +93,9 @@ | ||
return new _TCData.TCData({ | ||
var tcData = new _TCData.TCData({ | ||
tcString: encodedConsent, | ||
tcModel: tcModel, | ||
cmpStatus: cmpStatus, | ||
eventStatus: eventStatus, | ||
publisher: publisher, | ||
purpose: purpose, | ||
vendor: vendor, | ||
specialFeatureOptins: specialFeatures | ||
eventStatus: eventStatus | ||
}).value(); | ||
return tcData; | ||
}; | ||
@@ -108,0 +102,0 @@ |
@@ -21,3 +21,3 @@ "use strict"; | ||
exports.PACKAGE_NAME = PACKAGE_NAME; | ||
var BOROS_TCF_VERSION = "4"; | ||
var BOROS_TCF_VERSION = 4; | ||
/** | ||
@@ -24,0 +24,0 @@ * Boros TCF IAB's registered ID |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _constants = require("../../core/constants"); | ||
var Consent = /*#__PURE__*/function () { | ||
@@ -35,3 +37,17 @@ /** | ||
function Consent(_ref) { | ||
var vendor = _ref.vendor, | ||
var _ref$cmpId = _ref.cmpId, | ||
cmpId = _ref$cmpId === void 0 ? _constants.BOROS_TCF_ID : _ref$cmpId, | ||
_ref$cmpVersion = _ref.cmpVersion, | ||
cmpVersion = _ref$cmpVersion === void 0 ? _constants.BOROS_TCF_VERSION : _ref$cmpVersion, | ||
_ref$policyVersion = _ref.policyVersion, | ||
policyVersion = _ref$policyVersion === void 0 ? _constants.TCF_API_VERSION : _ref$policyVersion, | ||
_ref$publisherCC = _ref.publisherCC, | ||
publisherCC = _ref$publisherCC === void 0 ? _constants.PUBLISHER_CC : _ref$publisherCC, | ||
_ref$isServiceSpecifi = _ref.isServiceSpecific, | ||
isServiceSpecific = _ref$isServiceSpecifi === void 0 ? true : _ref$isServiceSpecifi, | ||
_ref$useNonStandardSt = _ref.useNonStandardStacks, | ||
useNonStandardStacks = _ref$useNonStandardSt === void 0 ? false : _ref$useNonStandardSt, | ||
_ref$purposeOneTreatm = _ref.purposeOneTreatment, | ||
purposeOneTreatment = _ref$purposeOneTreatm === void 0 ? false : _ref$purposeOneTreatm, | ||
vendor = _ref.vendor, | ||
purpose = _ref.purpose, | ||
@@ -50,2 +66,9 @@ specialFeatures = _ref.specialFeatures, | ||
isNew = _ref$isNew === void 0 ? false : _ref$isNew; | ||
this._cmpId = cmpId; | ||
this._cmpVersion = cmpVersion; | ||
this._policyVersion = policyVersion; | ||
this._publisherCC = publisherCC; | ||
this._isServiceSpecific = isServiceSpecific; | ||
this._useNonStandardStacks = useNonStandardStacks; | ||
this._purposeOneTreatment = purposeOneTreatment; | ||
this._vendor = vendor; | ||
@@ -63,2 +86,9 @@ this._purpose = purpose; | ||
return { | ||
cmpId: this._cmpId, | ||
cmpVersion: this._cmpVersion, | ||
policyVersion: this._policyVersion, | ||
publisherCC: this._publisherCC, | ||
isServiceSpecific: this._isServiceSpecific, | ||
useNonStandardStacks: this._useNonStandardStacks, | ||
purposeOneTreatment: this._purposeOneTreatment, | ||
vendor: (0, _extends2["default"])({}, this._vendor), | ||
@@ -65,0 +95,0 @@ purpose: (0, _extends2["default"])({}, this._purpose), |
@@ -89,15 +89,4 @@ "use strict"; | ||
_proto.createConsent = function createConsent(_ref2) { | ||
var vendor = _ref2.vendor, | ||
purpose = _ref2.purpose, | ||
specialFeatures = _ref2.specialFeatures, | ||
valid = _ref2.valid, | ||
isNew = _ref2.isNew; | ||
return new _Consent.Consent({ | ||
vendor: vendor, | ||
purpose: purpose, | ||
specialFeatures: specialFeatures, | ||
valid: valid, | ||
isNew: isNew | ||
}); | ||
_proto.createConsent = function createConsent(initialData) { | ||
return new _Consent.Consent(initialData); | ||
}; | ||
@@ -104,0 +93,0 @@ |
@@ -44,4 +44,2 @@ "use strict"; | ||
this._consentEncoderService = void 0; | ||
this._vendorListHelper = void 0; | ||
this._consentRepository = consentRepository; | ||
@@ -48,0 +46,0 @@ this._consentFactory = consentFactory; |
@@ -8,4 +8,2 @@ "use strict"; | ||
var _constants = require("../../core/constants"); | ||
var TCData = /*#__PURE__*/function () { | ||
@@ -18,17 +16,11 @@ /** | ||
var tcString = _ref.tcString, | ||
tcModel = _ref.tcModel, | ||
cmpStatus = _ref.cmpStatus, | ||
eventStatus = _ref.eventStatus, | ||
listenerId = _ref.listenerId, | ||
publisher = _ref.publisher, | ||
purpose = _ref.purpose, | ||
vendor = _ref.vendor, | ||
specialFeatureOptins = _ref.specialFeatureOptins; | ||
listenerId = _ref.listenerId; | ||
this._tcString = tcString; | ||
this._tcModel = tcModel; | ||
this._cmpStatus = cmpStatus; | ||
this._eventStatus = eventStatus; | ||
this._listenerId = listenerId; | ||
this._publisher = publisher; | ||
this._purpose = purpose; | ||
this._vendor = vendor; | ||
this._specialFeatureOptins = specialFeatureOptins; | ||
} | ||
@@ -41,5 +33,5 @@ | ||
tcString: this._tcString, | ||
tcfPolicyVersion: _constants.TCF_API_VERSION, | ||
cmpId: _constants.BOROS_TCF_ID, | ||
cmpVersion: _constants.BOROS_TCF_VERSION, | ||
tcfPolicyVersion: this._tcModel.policyVersion, | ||
cmpId: this._tcModel.cmpId, | ||
cmpVersion: this._tcModel.cmpVersion, | ||
@@ -76,3 +68,3 @@ /** | ||
*/ | ||
isServiceSpecific: false, | ||
isServiceSpecific: this._tcModel.isServiceSpecific, | ||
@@ -83,3 +75,3 @@ /** | ||
*/ | ||
useNonStandardStacks: false, | ||
useNonStandardStacks: this._tcModel.useNonStandardStacks, | ||
@@ -91,3 +83,3 @@ /** | ||
*/ | ||
publisherCC: _constants.PUBLISHER_CC, | ||
publisherCC: this._tcModel.publisherCC, | ||
@@ -104,26 +96,7 @@ /** | ||
*/ | ||
// purposeOneTreatment: false, | ||
/** | ||
* Only exists on global-scope TC | ||
*/ | ||
outOfBand: { | ||
/** | ||
* true - Vendor is allowed to use an Out-of-Band Legal Basis | ||
* false | undefined - Vendor is NOT allowed to use an Out-of-Band Legal Basis | ||
*/ | ||
// '[vendor id]': Boolean | ||
allowedVendors: {}, | ||
/** | ||
* true - Vendor has been disclosed to the user | ||
* false | undefined - Vendor has been disclosed to the user | ||
*/ | ||
// '[vendor id]': Boolean | ||
disclosedVendors: {} | ||
}, | ||
purpose: this._purpose, | ||
vendor: this._vendor, | ||
specialFeatureOptins: this._specialFeatureOptins, | ||
publisher: this._publisher | ||
purposeOneTreatment: this._tcModel.purposeOneTreatment, | ||
purpose: this._tcModel.purpose, | ||
vendor: this._tcModel.vendor, | ||
specialFeatureOptins: this._tcModel.specialFeatures, | ||
publisher: this._tcModel.publisher | ||
}; | ||
@@ -130,0 +103,0 @@ }; |
@@ -50,4 +50,10 @@ "use strict"; | ||
var model = { | ||
cmpId: tcModel.cmpId, | ||
cmpVersion: tcModel.cmpVersion, | ||
isServiceSpecific: tcModel.isServiceSpecific, | ||
useNonStandardStacks: tcModel.useNonStandardStacks, | ||
publisherCC: tcModel.publisherCountryCode, | ||
vendorListVersion: tcModel.vendorListVersion, | ||
policyVersion: tcModel.policyVersion, | ||
purposeOneTreatment: tcModel.purposeOneTreatment, | ||
vendor: { | ||
@@ -54,0 +60,0 @@ consents: mapToModel(tcModel.vendorConsents), |
@@ -63,4 +63,7 @@ "use strict"; | ||
tcModel.gdprApplies = true; | ||
tcModel.isServiceSpecific = true; | ||
tcModel.cmpId = _constants.BOROS_TCF_ID; | ||
tcModel.cmpVersion = _constants.BOROS_TCF_VERSION; | ||
tcModel.publisherCountryCode = _constants.PUBLISHER_CC; | ||
@@ -101,3 +104,3 @@ setIabVector = function setIabVector(_ref3) { | ||
case 12: | ||
case 15: | ||
case "end": | ||
@@ -104,0 +107,0 @@ return _context.stop(); |
{ | ||
"name": "@adv-ui/boros-tcf", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Adevinta GDPR - Transparency and Consent Framework - API", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107559
2561