@lingk/sync 0.0.77 → 0.0.79
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/lingk.css +1 -1
- package/build/css/main.css +3 -0
- package/build/lightning.js.map +1 -1
- package/build/lingk.js +5 -5
- package/build/lingk.js.map +1 -1
- package/build/main.js +17 -83
- package/build/main.js.map +1 -1
- package/build/reducer.js +1 -1
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -4451,7 +4451,11 @@ module.exports =
|
|
|
4451
4451
|
disabled: props.finishDisabled
|
|
4452
4452
|
},
|
|
4453
4453
|
props.nav.last ? 'Finish' : 'Save And Exit'
|
|
4454
|
-
)
|
|
4454
|
+
),
|
|
4455
|
+
_react2.default.createElement('br', null),
|
|
4456
|
+
_react2.default.createElement('br', null),
|
|
4457
|
+
_react2.default.createElement('br', null),
|
|
4458
|
+
_react2.default.createElement('br', null)
|
|
4455
4459
|
);
|
|
4456
4460
|
};
|
|
4457
4461
|
|
|
@@ -4639,14 +4643,13 @@ module.exports =
|
|
|
4639
4643
|
}, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }));
|
|
4640
4644
|
}
|
|
4641
4645
|
}); // end wizard.savedMappings.forEach
|
|
4642
|
-
|
|
4643
4646
|
resourceGroups.push(Object.assign({
|
|
4644
4647
|
name: bundleResource.name,
|
|
4645
4648
|
resources: resources, mappings: mappings,
|
|
4646
4649
|
customExternalKeys: bundle.customExternalKeys || false
|
|
4647
4650
|
}, bundle.customExternalKeys === true && { sourceKeys: sourceKeys, sourceKeysObjects: sourceKeysObjects, destinationKeys: destinationKeys }, bundle.customExternalKeys === false && { lingkSourceKey: sourceKeys[0], lingkSourceKeyObject: sourceKeysObjects[0] }, {
|
|
4648
4651
|
provider: bundle.provider.charAt(0).toUpperCase() + bundle.provider.slice(1)
|
|
4649
|
-
})); // end push each bundle (contains resources AND mappings)
|
|
4652
|
+
}, bundle.recordTypeId && { recordTypeId: bundle.recordTypeId })); // end push each bundle (contains resources AND mappings)
|
|
4650
4653
|
})();
|
|
4651
4654
|
} // end if bundleResource
|
|
4652
4655
|
}); // end forEach over bundles
|
|
@@ -17333,6 +17336,7 @@ module.exports =
|
|
|
17333
17336
|
}
|
|
17334
17337
|
|
|
17335
17338
|
function callGetPiConfig(tenantId, accountId, piGuid, providers, metadataEndpoints) {
|
|
17339
|
+
// a wizard config already exists
|
|
17336
17340
|
if (piGuid) {
|
|
17337
17341
|
return function (dispatch, getState, api) {
|
|
17338
17342
|
var _getState12 = getState(),
|
|
@@ -17366,6 +17370,7 @@ module.exports =
|
|
|
17366
17370
|
});
|
|
17367
17371
|
};
|
|
17368
17372
|
} else return function (dispatch) {
|
|
17373
|
+
// FIRST TIME!
|
|
17369
17374
|
return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, metadataEndpoints.source, null)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', providers.destination, metadataEndpoints.destination, null))]);
|
|
17370
17375
|
};
|
|
17371
17376
|
}
|
|
@@ -19306,7 +19311,7 @@ module.exports =
|
|
|
19306
19311
|
submitModal: this.submitModal, submitLabel: 'Change Scenario' },
|
|
19307
19312
|
_react2.default.createElement(
|
|
19308
19313
|
'div',
|
|
19309
|
-
{ style: { textAlign: 'center' } },
|
|
19314
|
+
{ style: { textAlign: 'center', padding: '1em' } },
|
|
19310
19315
|
'Choosing a different Scenario will erase your saved Object and Field Mappings.'
|
|
19311
19316
|
)
|
|
19312
19317
|
)
|
|
@@ -20657,7 +20662,7 @@ module.exports =
|
|
|
20657
20662
|
mapz && mapz.map(function (m, iv) {
|
|
20658
20663
|
return _react2.default.createElement(
|
|
20659
20664
|
'div',
|
|
20660
|
-
{ key: iv, style: { height: 19 } },
|
|
20665
|
+
{ key: iv, style: { height: 19, minWidth: 220 } },
|
|
20661
20666
|
!m.isExternalKeyMapping ? _react2.default.createElement(
|
|
20662
20667
|
'div',
|
|
20663
20668
|
{ className: 'x-clear-mapping',
|
|
@@ -21407,7 +21412,7 @@ module.exports =
|
|
|
21407
21412
|
{ opened: opened, hideModal: hideModal, submitModal: hideModal, title: 'Transform Data' },
|
|
21408
21413
|
_react2.default.createElement(
|
|
21409
21414
|
'div',
|
|
21410
|
-
|
|
21415
|
+
{ style: { padding: 26 } },
|
|
21411
21416
|
_react2.default.createElement(
|
|
21412
21417
|
'div',
|
|
21413
21418
|
null,
|
|
@@ -21676,6 +21681,11 @@ module.exports =
|
|
|
21676
21681
|
var destinationResource = _this2.props.wizard.destinationMetadata ? _this2.props.wizard.destinationMetadata.find(function (rsc) {
|
|
21677
21682
|
return rsc.name === group.name;
|
|
21678
21683
|
}) : group;
|
|
21684
|
+
group.name = destinationResource.type;
|
|
21685
|
+
group.provider = _this2.props.providers['destination'].toLowerCase();
|
|
21686
|
+
if (destinationResource.recordTypeId) {
|
|
21687
|
+
group.recordTypeId = destinationResource.recordTypeId;
|
|
21688
|
+
}
|
|
21679
21689
|
|
|
21680
21690
|
// destination Keys (for de-duplication in the Connect modal)
|
|
21681
21691
|
if (!group.customExternalKeys) {
|
|
@@ -21684,8 +21694,6 @@ module.exports =
|
|
|
21684
21694
|
group.destinationKeys = ['lingk__Lingk_External_Id__c'];
|
|
21685
21695
|
} else {
|
|
21686
21696
|
(function () {
|
|
21687
|
-
// name of destinationKeys
|
|
21688
|
-
group.name = destinationResource.type;
|
|
21689
21697
|
var destinationKeys = [];
|
|
21690
21698
|
if (group.destinationKeys) {
|
|
21691
21699
|
group.destinationKeys.forEach(function (dk) {
|
|
@@ -21811,8 +21819,6 @@ module.exports =
|
|
|
21811
21819
|
} else return null;
|
|
21812
21820
|
});
|
|
21813
21821
|
}
|
|
21814
|
-
|
|
21815
|
-
group.provider = _this2.props.providers['destination'].toLowerCase();
|
|
21816
21822
|
}); //end for each bundle
|
|
21817
21823
|
console.log('BUNDLES: ', bundles);
|
|
21818
21824
|
console.log('MAPPINGS: ', mappings);
|
|
@@ -22027,78 +22033,6 @@ module.exports =
|
|
|
22027
22033
|
|
|
22028
22034
|
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; }
|
|
22029
22035
|
|
|
22030
|
-
var wiz = {
|
|
22031
|
-
title: 'Banner to Salesforce',
|
|
22032
|
-
nameStep: false,
|
|
22033
|
-
source: {
|
|
22034
|
-
type: 'Banner',
|
|
22035
|
-
name: 'Banner',
|
|
22036
|
-
env: true,
|
|
22037
|
-
customizable: false,
|
|
22038
|
-
customStep: false
|
|
22039
|
-
},
|
|
22040
|
-
destination: {
|
|
22041
|
-
type: 'Salesforce',
|
|
22042
|
-
name: 'Salesforce',
|
|
22043
|
-
env: false,
|
|
22044
|
-
customizable: false,
|
|
22045
|
-
customStep: false
|
|
22046
|
-
},
|
|
22047
|
-
deployment: ['once', 'daily', 'repeating'],
|
|
22048
|
-
scenarios: [{
|
|
22049
|
-
name: 'students',
|
|
22050
|
-
title: 'Simple Student Demographics to Contact Sync',
|
|
22051
|
-
label: 'Sync students with Contacts to drive Student Population reports and dashboards',
|
|
22052
|
-
bundleGuid: 'd10440051e2a46aaa181b72b8ee6af67',
|
|
22053
|
-
mappingGuid: 'e98da65935534fdbb4c7b4280f07f1ae'
|
|
22054
|
-
}, {
|
|
22055
|
-
name: 'staff',
|
|
22056
|
-
title: 'Simple Staff Demographics to Contact Sync',
|
|
22057
|
-
label: 'Sync staff demographics with Contacts to drive Staff reports and dashboards',
|
|
22058
|
-
bundleGuid: 'd10440051e2a46aaa181b72b8ee6af67',
|
|
22059
|
-
mappingGuid: 'e98da65935534fdbb4c7b4280f07f1ae'
|
|
22060
|
-
}, {
|
|
22061
|
-
name: 'applicants',
|
|
22062
|
-
title: 'HEDA Applicant Sync',
|
|
22063
|
-
label: 'Sync applicants with HEDA Contacts and Affiliations to add Applicant data to Admissions reports and dashboards.',
|
|
22064
|
-
bundleGuid: 'd10440051e2a46aaa181b72b8ee6af67',
|
|
22065
|
-
mappingGuid: 'e98da65935534fdbb4c7b4280f07f1ae'
|
|
22066
|
-
}, {
|
|
22067
|
-
name: 'studentenrollment',
|
|
22068
|
-
title: 'HEDA Student Enrollments',
|
|
22069
|
-
label: 'Sync students and institutions with Contacts and Affiliated Educational Institution Accounts',
|
|
22070
|
-
bundleGuid: 'f30c27957e6a4a4e97dc37266980ca1a',
|
|
22071
|
-
mappingGuid: '00627b04bc1e43c1a6d0c51d7c57c57c'
|
|
22072
|
-
}, {
|
|
22073
|
-
name: 'courseroster',
|
|
22074
|
-
title: 'HEDA Course Roster Sync',
|
|
22075
|
-
label: 'Sync course roster with HEDA Contacts, Courses, Affiliations, and Course Enrollments to add Course Roster data to Student Success reports and dashboards.',
|
|
22076
|
-
bundleGuid: 'd10440051e2a46aaa181b72b8ee6af67',
|
|
22077
|
-
mappingGuid: 'e98da65935534fdbb4c7b4280f07f1ae'
|
|
22078
|
-
}],
|
|
22079
|
-
magicDefaultNumber: '2147483647'
|
|
22080
|
-
};
|
|
22081
|
-
/*
|
|
22082
|
-
id: 2,
|
|
22083
|
-
title: 'Banner to Salesforce',
|
|
22084
|
-
description: 'On-premise Banner instance to Salesforce Org.',
|
|
22085
|
-
tag:'Activated',
|
|
22086
|
-
source:{
|
|
22087
|
-
title: 'Banner',
|
|
22088
|
-
type: 'banner',
|
|
22089
|
-
defaultSchema: 'guid',
|
|
22090
|
-
env: true
|
|
22091
|
-
},
|
|
22092
|
-
destination:{
|
|
22093
|
-
title: 'Salesforce',
|
|
22094
|
-
type: 'salesforce',
|
|
22095
|
-
defaultSchema: 'guid',
|
|
22096
|
-
env: false
|
|
22097
|
-
},
|
|
22098
|
-
defaultMapping: 'guid',
|
|
22099
|
-
deployment: ['once', 'scheduled'], // keys for deployment options
|
|
22100
|
-
*/
|
|
22101
|
-
|
|
22102
22036
|
var LingkSync = function (_Component) {
|
|
22103
22037
|
_inherits(LingkSync, _Component);
|
|
22104
22038
|
|
|
@@ -22167,7 +22101,7 @@ module.exports =
|
|
|
22167
22101
|
_createClass(LingkSync, [{
|
|
22168
22102
|
key: 'componentDidMount',
|
|
22169
22103
|
value: function componentDidMount() {
|
|
22170
|
-
var wizard =
|
|
22104
|
+
var wizard = this.props.wizardConfig;
|
|
22171
22105
|
var stepList = [];
|
|
22172
22106
|
|
|
22173
22107
|
for (var i = 0; i < this.allSteps.length; i++) {
|