@lingk/sync 1.0.25 → 1.0.26

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
@@ -17444,13 +17444,28 @@ module.exports =
17444
17444
  };
17445
17445
  }
17446
17446
 
17447
- function callGetScenarioList(tenantId, appId, typeGuid) {
17447
+ function callGetScenarioList(tenantId, appId, typeGuid, isGlobal, isOrgAdmin) {
17448
17448
  return function (dispatch, getState, api) {
17449
17449
  var _getState9 = getState(),
17450
17450
  config = _getState9.config;
17451
17451
 
17452
17452
  return api.get(tenantId + '/' + appId + '/scenarios/' + typeGuid, {
17453
17453
  endpoint: config.TRANS_API_URL
17454
+ }).then(function (r) {
17455
+ var scenarios = r;
17456
+ if (isGlobal) {
17457
+ scenarios = r.filter(function (s) {
17458
+ return s.tenantId === 2147483647;
17459
+ });
17460
+ }
17461
+ if (isOrgAdmin) {
17462
+ scenarios = r.filter(function (s) {
17463
+ return s.tenantId === parseInt(tenantId, 10);
17464
+ });
17465
+ }
17466
+ return scenarios.sort(function (a, b) {
17467
+ return a.orderNum - b.orderNum;
17468
+ });
17454
17469
  });
17455
17470
  };
17456
17471
  }
@@ -17467,14 +17482,20 @@ module.exports =
17467
17482
  };
17468
17483
  }
17469
17484
 
17470
- function callUpdateScenarioList(tenantId, appId, typeGuid, scenarioIds) {
17485
+ function callUpdateScenarioList(tenantId, appId, typeGuid, scenarios, isGlobal) {
17471
17486
  return function (dispatch, getState, api) {
17472
17487
  var _getState11 = getState(),
17473
17488
  config = _getState11.config;
17474
17489
 
17475
- return api.post(tenantId + '/' + appId + '/scenarios/' + typeGuid, {
17490
+ return api.post(tenantId + '/' + appId + '/scenarios/' + typeGuid + (isGlobal ? '/global' : ''), {
17476
17491
  endpoint: config.TRANS_API_URL,
17477
- data: scenarioIds
17492
+ data: scenarios.map(function (s, i) {
17493
+ return {
17494
+ id: s.id,
17495
+ orderNum: i,
17496
+ deleted: s.deleted ? 1 : 0 // all uints in the backend, easy
17497
+ };
17498
+ })
17478
17499
  });
17479
17500
  };
17480
17501
  }
@@ -23312,7 +23333,7 @@ module.exports =
23312
23333
  sourceSchema: sourceSchema, destinationSchema: destinationSchema })
23313
23334
  ) : null,
23314
23335
  _react2.default.createElement('br', null),
23315
- step.isFramework && _react2.default.createElement(
23336
+ (step.isFramework || step.isOrgAdmin) && _react2.default.createElement(
23316
23337
  'div',
23317
23338
  null,
23318
23339
  ' ',
@@ -23876,12 +23897,17 @@ module.exports =
23876
23897
  return !o.isReverse;
23877
23898
  });
23878
23899
 
23879
- var options = [{
23900
+ var globalOptions = [{
23880
23901
  id: '0',
23881
23902
  title: 'Start From Scratch',
23882
23903
  label: 'Get started without any automatic mappings.'
23883
- }].concat(opts);
23884
- var scenarioOrder = step.scenarioOrder || [];
23904
+ }].concat(opts.filter(function (o) {
23905
+ return o.tenantId === 2147483647;
23906
+ }));
23907
+
23908
+ var localOptions = opts.filter(function (o) {
23909
+ return o.tenantId === parseInt(_this3.props.tenantId, 10);
23910
+ });
23885
23911
 
23886
23912
  return _react2.default.createElement(
23887
23913
  'form',
@@ -23900,13 +23926,15 @@ module.exports =
23900
23926
  'Each scenario is designed to get you started with new data-driven reports, dashboards and notifications. Extend the scenarios to include your own custom objects in the following steps.'
23901
23927
  ),
23902
23928
  _react2.default.createElement('br', null),
