@lingk/sync 0.0.78 → 0.0.80

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/main.js CHANGED
@@ -4529,7 +4529,11 @@ module.exports =
4529
4529
 
4530
4530
  // get bundle resource
4531
4531
  var bundleResource = wizard.destinationMetadata.find(function (rsc) {
4532
- return rsc.type === bundle.name;
4532
+ if (bundle.recordTypeId) {
4533
+ return rsc.type === bundle.name && rsc.recordTypeId === bundle.recordTypeId;
4534
+ } else {
4535
+ return rsc.type === bundle.name;
4536
+ }
4533
4537
  });
4534
4538
  if (bundleResource) {
4535
4539
  (function () {
@@ -4615,17 +4619,31 @@ module.exports =
4615
4619
  return map.bundleIndex === index;
4616
4620
  }).forEach(function (m) {
4617
4621
  var dataSourceMetadata = m.isDestinationResource ? wizard.destinationMetadata : wizard.sourceMetadata;
4622
+
4623
+ var bundleResourceFromIndex = bundle.resources.find(function (r) {
4624
+ return r.resourceName === m.resourceFromName;
4625
+ });
4618
4626
  var sourceResource = dataSourceMetadata.find(function (rsc) {
4619
- return rsc.type === m.resourceFromName;
4627
+ if (bundleResourceFromIndex.recordTypeId) {
4628
+ return rsc.type === m.resourceFromName && rsc.recordTypeId === bundleResourceFromIndex.recordTypeId;
4629
+ } else {
4630
+ return rsc.type === m.resourceFromName;
4631
+ }
4620
4632
  });
4633
+
4621
4634
  var sourceProperty = null;
4622
4635
  if (sourceResource) {
4623
4636
  sourceProperty = sourceResource.properties.find(function (prop) {
4624
4637
  return prop.name === m.propertyFromName;
4625
4638
  });
4626
4639
  }
4640
+
4627
4641
  var destinationResource = wizard.destinationMetadata.find(function (rsc) {
4628
- return rsc.type === m.resourceToName;
4642
+ if (bundle.recordTypeId) {
4643
+ return rsc.type === m.resourceToName && rsc.recordTypeId === bundle.recordTypeId;
4644
+ } else {
4645
+ return rsc.type === m.resourceToName;
4646
+ }
4629
4647
  });
4630
4648
  var destinationProperty = null;
4631
4649
  if (destinationResource) {
@@ -4643,7 +4661,6 @@ module.exports =
4643
4661
  }, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }));
4644
4662
  }
4645
4663
  }); // end wizard.savedMappings.forEach
4646
- console.log(bundle);
4647
4664
  resourceGroups.push(Object.assign({
4648
4665
  name: bundleResource.name,
4649
4666
  resources: resources, mappings: mappings,
@@ -17590,6 +17607,9 @@ module.exports =
17590
17607
  type: 'adapter',
17591
17608
  title: 'Banner Adapter'
17592
17609
  }
17610
+ },
17611
+ Blackboard: {
17612
+ credentials: null
17593
17613
  }
17594
17614
  };
17595
17615
 
@@ -19754,7 +19774,7 @@ module.exports =
19754
19774
  _react2.default.createElement(
19755
19775
  'span',
19756
19776
  { style: { fontWeight: i === 0 ? 'bold' : 'normal', whiteSpace: 'nowrap' } },
19757
- rsc.provider === step.destinationProvider ? rsc.name + ' (' + step.destinationProvider + ')' : rsc.name,
19777
+ rsc.provider === step.destinationProvider ? rsc.name.split(' - ')[0] + ' (' + step.destinationProvider + ')' : rsc.name.split(' - ')[0],
19758
19778
  '\xA0'
19759
19779
  )
19760
19780
  );
@@ -20455,7 +20475,7 @@ module.exports =
20455
20475
  },
20456
20476
  _react2.default.createElement(
20457
20477
  'span',
20458
- null,
20478
+ { className: 'accordion-panel-header-title' },
20459
20479
  rsc.provider === step.destinationProvider ? rsc.name + (' (' + step.destinationProvider + ')') : rsc.name
20460
20480
  ),
20461
20481
  _react2.default.createElement(
@@ -20633,7 +20653,7 @@ module.exports =
20633
20653
  _react2.default.createElement(
20634
20654
  'strong',
20635
20655
  null,
20636
- rsc.provider === step.destinationProvider ? rsc.name + ' (' + step.destinationProvider + ')' : rsc.name
20656
+ rsc.provider === step.destinationProvider ? rsc.name.split(' - ')[0] + ' (' + step.destinationProvider + ')' : rsc.name.split(' - ')[0]
20637
20657
  )
20638
20658
  );
