@lingk/sync 1.0.80 → 1.0.82
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 +32 -32
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js +5 -0
- 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;
|
|
@@ -472,6 +473,11 @@ module.exports =
|
|
|
472
473
|
// CHOOSE HERE TYPE OR LABEL
|
|
473
474
|
title += entity[showApiNames && fieldPropType ? fieldPropType : fieldPropLabel];
|
|
474
475
|
|
|
476
|
+
// ADD REQUIRED
|
|
477
|
+
if (entity.required) {
|
|
478
|
+
title += ' *';
|
|
479
|
+
}
|
|
480
|
+
|
|
475
481
|
var isExpanded = _nestExpand2.default.checkIfExpanded(entity[fieldPropLabel], parents, this.state.expanded);
|
|
476
482
|
var isSelected = false;
|
|
477
483
|
isSelected = selectedValues && selectedValues.length > 0 && selectedValues.some(function (rsc) {
|
|
@@ -3432,9 +3438,11 @@ module.exports =
|
|
|
3432
3438
|
bundle.destinationKeys.forEach(function (dk, i) {
|
|
3433
3439
|
if (bundle.customExternalKeys) {
|
|
3434
3440
|
var deNestedProp = deNest(dk, bundle.destinationKeysParents && JSON.parse(bundle.destinationKeysParents[i]), bundleResource);
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3441
|
+
if (deNestedProp.property) {
|
|
3442
|
+
destinationKeys.push(deNestedProp.property);
|
|
3443
|
+
__destinationKeys.push(deNestedProp.__property);
|
|
3444
|
+
destinationKeysParents.push(deNestedProp.parentsArray);
|
|
3445
|
+
}
|
|
3438
3446
|
} else {
|
|
3439
3447
|
destinationKeys.push('Lingk External Id');
|
|
3440
3448
|
__destinationKeys.push('Lingk_External_Id__c');
|
|
@@ -3460,12 +3468,15 @@ module.exports =
|
|
|
3460
3468
|
return r.name === sourceKeyResourceObj.resourceLabel && r.type === sourceKeyResourceObj.resourceName;
|
|
3461
3469
|
});
|
|
3462
3470
|
if (sourceKeyResource) {
|
|
3463
|
-
|
|
3464
|
-
__sourceKeysObjects.push(sourceKeyResource.type);
|
|
3471
|
+
|
|
3465
3472
|
var deNestedProp = deNest(sk, bundle.sourceKeysParents && JSON.parse(bundle.sourceKeysParents[i]), sourceKeyResource);
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3473
|
+
if (deNestedProp.property) {
|
|
3474
|
+
sourceKeys.push(deNestedProp.property);
|
|
3475
|
+
__sourceKeys.push(deNestedProp.__property);
|
|
3476
|
+
sourceKeysObjects.push(sourceKeyResource.name);
|
|
3477
|
+
__sourceKeysObjects.push(sourceKeyResource.type);
|
|
3478
|
+
sourceKeysParents.push(deNestedProp.parentsArray);
|
|
3479
|
+
}
|
|
3469
3480
|
}
|
|
3470
3481
|
}
|
|
3471
3482
|
}
|
|
@@ -18638,20 +18649,18 @@ module.exports =
|
|
|
18638
18649
|
removeResourceGroup = _props.removeResourceGroup,
|
|
18639
18650
|
openConnectionModal = _props.openConnectionModal,
|
|
18640
18651
|
clickTableRow = _props.clickTableRow,
|
|
18641
|
-
step = _props.step
|
|
18642
|
-
mode = _props.mode;
|
|
18652
|
+
step = _props.step;
|
|
18643
18653
|
|
|
18644
18654
|
|
|
18645
18655
|
if (!(resourceGroups && resourceGroups.length > 0)) return _react2.default.createElement('div', null);
|
|
18646
18656
|
|
|
18647
|
-
var isReverse = mode === 'reverse';
|
|
18648
18657
|
var groups = resourceGroups;
|
|
18649
18658
|
|
|
18650
18659
|
if (!groups.length > 0) return _react2.default.createElement('div', null);
|
|
18651
18660
|
|
|
18652
18661
|
var srcLabel = step.sourceConfig.label || step.sourceProvider;
|
|
18653
18662
|
var destLabel = step.destinationConfig.label || step.destinationProvider;
|
|
18654
|
-
var title =
|
|
18663
|
+
var title = srcLabel + ' to ' + destLabel + ' Object Mappings';
|
|
18655
18664
|
|
|
18656
18665
|
return _react2.default.createElement(
|
|
18657
18666
|
'div',
|
|
@@ -18710,14 +18719,8 @@ module.exports =
|
|
|
18710
18719
|
if (_this3.props.showApiNames && group.__name) {
|
|
18711
18720
|
groupName = group.__name;
|
|
18712
18721
|
}
|
|
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
|
-
}
|
|
18722
|
+
if (group.provider.toLowerCase() === step.sourceProvider.toLowerCase()) {
|
|
18723
|
+
groupName = groupName + ' (' + step.sourceProvider + ')';
|
|
18721
18724
|
}
|
|
18722
18725
|
|
|
18723
18726
|
return _react2.default.createElement(
|
|
@@ -18760,14 +18763,8 @@ module.exports =
|
|
|
18760
18763
|
if (_this3.props.showApiNames && rsc.__name) {
|
|
18761
18764
|
rscName = rsc.__name;
|
|
18762
18765
|
}
|
|
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
|
-
}
|
|
18766
|
+
if (rsc.provider.toLowerCase() === step.destinationProvider.toLowerCase()) {
|
|
18767
|
+
rscName = rscName + ' (' + step.destinationProvider + ')';
|
|
18771
18768
|
}
|
|
18772
18769
|
return _react2.default.createElement(
|
|
18773
18770
|
'span',
|
|
@@ -24741,7 +24738,8 @@ module.exports =
|
|
|
24741
24738
|
|
|
24742
24739
|
var isReverse = formValues.direction === 'reverse';
|
|
24743
24740
|
if (!wizard.dataLoaded) {
|
|
24744
|
-
|
|
24741
|
+
var LOAD_DATA = true;
|
|
24742
|
+
(0, _initialize2.default)(step, wizard, change, formValues, actions, isReverse, LOAD_DATA);
|
|
24745
24743
|
setTimeout(function () {
|
|
24746
24744
|
if (_this2.props.formValues['resourceGroups']) {
|
|
24747
24745
|
var resourceGroups = [].concat(_toConsumableArray(_this2.props.formValues['resourceGroups']));
|
|
@@ -25163,7 +25161,6 @@ module.exports =
|
|
|
25163
25161
|
selectJoinKey: this.selectJoinKey, change: change,
|
|
25164
25162
|
changeEntityLevel: this.changeEntityLevel }),
|
|
25165
25163
|
_react2.default.createElement(_bundleTable2.default, { openConnectionModal: this.openConnectionModal,
|
|
25166
|
-
mode: formValues.direction,
|
|
25167
25164
|
showApiNames: showApiNames
|
|
25168
25165
|
})
|
|
25169
25166
|
),
|
|
@@ -25316,6 +25313,9 @@ module.exports =
|
|
|
25316
25313
|
if (showApiNames) {
|
|
25317
25314
|
title = field.name;
|
|
25318
25315
|
}
|
|
25316
|
+
if (isDestination && field.required) {
|
|
25317
|
+
title += ' *';
|
|
25318
|
+
}
|
|
25319
25319
|
var isExpanded = false;
|
|
25320
25320
|
if (field.object) {
|
|
25321
25321
|
isExpanded = _nestExpand2.default.checkIfExpanded(field.label, parents, expanded);
|