23929
+ localOptions && localOptions.length > 0 && _react2.default.createElement(
23930
+ 'div',
23931
+ { style: { fontSize: '16px', marginBottom: 12 } },
23932
+ ' Global Scenarios'
23933
+ ),
23903
23934
  _react2.default.createElement(
23904
23935
  'div',
23905
23936
  { style: { marginLeft: 16 } },
23906
- scenarioOrder && ['0'].concat(scenarioOrder).map(function (s, i) {
23907
- var o = options.find(function (opt) {
23908
- return String(opt.id) === s;
23909
- });
23937
+ globalOptions && globalOptions.map(function (o, i) {
23910
23938
  return o && _react2.default.createElement(
23911
23939
  'div',
23912
23940
  { key: i },
@@ -23928,6 +23956,40 @@ module.exports =
23928
23956
  })
23929
23957
  ),
23930
23958
  _react2.default.createElement('br', null),
23959
+ localOptions && localOptions.length > 0 && _react2.default.createElement(
23960
+ 'div',
23961
+ null,
23962
+ _react2.default.createElement(
23963
+ 'div',
23964
+ { style: { fontSize: '16px', marginBottom: 12 } },
23965
+ 'Custom Scenarios'
23966
+ ),
23967
+ _react2.default.createElement(
23968
+ 'div',
23969
+ { style: { marginLeft: 16 } },
23970
+ localOptions && localOptions.map(function (o, i) {
23971
+ return o && _react2.default.createElement(
23972
+ 'div',
23973
+ { key: i },
23974
+ _react2.default.createElement(Radio, { onChange: function onChange() {
23975
+ return _this3.select(o);
23976
+ },
23977
+ label: '' + o.title + (_this3.state.currentlyLoadingScenario === String(o.id) ? _this3.state.loadingDots : ''),
23978
+ checked: String(o.id) === scenario, style: { cursor: 'pointer' }
23979
+ }),
23980
+ _react2.default.createElement('br', null),
23981
+ _react2.default.createElement(
23982
+ 'span',
23983
+ { className: 'labelz' },
23984
+ o.label
23985
+ ),
23986
+ _react2.default.createElement('br', null),
23987
+ _react2.default.createElement('br', null)
23988
+ );
23989
+ })
23990
+ )
23991
+ ),
23992
+ _react2.default.createElement('br', null),
23931
23993
  _react2.default.createElement(_navButtons2.default, { nextDisabled: !scenario || this.state.currentlyLoadingScenario || !(wizard.savedConfiguration && wizard.savedConfiguration.scenario) && !wizard.gotScenario ? true : false, handleSubmit: handleSubmit,
23932
23994
  nav: nav, reset: reset, inputs: inputs, isAdmin: this.props.isAdmin }),
23933
23995
  _react2.default.createElement('br', null),
@@ -24724,8 +24786,7 @@ module.exports =
24724
24786
  title: '',
24725
24787
  description: '',
24726
24788
  loading: false,
24727
- manageScenarios: false,
24728
- scenarioOrder: []
24789
+ manageScenarios: false
24729
24790
  };
24730
24791
  _this.submitModal = _this.submitModal.bind(_this);
24731
24792
  _this.deleteScenario = _this.deleteScenario.bind(_this);
@@ -24746,10 +24807,7 @@ module.exports =
24746
24807
  step = _props.step;
24747
24808
 
24748
24809
  this.setState({ loading: true });
24749
- if (step.scenarioOrder && step.scenarioOrder.length > 0) {
24750
- this.setState({ scenarioOrder: [].concat(_toConsumableArray(step.scenarioOrder)) });
24751
- }
24752
- actions.callGetScenarioList(tenantId, accountId, step.typeGuid).then(function (r) {
24810
+ actions.callGetScenarioList(tenantId, accountId, step.typeGuid, step.isFramework, step.isOrgAdmin).then(function (r) {
24753
24811
  _this2.setState({ scenarios: r, loading: false });
24754
24812
  });
24755
24813
  }
@@ -24762,7 +24820,7 @@ module.exports =
24762
24820
  title = _state.title,
24763
24821
  description = _state.description,
24764
24822
  manageScenarios = _state.manageScenarios,
24765
- scenarioOrder = _state.scenarioOrder;
24823
+ scenarios = _state.scenarios;
24766
24824
  var _props2 = this.props,
24767
24825
  tenantId = _props2.tenantId,
24768
24826
  accountId = _props2.accountId,
@@ -24774,10 +24832,10 @@ module.exports =
24774
24832
 
24775
24833
  if (manageScenarios) {
24776
24834
  this.setState({ loading: true });
24777
- actions.callUpdateScenarioList(tenantId, accountId, step.typeGuid, scenarioOrder).then(function (it) {
24835
+ actions.callUpdateScenarioList(tenantId, accountId, step.typeGuid, scenarios, step.isFramework).then(function (wizTypeGuid) {
24778
24836
  actions.callGetScenarioList(tenantId, accountId, step.typeGuid).then(function (r) {
24779
24837
  _this3.setState({ loading: false });
24780
- _this3.props.done({ wiz: it, scenarios: r });
24838
+ _this3.props.done({ typeGuid: wizTypeGuid, scenarios: r });
24781
24839
  });
24782
24840
  });
24783
24841
  } else {
@@ -24797,10 +24855,10 @@ module.exports =
24797
24855
  var data = { bundles: bundles, mappings: mappings, title: title, label: description, typeGuid: step.typeGuid, isReverse: isReverse, isGlobal: step.isFramework };
24798
24856
 
24799
24857
  // 2147483647 is MaxInt32, for global scenarios
24800
- actions.callCreateScenario(tenantId, accountId, data).then(function (it) {
24858
+ actions.callCreateScenario(tenantId, accountId, data).then(function (wizTypeGuid) {
24801
24859
  actions.callGetScenarioList(tenantId, accountId, step.typeGuid).then(function (r) {
24802
24860
  _this3.setState({ loading: false });
24803
- _this3.props.done({ wiz: it, scenarios: r });
24861
+ _this3.props.done({ typeGuid: wizTypeGuid, scenarios: r });
24804
24862
  });
24805
24863
  });
24806
24864
  /**/
@@ -24809,33 +24867,34 @@ module.exports =
24809
24867
  }, {
24810
24868
  key: 'deleteScenario',
24811
24869
  value: function deleteScenario(id, i) {
24812
- var scenarioOrder = this.state.scenarioOrder;
24813
-
24814
- scenarioOrder.splice(i, 1);
24815
- this.setState({ scenarioOrder: scenarioOrder });
24870
+ var scenarios = [].concat(_toConsumableArray(this.state.scenarios.filter(function (s) {
24871
+ return !s.deleted;
24872
+ })));
24873
+ scenarios[i].deleted = true;
24874
+ // put deleted ones on the end, to simplify updating order
24875
+ scenarios.splice(scenarios.length - 1, 0, scenarios.splice(i, 1)[0]);
24876
+ this.setState({ scenarios: scenarios });
24816
24877
  }
24817
24878
  }, {
24818
24879
  key: 'moveUp',
24819
24880
  value: function moveUp(id, i) {
24820
- var scenarioOrder = this.state.scenarioOrder;
24821
-
24881
+ var scenarios = [].concat(_toConsumableArray(this.state.scenarios.filter(function (s) {
24882
+ return !s.deleted;
24883
+ })));
24822
24884
  if (i !== 0) {
24823
- var temp = scenarioOrder[i];
24824
- scenarioOrder[i] = scenarioOrder[i - 1];
24825
- scenarioOrder[i - 1] = temp;
24826
- this.setState({ scenarioOrder: scenarioOrder });
24885
+ scenarios.splice(i - 1, 0, scenarios.splice(i, 1)[0]);
24886
+ this.setState({ scenarios: scenarios });
24827
24887
  }
24828
24888
  }
24829
24889
  }, {
24830
24890
  key: 'moveDown',
24831
24891
  value: function moveDown(id, i) {
24832
- var scenarioOrder = this.state.scenarioOrder;
24833
-
24834
- if (i !== scenarioOrder.length - 1) {
24835
- var temp = scenarioOrder[i];
24836
- scenarioOrder[i] = scenarioOrder[i + 1];
24837
- scenarioOrder[i + 1] = temp;
24838
- this.setState({ scenarioOrder: scenarioOrder });
24892
+ var scenarios = [].concat(_toConsumableArray(this.state.scenarios.filter(function (s) {
24893
+ return !s.deleted;
24894
+ })));
24895
+ if (i !== scenarios.length - 1) {
24896
+ scenarios.splice(i + 1, 0, scenarios.splice(i, 1)[0]);
24897
+ this.setState({ scenarios: scenarios });
24839
24898
  }
24840
24899
  }
24841
24900
  }, {
@@ -24851,15 +24910,16 @@ module.exports =
24851
24910
  var _state2 = this.state,
24852
24911
  title = _state2.title,
24853
24912
  description = _state2.description,
24854
- scenarios = _state2.scenarios,
24855
24913
  manageScenarios = _state2.manageScenarios,
24856
- loading = _state2.loading,
24857
- scenarioOrder = _state2.scenarioOrder;
24914
+ loading = _state2.loading;
24858
24915
 
24859
24916
  var Modal = inputs.Modal;
24860
24917
  var Input = inputs.Input;
24861
24918
  var Spinner = inputs.Spinner;
24862
24919
  var Textarea = inputs.Textarea;
24920
+ var scenarios = this.state.scenarios && this.state.scenarios.filter(function (s) {
24921
+ return !s.deleted;
24922
+ });
24863
24923
 
24864
24924
  return _react2.default.createElement(
24865
24925
  'div',
@@ -24869,7 +24929,7 @@ module.exports =
24869
24929
  { opened: opened, hideModal: hideModal, submitModal: this.submitModal, showCancel: true,
24870
24930
  title: manageScenarios ? 'Manage Scenarios' : 'Create New Scenario',
24871
24931
  submitLabel: manageScenarios ? 'Update Scenarios' : 'Save Scenario',
24872
- submitDisabled: loading || (!manageScenarios ? !title || !description : JSON.stringify(step.scenarioOrder) === JSON.stringify(scenarioOrder)) },
24932
+ submitDisabled: loading || !manageScenarios && (!title || !description) },
24873
24933
  _react2.default.createElement(
24874
24934
  'div',
24875
24935
  null,
@@ -24927,44 +24987,50 @@ module.exports =
24927
24987
  { style: { padding: 26 } },
24928
24988
  loading ? _react2.default.createElement(Spinner, null) : _react2.default.createElement(
24929
24989
  'div',
24930
- { style: { padding: '10px 0', border: '1px solid #EEE' } },
24931
- scenarios && scenarioOrder && scenarioOrder.map(function (so, i) {
24932
- var s = scenarios.find(function (sce) {
24933
- return String(sce.id) === so;
24934
- });
24935
- return s ? _react2.default.createElement(
24936
- 'div',
24937
- { key: i, style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', position: 'relative', height: 19, width: '100%' } },
24938
- _react2.default.createElement(
24939
- 'span',
24940
- { style: i !== 0 ? { cursor: 'pointer' } : { color: '#DDD' },
24941
- onClick: function onClick() {
24942
- return _this4.moveUp(s.id, i);
24943
- } },
24944
- '\u25B2'
24945
- ),
24946
- _react2.default.createElement(
24947
- 'span',
24948
- { style: i !== scenarioOrder.length - 1 ? { cursor: 'pointer' } : { color: '#DDD' }, onClick: function onClick() {
24949
- return _this4.moveDown(s.id, i);
24950
- } },
24951
- '\u25BC'
24952
- ),
24953
- _react2.default.createElement(
24954
- 'span',
24955
- null,
24956
- '\xA0\xA0',
24957
- s.title
24958
- ),
24959
- _react2.default.createElement(
24990
+ null,
24991
+ _react2.default.createElement(
24992
+ 'div',
24993
+ { style: { marginBottom: 10, fontSize: '16px' } },
24994
+ step.isFramework ? 'Global Scenarios' : 'Custom Scenarios'
24995
+ ),
24996
+ _react2.default.createElement(
24997
+ 'div',
24998
+ { style: { padding: '10px 0', border: '1px solid #EEE' } },
24999
+ scenarios && scenarios.map(function (s, i) {
25000
+ return s ? _react2.default.createElement(
24960
25001
  'div',
24961
- { onClick: function onClick() {
24962
- return _this4.deleteScenario(s.id, i);
24963
- }, style: { position: 'absolute', right: 9, top: 0, color: '#c23934', cursor: 'pointer' } },
24964
- 'x'
24965
- )
24966
- ) : _react2.default.createElement('span', { key: i });
24967
- })
25002
+ { key: i, style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', position: 'relative', height: 19, width: '100%' } },
25003
+ _react2.default.createElement(
25004
+ 'span',
25005
+ { style: i !== 0 ? { cursor: 'pointer' } : { color: '#DDD' },
25006
+ onClick: function onClick() {
25007
+ return _this4.moveUp(s.id, i);
25008
+ } },
25009
+ '\u25B2'
25010
+ ),
25011
+ _react2.default.createElement(
25012
+ 'span',
25013
+ { style: i !== scenarios.length - 1 ? { cursor: 'pointer' } : { color: '#DDD' }, onClick: function onClick() {
25014
+ return _this4.moveDown(s.id, i);
25015
+ } },
25016
+ '\u25BC'
25017
+ ),
25018
+ _react2.default.createElement(
25019
+ 'span',
25020
+ null,
25021
+ '\xA0\xA0',
25022
+ s.title
25023
+ ),
25024
+ _react2.default.createElement(
25025
+ 'div',
25026
+ { onClick: function onClick() {
25027
+ return _this4.deleteScenario(s.id, i);
25028
+ }, style: { position: 'absolute', right: 9, top: 0, color: '#c23934', cursor: 'pointer' } },
25029
+ 'x'
25030
+ )
25031
+ ) : _react2.default.createElement('span', { key: i });
25032
+ })
25033
+ )
24968
25034
  )
24969
25035
  ),
24970
25036
  _react2.default.createElement('a', { ref: function ref(_ref) {
@@ -25531,74 +25597,28 @@ module.exports =
25531
25597
 
25532
25598
  var _this = _possibleConstructorReturn(this, (LingkSync.__proto__ || Object.getPrototypeOf(LingkSync)).call(this));
25533
25599
 
25534
- _this.state = {
25535
- steps: null
25536
- };
25537
- //-----------------------------
25538
- // 3 Types:
25539
- // Point-to-point
25540
- // Api creation
25541
- // Event pub/sub
25542
- //-----------------------------
25543
- _this.allSteps = [
25544
- // Point-to-point
25545
- {
25546
- type: 'name',
25547
- title: 'Name'
25548
- }, {
25549
- type: 'env',
25550
- title: 'Environments'
25551
- }, {
25552
- type: 'file',
25553
- title: 'File Processing',
25554
- mode: 'source'
25555
- }, {
25556
- type: 'scenario',
25557
- title: 'Data Scenario'
25558
- }, {
25559
- type: 'schema',
25560
- title: 'Object Mapping',
25561
- mode: 'source'
25562
- }, {
25563
- type: 'map',
25564
- title: 'Field Mapping'
25565
- }, {
25566
- type: 'deploy',
25567
- title: 'Deploy'
25568
- }];
25569
- return _this;
25570
- }
25571
-
25572
- _createClass(LingkSync, [{
25573
- key: 'componentWillUnmount',
25574
- value: function componentWillUnmount() {
25575
- this.props.actions.clearWizardFormData();
25576
- }
25577
- }, {
25578
- key: 'componentWillMount',
25579
- value: function componentWillMount() {
25580
- var wizard = this.props.wizardConfig;
25600
+ _this.makeSteps = function (scenarios) {
25601
+ var wizard = _this.props.wizardConfig;
25581
25602
  var stepList = [];
25582
- for (var i = 0; i < this.allSteps.length; i++) {
25583
- var step = this.allSteps[i];
25603
+ for (var i = 0; i < _this.allSteps.length; i++) {
25604
+ var step = _this.allSteps[i];
25584
25605
  step.sourceConfig = wizard.source;
25585
25606
  step.destinationConfig = wizard.destination;
25586
25607
  step.sourceProvider = wizard.source.type;
25587
25608
  step.destinationProvider = wizard.destination.type;
25588
- step.isFramework = this.props.isFramework;
25589
- step.isOrgAdmin = this.props.isOrgAdmin;
25609
+ step.isFramework = _this.props.isFramework;
25610
+ step.isOrgAdmin = _this.props.isOrgAdmin;
25590
25611
  if (step.type === 'name') {
25591
25612
  step.name = wizard.title;
25592
25613
  stepList.push(step);
25593
25614
  } else if (step.type === 'env') {
25594
- step.previewToken = this.props.previewToken;
25615
+ step.previewToken = _this.props.previewToken;
25595
25616
  step.typeGuid = wizard.typeGuid;
25596
25617
  stepList.push(step);
25597
25618
  } else if (step.type === 'file' && wizard.source.type === 'SFTP') {
25598
25619
  stepList.push(step);
25599
- } else if (step.type === 'scenario' && wizard.scenarios.length > 0) {
25600
- step.options = wizard.scenarios;
25601
- step.scenarioOrder = wizard.scenarioIds;
25620
+ } else if (step.type === 'scenario' && scenarios.length > 0) {
25621
+ step.options = scenarios;
25602
25622
  step.magicNumber = '2147483647';
25603
25623
  stepList.push(step);
25604
25624
  } else if (step.type === 'environment') {
@@ -25609,7 +25629,7 @@ module.exports =
25609
25629
  step.credentials = wizard.source.credentials || null;
25610
25630
  step.metadataEndpoint = wizard.source.metadataEndpoint;
25611
25631
  step.metadataApi = wizard.source.metadataApi;
25612
- step.previewToken = this.props.previewToken;
25632
+ step.previewToken = _this.props.previewToken;
25613
25633
  step.bidirectional = wizard.source.bidirectional;
25614
25634
  stepList.push(step);
25615
25635
  } else if (step.mode === 'destination' && !wizard.destination.skipEnvStep) {
@@ -25618,7 +25638,7 @@ module.exports =
25618
25638
  step.credentials = wizard.destination.credentials || null;
25619
25639
  step.metadataEndpoint = wizard.destination.metadataEndpoint;
25620
25640
  step.metadataApi = wizard.destination.metadataApi;
25621
- step.previewToken = this.props.previewToken;
25641
+ step.previewToken = _this.props.previewToken;
25622
25642
  step.bidirectional = wizard.destination.bidirectional;
25623
25643
  stepList.push(step);
25624
25644
  }
@@ -25627,16 +25647,74 @@ module.exports =
25627
25647
  } else if (step.type === 'map') {
25628
25648
  step.customizable = wizard.destination.customizable;
25629
25649
  step.typeGuid = wizard.typeGuid;
25630
- step.scenarioOrder = wizard.scenarioIds;
25631
25650
  stepList.push(step);
25632
25651
  } else if (step.type === 'deploy') {
25633
25652
  step.options = ['once', 'daily', 'repeating'];
25634
25653
  stepList.push(step);
25635
25654
  }
25636
25655
  }
25637
- this.setState({
25656
+ _this.setState({
25638
25657
  steps: stepList
25639
25658
  });
25659
+ };
25660
+
25661
+ _this.state = {
25662
+ steps: null
25663
+ };
25664
+ //-----------------------------
25665
+ // 3 Types:
25666
+ // Point-to-point
25667
+ // Api creation
25668
+ // Event pub/sub
25669
+ //-----------------------------
25670
+ _this.allSteps = [
25671
+ // Point-to-point
25672
+ {
25673
+ type: 'name',
25674
+ title: 'Name'
25675
+ }, {
25676
+ type: 'env',
25677
+ title: 'Environments'
25678
+ }, {
25679
+ type: 'file',
25680
+ title: 'File Processing',
25681
+ mode: 'source'
25682
+ }, {
25683
+ type: 'scenario',
25684
+ title: 'Data Scenario'
25685
+ }, {
25686
+ type: 'schema',
25687
+ title: 'Object Mapping',
25688
+ mode: 'source'
25689
+ }, {
25690
+ type: 'map',
25691
+ title: 'Field Mapping'
25692
+ }, {
25693
+ type: 'deploy',
25694
+ title: 'Deploy'
25695
+ }];
25696
+ return _this;
25697
+ }
25698
+
25699
+ _createClass(LingkSync, [{
25700
+ key: 'componentWillUnmount',
25701
+ value: function componentWillUnmount() {
25702
+ this.props.actions.clearWizardFormData();
25703
+ }
25704
+ }, {
25705
+ key: 'componentWillMount',
25706
+ value: function componentWillMount() {
25707
+ var _this2 = this;
25708
+
25709
+ var _props = this.props,
25710
+ tenantId = _props.tenantId,
25711
+ accountId = _props.accountId,
25712
+ actions = _props.actions,
25713
+ wizardConfig = _props.wizardConfig;
25714
+
25715
+ actions.callGetScenarioList(tenantId, accountId, wizardConfig.typeGuid).then(function (r) {
25716
+ return _this2.makeSteps(r);
25717
+ });
25640
25718
  }
25641
25719
  }, {
25642
25720
  key: 'render',