20639
20659
  })
@@ -20663,7 +20683,7 @@ module.exports =
20663
20683
  mapz && mapz.map(function (m, iv) {
20664
20684
  return _react2.default.createElement(
20665
20685
  'div',
20666
- { key: iv, style: { height: 19, minWidth: 220 } },
20686
+ { key: iv, style: { height: 19, minWidth: 220, whiteSpace: 'nowrap' } },
20667
20687
  !m.isExternalKeyMapping ? _react2.default.createElement(
20668
20688
  'div',
20669
20689
  { className: 'x-clear-mapping',
@@ -22034,78 +22054,6 @@ module.exports =
22034
22054
 
22035
22055
  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; }
22036
22056
 
22037
- var wiz = {
22038
- title: 'Banner to Salesforce',
22039
- nameStep: false,
22040
- source: {
22041
- type: 'Banner',
22042
- name: 'Banner',
22043
- env: true,
22044
- customizable: false,
22045
- customStep: false
22046
- },
22047
- destination: {
22048
- type: 'Salesforce',
22049
- name: 'Salesforce',
22050
- env: false,
22051
- customizable: false,
22052
- customStep: false
22053
- },
22054
- deployment: ['once', 'daily', 'repeating'],
22055
- scenarios: [{
22056
- name: 'students',
22057
- title: 'Simple Student Demographics to Contact Sync',
22058
- label: 'Sync students with Contacts to drive Student Population reports and dashboards',
22059
- bundleGuid: 'd10440051e2a46aaa181b72b8ee6af67',
22060
- mappingGuid: 'e98da65935534fdbb4c7b4280f07f1ae'
22061
- }, {
22062
- name: 'staff',
22063
- title: 'Simple Staff Demographics to Contact Sync',
22064
- label: 'Sync staff demographics with Contacts to drive Staff reports and dashboards',
22065
- bundleGuid: 'd10440051e2a46aaa181b72b8ee6af67',
22066
- mappingGuid: 'e98da65935534fdbb4c7b4280f07f1ae'
22067
- }, {
22068
- name: 'applicants',
22069
- title: 'HEDA Applicant Sync',
22070
- label: 'Sync applicants with HEDA Contacts and Affiliations to add Applicant data to Admissions reports and dashboards.',
22071
- bundleGuid: 'd10440051e2a46aaa181b72b8ee6af67',
22072
- mappingGuid: 'e98da65935534fdbb4c7b4280f07f1ae'
22073
- }, {
22074
- name: 'studentenrollment',
22075
- title: 'HEDA Student Enrollments',
22076
- label: 'Sync students and institutions with Contacts and Affiliated Educational Institution Accounts',
22077
- bundleGuid: 'f30c27957e6a4a4e97dc37266980ca1a',
22078
- mappingGuid: '00627b04bc1e43c1a6d0c51d7c57c57c'
22079
- }, {
22080
- name: 'courseroster',
22081
- title: 'HEDA Course Roster Sync',
22082
- label: 'Sync course roster with HEDA Contacts, Courses, Affiliations, and Course Enrollments to add Course Roster data to Student Success reports and dashboards.',
22083
- bundleGuid: 'd10440051e2a46aaa181b72b8ee6af67',
22084
- mappingGuid: 'e98da65935534fdbb4c7b4280f07f1ae'
22085
- }],
22086
- magicDefaultNumber: '2147483647'
22087
- };
22088
- /*
22089
- id: 2,
22090
- title: 'Banner to Salesforce',
22091
- description: 'On-premise Banner instance to Salesforce Org.',
22092
- tag:'Activated',
22093
- source:{
22094
- title: 'Banner',
22095
- type: 'banner',
22096
- defaultSchema: 'guid',
22097
- env: true
22098
- },
22099
- destination:{
22100
- title: 'Salesforce',
22101
- type: 'salesforce',
22102
- defaultSchema: 'guid',
22103
- env: false
22104
- },
22105
- defaultMapping: 'guid',
22106
- deployment: ['once', 'scheduled'], // keys for deployment options
22107
- */
22108
-
22109
22057
  var LingkSync = function (_Component) {
22110
22058
  _inherits(LingkSync, _Component);
22111
22059
 
@@ -22174,7 +22122,7 @@ module.exports =
22174
22122
  _createClass(LingkSync, [{
22175
22123
  key: 'componentDidMount',
22176
22124
  value: function componentDidMount() {
22177
- var wizard = wiz;
22125
+ var wizard = this.props.wizardConfig;
22178
22126
  var stepList = [];
22179
22127
 
22180
22128
  for (var i = 0; i < this.allSteps.length; i++) {