@outreach/extensibility-sdk
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -24,2 +24,9 @@ var __extends = (this && this.__extends) || (function () { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
/** | ||
* A collection of external plugin providers given opportunity has | ||
* | ||
* @type {ExternalInfoContext[]} | ||
* @memberof ProspectContext | ||
* @deprecated use externalProviderId and externalProviderName instead | ||
*/ | ||
_this.externalInfo = []; | ||
@@ -26,0 +33,0 @@ /** |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toAccountParams = exports.initAccountContext = void 0; | ||
var AccountContextKeys_1 = require("../keys/AccountContextKeys"); | ||
var ExternalInfoUtils_1 = require("./ExternalInfoUtils"); | ||
var initAccountContext = function (context, param) { | ||
@@ -483,2 +484,5 @@ switch (param.key) { | ||
break; | ||
case AccountContextKeys_1.AccountContextKeys.EXTERNAL: | ||
context.externalInfo = param.value ? ExternalInfoUtils_1.ExternalInfoUtils.unpack(param.value) : []; | ||
break; | ||
default: | ||
@@ -1446,2 +1450,8 @@ return false; | ||
} | ||
if (context.externalInfo) { | ||
params.push({ | ||
key: AccountContextKeys_1.AccountContextKeys.EXTERNAL, | ||
value: ExternalInfoUtils_1.ExternalInfoUtils.pack(context.externalInfo), | ||
}); | ||
} | ||
return params; | ||
@@ -1448,0 +1458,0 @@ }; |
@@ -24,2 +24,9 @@ var __extends = (this && this.__extends) || (function () { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
/** | ||
* A collection of external plugin providers given opportunity has | ||
* | ||
* @type {ExternalInfoContext[]} | ||
* @memberof ProspectContext | ||
* @deprecated use externalProviderId and externalProviderName instead | ||
*/ | ||
_this.externalInfo = []; | ||
@@ -26,0 +33,0 @@ /** |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toOpportunityParams = exports.initOpportunityContext = void 0; | ||
var OpportunityContextKeys_1 = require("../keys/OpportunityContextKeys"); | ||
var ExternalInfoUtils_1 = require("./ExternalInfoUtils"); | ||
var initOpportunityContext = function (context, param) { | ||
@@ -493,2 +494,5 @@ switch (param.key) { | ||
break; | ||
case OpportunityContextKeys_1.OpportunityContextKeys.EXTERNAL: | ||
context.externalInfo = param.value ? ExternalInfoUtils_1.ExternalInfoUtils.unpack(param.value) : []; | ||
break; | ||
default: | ||
@@ -1468,2 +1472,8 @@ return false; | ||
} | ||
if (context.externalInfo) { | ||
params.push({ | ||
key: OpportunityContextKeys_1.OpportunityContextKeys.EXTERNAL, | ||
value: ExternalInfoUtils_1.ExternalInfoUtils.pack(context.externalInfo), | ||
}); | ||
} | ||
return params; | ||
@@ -1470,0 +1480,0 @@ }; |
@@ -24,2 +24,9 @@ var __extends = (this && this.__extends) || (function () { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
/** | ||
* A collection of external plugin providers given prospect has | ||
* | ||
* @type {ExternalInfoContext[]} | ||
* @memberof ProspectContext | ||
* @deprecated use externalProviderId and externalProviderName instead | ||
*/ | ||
_this.externalInfo = []; | ||
@@ -26,0 +33,0 @@ /** |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toProspectParams = exports.initProspectContext = void 0; | ||
var ProspectContextKeys_1 = require("../keys/ProspectContextKeys"); | ||
var ExternalInfoUtils_1 = require("./ExternalInfoUtils"); | ||
var initProspectContext = function (context, param) { | ||
@@ -513,2 +514,5 @@ var _a, _b; | ||
break; | ||
case ProspectContextKeys_1.ProspectContextKeys.EXTERNAL: | ||
context.externalInfo = param.value ? ExternalInfoUtils_1.ExternalInfoUtils.unpack(param.value) : []; | ||
break; | ||
default: | ||
@@ -1536,2 +1540,8 @@ return false; | ||
} | ||
if (context.externalInfo) { | ||
params.push({ | ||
key: ProspectContextKeys_1.ProspectContextKeys.EXTERNAL, | ||
value: ExternalInfoUtils_1.ExternalInfoUtils.pack(context.externalInfo), | ||
}); | ||
} | ||
return params; | ||
@@ -1538,0 +1548,0 @@ }; |
{ | ||
"name": "@outreach/extensibility-sdk", | ||
"license": "MIT", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1706037
18110