@lingk/sync 1.0.80 → 1.0.81
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/credentialSections.js.map +1 -1
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/loadData.js +13 -8
- package/build/loadData.js.map +1 -1
- package/build/main.js +24 -32
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js.map +1 -1
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/build/saveData.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -236,7 +236,7 @@ module.exports =
|
|
|
236
236
|
|
|
237
237
|
**************************/
|
|
238
238
|
|
|
239
|
-
function initialize(step, wizard, change, formValues, actions, isReverse) {
|
|
239
|
+
function initialize(step, wizard, change, formValues, actions, isReverse, LOAD_DATA) {
|
|
240
240
|
|
|
241
241
|
var defaults = {
|
|
242
242
|
//sourceEndpoint: 'https://',
|
|
@@ -274,7 +274,8 @@ module.exports =
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
// LOAD_DATA only true on the schema step
|
|
278
|
+
if (LOAD_DATA && (!formValues['resourceGroups'] || formValues['resourceGroups'] && formValues['resourceGroups'].length < 1)) {
|
|
278
279
|
// rgs default to []
|
|
279
280
|
var sourceMetadata = wizard.sourceMetadata,
|
|
280
281
|
destinationMetadata = wizard.destinationMetadata;
|
|
@@ -3432,9 +3433,11 @@ module.exports =
|
|
|
3432
3433
|
bundle.destinationKeys.forEach(function (dk, i) {
|
|
3433
3434
|
if (bundle.customExternalKeys) {
|
|
3434
3435
|
var deNestedProp = deNest(dk, bundle.destinationKeysParents && JSON.parse(bundle.destinationKeysParents[i]), bundleResource);
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3436
|
+
if (deNestedProp.property) {
|
|
3437
|
+
destinationKeys.push(deNestedProp.property);
|
|
3438
|
+
__destinationKeys.push(deNestedProp.__property);
|
|
3439
|
+
destinationKeysParents.push(deNestedProp.parentsArray);
|
|
3440
|
+
}
|
|
3438
3441
|
} else {
|
|
3439
3442
|
destinationKeys.push('Lingk External Id');
|
|
3440
3443
|
__destinationKeys.push('Lingk_External_Id__c');
|
|
@@ -3460,12 +3463,15 @@ module.exports =
|
|
|
3460
3463
|
return r.name === sourceKeyResourceObj.resourceLabel && r.type === sourceKeyResourceObj.resourceName;
|
|
3461
3464
|
});
|
|
3462
3465
|
if (sourceKeyResource) {
|
|
3463
|
-
|
|
3464
|
-
__sourceKeysObjects.push(sourceKeyResource.type);
|
|
3466
|
+
|
|
3465
3467
|
var deNestedProp = deNest(sk, bundle.sourceKeysParents && JSON.parse(bundle.sourceKeysParents[i]), sourceKeyResource);
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3468
|
+
if (deNestedProp.property) {
|
|
3469
|
+
sourceKeys.push(deNestedProp.property);
|
|
3470
|
+
__sourceKeys.push(deNestedProp.__property);
|
|
3471
|
+
sourceKeysObjects.push(sourceKeyResource.name);
|
|
3472
|
+
__sourceKeysObjects.push(sourceKeyResource.type);
|
|
3473
|
+
sourceKeysParents.push(deNestedProp.parentsArray);
|
|
3474
|
+
}
|
|
3469
3475
|
}
|
|
3470
3476
|
}
|
|
3471
3477
|
}
|
|
@@ -18638,20 +18644,18 @@ module.exports =
|
|
|
18638
18644
|
removeResourceGroup = _props.removeResourceGroup,
|
|
18639
18645
|
openConnectionModal = _props.openConnectionModal,
|
|
18640
18646
|
clickTableRow = _props.clickTableRow,
|
|
18641
|
-
step = _props.step
|
|
18642
|
-
mode = _props.mode;
|
|
18647
|
+
step = _props.step;
|
|
18643
18648
|
|
|
18644
18649
|
|
|
18645
18650
|
if (!(resourceGroups && resourceGroups.length > 0)) return _react2.default.createElement('div', null);
|
|
18646
18651
|
|
|
18647
|
-
var isReverse = mode === 'reverse';
|
|
18648
18652
|
var groups = resourceGroups;
|
|
18649
18653
|
|
|
18650
18654
|
if (!groups.length > 0) return _react2.default.createElement('div', null);
|
|
18651
18655
|
|
|
18652
18656
|
var srcLabel = step.sourceConfig.label || step.sourceProvider;
|
|
18653
18657
|
var destLabel = step.destinationConfig.label || step.destinationProvider;
|
|
18654
|
-
var title =
|
|
18658
|
+
var title = srcLabel + ' to ' + destLabel + ' Object Mappings';
|
|
18655
18659
|
|
|
18656
18660
|
return _react2.default.createElement(
|
|
18657
18661
|
'div',
|
|
@@ -18710,14 +18714,8 @@ module.exports =
|
|
|
18710
18714
|
if (_this3.props.showApiNames && group.__name) {
|
|
18711
18715
|
groupName = group.__name;
|
|
18712
18716
|
}
|
|
18713
|
-
if (
|
|
18714
|
-
|
|
18715
|
-
groupName = groupName + ' (' + step.destinationProvider + ')';
|
|
18716
|
-
}
|
|
18717
|
-
} else {
|
|
18718
|
-
if (group.provider.toLowerCase() === step.sourceProvider.toLowerCase()) {
|
|
18719
|
-
groupName = groupName + ' (' + step.sourceProvider + ')';
|
|
18720
|
-
}
|
|
18717
|
+
if (group.provider.toLowerCase() === step.sourceProvider.toLowerCase()) {
|
|
18718
|
+
groupName = groupName + ' (' + step.sourceProvider + ')';
|
|
18721
18719
|
}
|
|
18722
18720
|
|
|
18723
18721
|
return _react2.default.createElement(
|
|
@@ -18760,14 +18758,8 @@ module.exports =
|
|
|
18760
18758
|
if (_this3.props.showApiNames && rsc.__name) {
|
|
18761
18759
|
rscName = rsc.__name;
|
|
18762
18760
|
}
|
|
18763
|
-
if (
|
|
18764
|
-
|
|
18765
|
-
rscName = rscName + ' (' + step.sourceProvider + ')';
|
|
18766
|
-
}
|
|
18767
|
-
} else {
|
|
18768
|
-
if (rsc.provider.toLowerCase() === step.destinationProvider.toLowerCase()) {
|
|
18769
|
-
rscName = rscName + ' (' + step.destinationProvider + ')';
|
|
18770
|
-
}
|
|
18761
|
+
if (rsc.provider.toLowerCase() === step.destinationProvider.toLowerCase()) {
|
|
18762
|
+
rscName = rscName + ' (' + step.destinationProvider + ')';
|
|
18771
18763
|
}
|
|
18772
18764
|
return _react2.default.createElement(
|
|
18773
18765
|
'span',
|
|
@@ -24741,7 +24733,8 @@ module.exports =
|
|
|
24741
24733
|
|
|
24742
24734
|
var isReverse = formValues.direction === 'reverse';
|
|
24743
24735
|
if (!wizard.dataLoaded) {
|
|
24744
|
-
|
|
24736
|
+
var LOAD_DATA = true;
|
|
24737
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions, isReverse, LOAD_DATA);
|
|
24745
24738
|
setTimeout(function () {
|
|
24746
24739
|
if (_this2.props.formValues['resourceGroups']) {
|
|
24747
24740
|
var resourceGroups = [].concat(_toConsumableArray(_this2.props.formValues['resourceGroups']));
|
|
@@ -25163,7 +25156,6 @@ module.exports =
|
|
|
25163
25156
|
selectJoinKey: this.selectJoinKey, change: change,
|
|
25164
25157
|
changeEntityLevel: this.changeEntityLevel }),
|
|
25165
25158
|
_react2.default.createElement(_bundleTable2.default, { openConnectionModal: this.openConnectionModal,
|
|
25166
|
-
mode: formValues.direction,
|
|
25167
25159
|
showApiNames: showApiNames
|
|
25168
25160
|
})
|
|
25169
25161
|
),
|