@lingk/sync 0.1.19 → 0.1.21
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 +17 -2
- package/build/lightning.js +47 -40
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js +3 -2
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/main.js +283 -174
- package/build/main.js.map +1 -1
- package/build/reducer.js +146 -7
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -4538,7 +4538,7 @@ module.exports =
|
|
|
4538
4538
|
/* 13 */
|
|
4539
4539
|
/***/ function(module, exports, __webpack_require__) {
|
|
4540
4540
|
|
|
4541
|
-
var dP = __webpack_require__(
|
|
4541
|
+
var dP = __webpack_require__(19)
|
|
4542
4542
|
, createDesc = __webpack_require__(33);
|
|
4543
4543
|
module.exports = __webpack_require__(10) ? function(object, key, value){
|
|
4544
4544
|
return dP.f(object, key, createDesc(1, value));
|
|
@@ -4557,79 +4557,6 @@ module.exports =
|
|
|
4557
4557
|
|
|
4558
4558
|
/***/ },
|
|
4559
4559
|
/* 15 */
|
|
4560
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
4561
|
-
|
|
4562
|
-
var isObject = __webpack_require__(14);
|
|
4563
|
-
module.exports = function(it){
|
|
4564
|
-
if(!isObject(it))throw TypeError(it + ' is not an object!');
|
|
4565
|
-
return it;
|
|
4566
|
-
};
|
|
4567
|
-
|
|
4568
|
-
/***/ },
|
|
4569
|
-
/* 16 */
|
|
4570
|
-
/***/ function(module, exports) {
|
|
4571
|
-
|
|
4572
|
-
// 7.2.1 RequireObjectCoercible(argument)
|
|
4573
|
-
module.exports = function(it){
|
|
4574
|
-
if(it == undefined)throw TypeError("Can't call method on " + it);
|
|
4575
|
-
return it;
|
|
4576
|
-
};
|
|
4577
|
-
|
|
4578
|
-
/***/ },
|
|
4579
|
-
/* 17 */
|
|
4580
|
-
/***/ function(module, exports) {
|
|
4581
|
-
|
|
4582
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
4583
|
-
module.exports = function(it, key){
|
|
4584
|
-
return hasOwnProperty.call(it, key);
|
|
4585
|
-
};
|
|
4586
|
-
|
|
4587
|
-
/***/ },
|
|
4588
|
-
/* 18 */
|
|
4589
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
4590
|
-
|
|
4591
|
-
var anObject = __webpack_require__(15)
|
|
4592
|
-
, IE8_DOM_DEFINE = __webpack_require__(44)
|
|
4593
|
-
, toPrimitive = __webpack_require__(48)
|
|
4594
|
-
, dP = Object.defineProperty;
|
|
4595
|
-
|
|
4596
|
-
exports.f = __webpack_require__(10) ? Object.defineProperty : function defineProperty(O, P, Attributes){
|
|
4597
|
-
anObject(O);
|
|
4598
|
-
P = toPrimitive(P, true);
|
|
4599
|
-
anObject(Attributes);
|
|
4600
|
-
if(IE8_DOM_DEFINE)try {
|
|
4601
|
-
return dP(O, P, Attributes);
|
|
4602
|
-
} catch(e){ /* empty */ }
|
|
4603
|
-
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
|
|
4604
|
-
if('value' in Attributes)O[P] = Attributes.value;
|
|
4605
|
-
return O;
|
|
4606
|
-
};
|
|
4607
|
-
|
|
4608
|
-
/***/ },
|
|
4609
|
-
/* 19 */
|
|
4610
|
-
/***/ function(module, exports) {
|
|
4611
|
-
|
|
4612
|
-
// 7.1.4 ToInteger
|
|
4613
|
-
var ceil = Math.ceil
|
|
4614
|
-
, floor = Math.floor;
|
|
4615
|
-
module.exports = function(it){
|
|
4616
|
-
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
|
|
4617
|
-
};
|
|
4618
|
-
|
|
4619
|
-
/***/ },
|
|
4620
|
-
/* 20 */
|
|
4621
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
4622
|
-
|
|
4623
|
-
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
4624
|
-
var IObject = __webpack_require__(30)
|
|
4625
|
-
, defined = __webpack_require__(16);
|
|
4626
|
-
module.exports = function(it){
|
|
4627
|
-
return IObject(defined(it));
|
|
4628
|
-
};
|
|
4629
|
-
|
|
4630
|
-
/***/ },
|
|
4631
|
-
/* 21 */,
|
|
4632
|
-
/* 22 */
|
|
4633
4560
|
/***/ function(module, exports, __webpack_require__) {
|
|
4634
4561
|
|
|
4635
4562
|
'use strict';
|
|
@@ -4646,6 +4573,7 @@ module.exports =
|
|
|
4646
4573
|
|
|
4647
4574
|
function loadData(step, wizard, change, formValues, actions) {
|
|
4648
4575
|
|
|
4576
|
+
change('title', formValues.title || step.name);
|
|
4649
4577
|
var defaults = {
|
|
4650
4578
|
sourceEndpoint: 'https://',
|
|
4651
4579
|
destinationEndpoint: 'https://'
|
|
@@ -4830,6 +4758,7 @@ module.exports =
|
|
|
4830
4758
|
|
|
4831
4759
|
var modes = ['source', 'destination'];
|
|
4832
4760
|
modes.forEach(function (mode) {
|
|
4761
|
+
|
|
4833
4762
|
var endpoint = defaults[mode + 'Endpoint'];
|
|
4834
4763
|
if (wizard.savedConfiguration && wizard.savedConfiguration[mode + 'Endpoint'] && !formValues[mode + 'Endpoint']) {
|
|
4835
4764
|
endpoint = wizard.savedConfiguration[mode + 'Endpoint'];
|
|
@@ -4837,6 +4766,14 @@ module.exports =
|
|
|
4837
4766
|
if (step.mode === mode) {
|
|
4838
4767
|
change(mode + 'Endpoint', formValues[mode + 'Endpoint'] || endpoint);
|
|
4839
4768
|
}
|
|
4769
|
+
|
|
4770
|
+
if (wizard.savedCredentials && wizard.savedCredentials['' + mode] && !formValues[mode + 'Credentials']) {
|
|
4771
|
+
var creds = {
|
|
4772
|
+
ClientKey: wizard.savedCredentials['' + mode].key,
|
|
4773
|
+
ClientSecret: wizard.savedCredentials['' + mode].secret
|
|
4774
|
+
};
|
|
4775
|
+
change(mode + 'Credentials', creds);
|
|
4776
|
+
}
|
|
4840
4777
|
});
|
|
4841
4778
|
|
|
4842
4779
|
if (wizard.savedTrigger) {
|
|
@@ -4900,6 +4837,79 @@ module.exports =
|
|
|
4900
4837
|
exports.default = loadData;
|
|
4901
4838
|
|
|
4902
4839
|
/***/ },
|
|
4840
|
+
/* 16 */
|
|
4841
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
4842
|
+
|
|
4843
|
+
var isObject = __webpack_require__(14);
|
|
4844
|
+
module.exports = function(it){
|
|
4845
|
+
if(!isObject(it))throw TypeError(it + ' is not an object!');
|
|
4846
|
+
return it;
|
|
4847
|
+
};
|
|
4848
|
+
|
|
4849
|
+
/***/ },
|
|
4850
|
+
/* 17 */
|
|
4851
|
+
/***/ function(module, exports) {
|
|
4852
|
+
|
|
4853
|
+
// 7.2.1 RequireObjectCoercible(argument)
|
|
4854
|
+
module.exports = function(it){
|
|
4855
|
+
if(it == undefined)throw TypeError("Can't call method on " + it);
|
|
4856
|
+
return it;
|
|
4857
|
+
};
|
|
4858
|
+
|
|
4859
|
+
/***/ },
|
|
4860
|
+
/* 18 */
|
|
4861
|
+
/***/ function(module, exports) {
|
|
4862
|
+
|
|
4863
|
+
var hasOwnProperty = {}.hasOwnProperty;
|
|
4864
|
+
module.exports = function(it, key){
|
|
4865
|
+
return hasOwnProperty.call(it, key);
|
|
4866
|
+
};
|
|
4867
|
+
|
|
4868
|
+
/***/ },
|
|
4869
|
+
/* 19 */
|
|
4870
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
4871
|
+
|
|
4872
|
+
var anObject = __webpack_require__(16)
|
|
4873
|
+
, IE8_DOM_DEFINE = __webpack_require__(44)
|
|
4874
|
+
, toPrimitive = __webpack_require__(48)
|
|
4875
|
+
, dP = Object.defineProperty;
|
|
4876
|
+
|
|
4877
|
+
exports.f = __webpack_require__(10) ? Object.defineProperty : function defineProperty(O, P, Attributes){
|
|
4878
|
+
anObject(O);
|
|
4879
|
+
P = toPrimitive(P, true);
|
|
4880
|
+
anObject(Attributes);
|
|
4881
|
+
if(IE8_DOM_DEFINE)try {
|
|
4882
|
+
return dP(O, P, Attributes);
|
|
4883
|
+
} catch(e){ /* empty */ }
|
|
4884
|
+
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
|
|
4885
|
+
if('value' in Attributes)O[P] = Attributes.value;
|
|
4886
|
+
return O;
|
|
4887
|
+
};
|
|
4888
|
+
|
|
4889
|
+
/***/ },
|
|
4890
|
+
/* 20 */
|
|
4891
|
+
/***/ function(module, exports) {
|
|
4892
|
+
|
|
4893
|
+
// 7.1.4 ToInteger
|
|
4894
|
+
var ceil = Math.ceil
|
|
4895
|
+
, floor = Math.floor;
|
|
4896
|
+
module.exports = function(it){
|
|
4897
|
+
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
|
|
4898
|
+
};
|
|
4899
|
+
|
|
4900
|
+
/***/ },
|
|
4901
|
+
/* 21 */
|
|
4902
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
4903
|
+
|
|
4904
|
+
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
4905
|
+
var IObject = __webpack_require__(30)
|
|
4906
|
+
, defined = __webpack_require__(17);
|
|
4907
|
+
module.exports = function(it){
|
|
4908
|
+
return IObject(defined(it));
|
|
4909
|
+
};
|
|
4910
|
+
|
|
4911
|
+
/***/ },
|
|
4912
|
+
/* 22 */,
|
|
4903
4913
|
/* 23 */
|
|
4904
4914
|
/***/ function(module, exports, __webpack_require__) {
|
|
4905
4915
|
|
|
@@ -5749,7 +5759,7 @@ module.exports =
|
|
|
5749
5759
|
/***/ function(module, exports, __webpack_require__) {
|
|
5750
5760
|
|
|
5751
5761
|
// 7.1.13 ToObject(argument)
|
|
5752
|
-
var defined = __webpack_require__(
|
|
5762
|
+
var defined = __webpack_require__(17);
|
|
5753
5763
|
module.exports = function(it){
|
|
5754
5764
|
return Object(defined(it));
|
|
5755
5765
|
};
|
|
@@ -5878,6 +5888,7 @@ module.exports =
|
|
|
5878
5888
|
var CLEAR_WIZARD = exports.CLEAR_WIZARD = 'CLEAR_WIZARD';
|
|
5879
5889
|
var SET_OAUTH_URL = exports.SET_OAUTH_URL = 'SET_OAUTH_URL';
|
|
5880
5890
|
var GETTING_OAUTH_URL = exports.GETTING_OAUTH_URL = 'GETTING_OAUTH_URL';
|
|
5891
|
+
var SET_WIZARD_SAVED_CREDENTIALS = exports.SET_WIZARD_SAVED_CREDENTIALS = 'SET_WIZARD_SAVED_CREDENTIALS';
|
|
5881
5892
|
|
|
5882
5893
|
/***/ },
|
|
5883
5894
|
/* 40 */
|
|
@@ -5922,7 +5933,7 @@ module.exports =
|
|
|
5922
5933
|
|
|
5923
5934
|
// false -> Array#indexOf
|
|
5924
5935
|
// true -> Array#includes
|
|
5925
|
-
var toIObject = __webpack_require__(
|
|
5936
|
+
var toIObject = __webpack_require__(21)
|
|
5926
5937
|
, toLength = __webpack_require__(47)
|
|
5927
5938
|
, toIndex = __webpack_require__(46);
|
|
5928
5939
|
module.exports = function(IS_INCLUDES){
|
|
@@ -5979,8 +5990,8 @@ module.exports =
|
|
|
5979
5990
|
/* 45 */
|
|
5980
5991
|
/***/ function(module, exports, __webpack_require__) {
|
|
5981
5992
|
|
|
5982
|
-
var has = __webpack_require__(
|
|
5983
|
-
, toIObject = __webpack_require__(
|
|
5993
|
+
var has = __webpack_require__(18)
|
|
5994
|
+
, toIObject = __webpack_require__(21)
|
|
5984
5995
|
, arrayIndexOf = __webpack_require__(42)(false)
|
|
5985
5996
|
, IE_PROTO = __webpack_require__(24)('IE_PROTO');
|
|
5986
5997
|
|
|
@@ -6001,7 +6012,7 @@ module.exports =
|
|
|
6001
6012
|
/* 46 */
|
|
6002
6013
|
/***/ function(module, exports, __webpack_require__) {
|
|
6003
6014
|
|
|
6004
|
-
var toInteger = __webpack_require__(
|
|
6015
|
+
var toInteger = __webpack_require__(20)
|
|
6005
6016
|
, max = Math.max
|
|
6006
6017
|
, min = Math.min;
|
|
6007
6018
|
module.exports = function(index, length){
|
|
@@ -6014,7 +6025,7 @@ module.exports =
|
|
|
6014
6025
|
/***/ function(module, exports, __webpack_require__) {
|
|
6015
6026
|
|
|
6016
6027
|
// 7.1.15 ToLength
|
|
6017
|
-
var toInteger = __webpack_require__(
|
|
6028
|
+
var toInteger = __webpack_require__(20)
|
|
6018
6029
|
, min = Math.min;
|
|
6019
6030
|
module.exports = function(it){
|
|
6020
6031
|
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
|
@@ -6338,7 +6349,7 @@ module.exports =
|
|
|
6338
6349
|
}
|
|
6339
6350
|
}, {
|
|
6340
6351
|
key: 'addDefaultEntity',
|
|
6341
|
-
value: function addDefaultEntity(groupIndex, v, rscIndex, section, rtid) {
|
|
6352
|
+
value: function addDefaultEntity(groupIndex, v, rscIndex, section, rtid, parentRefList) {
|
|
6342
6353
|
var _this3 = this;
|
|
6343
6354
|
|
|
6344
6355
|
var resourceGroups = this.props.resourceGroups;
|
|
@@ -6352,7 +6363,7 @@ module.exports =
|
|
|
6352
6363
|
}, 40);
|
|
6353
6364
|
}
|
|
6354
6365
|
|
|
6355
|
-
this.props.addDefaultEntity(groupIndex, v, rscIndex, section, rtid);
|
|
6366
|
+
this.props.addDefaultEntity(groupIndex, v, rscIndex, section, rtid, parentRefList);
|
|
6356
6367
|
}
|
|
6357
6368
|
}, {
|
|
6358
6369
|
key: 'unPick',
|
|
@@ -6396,7 +6407,6 @@ module.exports =
|
|
|
6396
6407
|
}, {
|
|
6397
6408
|
key: 'removeEntity',
|
|
6398
6409
|
value: function removeEntity(e, resourceGroupIndex, rscName, entityIndex) {
|
|
6399
|
-
//console.log(this.state.selectedEntities[resourceGroupIndex].name)
|
|
6400
6410
|
if (entityIndex === 0) {
|
|
6401
6411
|
this.setState({ selectedEntities: [{ name: '' }] });
|
|
6402
6412
|
}
|
|
@@ -6602,6 +6612,7 @@ module.exports =
|
|
|
6602
6612
|
Object.defineProperty(exports, "__esModule", {
|
|
6603
6613
|
value: true
|
|
6604
6614
|
});
|
|
6615
|
+
|
|
6605
6616
|
var nest = {
|
|
6606
6617
|
|
|
6607
6618
|
expand: function expand(v, parents, expandedProp) {
|
|
@@ -19552,6 +19563,7 @@ module.exports =
|
|
|
19552
19563
|
exports.callPostBundles = callPostBundles;
|
|
19553
19564
|
exports.callPostMapping = callPostMapping;
|
|
19554
19565
|
exports.callPostProductizedIntegration = callPostProductizedIntegration;
|
|
19566
|
+
exports.callUpdateProductizedIntegration = callUpdateProductizedIntegration;
|
|
19555
19567
|
exports.callGenerateRecipe = callGenerateRecipe;
|
|
19556
19568
|
exports.submitWizardData = submitWizardData;
|
|
19557
19569
|
exports.callExecuteTransformer = callExecuteTransformer;
|
|
@@ -19564,6 +19576,8 @@ module.exports =
|
|
|
19564
19576
|
exports.callGetBundles = callGetBundles;
|
|
19565
19577
|
exports.callGetMapping = callGetMapping;
|
|
19566
19578
|
exports.postCredentials = postCredentials;
|
|
19579
|
+
exports.callGetCredentials = callGetCredentials;
|
|
19580
|
+
exports.tryGetCredentials = tryGetCredentials;
|
|
19567
19581
|
exports.callGetProviderMetadata = callGetProviderMetadata;
|
|
19568
19582
|
exports.callGetTrigger = callGetTrigger;
|
|
19569
19583
|
exports.setWizardLoaded = setWizardLoaded;
|
|
@@ -19854,11 +19868,32 @@ module.exports =
|
|
|
19854
19868
|
};
|
|
19855
19869
|
}
|
|
19856
19870
|
|
|
19857
|
-
function
|
|
19871
|
+
function callUpdateProductizedIntegration(tenantId, appId, schemaMappingGuid, bundlePackGuid, configuration, title, typeGuid, piGuid) {
|
|
19858
19872
|
return function (dispatch, getState, api) {
|
|
19859
19873
|
var _getState12 = getState(),
|
|
19860
19874
|
config = _getState12.config;
|
|
19861
19875
|
|
|
19876
|
+
var data = {
|
|
19877
|
+
schemaMappingGuid: schemaMappingGuid,
|
|
19878
|
+
bundlePackGuid: bundlePackGuid,
|
|
19879
|
+
integrationTypeGuid: typeGuid,
|
|
19880
|
+
name: title,
|
|
19881
|
+
configuration: configuration
|
|
19882
|
+
};
|
|
19883
|
+
return api.put(tenantId + '/' + appId + '/productizedintegrations/' + piGuid, {
|
|
19884
|
+
endpoint: config.TRANS_API_URL,
|
|
19885
|
+
data: data
|
|
19886
|
+
}).then(function (pi) {
|
|
19887
|
+
return pi;
|
|
19888
|
+
});
|
|
19889
|
+
};
|
|
19890
|
+
}
|
|
19891
|
+
|
|
19892
|
+
function callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, piGuid, mappingGuid, destinationMetadata) {
|
|
19893
|
+
return function (dispatch, getState, api) {
|
|
19894
|
+
var _getState13 = getState(),
|
|
19895
|
+
config = _getState13.config;
|
|
19896
|
+
|
|
19862
19897
|
return api.post(tenantId + '/' + appId + '/productizedintegrations/' + piGuid + '/generate', {
|
|
19863
19898
|
endpoint: config.TRANS_API_URL,
|
|
19864
19899
|
data: {
|
|
@@ -19874,12 +19909,17 @@ module.exports =
|
|
|
19874
19909
|
};
|
|
19875
19910
|
}
|
|
19876
19911
|
|
|
19877
|
-
function submitWizardData(tenantId, appId, bundles, mappings, configuration, title, deployment, typeId, typeGuid, onPiPost, onGenerate, onFinish, destinationMetadata) {
|
|
19912
|
+
function submitWizardData(tenantId, appId, bundles, mappings, configuration, title, deployment, typeId, typeGuid, piGuid, onPiPost, onGenerate, onFinish, destinationMetadata) {
|
|
19878
19913
|
return function (dispatch) {
|
|
19879
19914
|
var map = {};
|
|
19880
19915
|
return Promise.all([dispatch(callPostBundles(tenantId, appId, bundles)), dispatch(callPostMapping(tenantId, appId, mappings)), dispatch(createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata))]).then(function (r) {
|
|
19881
19916
|
map = r[1];
|
|
19882
|
-
|
|
19917
|
+
var bundle = r[0];
|
|
19918
|
+
if (piGuid) {
|
|
19919
|
+
return dispatch(callUpdateProductizedIntegration(tenantId, appId, map.schemaMappingGuid, bundle.bundlePackGuid, configuration, title, typeGuid, piGuid));
|
|
19920
|
+
} else {
|
|
19921
|
+
return dispatch(callPostProductizedIntegration(tenantId, appId, map.schemaMappingGuid, bundle.bundlePackGuid, configuration, title, typeGuid));
|
|
19922
|
+
}
|
|
19883
19923
|
}).then(function (pi) {
|
|
19884
19924
|
if (map.mappings && map.mappings.length > 0 && deployment) {
|
|
19885
19925
|
dispatch(callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, pi.productizedIntegrationGuid, map.schemaMappingGuid, destinationMetadata)).then(function (generatedRecipe) {
|
|
@@ -19905,8 +19945,8 @@ module.exports =
|
|
|
19905
19945
|
|
|
19906
19946
|
function callExecuteTransformer(transId) {
|
|
19907
19947
|
return function (dispatch, getState, api) {
|
|
19908
|
-
var
|
|
19909
|
-
config =
|
|
19948
|
+
var _getState14 = getState(),
|
|
19949
|
+
config = _getState14.config;
|
|
19910
19950
|
|
|
19911
19951
|
var query = '';
|
|
19912
19952
|
var d = new Date();
|
|
@@ -19930,8 +19970,8 @@ module.exports =
|
|
|
19930
19970
|
|
|
19931
19971
|
function callLookupLogData(externalExecutionId, index, onFinish, generatedRecipe, piGuid, mapGuid) {
|
|
19932
19972
|
return function (dispatch, getState, api) {
|
|
19933
|
-
var
|
|
19934
|
-
config =
|
|
19973
|
+
var _getState15 = getState(),
|
|
19974
|
+
config = _getState15.config;
|
|
19935
19975
|
|
|
19936
19976
|
return api.get('logs/transformers/externalExecutionId/' + externalExecutionId, {
|
|
19937
19977
|
endpoint: config.TRANS_API_URL
|
|
@@ -19974,8 +20014,8 @@ module.exports =
|
|
|
19974
20014
|
};
|
|
19975
20015
|
}
|
|
19976
20016
|
return function (dispatch, getState, api) {
|
|
19977
|
-
var
|
|
19978
|
-
config =
|
|
20017
|
+
var _getState16 = getState(),
|
|
20018
|
+
config = _getState16.config;
|
|
19979
20019
|
|
|
19980
20020
|
return api.post('createtrigger', {
|
|
19981
20021
|
endpoint: config.TRANS_API_URL,
|
|
@@ -19988,8 +20028,8 @@ module.exports =
|
|
|
19988
20028
|
|
|
19989
20029
|
function callDeployTrigger(generatedRecipe, piGuid, mapGuid, onFinish) {
|
|
19990
20030
|
return function (dispatch, getState, api) {
|
|
19991
|
-
var
|
|
19992
|
-
config =
|
|
20031
|
+
var _getState17 = getState(),
|
|
20032
|
+
config = _getState17.config;
|
|
19993
20033
|
|
|
19994
20034
|
return api.put('transformer/deploy/' + generatedRecipe.Id, {
|
|
19995
20035
|
endpoint: config.TRANS_API_URL,
|
|
@@ -20023,15 +20063,13 @@ module.exports =
|
|
|
20023
20063
|
// a wizard config already exists
|
|
20024
20064
|
var source = metadataEndpoints.source,
|
|
20025
20065
|
sourceApi = metadataEndpoints.sourceApi,
|
|
20026
|
-
sourceEnv = metadataEndpoints.sourceEnv,
|
|
20027
20066
|
destination = metadataEndpoints.destination,
|
|
20028
|
-
destinationApi = metadataEndpoints.destinationApi
|
|
20029
|
-
destinationEnv = metadataEndpoints.destinationEnv;
|
|
20067
|
+
destinationApi = metadataEndpoints.destinationApi;
|
|
20030
20068
|
|
|
20031
20069
|
if (piGuid) {
|
|
20032
20070
|
return function (dispatch, getState, api) {
|
|
20033
|
-
var
|
|
20034
|
-
config =
|
|
20071
|
+
var _getState18 = getState(),
|
|
20072
|
+
config = _getState18.config;
|
|
20035
20073
|
|
|
20036
20074
|
return api.get(tenantId + '/' + accountId + '/productizedintegrations', {
|
|
20037
20075
|
endpoint: config.TRANS_API_URL
|
|
@@ -20055,19 +20093,17 @@ module.exports =
|
|
|
20055
20093
|
type: types.SET_WIZARD_SAVED_CONFIGURATION,
|
|
20056
20094
|
data: config
|
|
20057
20095
|
});
|
|
20058
|
-
return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, source, sourceApi, savedSourceEndpoint,
|
|
20096
|
+
return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, source, sourceApi, savedSourceEndpoint, false)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', providers.destination, destination, destinationApi, savedDestinationEndpoint, false)), dispatch(callGetMapping(tenantId, accountId, PI.SchemaMappingGuid)), dispatch(callGetBundles(tenantId, accountId, PI.BundlePackGuid)), dispatch(callGetTrigger(PI.TransformerBaseId)), dispatch(callGetCredentials(tenantId, accountId, providers))]);
|
|
20059
20097
|
});
|
|
20060
20098
|
};
|
|
20061
20099
|
} else return function (dispatch) {
|
|
20062
20100
|
// FIRST TIME!
|
|
20063
|
-
return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, source, sourceApi, null,
|
|
20101
|
+
return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, source, sourceApi, null, false)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', providers.destination, destination, destinationApi, null, false))]);
|
|
20064
20102
|
};
|
|
20065
20103
|
}
|
|
20066
20104
|
|
|
20067
|
-
function tryGetMetadata(tenantId, appId, mode, providerType, urlSuffix, apiUrl, savedEndpoint,
|
|
20068
|
-
if
|
|
20069
|
-
return Promise.resolve(null);
|
|
20070
|
-
};
|
|
20105
|
+
function tryGetMetadata(tenantId, appId, mode, providerType, urlSuffix, apiUrl, savedEndpoint, isFromEnvStep) {
|
|
20106
|
+
//if(isFromEnvStep && !savedEndpoint) return () => Promise.resolve(null)
|
|
20071
20107
|
if (urlSuffix) {
|
|
20072
20108
|
return function (dispatch) {
|
|
20073
20109
|
return dispatch(callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType));
|
|
@@ -20084,8 +20120,8 @@ module.exports =
|
|
|
20084
20120
|
function callGetBundles(tenantId, accountId, bundlePackGuid) {
|
|
20085
20121
|
if (bundlePackGuid) {
|
|
20086
20122
|
return function (dispatch, getState, api) {
|
|
20087
|
-
var
|
|
20088
|
-
config =
|
|
20123
|
+
var _getState19 = getState(),
|
|
20124
|
+
config = _getState19.config;
|
|
20089
20125
|
|
|
20090
20126
|
return api.get(tenantId + '/' + accountId + '/bundle/' + bundlePackGuid, {
|
|
20091
20127
|
endpoint: config.TRANS_API_URL
|
|
@@ -20104,8 +20140,8 @@ module.exports =
|
|
|
20104
20140
|
function callGetMapping(tenantId, accountId, mappingGuid) {
|
|
20105
20141
|
if (mappingGuid) {
|
|
20106
20142
|
return function (dispatch, getState, api) {
|
|
20107
|
-
var
|
|
20108
|
-
config =
|
|
20143
|
+
var _getState20 = getState(),
|
|
20144
|
+
config = _getState20.config;
|
|
20109
20145
|
|
|
20110
20146
|
return api.get(tenantId + '/' + accountId + '/schemamappings/' + mappingGuid, {
|
|
20111
20147
|
endpoint: config.TRANS_API_URL
|
|
@@ -20123,8 +20159,8 @@ module.exports =
|
|
|
20123
20159
|
|
|
20124
20160
|
function postCredentials(tenantId, appId, providerType, url, credentials) {
|
|
20125
20161
|
return function (dispatch, getState, api) {
|
|
20126
|
-
var
|
|
20127
|
-
config =
|
|
20162
|
+
var _getState21 = getState(),
|
|
20163
|
+
config = _getState21.config;
|
|
20128
20164
|
|
|
20129
20165
|
return api.post(tenantId + '/' + appId + '/credentials', {
|
|
20130
20166
|
endpoint: config.TRANS_API_URL,
|
|
@@ -20140,6 +20176,35 @@ module.exports =
|
|
|
20140
20176
|
};
|
|
20141
20177
|
}
|
|
20142
20178
|
|
|
20179
|
+
function callGetCredentials(tenantId, appId, providers) {
|
|
20180
|
+
return function (dispatch, getState, api) {
|
|
20181
|
+
return Promise.all([dispatch(tryGetCredentials(tenantId, appId, providers.source, providers.sourceCredentials)), dispatch(tryGetCredentials(tenantId, appId, providers.destination, providers.destinationCredentials))]).then(function (res) {
|
|
20182
|
+
dispatch({
|
|
20183
|
+
type: types.SET_WIZARD_SAVED_CREDENTIALS,
|
|
20184
|
+
data: {
|
|
20185
|
+
source: res[0] && res[0].credentialsJson,
|
|
20186
|
+
destination: res[1] && res[1].credentialsJson
|
|
20187
|
+
}
|
|
20188
|
+
});
|
|
20189
|
+
});
|
|
20190
|
+
};
|
|
20191
|
+
}
|
|
20192
|
+
|
|
20193
|
+
function tryGetCredentials(tenantId, appId, credentialType, creds) {
|
|
20194
|
+
return function (dispatch, getState, api) {
|
|
20195
|
+
var _getState22 = getState(),
|
|
20196
|
+
config = _getState22.config;
|
|
20197
|
+
|
|
20198
|
+
if (creds && creds.length > 0 && creds[0] !== 'Oauth') {
|
|
20199
|
+
return api.get(tenantId + '/' + appId + '/credentials/' + credentialType, {
|
|
20200
|
+
endpoint: config.TRANS_API_URL
|
|
20201
|
+
});
|
|
20202
|
+
} else {
|
|
20203
|
+
return Promise.resolve(null);
|
|
20204
|
+
}
|
|
20205
|
+
};
|
|
20206
|
+
}
|
|
20207
|
+
|
|
20143
20208
|
function callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType) {
|
|
20144
20209
|
return function (dispatch, getState, api) {
|
|
20145
20210
|
dispatch({
|
|
@@ -20147,8 +20212,8 @@ module.exports =
|
|
|
20147
20212
|
mode: mode
|
|
20148
20213
|
});
|
|
20149
20214
|
|
|
20150
|
-
var
|
|
20151
|
-
config =
|
|
20215
|
+
var _getState23 = getState(),
|
|
20216
|
+
config = _getState23.config;
|
|
20152
20217
|
|
|
20153
20218
|
return api.get(tenantId + '/' + appId + '/' + urlSuffix, {
|
|
20154
20219
|
endpoint: config[apiUrl]
|
|
@@ -20170,8 +20235,8 @@ module.exports =
|
|
|
20170
20235
|
|
|
20171
20236
|
function callGetTrigger(transBaseId) {
|
|
20172
20237
|
return function (dispatch, getState, api) {
|
|
20173
|
-
var
|
|
20174
|
-
config =
|
|
20238
|
+
var _getState24 = getState(),
|
|
20239
|
+
config = _getState24.config;
|
|
20175
20240
|
|
|
20176
20241
|
return api.get('gettrigger/' + transBaseId, {
|
|
20177
20242
|
endpoint: config.TRANS_API_URL
|
|
@@ -21252,7 +21317,9 @@ module.exports =
|
|
|
21252
21317
|
step = _props3.step,
|
|
21253
21318
|
customizingGroup = _props3.customizingGroup,
|
|
21254
21319
|
inputs = _props3.inputs;
|
|
21255
|
-
var
|
|
21320
|
+
var _state = this.state,
|
|
21321
|
+
selectedField = _state.selectedField,
|
|
21322
|
+
selectedFieldParents = _state.selectedFieldParents;
|
|
21256
21323
|
|
|
21257
21324
|
var Button = inputs.Button;
|
|
21258
21325
|
var Input = inputs.Input;
|
|
@@ -21271,7 +21338,10 @@ module.exports =
|
|
|
21271
21338
|
index: i
|
|
21272
21339
|
};
|
|
21273
21340
|
if (m.resourceFromName === selectedEntity.name) {
|
|
21274
|
-
filteredMappings[m.propertyToName] =
|
|
21341
|
+
filteredMappings[m.propertyToName] = {
|
|
21342
|
+
propFrom: m.propertyFromName,
|
|
21343
|
+
parentsFrom: m.propertyFromParents || []
|
|
21344
|
+
};
|
|
21275
21345
|
}
|
|
21276
21346
|
});
|
|
21277
21347
|
|
|
@@ -21324,7 +21394,7 @@ module.exports =
|
|
|
21324
21394
|
onClick: function onClick() {
|
|
21325
21395
|
_this4.scrollToTop(_this4['scroller-' + ii], 18, i * 43 + 6);
|
|
21326
21396
|
_this4.props.pickEntity({ name: rsc.name, isDestinationEntity: rsc.provider === step.destinationProvider });
|
|
21327
|
-
_this4.setState({ selectedField: null });
|
|
21397
|
+
_this4.setState({ selectedField: null, selectedFieldParents: null });
|
|
21328
21398
|
}
|
|
21329
21399
|
},
|
|
21330
21400
|
_react2.default.createElement(
|
|
@@ -21354,7 +21424,9 @@ module.exports =
|
|
|
21354
21424
|
schema && schema.find(function (r) {
|
|
21355
21425
|
return r.name === rsc.name;
|
|
21356
21426
|
}).properties.map(function (field, ii) {
|
|
21357
|
-
return _react2.default.createElement(_nestedField2.default, { key: ii, field: field,
|
|
21427
|
+
return _react2.default.createElement(_nestedField2.default, { key: ii, field: field,
|
|
21428
|
+
selectedField: selectedField,
|
|
21429
|
+
selectedFieldParents: selectedFieldParents,
|
|
21358
21430
|
filteredMappings: filteredMappings, parents: [],
|
|
21359
21431
|
onExpand: function onExpand(expanded) {
|
|
21360
21432
|
return _this4.setState({ expanded: expanded });
|
|
@@ -22025,6 +22097,15 @@ module.exports =
|
|
|
22025
22097
|
joinKeyLabel += rsc.joinKeyName;
|
|
22026
22098
|
}
|
|
22027
22099
|
|
|
22100
|
+
var isDependency = false;
|
|
22101
|
+
group.resources && group.resources.forEach(function (gr) {
|
|
22102
|
+
if (gr.parentRefList && gr.parentRefList.find(function (pr) {
|
|
22103
|
+
return pr === rsc.name;
|
|
22104
|
+
})) {
|
|
22105
|
+
isDependency = true;
|
|
22106
|
+
}
|
|
22107
|
+
});
|
|
22108
|
+
|
|
22028
22109
|
return _react2.default.createElement(
|
|
22029
22110
|
_reactDraggable2.default,
|
|
22030
22111
|
{ axis: 'y', bounds: 'parent', key: i, handle: '.drag-handle',
|
|
@@ -22059,13 +22140,14 @@ module.exports =
|
|
|
22059
22140
|
),
|
|
22060
22141
|
_react2.default.createElement(
|
|
22061
22142
|
'div',
|
|
22062
|
-
{ className: 'accordion-panel-close'
|
|
22143
|
+
{ className: isDependency ? 'accordion-panel-close-disabled' : 'accordion-panel-close',
|
|
22144
|
+
onClick: function onClick(e) {
|
|
22063
22145
|
return didRemoveEntity(e, resourceGroupIndex, rsc.name, i);
|
|
22064
22146
|
} },
|
|
22065
22147
|
_react2.default.createElement(
|
|
22066
22148
|
'svg',
|
|
22067
22149
|
{ style: { width: 18, height: 18 }, viewBox: '0 0 60 60' },
|
|
22068
|
-
_react2.default.createElement('path', { style: {
|
|
22150
|
+
_react2.default.createElement('path', { style: { strokeWidth: 5, strokeLinecap: 'round' },
|
|
22069
22151
|
d: 'M 15.674663,15.572746 L 44.587629,44.485711 M 45.118838,15.420972 L 15.522889,45.016920' })
|
|
22070
22152
|
)
|
|
22071
22153
|
),
|
|
@@ -22200,8 +22282,8 @@ module.exports =
|
|
|
22200
22282
|
'div',
|
|
22201
22283
|
{ style: { display: 'inline-block', marginLeft: 11 } },
|
|
22202
22284
|
_react2.default.createElement(_selectWrapper2.default, { label: 'Add Data Source', style: { height: 40 }, onClick: showOverflow,
|
|
22203
|
-
onSelect: function onSelect(v, i, rtid, section) {
|
|
22204
|
-
|
|
22285
|
+
onSelect: function onSelect(v, i, rtid, section, parents, parentRefList) {
|
|
22286
|
+
addDefaultEntity(resourceGroupIndex, v, i, section, rtid, parentRefList);
|
|
22205
22287
|
}, type: 'neutral', inputs: inputs
|
|
22206
22288
|
//selectedValues={resourceGroups && resourceGroups[resourceGroupIndex] &&
|
|
22207
22289
|
//resourceGroups[resourceGroupIndex].resources}
|
|
@@ -23003,7 +23085,7 @@ module.exports =
|
|
|
23003
23085
|
|
|
23004
23086
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
23005
23087
|
|
|
23006
|
-
var _loadData = __webpack_require__(
|
|
23088
|
+
var _loadData = __webpack_require__(15);
|
|
23007
23089
|
|
|
23008
23090
|
var _loadData2 = _interopRequireDefault(_loadData);
|
|
23009
23091
|
|
|
@@ -23242,7 +23324,7 @@ module.exports =
|
|
|
23242
23324
|
|
|
23243
23325
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
23244
23326
|
|
|
23245
|
-
var _loadData = __webpack_require__(
|
|
23327
|
+
var _loadData = __webpack_require__(15);
|
|
23246
23328
|
|
|
23247
23329
|
var _loadData2 = _interopRequireDefault(_loadData);
|
|
23248
23330
|
|
|
@@ -23606,7 +23688,7 @@ module.exports =
|
|
|
23606
23688
|
}).map(function (rsc, i) {
|
|
23607
23689
|
return _react2.default.createElement(
|
|
23608
23690
|
'li',
|
|
23609
|
-
{ key: i, style: { paddingLeft: 10 } },
|
|
23691
|
+
{ key: i, style: { paddingLeft: rsc.parentRefList ? rsc.parentRefList.length * 12 + 10 : 10 } },
|
|
23610
23692
|
_react2.default.createElement(
|
|
23611
23693
|
'a',
|
|
23612
23694
|
{ onClick: function onClick() {
|
|
@@ -23799,7 +23881,7 @@ module.exports =
|
|
|
23799
23881
|
|
|
23800
23882
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
23801
23883
|
|
|
23802
|
-
var _loadData = __webpack_require__(
|
|
23884
|
+
var _loadData = __webpack_require__(15);
|
|
23803
23885
|
|
|
23804
23886
|
var _loadData2 = _interopRequireDefault(_loadData);
|
|
23805
23887
|
|
|
@@ -24088,6 +24170,10 @@ module.exports =
|
|
|
24088
24170
|
|
|
24089
24171
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
24090
24172
|
|
|
24173
|
+
var _loadData = __webpack_require__(15);
|
|
24174
|
+
|
|
24175
|
+
var _loadData2 = _interopRequireDefault(_loadData);
|
|
24176
|
+
|
|
24091
24177
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24092
24178
|
|
|
24093
24179
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -24127,10 +24213,14 @@ module.exports =
|
|
|
24127
24213
|
value: function componentDidMount() {
|
|
24128
24214
|
var _props = this.props,
|
|
24129
24215
|
step = _props.step,
|
|
24216
|
+
wizard = _props.wizard,
|
|
24130
24217
|
change = _props.change,
|
|
24131
|
-
formValues = _props.formValues
|
|
24218
|
+
formValues = _props.formValues,
|
|
24219
|
+
actions = _props.actions;
|
|
24132
24220
|
|
|
24133
|
-
|
|
24221
|
+
if (!wizard.dataLoaded) {
|
|
24222
|
+
(0, _loadData2.default)(step, wizard, change, formValues, actions);
|
|
24223
|
+
}
|
|
24134
24224
|
}
|
|
24135
24225
|
}, {
|
|
24136
24226
|
key: 'render',
|
|
@@ -24139,7 +24229,8 @@ module.exports =
|
|
|
24139
24229
|
inputs = _props2.inputs,
|
|
24140
24230
|
handleSubmit = _props2.handleSubmit,
|
|
24141
24231
|
nav = _props2.nav,
|
|
24142
|
-
reset = _props2.reset
|
|
24232
|
+
reset = _props2.reset,
|
|
24233
|
+
formValues = _props2.formValues;
|
|
24143
24234
|
|
|
24144
24235
|
return _react2.default.createElement(
|
|
24145
24236
|
'form',
|
|
@@ -24155,12 +24246,13 @@ module.exports =
|
|
|
24155
24246
|
_react2.default.createElement(
|
|
24156
24247
|
'div',
|
|
24157
24248
|
{ style: { marginLeft: 16 } },
|
|
24158
|
-
_react2.default.createElement(_reduxForm.Field, { name: 'title', type: 'text', component: inputs.rfInput,
|
|
24249
|
+
_react2.default.createElement(_reduxForm.Field, { name: 'title', type: 'text', component: inputs.rfInput,
|
|
24250
|
+
label: 'Integration Name' })
|
|
24159
24251
|
),
|
|
24160
24252
|
_react2.default.createElement('br', null),
|
|
24161
24253
|
_react2.default.createElement(_reduxForm.Field, { name: 'customer', component: renderError }),
|
|
24162
24254
|
_react2.default.createElement('br', null),
|
|
24163
|
-
_react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, reset: reset, nav: nav, inputs: inputs }),
|
|
24255
|
+
_react2.default.createElement(_navButtons2.default, { nextDisabled: !formValues['title'], handleSubmit: handleSubmit, reset: reset, nav: nav, inputs: inputs }),
|
|
24164
24256
|
_react2.default.createElement('br', null),
|
|
24165
24257
|
_react2.default.createElement('br', null)
|
|
24166
24258
|
);
|
|
@@ -24433,7 +24525,7 @@ module.exports =
|
|
|
24433
24525
|
|
|
24434
24526
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
24435
24527
|
|
|
24436
|
-
var _loadData = __webpack_require__(
|
|
24528
|
+
var _loadData = __webpack_require__(15);
|
|
24437
24529
|
|
|
24438
24530
|
var _loadData2 = _interopRequireDefault(_loadData);
|
|
24439
24531
|
|
|
@@ -24673,7 +24765,7 @@ module.exports =
|
|
|
24673
24765
|
|
|
24674
24766
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
24675
24767
|
|
|
24676
|
-
var _loadData = __webpack_require__(
|
|
24768
|
+
var _loadData = __webpack_require__(15);
|
|
24677
24769
|
|
|
24678
24770
|
var _loadData2 = _interopRequireDefault(_loadData);
|
|
24679
24771
|
|
|
@@ -24817,7 +24909,7 @@ module.exports =
|
|
|
24817
24909
|
}
|
|
24818
24910
|
}, {
|
|
24819
24911
|
key: 'addDefaultEntity',
|
|
24820
|
-
value: function addDefaultEntity(groupIndex, v, rscIndex, section, rtid) {
|
|
24912
|
+
value: function addDefaultEntity(groupIndex, v, rscIndex, section, rtid, parentRefList) {
|
|
24821
24913
|
var _props5 = this.props,
|
|
24822
24914
|
change = _props5.change,
|
|
24823
24915
|
formValues = _props5.formValues;
|
|
@@ -24830,21 +24922,32 @@ module.exports =
|
|
|
24830
24922
|
});
|
|
24831
24923
|
if (entityExists) return;
|
|
24832
24924
|
|
|
24833
|
-
if (!group.resources) {
|
|
24834
|
-
group.resources = [
|
|
24835
|
-
name: v,
|
|
24836
|
-
provider: section
|
|
24837
|
-
}, rtid && { recordTypeId: rtid })];
|
|
24838
|
-
} else {
|
|
24839
|
-
group.resources.push(Object.assign({
|
|
24840
|
-
name: v,
|
|
24841
|
-
provider: section,
|
|
24842
|
-
joinType: 'LEFT JOIN'
|
|
24843
|
-
}, rtid && { recordTypeId: rtid }));
|
|
24844
|
-
}
|
|
24845
|
-
if (group.resources.length === 1) {
|
|
24925
|
+
if (!group.resources || group.resources && group.resources.length === 0) {
|
|
24926
|
+
group.resources = [];
|
|
24846
24927
|
this.openConnectionModal(group, groupIndex);
|
|
24847
24928
|
}
|
|
24929
|
+
|
|
24930
|
+
if (parentRefList && parentRefList.length > 0) {
|
|
24931
|
+
parentRefList.forEach(function (pr, i) {
|
|
24932
|
+
if (!group.resources.find(function (r) {
|
|
24933
|
+
return r.name === pr;
|
|
24934
|
+
})) {
|
|
24935
|
+
group.resources.push({
|
|
24936
|
+
name: pr,
|
|
24937
|
+
provider: section,
|
|
24938
|
+
joinType: 'LEFT JOIN',
|
|
24939
|
+
parentRefList: parentRefList.filter(function (p, idx) {
|
|
24940
|
+
return idx < i;
|
|
24941
|
+
})
|
|
24942
|
+
});
|
|
24943
|
+
}
|
|
24944
|
+
});
|
|
24945
|
+
}
|
|
24946
|
+
group.resources.push(Object.assign({
|
|
24947
|
+
name: v,
|
|
24948
|
+
provider: section,
|
|
24949
|
+
joinType: 'LEFT JOIN'
|
|
24950
|
+
}, parentRefList && { parentRefList: parentRefList }, rtid && { recordTypeId: rtid }));
|
|
24848
24951
|
change('resourceGroups', resourceGroups);
|
|
24849
24952
|
this.forceUpdate();
|
|
24850
24953
|
}
|
|
@@ -25157,17 +25260,21 @@ module.exports =
|
|
|
25157
25260
|
var SourceField = function SourceField(props) {
|
|
25158
25261
|
var field = props.field,
|
|
25159
25262
|
selectedField = props.selectedField,
|
|
25263
|
+
selectedFieldParents = props.selectedFieldParents,
|
|
25160
25264
|
filteredMappings = props.filteredMappings,
|
|
25161
25265
|
click = props.click,
|
|
25162
25266
|
onExpand = props.onExpand,
|
|
25163
25267
|
expanded = props.expanded,
|
|
25164
25268
|
parents = props.parents;
|
|
25165
25269
|
|
|
25166
|
-
var isMapped = filteredMappings && Object.values(filteredMappings).
|
|
25270
|
+
var isMapped = filteredMappings && Object.values(filteredMappings).find(function (fm) {
|
|
25271
|
+
return fm.propFrom === field.label && JSON.stringify(fm.parentsFrom) === JSON.stringify(parents);
|
|
25272
|
+
}) ? true : false;
|
|
25273
|
+
var isSelected = selectedField && selectedField === field.label && JSON.stringify(selectedFieldParents) === JSON.stringify(parents);
|
|
25167
25274
|
var style = {
|
|
25168
25275
|
paddingLeft: 5,
|
|
25169
|
-
background:
|
|
25170
|
-
fontWeight:
|
|
25276
|
+
background: isSelected ? '#dfe0e0' : 'initial',
|
|
25277
|
+
fontWeight: isSelected || isMapped ? 'bold' : 'normal'
|
|
25171
25278
|
};
|
|
25172
25279
|
if (isMapped) {
|
|
25173
25280
|
style['color'] = 'black';
|
|
@@ -25226,6 +25333,7 @@ module.exports =
|
|
|
25226
25333
|
{ className: 'fields-expander' },
|
|
25227
25334
|
field.object && field.object.properties.map(function (nestedField, i) {
|
|
25228
25335
|
return _react2.default.createElement(SourceField, { key: i, field: nestedField, selectedField: selectedField,
|
|
25336
|
+
selectedFieldParents: selectedFieldParents,
|
|
25229
25337
|
filteredMappings: filteredMappings, parents: parents.concat(field.label),
|
|
25230
25338
|
click: click, onExpand: onExpand, expanded: expanded });
|
|
25231
25339
|
})
|
|
@@ -25852,10 +25960,11 @@ module.exports =
|
|
|
25852
25960
|
accountId = _props2.accountId,
|
|
25853
25961
|
tenantId = _props2.tenantId,
|
|
25854
25962
|
wizardConfig = _props2.wizardConfig,
|
|
25855
|
-
onPiPost = _props2.onPiPost
|
|
25963
|
+
onPiPost = _props2.onPiPost,
|
|
25964
|
+
piGuid = _props2.piGuid;
|
|
25856
25965
|
|
|
25857
25966
|
if (true) {
|
|
25858
|
-
actions.submitWizardData(tenantId, accountId, bundles, mappings, configuration,
|
|
25967
|
+
actions.submitWizardData(tenantId, accountId, bundles, mappings, configuration, formValues.title || wizardConfig.title || 'LingkSync', formValues.deployment || null, wizardConfig.typeId, wizardConfig.typeGuid, piGuid, onPiPost, onGenerate, onFinish, this.props.wizard.destinationMetadata || []);
|
|
25859
25968
|
onSubmit({ complete: formValues.hasOwnProperty('deployment') });
|
|
25860
25969
|
}
|
|
25861
25970
|
actions.setWizardLoaded(false); // so wizard reloads config on 'restart'
|
|
@@ -26121,27 +26230,27 @@ module.exports =
|
|
|
26121
26230
|
step.sourceProvider = wizard.source.type;
|
|
26122
26231
|
step.destinationProvider = wizard.destination.type;
|
|
26123
26232
|
step.isFramework = this.props.isFramework;
|
|
26124
|
-
|
|
26125
|
-
step.name = wizard.title
|
|
26126
|
-
stepList.push(step)
|
|
26127
|
-
} else if (step.type === 'phase' && wizard.phaseStep) {
|
|
26128
|
-
|
|
26129
|
-
|
|
26130
|
-
|
|
26131
|
-
|
|
26132
|
-
|
|
26133
|
-
|
|
26134
|
-
|
|
26135
|
-
|
|
26136
|
-
|
|
26137
|
-
|
|
26233
|
+
if (step.type === 'name') {
|
|
26234
|
+
step.name = wizard.title;
|
|
26235
|
+
stepList.push(step);
|
|
26236
|
+
} /* else if (step.type === 'phase' && wizard.phaseStep) {
|
|
26237
|
+
stepList.push(step)
|
|
26238
|
+
} else if (step.type === 'custom') {
|
|
26239
|
+
const customStep = providerData.providerTypes[wizard.destination.type].customStep
|
|
26240
|
+
if (customStep && wizard[step.mode].customStep) {
|
|
26241
|
+
step.type = customStep.type
|
|
26242
|
+
step.title = customStep.title
|
|
26243
|
+
step.options = customStep.options
|
|
26244
|
+
stepList.push(step)
|
|
26245
|
+
}
|
|
26246
|
+
} else */if (step.type === 'scenario') {
|
|
26138
26247
|
step.options = wizard.scenarios;
|
|
26139
26248
|
step.scenarioOrder = wizard.scenarioIds;
|
|
26140
26249
|
step.magicNumber = '2147483647';
|
|
26141
26250
|
stepList.push(step);
|
|
26142
26251
|
} else if (step.type === 'environment') {
|
|
26143
26252
|
step.typeGuid = wizard.typeGuid;
|
|
26144
|
-
if (step.mode === 'source'
|
|
26253
|
+
if (step.mode === 'source') {
|
|
26145
26254
|
step.message = wizard.source.message;
|
|
26146
26255
|
step.providerType = wizard.source.type;
|
|
26147
26256
|
step.credentials = wizard.source.credentials || null;
|
|
@@ -26149,7 +26258,7 @@ module.exports =
|
|
|
26149
26258
|
step.metadataApi = wizard.source.metadataApi;
|
|
26150
26259
|
step.previewToken = this.props.previewToken;
|
|
26151
26260
|
stepList.push(step);
|
|
26152
|
-
} else if (step.mode === 'destination'
|
|
26261
|
+
} else if (step.mode === 'destination') {
|
|
26153
26262
|
step.message = wizard.destination.message;
|
|
26154
26263
|
step.providerType = wizard.destination.type;
|
|
26155
26264
|
step.credentials = wizard.destination.credentials || null;
|
|
@@ -26178,15 +26287,15 @@ module.exports =
|
|
|
26178
26287
|
}
|
|
26179
26288
|
var providers = {
|
|
26180
26289
|
source: wizard.source.type,
|
|
26181
|
-
destination: wizard.destination.type
|
|
26290
|
+
destination: wizard.destination.type,
|
|
26291
|
+
sourceCredentials: wizard.source.credentials,
|
|
26292
|
+
destinationCredentials: wizard.destination.credentials
|
|
26182
26293
|
};
|
|
26183
26294
|
var metadataEndpoints = {
|
|
26184
26295
|
source: wizard.source.metadataEndpoint || null,
|
|
26185
26296
|
sourceApi: wizard.source.metadataApi || null,
|
|
26186
|
-
sourceEnv: wizard.source.skipEnvStep ? false : true,
|
|
26187
26297
|
destination: wizard.destination.metadataEndpoint || null,
|
|
26188
|
-
destinationApi: wizard.destination.metadataApi || null
|
|
26189
|
-
destinationEnv: wizard.destination.skipEnvStep ? false : true
|
|
26298
|
+
destinationApi: wizard.destination.metadataApi || null
|
|
26190
26299
|
};
|
|
26191
26300
|
this.setState({
|
|
26192
26301
|
steps: stepList,
|
|
@@ -26369,7 +26478,7 @@ module.exports =
|
|
|
26369
26478
|
|
|
26370
26479
|
var $export = __webpack_require__(23);
|
|
26371
26480
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
26372
|
-
$export($export.S + $export.F * !__webpack_require__(10), 'Object', {defineProperty: __webpack_require__(
|
|
26481
|
+
$export($export.S + $export.F * !__webpack_require__(10), 'Object', {defineProperty: __webpack_require__(19).f});
|
|
26373
26482
|
|
|
26374
26483
|
/***/ },
|
|
26375
26484
|
/* 262 */,
|