@lingk/sync 0.0.59 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/css/main.css +9 -1
- package/build/lightning.js +1 -1
- package/build/lightning.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/main.js +262 -292
- package/build/main.js.map +1 -1
- package/build/reducer.js +15 -2
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -4656,8 +4656,8 @@ module.exports =
|
|
|
4656
4656
|
} // end if (!formValues['resourceGroups'])
|
|
4657
4657
|
|
|
4658
4658
|
|
|
4659
|
-
if (wizard.savedConfiguration && wizard.savedConfiguration['
|
|
4660
|
-
change('
|
|
4659
|
+
if (wizard.savedConfiguration && wizard.savedConfiguration['scenario'] && !formValues['scenario']) {
|
|
4660
|
+
change('scenario', wizard.savedConfiguration['scenario']);
|
|
4661
4661
|
}
|
|
4662
4662
|
|
|
4663
4663
|
var modes = ['source', 'destination'];
|
|
@@ -4690,7 +4690,7 @@ module.exports =
|
|
|
4690
4690
|
}
|
|
4691
4691
|
}
|
|
4692
4692
|
|
|
4693
|
-
actions.setWizardDataLoaded(true)
|
|
4693
|
+
//actions.setWizardDataLoaded(true)
|
|
4694
4694
|
}
|
|
4695
4695
|
|
|
4696
4696
|
exports.default = loadData;
|
|
@@ -5287,6 +5287,8 @@ module.exports =
|
|
|
5287
5287
|
var START_PREVIEW = exports.START_PREVIEW = 'START_PREVIEW';
|
|
5288
5288
|
var FINISH_PREVIEW = exports.FINISH_PREVIEW = 'FINISH_PREVIEW';
|
|
5289
5289
|
var SET_WIZARD_METADATA = exports.SET_WIZARD_METADATA = 'SET_WIZARD_METADATA';
|
|
5290
|
+
var START_GET_SCENARIO = exports.START_GET_SCENARIO = 'START_GET_SCENARIO';
|
|
5291
|
+
var FINISH_GET_SCENARIO = exports.FINISH_GET_SCENARIO = 'FINISH_GET_SCENARIO';
|
|
5290
5292
|
|
|
5291
5293
|
/***/ },
|
|
5292
5294
|
/* 12 */
|
|
@@ -5408,6 +5410,7 @@ module.exports =
|
|
|
5408
5410
|
_this.showOverflow = _this.showOverflow.bind(_this);
|
|
5409
5411
|
_this.go = _this.go.bind(_this);
|
|
5410
5412
|
_this.disableMultiple = _this.disableMultiple.bind(_this);
|
|
5413
|
+
_this.addDefaultEntity = _this.addDefaultEntity.bind(_this);
|
|
5411
5414
|
return _this;
|
|
5412
5415
|
}
|
|
5413
5416
|
|
|
@@ -5506,6 +5509,18 @@ module.exports =
|
|
|
5506
5509
|
sel[i] = sel[i] && sel[i].name === v.name ? { name: '' } : v;
|
|
5507
5510
|
this.setState({ selectedEntities: sel });
|
|
5508
5511
|
}
|
|
5512
|
+
}, {
|
|
5513
|
+
key: 'addDefaultEntity',
|
|
5514
|
+
value: function addDefaultEntity(groupIndex, v, rscIndex, section) {
|
|
5515
|
+
var _this3 = this;
|
|
5516
|
+
|
|
5517
|
+
this.props.addDefaultEntity(groupIndex, v, rscIndex, section);
|
|
5518
|
+
setTimeout(function () {
|
|
5519
|
+
var sel = [].concat(_toConsumableArray(_this3.state.selectedEntities));
|
|
5520
|
+
sel[_this3.state.resourceGroupIndex] = { name: v };
|
|
5521
|
+
_this3.setState({ selectedEntities: sel });
|
|
5522
|
+
}, 40);
|
|
5523
|
+
}
|
|
5509
5524
|
}, {
|
|
5510
5525
|
key: 'unPick',
|
|
5511
5526
|
value: function unPick() {
|
|
@@ -5548,13 +5563,12 @@ module.exports =
|
|
|
5548
5563
|
}, {
|
|
5549
5564
|
key: 'render',
|
|
5550
5565
|
value: function render() {
|
|
5551
|
-
var
|
|
5566
|
+
var _this4 = this;
|
|
5552
5567
|
|
|
5553
5568
|
var _props = this.props,
|
|
5554
5569
|
resourceGroups = _props.resourceGroups,
|
|
5555
5570
|
style = _props.style,
|
|
5556
5571
|
isBundleStep = _props.isBundleStep,
|
|
5557
|
-
addDefaultEntity = _props.addDefaultEntity,
|
|
5558
5572
|
destinationSchema = _props.destinationSchema,
|
|
5559
5573
|
inputs = _props.inputs,
|
|
5560
5574
|
step = _props.step;
|
|
@@ -5574,7 +5588,7 @@ module.exports =
|
|
|
5574
5588
|
toggle: paneToggle,
|
|
5575
5589
|
pickEntity: this.pickEntity,
|
|
5576
5590
|
changeGroupOrder: this.changeGroupOrderFromBundleTable,
|
|
5577
|
-
addDefaultEntity: addDefaultEntity,
|
|
5591
|
+
addDefaultEntity: this.addDefaultEntity,
|
|
5578
5592
|
overflowHidden: this.state.overflowHidden,
|
|
5579
5593
|
showOverflow: this.showOverflow,
|
|
5580
5594
|
removeResourceGroup: this.removeResourceGroup,
|
|
@@ -5614,7 +5628,7 @@ module.exports =
|
|
|
5614
5628
|
Button,
|
|
5615
5629
|
{ type: this.state.multiple ? 'brand' : 'neutral', style: smallButtonStyle,
|
|
5616
5630
|
onClick: function onClick() {
|
|
5617
|
-
return
|
|
5631
|
+
return _this4.setState({ multiple: !_this4.state.multiple });
|
|
5618
5632
|
} },
|
|
5619
5633
|
'Multiple'
|
|
5620
5634
|
),
|
|
@@ -5684,7 +5698,7 @@ module.exports =
|
|
|
5684
5698
|
{ className: 'schema-group-dots' },
|
|
5685
5699
|
resourceGroups.map(function (g, i) {
|
|
5686
5700
|
return _react2.default.createElement('div', { className: 'schema-group-dot', key: i, style: resourceGroupIndex !== i ? { background: "#CFCFCF" } : {}, onClick: function onClick() {
|
|
5687
|
-
return
|
|
5701
|
+
return _this4.clickDot(i);
|
|
5688
5702
|
} });
|
|
5689
5703
|
})
|
|
5690
5704
|
)
|
|
@@ -16888,6 +16902,7 @@ module.exports =
|
|
|
16888
16902
|
value: true
|
|
16889
16903
|
});
|
|
16890
16904
|
exports.callCheckConnection = callCheckConnection;
|
|
16905
|
+
exports.callGetScenario = callGetScenario;
|
|
16891
16906
|
exports.callPreviewIntegration = callPreviewIntegration;
|
|
16892
16907
|
exports.callPostBundles = callPostBundles;
|
|
16893
16908
|
exports.callPostMapping = callPostMapping;
|
|
@@ -16951,6 +16966,23 @@ module.exports =
|
|
|
16951
16966
|
};
|
|
16952
16967
|
}
|
|
16953
16968
|
|
|
16969
|
+
function callGetScenario(magicNumber, bundleGuid, mappingGuid) {
|
|
16970
|
+
return function (dispatch, getState, api) {
|
|
16971
|
+
dispatch({
|
|
16972
|
+
type: types.START_GET_SCENARIO
|
|
16973
|
+
});
|
|
16974
|
+
var tenantId = magicNumber;
|
|
16975
|
+
var accountId = magicNumber;
|
|
16976
|
+
return Promise.all([dispatch(callGetBundles(tenantId, accountId, bundleGuid)), dispatch(callGetMapping(tenantId, accountId, mappingGuid))]).then(function (res) {
|
|
16977
|
+
dispatch({
|
|
16978
|
+
type: types.FINISH_GET_SCENARIO
|
|
16979
|
+
});
|
|
16980
|
+
}).catch(function (err) {
|
|
16981
|
+
console.log(err);
|
|
16982
|
+
});
|
|
16983
|
+
};
|
|
16984
|
+
}
|
|
16985
|
+
|
|
16954
16986
|
function callPreviewIntegration(tenantId, appId, url) {
|
|
16955
16987
|
return function (dispatch, getState, api) {
|
|
16956
16988
|
dispatch({
|
|
@@ -18321,12 +18353,7 @@ module.exports =
|
|
|
18321
18353
|
var providerTypes = exports.providerTypes = {
|
|
18322
18354
|
Salesforce: {
|
|
18323
18355
|
credentials: [{ name: 'Username' }, { name: 'Password' }, { name: 'API Key' }],
|
|
18324
|
-
metadataEndpoint: 'salesforceschema'
|
|
18325
|
-
customStep: {
|
|
18326
|
-
type: 'default',
|
|
18327
|
-
title: 'Choose Default Dataset',
|
|
18328
|
-
options: ['standard', 'heda']
|
|
18329
|
-
}
|
|
18356
|
+
metadataEndpoint: 'salesforceschema'
|
|
18330
18357
|
},
|
|
18331
18358
|
API: {
|
|
18332
18359
|
credentials: [{ name: 'Consumer Key' }, { name: 'Secret' }]
|
|
@@ -18634,238 +18661,6 @@ module.exports =
|
|
|
18634
18661
|
|
|
18635
18662
|
'use strict';
|
|
18636
18663
|
|
|
18637
|
-
Object.defineProperty(exports, "__esModule", {
|
|
18638
|
-
value: true
|
|
18639
|
-
});
|
|
18640
|
-
|
|
18641
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
18642
|
-
|
|
18643
|
-
var _react = __webpack_require__(2);
|
|
18644
|
-
|
|
18645
|
-
var _react2 = _interopRequireDefault(_react);
|
|
18646
|
-
|
|
18647
|
-
var _reduxForm = __webpack_require__(4);
|
|
18648
|
-
|
|
18649
|
-
var _navButtons = __webpack_require__(5);
|
|
18650
|
-
|
|
18651
|
-
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
18652
|
-
|
|
18653
|
-
var _loadData = __webpack_require__(8);
|
|
18654
|
-
|
|
18655
|
-
var _loadData2 = _interopRequireDefault(_loadData);
|
|
18656
|
-
|
|
18657
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18658
|
-
|
|
18659
|
-
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
|
18660
|
-
|
|
18661
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18662
|
-
|
|
18663
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
18664
|
-
|
|
18665
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
18666
|
-
|
|
18667
|
-
var DefaultDatasetStep = function (_Component) {
|
|
18668
|
-
_inherits(DefaultDatasetStep, _Component);
|
|
18669
|
-
|
|
18670
|
-
function DefaultDatasetStep() {
|
|
18671
|
-
_classCallCheck(this, DefaultDatasetStep);
|
|
18672
|
-
|
|
18673
|
-
var _this = _possibleConstructorReturn(this, (DefaultDatasetStep.__proto__ || Object.getPrototypeOf(DefaultDatasetStep)).call(this));
|
|
18674
|
-
|
|
18675
|
-
_this.defaultResourceMapping = [{
|
|
18676
|
-
name: 'Contact',
|
|
18677
|
-
provider: 'Salesforce',
|
|
18678
|
-
lingkSourceKey: 'ExternalId',
|
|
18679
|
-
lingkSourceKeyObject: 'Applicants',
|
|
18680
|
-
resources: [{
|
|
18681
|
-
name: 'Applicants',
|
|
18682
|
-
joinKeyName: '',
|
|
18683
|
-
primaryKeyName: '',
|
|
18684
|
-
provider: 'Banner'
|
|
18685
|
-
}],
|
|
18686
|
-
mappings: [{
|
|
18687
|
-
isExternalKeyMapping: true,
|
|
18688
|
-
propertyFromName: "ExternalId",
|
|
18689
|
-
propertyToName: "Lingk External Id",
|
|
18690
|
-
resourceFromName: "Applicants",
|
|
18691
|
-
resourceToName: "Contact"
|
|
18692
|
-
}, {
|
|
18693
|
-
propertyFromName: "FirstName",
|
|
18694
|
-
propertyToName: "Fist Name",
|
|
18695
|
-
resourceFromName: "Applicants",
|
|
18696
|
-
resourceToName: "Contact"
|
|
18697
|
-
}, {
|
|
18698
|
-
propertyFromName: "LastName",
|
|
18699
|
-
propertyToName: "Last Name",
|
|
18700
|
-
resourceFromName: "Applicants",
|
|
18701
|
-
resourceToName: "Contact"
|
|
18702
|
-
}, {
|
|
18703
|
-
propertyFromName: "Gender",
|
|
18704
|
-
propertyToName: "Gender",
|
|
18705
|
-
resourceFromName: "Applicants",
|
|
18706
|
-
resourceToName: "Contact"
|
|
18707
|
-
}]
|
|
18708
|
-
}, {
|
|
18709
|
-
name: 'Admissions Application',
|
|
18710
|
-
provider: 'Salesforce',
|
|
18711
|
-
lingkSourceKey: 'ApplicationNumber',
|
|
18712
|
-
lingkSourceKeyObject: 'Student Applications',
|
|
18713
|
-
resources: [{
|
|
18714
|
-
name: 'Student Applications',
|
|
18715
|
-
joinKeyName: '',
|
|
18716
|
-
primaryKeyName: '',
|
|
18717
|
-
provider: 'Banner'
|
|
18718
|
-
}, {
|
|
18719
|
-
name: 'Contact',
|
|
18720
|
-
joinKeyName: 'Lingk External Id',
|
|
18721
|
-
primaryKeyName: 'StudentExternalId',
|
|
18722
|
-
provider: 'Salesforce',
|
|
18723
|
-
joinType: 'LEFT JOIN'
|
|
18724
|
-
}],
|
|
18725
|
-
mappings: [{
|
|
18726
|
-
isExternalKeyMapping: true,
|
|
18727
|
-
propertyFromName: "ApplicationNumber",
|
|
18728
|
-
propertyToName: "Lingk External Id",
|
|
18729
|
-
resourceFromName: "Student Applications",
|
|
18730
|
-
resourceToName: "Admissions Application"
|
|
18731
|
-
}, {
|
|
18732
|
-
propertyFromName: "ApplicationStatus",
|
|
18733
|
-
propertyToName: "Status",
|
|
18734
|
-
resourceFromName: "Student Applications",
|
|
18735
|
-
resourceToName: "Admissions Application"
|
|
18736
|
-
}, {
|
|
18737
|
-
propertyFromName: "Contact ID",
|
|
18738
|
-
propertyToName: "Contact",
|
|
18739
|
-
resourceFromName: "Contact",
|
|
18740
|
-
resourceToName: "Admissions Application"
|
|
18741
|
-
}]
|
|
18742
|
-
}];
|
|
18743
|
-
_this.loadDefault = _this.loadDefault.bind(_this);
|
|
18744
|
-
_this.select = _this.select.bind(_this);
|
|
18745
|
-
return _this;
|
|
18746
|
-
}
|
|
18747
|
-
|
|
18748
|
-
_createClass(DefaultDatasetStep, [{
|
|
18749
|
-
key: 'componentDidMount',
|
|
18750
|
-
value: function componentDidMount() {
|
|
18751
|
-
var _props = this.props,
|
|
18752
|
-
step = _props.step,
|
|
18753
|
-
wizard = _props.wizard,
|
|
18754
|
-
change = _props.change,
|
|
18755
|
-
formValues = _props.formValues,
|
|
18756
|
-
actions = _props.actions;
|
|
18757
|
-
|
|
18758
|
-
if (!wizard.dataLoaded) {
|
|
18759
|
-
(0, _loadData2.default)(step, wizard, change, formValues, actions);
|
|
18760
|
-
}
|
|
18761
|
-
}
|
|
18762
|
-
}, {
|
|
18763
|
-
key: 'options',
|
|
18764
|
-
value: function options(ops) {
|
|
18765
|
-
var defaultDatasetTitles = {
|
|
18766
|
-
'standard': 'Standard Salesforce Dataset',
|
|
18767
|
-
'heda': 'Salesforce HEDA Dataset'
|
|
18768
|
-
};
|
|
18769
|
-
var obj = {};
|
|
18770
|
-
ops.forEach(function (o) {
|
|
18771
|
-
obj[o] = defaultDatasetTitles[o];
|
|
18772
|
-
});
|
|
18773
|
-
return obj;
|
|
18774
|
-
}
|
|
18775
|
-
}, {
|
|
18776
|
-
key: 'select',
|
|
18777
|
-
value: function select(v) {
|
|
18778
|
-
if (v !== this.props.formValues['defaultDataset']) {
|
|
18779
|
-
this.loadDefault();
|
|
18780
|
-
}
|
|
18781
|
-
}
|
|
18782
|
-
}, {
|
|
18783
|
-
key: 'loadDefault',
|
|
18784
|
-
value: function loadDefault() {
|
|
18785
|
-
//default bundle map
|
|
18786
|
-
var change = this.props.change;
|
|
18787
|
-
|
|
18788
|
-
var defaults = [].concat(_toConsumableArray(this.defaultResourceMapping));
|
|
18789
|
-
change('resourceGroups', defaults);
|
|
18790
|
-
}
|
|
18791
|
-
}, {
|
|
18792
|
-
key: 'autoMap',
|
|
18793
|
-
value: function autoMap() {
|
|
18794
|
-
// this function needs to dig deeper and check every field against every mapping
|
|
18795
|
-
var _props2 = this.props,
|
|
18796
|
-
formValues = _props2.formValues,
|
|
18797
|
-
change = _props2.change,
|
|
18798
|
-
step = _props2.step;
|
|
18799
|
-
|
|
18800
|
-
var sourceSchema = formValues['sourceSchema'] || {};
|
|
18801
|
-
var obj = {};
|
|
18802
|
-
for (var key in step.autoMapData) {
|
|
18803
|
-
if (sourceSchema && sourceSchema[key.split('.')[0]]) {
|
|
18804
|
-
obj[key] = step.autoMapData[key];
|
|
18805
|
-
}
|
|
18806
|
-
}
|
|
18807
|
-
change('mappings', obj);
|
|
18808
|
-
}
|
|
18809
|
-
}, {
|
|
18810
|
-
key: 'render',
|
|
18811
|
-
value: function render() {
|
|
18812
|
-
var _props3 = this.props,
|
|
18813
|
-
inputs = _props3.inputs,
|
|
18814
|
-
handleSubmit = _props3.handleSubmit,
|
|
18815
|
-
nav = _props3.nav,
|
|
18816
|
-
step = _props3.step,
|
|
18817
|
-
reset = _props3.reset,
|
|
18818
|
-
formValues = _props3.formValues;
|
|
18819
|
-
|
|
18820
|
-
|
|
18821
|
-
return _react2.default.createElement(
|
|
18822
|
-
'form',
|
|
18823
|
-
{ onSubmit: handleSubmit, onKeyPress: function onKeyPress(e) {
|
|
18824
|
-
return e.charCode === 13 ? e.preventDefault() : null;
|
|
18825
|
-
} },
|
|
18826
|
-
_react2.default.createElement(
|
|
18827
|
-
'div',
|
|
18828
|
-
{ style: { fontSize: 20 } },
|
|
18829
|
-
'Choose Default Dataset'
|
|
18830
|
-
),
|
|
18831
|
-
_react2.default.createElement('br', null),
|
|
18832
|
-
_react2.default.createElement(
|
|
18833
|
-
'p',
|
|
18834
|
-
null,
|
|
18835
|
-
'Choose a default dataset as the starting point for your integration.'
|
|
18836
|
-
),
|
|
18837
|
-
_react2.default.createElement('br', null),
|
|
18838
|
-
_react2.default.createElement(
|
|
18839
|
-
'div',
|
|
18840
|
-
{ style: { marginLeft: 16 } },
|
|
18841
|
-
_react2.default.createElement(_reduxForm.Field, { component: inputs.rfRadioGroup, name: 'defaultDataset', label: 'Default Dataset',
|
|
18842
|
-
options: this.options(step.options), onClickOption: this.select })
|
|
18843
|
-
),
|
|
18844
|
-
_react2.default.createElement('br', null),
|
|
18845
|
-
_react2.default.createElement(_navButtons2.default, { nextDisabled: !formValues['defaultDataset'], handleSubmit: handleSubmit,
|
|
18846
|
-
nav: nav, reset: reset, inputs: inputs }),
|
|
18847
|
-
_react2.default.createElement('br', null),
|
|
18848
|
-
_react2.default.createElement('br', null)
|
|
18849
|
-
);
|
|
18850
|
-
}
|
|
18851
|
-
}]);
|
|
18852
|
-
|
|
18853
|
-
return DefaultDatasetStep;
|
|
18854
|
-
}(_react.Component);
|
|
18855
|
-
|
|
18856
|
-
exports.default = (0, _reduxForm.reduxForm)({
|
|
18857
|
-
form: 'wizard',
|
|
18858
|
-
destroyOnUnmount: false,
|
|
18859
|
-
forceUnregisterOnUnmount: true,
|
|
18860
|
-
touchOnBlur: false
|
|
18861
|
-
})(DefaultDatasetStep);
|
|
18862
|
-
|
|
18863
|
-
/***/ },
|
|
18864
|
-
/* 181 */
|
|
18865
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
18866
|
-
|
|
18867
|
-
'use strict';
|
|
18868
|
-
|
|
18869
18664
|
Object.defineProperty(exports, "__esModule", {
|
|
18870
18665
|
value: true
|
|
18871
18666
|
});
|
|
@@ -19100,7 +18895,7 @@ module.exports =
|
|
|
19100
18895
|
})(DeployStep);
|
|
19101
18896
|
|
|
19102
18897
|
/***/ },
|
|
19103
|
-
/*
|
|
18898
|
+
/* 181 */
|
|
19104
18899
|
/***/ function(module, exports, __webpack_require__) {
|
|
19105
18900
|
|
|
19106
18901
|
'use strict';
|
|
@@ -19375,7 +19170,7 @@ module.exports =
|
|
|
19375
19170
|
})(EnvironmentStep);
|
|
19376
19171
|
|
|
19377
19172
|
/***/ },
|
|
19378
|
-
/*
|
|
19173
|
+
/* 182 */
|
|
19379
19174
|
/***/ function(module, exports, __webpack_require__) {
|
|
19380
19175
|
|
|
19381
19176
|
'use strict';
|
|
@@ -19476,7 +19271,7 @@ module.exports =
|
|
|
19476
19271
|
})(FilterStep);
|
|
19477
19272
|
|
|
19478
19273
|
/***/ },
|
|
19479
|
-
/*
|
|
19274
|
+
/* 183 */
|
|
19480
19275
|
/***/ function(module, exports, __webpack_require__) {
|
|
19481
19276
|
|
|
19482
19277
|
'use strict';
|
|
@@ -19719,7 +19514,7 @@ module.exports =
|
|
|
19719
19514
|
})(MapStep);
|
|
19720
19515
|
|
|
19721
19516
|
/***/ },
|
|
19722
|
-
/*
|
|
19517
|
+
/* 184 */
|
|
19723
19518
|
/***/ function(module, exports, __webpack_require__) {
|
|
19724
19519
|
|
|
19725
19520
|
'use strict';
|
|
@@ -19835,7 +19630,7 @@ module.exports =
|
|
|
19835
19630
|
})(NameStep);
|
|
19836
19631
|
|
|
19837
19632
|
/***/ },
|
|
19838
|
-
/*
|
|
19633
|
+
/* 185 */
|
|
19839
19634
|
/***/ function(module, exports, __webpack_require__) {
|
|
19840
19635
|
|
|
19841
19636
|
'use strict';
|
|
@@ -19933,7 +19728,7 @@ module.exports =
|
|
|
19933
19728
|
})(PhaseStep);
|
|
19934
19729
|
|
|
19935
19730
|
/***/ },
|
|
19936
|
-
/*
|
|
19731
|
+
/* 186 */
|
|
19937
19732
|
/***/ function(module, exports, __webpack_require__) {
|
|
19938
19733
|
|
|
19939
19734
|
'use strict';
|
|
@@ -20067,6 +19862,143 @@ module.exports =
|
|
|
20067
19862
|
validate: _validate2.default
|
|
20068
19863
|
})(PreviewStep);
|
|
20069
19864
|
|
|
19865
|
+
/***/ },
|
|
19866
|
+
/* 187 */
|
|
19867
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
19868
|
+
|
|
19869
|
+
'use strict';
|
|
19870
|
+
|
|
19871
|
+
Object.defineProperty(exports, "__esModule", {
|
|
19872
|
+
value: true
|
|
19873
|
+
});
|
|
19874
|
+
|
|
19875
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
19876
|
+
|
|
19877
|
+
var _react = __webpack_require__(2);
|
|
19878
|
+
|
|
19879
|
+
var _react2 = _interopRequireDefault(_react);
|
|
19880
|
+
|
|
19881
|
+
var _reduxForm = __webpack_require__(4);
|
|
19882
|
+
|
|
19883
|
+
var _navButtons = __webpack_require__(5);
|
|
19884
|
+
|
|
19885
|
+
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
19886
|
+
|
|
19887
|
+
var _loadData = __webpack_require__(8);
|
|
19888
|
+
|
|
19889
|
+
var _loadData2 = _interopRequireDefault(_loadData);
|
|
19890
|
+
|
|
19891
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19892
|
+
|
|
19893
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19894
|
+
|
|
19895
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
19896
|
+
|
|
19897
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
19898
|
+
|
|
19899
|
+
var DefaultDatasetStep = function (_Component) {
|
|
19900
|
+
_inherits(DefaultDatasetStep, _Component);
|
|
19901
|
+
|
|
19902
|
+
function DefaultDatasetStep() {
|
|
19903
|
+
var _ref;
|
|
19904
|
+
|
|
19905
|
+
var _temp, _this, _ret;
|
|
19906
|
+
|
|
19907
|
+
_classCallCheck(this, DefaultDatasetStep);
|
|
19908
|
+
|
|
19909
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
19910
|
+
args[_key] = arguments[_key];
|
|
19911
|
+
}
|
|
19912
|
+
|
|
19913
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DefaultDatasetStep.__proto__ || Object.getPrototypeOf(DefaultDatasetStep)).call.apply(_ref, [this].concat(args))), _this), _this.select = function (v) {
|
|
19914
|
+
var _this$props = _this.props,
|
|
19915
|
+
step = _this$props.step,
|
|
19916
|
+
actions = _this$props.actions;
|
|
19917
|
+
|
|
19918
|
+
var scenario = step.options.find(function (o) {
|
|
19919
|
+
return o.name === v;
|
|
19920
|
+
});
|
|
19921
|
+
actions.callGetScenario(step.magicNumber, scenario.bundleGuid, scenario.mappingGuid);
|
|
19922
|
+
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
19923
|
+
}
|
|
19924
|
+
|
|
19925
|
+
_createClass(DefaultDatasetStep, [{
|
|
19926
|
+
key: 'componentDidMount',
|
|
19927
|
+
value: function componentDidMount() {
|
|
19928
|
+
var _props = this.props,
|
|
19929
|
+
step = _props.step,
|
|
19930
|
+
wizard = _props.wizard,
|
|
19931
|
+
change = _props.change,
|
|
19932
|
+
formValues = _props.formValues,
|
|
19933
|
+
actions = _props.actions;
|
|
19934
|
+
|
|
19935
|
+
if (!wizard.dataLoaded) {
|
|
19936
|
+
(0, _loadData2.default)(step, wizard, change, formValues, actions);
|
|
19937
|
+
}
|
|
19938
|
+
}
|
|
19939
|
+
}, {
|
|
19940
|
+
key: 'options',
|
|
19941
|
+
value: function options(ops) {
|
|
19942
|
+
var obj = {};
|
|
19943
|
+
ops.forEach(function (o) {
|
|
19944
|
+
obj[o.name] = o.label;
|
|
19945
|
+
});
|
|
19946
|
+
return obj;
|
|
19947
|
+
}
|
|
19948
|
+
}, {
|
|
19949
|
+
key: 'render',
|
|
19950
|
+
value: function render() {
|
|
19951
|
+
var _props2 = this.props,
|
|
19952
|
+
inputs = _props2.inputs,
|
|
19953
|
+
handleSubmit = _props2.handleSubmit,
|
|
19954
|
+
nav = _props2.nav,
|
|
19955
|
+
step = _props2.step,
|
|
19956
|
+
reset = _props2.reset,
|
|
19957
|
+
wizard = _props2.wizard;
|
|
19958
|
+
|
|
19959
|
+
|
|
19960
|
+
return _react2.default.createElement(
|
|
19961
|
+
'form',
|
|
19962
|
+
{ onSubmit: handleSubmit, onKeyPress: function onKeyPress(e) {
|
|
19963
|
+
return e.charCode === 13 ? e.preventDefault() : null;
|
|
19964
|
+
} },
|
|
19965
|
+
_react2.default.createElement(
|
|
19966
|
+
'div',
|
|
19967
|
+
{ style: { fontSize: 20 } },
|
|
19968
|
+
'Choose Default Scenario'
|
|
19969
|
+
),
|
|
19970
|
+
_react2.default.createElement('br', null),
|
|
19971
|
+
_react2.default.createElement(
|
|
19972
|
+
'p',
|
|
19973
|
+
null,
|
|
19974
|
+
'Use the chosen scenario as a starting point for your integration, and customize it to your requirements.'
|
|
19975
|
+
),
|
|
19976
|
+
_react2.default.createElement('br', null),
|
|
19977
|
+
_react2.default.createElement(
|
|
19978
|
+
'div',
|
|
19979
|
+
{ style: { marginLeft: 16 } },
|
|
19980
|
+
_react2.default.createElement(_reduxForm.Field, { component: inputs.rfRadioGroup, name: 'scenario', label: 'Data Scenario',
|
|
19981
|
+
options: this.options(step.options), onClickOption: this.select })
|
|
19982
|
+
),
|
|
19983
|
+
_react2.default.createElement('br', null),
|
|
19984
|
+
_react2.default.createElement(_navButtons2.default, { nextDisabled: !wizard.gotScenario, handleSubmit: handleSubmit,
|
|
19985
|
+
nav: nav, reset: reset, inputs: inputs }),
|
|
19986
|
+
_react2.default.createElement('br', null),
|
|
19987
|
+
_react2.default.createElement('br', null)
|
|
19988
|
+
);
|
|
19989
|
+
}
|
|
19990
|
+
}]);
|
|
19991
|
+
|
|
19992
|
+
return DefaultDatasetStep;
|
|
19993
|
+
}(_react.Component);
|
|
19994
|
+
|
|
19995
|
+
exports.default = (0, _reduxForm.reduxForm)({
|
|
19996
|
+
form: 'wizard',
|
|
19997
|
+
destroyOnUnmount: false,
|
|
19998
|
+
forceUnregisterOnUnmount: true,
|
|
19999
|
+
touchOnBlur: false
|
|
20000
|
+
})(DefaultDatasetStep);
|
|
20001
|
+
|
|
20070
20002
|
/***/ },
|
|
20071
20003
|
/* 188 */
|
|
20072
20004
|
/***/ function(module, exports, __webpack_require__) {
|
|
@@ -20252,7 +20184,7 @@ module.exports =
|
|
|
20252
20184
|
group.resources.push({
|
|
20253
20185
|
name: v,
|
|
20254
20186
|
provider: section,
|
|
20255
|
-
joinType: 'LEFT
|
|
20187
|
+
joinType: 'LEFT JOIN'
|
|
20256
20188
|
});
|
|
20257
20189
|
}
|
|
20258
20190
|
if (group.resources.length === 1) {
|
|
@@ -20278,8 +20210,24 @@ module.exports =
|
|
|
20278
20210
|
formValues = _props6.formValues;
|
|
20279
20211
|
|
|
20280
20212
|
var resourceGroups = [].concat(_toConsumableArray(formValues['resourceGroups']));
|
|
20281
|
-
var
|
|
20282
|
-
|
|
20213
|
+
var group = resourceGroups[groupIndex];
|
|
20214
|
+
console.log(group);
|
|
20215
|
+
console.log(entity);
|
|
20216
|
+
if (group.customExternalKeys) {
|
|
20217
|
+
if (group.sourceKeysObjects.find(function (sko) {
|
|
20218
|
+
return sko === entity;
|
|
20219
|
+
})) {
|
|
20220
|
+
var deleteIndex = group.sourceKeysObjects.indexOf(entity);
|
|
20221
|
+
group.sourceKeys.splice(deleteIndex, 1);
|
|
20222
|
+
group.sourceKeysObjects.splice(deleteIndex, 1);
|
|
20223
|
+
}
|
|
20224
|
+
} else {
|
|
20225
|
+
if (entity === group.lingkSourceKeyObject) {
|
|
20226
|
+
group.lingkSourceKey = null;
|
|
20227
|
+
group.lingkSourceKeyObject = null;
|
|
20228
|
+
}
|
|
20229
|
+
}
|
|
20230
|
+
group.resources.splice(rscIndex, 1);
|
|
20283
20231
|
change('resourceGroups', resourceGroups);
|
|
20284
20232
|
this.forceUpdate();
|
|
20285
20233
|
}
|
|
@@ -20313,7 +20261,7 @@ module.exports =
|
|
|
20313
20261
|
g.primaryKeyName = null;
|
|
20314
20262
|
});
|
|
20315
20263
|
change('resourceGroups', resourceGroups);
|
|
20316
|
-
this.openConnectionModal(group, groupIndex)
|
|
20264
|
+
//this.openConnectionModal(group, groupIndex)
|
|
20317
20265
|
}
|
|
20318
20266
|
}, {
|
|
20319
20267
|
key: 'changeGroupOrder',
|
|
@@ -20341,6 +20289,8 @@ module.exports =
|
|
|
20341
20289
|
wizard = _props10.wizard,
|
|
20342
20290
|
change = _props10.change;
|
|
20343
20291
|
|
|
20292
|
+
if (!formValues['resourceGroups']) return _react2.default.createElement('div', null);
|
|
20293
|
+
|
|
20344
20294
|
var resourceGroups = [].concat(_toConsumableArray(formValues['resourceGroups'])) || null;
|
|
20345
20295
|
var BundleTable = inputs.BundleTable;
|
|
20346
20296
|
|
|
@@ -20447,20 +20397,21 @@ module.exports =
|
|
|
20447
20397
|
step = props.step;
|
|
20448
20398
|
|
|
20449
20399
|
return _react2.default.createElement(
|
|
20450
|
-
'
|
|
20451
|
-
{ style: {
|
|
20400
|
+
'pre',
|
|
20401
|
+
{ style: { whiteSpace: 'pre-wrap', maxWidth: 400, fontFamily: '"Salesforce Sans", Arial, sans-serif',
|
|
20402
|
+
paddingLeft: '1em', textIndent: '-1em', margin: 0 } },
|
|
20452
20403
|
group.resources && group.resources.map(function (rsc, i) {
|
|
20453
20404
|
return _react2.default.createElement(
|
|
20454
20405
|
'span',
|
|
20455
20406
|
{ key: i },
|
|
20456
20407
|
i !== 0 && _react2.default.createElement(
|
|
20457
|
-
'
|
|
20408
|
+
'strong',
|
|
20458
20409
|
null,
|
|
20459
20410
|
'+ '
|
|
20460
20411
|
),
|
|
20461
20412
|
_react2.default.createElement(
|
|
20462
20413
|
'span',
|
|
20463
|
-
{ style: { fontWeight: i === 0 ? 'bold' : 'normal' } },
|
|
20414
|
+
{ style: { fontWeight: i === 0 ? 'bold' : 'normal', whiteSpace: 'nowrap' } },
|
|
20464
20415
|
rsc.provider === step.destinationProvider ? rsc.name + ' (' + step.destinationProvider + ')' : rsc.name,
|
|
20465
20416
|
'\xA0'
|
|
20466
20417
|
)
|
|
@@ -20486,19 +20437,23 @@ module.exports =
|
|
|
20486
20437
|
}
|
|
20487
20438
|
return _react2.default.createElement(
|
|
20488
20439
|
'div',
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
_react2.default.createElement(
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
_react2.default.createElement(
|
|
20501
|
-
|
|
20440
|
+
null,
|
|
20441
|
+
group && group.resources && group.resources.length > 0 ? _react2.default.createElement(
|
|
20442
|
+
'div',
|
|
20443
|
+
{ className: 'connect-resource-group', onClick: function onClick(e) {
|
|
20444
|
+
e.stopPropagation();
|
|
20445
|
+
openConnectionModal(group, i);
|
|
20446
|
+
}, style: { paddingTop: linked ? 5 : 6 } },
|
|
20447
|
+
linked ? _react2.default.createElement(
|
|
20448
|
+
'svg',
|
|
20449
|
+
{ fill: '#000000', width: '29', height: '24', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' },
|
|
20450
|
+
_react2.default.createElement('path', { d: 'M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z' })
|
|
20451
|
+
) : _react2.default.createElement(
|
|
20452
|
+
'svg',
|
|
20453
|
+
{ fill: '#AAAAAA', width: '24', height: '19', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' },
|
|
20454
|
+
_react2.default.createElement('path', { d: 'M2,5.27L3.28,4L20,20.72L18.73,22L14.73,18H13V16.27L9.73,13H8V11.27L5.5,8.76C4.5,9.5 3.9,10.68 3.9,12C3.9,14.26 5.74,16.1 8,16.1H11V18H8A6,6 0 0,1 2,12C2,10.16 2.83,8.5 4.14,7.41L2,5.27M16,6A6,6 0 0,1 22,12C22,14.21 20.8,16.15 19,17.19L17.6,15.77C19.07,15.15 20.1,13.7 20.1,12C20.1,9.73 18.26,7.9 16,7.9H13V6H16M8,6H11V7.9H9.72L7.82,6H8M16,11V13H14.82L12.82,11H16Z' })
|
|
20455
|
+
)
|
|
20456
|
+
) : null
|
|
20502
20457
|
);
|
|
20503
20458
|
};
|
|
20504
20459
|
|
|
@@ -20685,8 +20640,8 @@ module.exports =
|
|
|
20685
20640
|
}).properties;
|
|
20686
20641
|
});
|
|
20687
20642
|
|
|
20688
|
-
var sourceKeys = resourceGroups[bundleIndex].sourceKeys
|
|
20689
|
-
var destinationKeys = resourceGroups[bundleIndex].destinationKeys
|
|
20643
|
+
var sourceKeys = resourceGroups[bundleIndex].sourceKeys && resourceGroups[bundleIndex].sourceKeys.length > 0 ? resourceGroups[bundleIndex].sourceKeys : [''];
|
|
20644
|
+
var destinationKeys = resourceGroups[bundleIndex].destinationKeys && resourceGroups[bundleIndex].destinationKeys > 0 ? resourceGroups[bundleIndex].destinationKeys : [''];
|
|
20690
20645
|
|
|
20691
20646
|
return _react2.default.createElement(
|
|
20692
20647
|
Modal,
|
|
@@ -21644,11 +21599,12 @@ module.exports =
|
|
|
21644
21599
|
i !== 0 ? _react2.default.createElement(
|
|
21645
21600
|
Button,
|
|
21646
21601
|
{ type: 'brand', icon: selectedEntity.name === rsc.name ? 'chevronup' : 'chevrondown',
|
|
21647
|
-
iconAlign: 'right',
|
|
21602
|
+
iconAlign: 'right', className: rsc.joinKeyName && rsc.primaryKeyName ? 'join-ok' : '',
|
|
21603
|
+
onClick: function onClick() {
|
|
21648
21604
|
_this3.props.pickEntity({ name: rsc.name,
|
|
21649
21605
|
isDestinationEntity: rsc.provider === step.destinationProvider });
|
|
21650
21606
|
} },
|
|
21651
|
-
'Configure Join'
|
|
21607
|
+
rsc.joinKeyName && rsc.primaryKeyName ? 'Join Settings' : 'Configure Join'
|
|
21652
21608
|
) : null
|
|
21653
21609
|
)
|
|
21654
21610
|
),
|
|
@@ -22006,11 +21962,11 @@ module.exports =
|
|
|
22006
21962
|
|
|
22007
21963
|
var _accountStep2 = _interopRequireDefault(_accountStep);
|
|
22008
21964
|
|
|
22009
|
-
var _phaseStep = __webpack_require__(
|
|
21965
|
+
var _phaseStep = __webpack_require__(185);
|
|
22010
21966
|
|
|
22011
21967
|
var _phaseStep2 = _interopRequireDefault(_phaseStep);
|
|
22012
21968
|
|
|
22013
|
-
var _environmentStep = __webpack_require__(
|
|
21969
|
+
var _environmentStep = __webpack_require__(181);
|
|
22014
21970
|
|
|
22015
21971
|
var _environmentStep2 = _interopRequireDefault(_environmentStep);
|
|
22016
21972
|
|
|
@@ -22018,23 +21974,23 @@ module.exports =
|
|
|
22018
21974
|
|
|
22019
21975
|
var _schemaStep2 = _interopRequireDefault(_schemaStep);
|
|
22020
21976
|
|
|
22021
|
-
var _filterStep = __webpack_require__(
|
|
21977
|
+
var _filterStep = __webpack_require__(182);
|
|
22022
21978
|
|
|
22023
21979
|
var _filterStep2 = _interopRequireDefault(_filterStep);
|
|
22024
21980
|
|
|
22025
|
-
var _mapStep = __webpack_require__(
|
|
21981
|
+
var _mapStep = __webpack_require__(183);
|
|
22026
21982
|
|
|
22027
21983
|
var _mapStep2 = _interopRequireDefault(_mapStep);
|
|
22028
21984
|
|
|
22029
|
-
var _previewStep = __webpack_require__(
|
|
21985
|
+
var _previewStep = __webpack_require__(186);
|
|
22030
21986
|
|
|
22031
21987
|
var _previewStep2 = _interopRequireDefault(_previewStep);
|
|
22032
21988
|
|
|
22033
|
-
var _deployStep = __webpack_require__(
|
|
21989
|
+
var _deployStep = __webpack_require__(180);
|
|
22034
21990
|
|
|
22035
21991
|
var _deployStep2 = _interopRequireDefault(_deployStep);
|
|
22036
21992
|
|
|
22037
|
-
var _nameStep = __webpack_require__(
|
|
21993
|
+
var _nameStep = __webpack_require__(184);
|
|
22038
21994
|
|
|
22039
21995
|
var _nameStep2 = _interopRequireDefault(_nameStep);
|
|
22040
21996
|
|
|
@@ -22042,9 +21998,9 @@ module.exports =
|
|
|
22042
21998
|
|
|
22043
21999
|
var _adapterStep2 = _interopRequireDefault(_adapterStep);
|
|
22044
22000
|
|
|
22045
|
-
var
|
|
22001
|
+
var _scenarioStep = __webpack_require__(187);
|
|
22046
22002
|
|
|
22047
|
-
var
|
|
22003
|
+
var _scenarioStep2 = _interopRequireDefault(_scenarioStep);
|
|
22048
22004
|
|
|
22049
22005
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22050
22006
|
|
|
@@ -22096,7 +22052,7 @@ module.exports =
|
|
|
22096
22052
|
deploy: _deployStep2.default,
|
|
22097
22053
|
adapter: _adapterStep2.default,
|
|
22098
22054
|
name: _nameStep2.default,
|
|
22099
|
-
|
|
22055
|
+
scenario: _scenarioStep2.default
|
|
22100
22056
|
};
|
|
22101
22057
|
return _this;
|
|
22102
22058
|
}
|
|
@@ -22259,7 +22215,7 @@ module.exports =
|
|
|
22259
22215
|
if (formValues.destinationEndpoint) {
|
|
22260
22216
|
endpoints.destinationEndpoint = formValues.destinationEndpoint;
|
|
22261
22217
|
}
|
|
22262
|
-
var configuration = Object.assign({}, endpoints, formValues['
|
|
22218
|
+
var configuration = Object.assign({}, endpoints, formValues['scenario'] && { scenario: formValues['scenario'] });
|
|
22263
22219
|
//----------------------------------
|
|
22264
22220
|
// Post
|
|
22265
22221
|
//----------------------------------
|
|
@@ -22388,7 +22344,7 @@ module.exports =
|
|
|
22388
22344
|
var deployment = selector(state, 'deployment');
|
|
22389
22345
|
var mappings = selector(state, 'mappings');
|
|
22390
22346
|
var resourceGroups = selector(state, 'resourceGroups');
|
|
22391
|
-
var
|
|
22347
|
+
var scenario = selector(state, 'scenario');
|
|
22392
22348
|
return Object.assign({}, state, {
|
|
22393
22349
|
formValues: {
|
|
22394
22350
|
title: title,
|
|
@@ -22399,7 +22355,7 @@ module.exports =
|
|
|
22399
22355
|
deployment: deployment,
|
|
22400
22356
|
mappings: mappings,
|
|
22401
22357
|
resourceGroups: resourceGroups,
|
|
22402
|
-
|
|
22358
|
+
scenario: scenario
|
|
22403
22359
|
}
|
|
22404
22360
|
});
|
|
22405
22361
|
})(WizardForm);
|
|
@@ -22471,11 +22427,18 @@ module.exports =
|
|
|
22471
22427
|
name: 'Salesforce',
|
|
22472
22428
|
env: false,
|
|
22473
22429
|
customizable: false, // if destination schema is not customizable, disclude the entire step
|
|
22474
|
-
customStep:
|
|
22430
|
+
customStep: false
|
|
22475
22431
|
},
|
|
22476
22432
|
deployment: ['once', 'daily', 'repeating'],
|
|
22477
22433
|
autoMapData: example.wizards[1].autoMapData,
|
|
22478
|
-
dummyData: example.wizards[1].dummyData
|
|
22434
|
+
dummyData: example.wizards[1].dummyData,
|
|
22435
|
+
scenarios: [{
|
|
22436
|
+
name: 'applicants',
|
|
22437
|
+
label: 'Banner Applicants to Salesforce Contacts and Admissions Applications (custom)',
|
|
22438
|
+
bundleGuid: 'd10440051e2a46aaa181b72b8ee6af67',
|
|
22439
|
+
mappingGuid: 'e98da65935534fdbb4c7b4280f07f1ae'
|
|
22440
|
+
}],
|
|
22441
|
+
magicDefaultNumber: '2147483647'
|
|
22479
22442
|
};
|
|
22480
22443
|
/*
|
|
22481
22444
|
id: 2,
|
|
@@ -22534,6 +22497,9 @@ module.exports =
|
|
|
22534
22497
|
}, {
|
|
22535
22498
|
type: 'custom',
|
|
22536
22499
|
mode: 'destination'
|
|
22500
|
+
}, {
|
|
22501
|
+
type: 'scenario',
|
|
22502
|
+
title: 'Data Scenario'
|
|
22537
22503
|
}, {
|
|
22538
22504
|
type: 'environment',
|
|
22539
22505
|
title: 'Destination Environment',
|
|
@@ -22583,6 +22549,10 @@ module.exports =
|
|
|
22583
22549
|
step.options = customStep.options;
|
|
22584
22550
|
stepList.push(step);
|
|
22585
22551
|
}
|
|
22552
|
+
} else if (step.type === 'scenario') {
|
|
22553
|
+
step.options = wizard.scenarios;
|
|
22554
|
+
step.magicNumber = wizard.magicDefaultNumber;
|
|
22555
|
+
stepList.push(step);
|
|
22586
22556
|
} else if (step.type === 'environment') {
|
|
22587
22557
|
if (step.mode === 'source' && wizard.source.env) {
|
|
22588
22558
|
step.providerType = wizard.source.type;
|