@lingk/sync 0.1.20 → 0.1.21

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
@@ -4538,7 +4538,7 @@ module.exports =
4538
4538
  /* 13 */
4539
4539
  /***/ function(module, exports, __webpack_require__) {
4540
4540
 
4541
- var dP = __webpack_require__(18)
4541
+ var dP = __webpack_require__(19)
4542
4542
  , createDesc = __webpack_require__(33);
4543
4543
  module.exports = __webpack_require__(10) ? function(object, key, value){
4544
4544
  return dP.f(object, key, createDesc(1, value));
@@ -4557,79 +4557,6 @@ module.exports =
4557
4557
 
4558
4558
  /***/ },
4559
4559
  /* 15 */
4560
- /***/ function(module, exports, __webpack_require__) {
4561
-
4562
- var isObject = __webpack_require__(14);
4563
- module.exports = function(it){
4564
- if(!isObject(it))throw TypeError(it + ' is not an object!');
4565
- return it;
4566
- };
4567
-
4568
- /***/ },
4569
- /* 16 */
4570
- /***/ function(module, exports) {
4571
-
4572
- // 7.2.1 RequireObjectCoercible(argument)
4573
- module.exports = function(it){
4574
- if(it == undefined)throw TypeError("Can't call method on " + it);
4575
- return it;
4576
- };
4577
-
4578
- /***/ },
4579
- /* 17 */
4580
- /***/ function(module, exports) {
4581
-
4582
- var hasOwnProperty = {}.hasOwnProperty;
4583
- module.exports = function(it, key){
4584
- return hasOwnProperty.call(it, key);
4585
- };
4586
-
4587
- /***/ },
4588
- /* 18 */
4589
- /***/ function(module, exports, __webpack_require__) {
4590
-
4591
- var anObject = __webpack_require__(15)
4592
- , IE8_DOM_DEFINE = __webpack_require__(44)
4593
- , toPrimitive = __webpack_require__(48)
4594
- , dP = Object.defineProperty;
4595
-
4596
- exports.f = __webpack_require__(10) ? Object.defineProperty : function defineProperty(O, P, Attributes){
4597
- anObject(O);
4598
- P = toPrimitive(P, true);
4599
- anObject(Attributes);
4600
- if(IE8_DOM_DEFINE)try {
4601
- return dP(O, P, Attributes);
4602
- } catch(e){ /* empty */ }
4603
- if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
4604
- if('value' in Attributes)O[P] = Attributes.value;
4605
- return O;
4606
- };
4607
-
4608
- /***/ },
4609
- /* 19 */
4610
- /***/ function(module, exports) {
4611
-
4612
- // 7.1.4 ToInteger
4613
- var ceil = Math.ceil
4614
- , floor = Math.floor;
4615
- module.exports = function(it){
4616
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
4617
- };
4618
-
4619
- /***/ },
4620
- /* 20 */
4621
- /***/ function(module, exports, __webpack_require__) {
4622
-
4623
- // to indexed object, toObject with fallback for non-array-like ES3 strings
4624
- var IObject = __webpack_require__(30)
4625
- , defined = __webpack_require__(16);
4626
- module.exports = function(it){
4627
- return IObject(defined(it));
4628
- };
4629
-
4630
- /***/ },
4631
- /* 21 */,
4632
- /* 22 */
4633
4560
  /***/ function(module, exports, __webpack_require__) {
4634
4561
 
4635
4562
  'use strict';
@@ -4646,6 +4573,7 @@ module.exports =
4646
4573
 
4647
4574
  function loadData(step, wizard, change, formValues, actions) {
4648
4575
 
4576
+ change('title', formValues.title || step.name);
4649
4577
  var defaults = {
4650
4578
  sourceEndpoint: 'https://',
4651
4579
  destinationEndpoint: 'https://'
@@ -4909,6 +4837,79 @@ module.exports =
4909
4837
  exports.default = loadData;
4910
4838
 
4911
4839
  /***/ },
4840
+ /* 16 */
4841
+ /***/ function(module, exports, __webpack_require__) {
4842
+
4843
+ var isObject = __webpack_require__(14);
4844
+ module.exports = function(it){
4845
+ if(!isObject(it))throw TypeError(it + ' is not an object!');
4846
+ return it;
4847
+ };
4848
+
4849
+ /***/ },
4850
+ /* 17 */
4851
+ /***/ function(module, exports) {
4852
+
4853
+ // 7.2.1 RequireObjectCoercible(argument)
4854
+ module.exports = function(it){
4855
+ if(it == undefined)throw TypeError("Can't call method on " + it);
4856
+ return it;
4857
+ };
4858
+
4859
+ /***/ },
4860
+ /* 18 */
4861
+ /***/ function(module, exports) {
4862
+
4863
+ var hasOwnProperty = {}.hasOwnProperty;
4864
+ module.exports = function(it, key){
4865
+ return hasOwnProperty.call(it, key);
4866
+ };
4867
+
4868
+ /***/ },
4869
+ /* 19 */
4870
+ /***/ function(module, exports, __webpack_require__) {
4871
+
4872
+ var anObject = __webpack_require__(16)
4873
+ , IE8_DOM_DEFINE = __webpack_require__(44)
4874
+ , toPrimitive = __webpack_require__(48)
4875
+ , dP = Object.defineProperty;
4876
+
4877
+ exports.f = __webpack_require__(10) ? Object.defineProperty : function defineProperty(O, P, Attributes){
4878
+ anObject(O);
4879
+ P = toPrimitive(P, true);
4880
+ anObject(Attributes);
4881
+ if(IE8_DOM_DEFINE)try {
4882
+ return dP(O, P, Attributes);
4883
+ } catch(e){ /* empty */ }
4884
+ if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
4885
+ if('value' in Attributes)O[P] = Attributes.value;
4886
+ return O;
4887
+ };
4888
+
4889
+ /***/ },
4890
+ /* 20 */
4891
+ /***/ function(module, exports) {
4892
+
4893
+ // 7.1.4 ToInteger
4894
+ var ceil = Math.ceil
4895
+ , floor = Math.floor;
4896
+ module.exports = function(it){
4897
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
4898
+ };
4899
+
4900
+ /***/ },
4901
+ /* 21 */
4902
+ /***/ function(module, exports, __webpack_require__) {
4903
+
4904
+ // to indexed object, toObject with fallback for non-array-like ES3 strings
4905
+ var IObject = __webpack_require__(30)
4906
+ , defined = __webpack_require__(17);
4907
+ module.exports = function(it){
4908
+ return IObject(defined(it));
4909
+ };
4910
+
4911
+ /***/ },
4912
+ /* 22 */,
4912
4913
  /* 23 */
4913
4914
  /***/ function(module, exports, __webpack_require__) {
4914
4915
 
@@ -5758,7 +5759,7 @@ module.exports =
5758
5759
  /***/ function(module, exports, __webpack_require__) {
5759
5760
 
5760
5761
  // 7.1.13 ToObject(argument)
5761
- var defined = __webpack_require__(16);
5762
+ var defined = __webpack_require__(17);
5762
5763
  module.exports = function(it){
5763
5764
  return Object(defined(it));
5764
5765
  };
@@ -5932,7 +5933,7 @@ module.exports =
5932
5933
 
5933
5934
  // false -> Array#indexOf
5934
5935
  // true -> Array#includes
5935
- var toIObject = __webpack_require__(20)
5936
+ var toIObject = __webpack_require__(21)
5936
5937
  , toLength = __webpack_require__(47)
5937
5938
  , toIndex = __webpack_require__(46);
5938
5939
  module.exports = function(IS_INCLUDES){
@@ -5989,8 +5990,8 @@ module.exports =
5989
5990
  /* 45 */
5990
5991
  /***/ function(module, exports, __webpack_require__) {
5991
5992
 
5992
- var has = __webpack_require__(17)
5993
- , toIObject = __webpack_require__(20)
5993
+ var has = __webpack_require__(18)
5994
+ , toIObject = __webpack_require__(21)
5994
5995
  , arrayIndexOf = __webpack_require__(42)(false)
5995
5996
  , IE_PROTO = __webpack_require__(24)('IE_PROTO');
5996
5997
 
@@ -6011,7 +6012,7 @@ module.exports =
6011
6012
  /* 46 */
6012
6013
  /***/ function(module, exports, __webpack_require__) {
6013
6014
 
6014
- var toInteger = __webpack_require__(19)
6015
+ var toInteger = __webpack_require__(20)
6015
6016
  , max = Math.max
6016
6017
  , min = Math.min;
6017
6018
  module.exports = function(index, length){
@@ -6024,7 +6025,7 @@ module.exports =
6024
6025
  /***/ function(module, exports, __webpack_require__) {
6025
6026
 
6026
6027
  // 7.1.15 ToLength
6027
- var toInteger = __webpack_require__(19)
6028
+ var toInteger = __webpack_require__(20)
6028
6029
  , min = Math.min;
6029
6030
  module.exports = function(it){
6030
6031
  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
@@ -19562,6 +19563,7 @@ module.exports =
19562
19563
  exports.callPostBundles = callPostBundles;
19563
19564
  exports.callPostMapping = callPostMapping;
19564
19565
  exports.callPostProductizedIntegration = callPostProductizedIntegration;
19566
+ exports.callUpdateProductizedIntegration = callUpdateProductizedIntegration;
19565
19567
  exports.callGenerateRecipe = callGenerateRecipe;
19566
19568
  exports.submitWizardData = submitWizardData;
19567
19569
  exports.callExecuteTransformer = callExecuteTransformer;
@@ -19866,11 +19868,32 @@ module.exports =
19866
19868
  };
19867
19869
  }
19868
19870
 
19869
- function callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, piGuid, mappingGuid, destinationMetadata) {
19871
+ function callUpdateProductizedIntegration(tenantId, appId, schemaMappingGuid, bundlePackGuid, configuration, title, typeGuid, piGuid) {
19870
19872
  return function (dispatch, getState, api) {
19871
19873
  var _getState12 = getState(),
19872
19874
  config = _getState12.config;
19873
19875
 
19876
+ var data = {
19877
+ schemaMappingGuid: schemaMappingGuid,
19878
+ bundlePackGuid: bundlePackGuid,
19879
+ integrationTypeGuid: typeGuid,
19880
+ name: title,
19881
+ configuration: configuration
19882
+ };
19883
+ return api.put(tenantId + '/' + appId + '/productizedintegrations/' + piGuid, {
19884
+ endpoint: config.TRANS_API_URL,
19885
+ data: data
19886
+ }).then(function (pi) {
19887
+ return pi;
19888
+ });
19889
+ };
19890
+ }
19891
+
19892
+ function callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, piGuid, mappingGuid, destinationMetadata) {
19893
+ return function (dispatch, getState, api) {
19894
+ var _getState13 = getState(),
19895
+ config = _getState13.config;
19896
+
19874
19897
  return api.post(tenantId + '/' + appId + '/productizedintegrations/' + piGuid + '/generate', {
19875
19898
  endpoint: config.TRANS_API_URL,
19876
19899
  data: {
@@ -19886,12 +19909,17 @@ module.exports =
19886
19909
  };
19887
19910
  }
19888
19911
 
19889
- function submitWizardData(tenantId, appId, bundles, mappings, configuration, title, deployment, typeId, typeGuid, onPiPost, onGenerate, onFinish, destinationMetadata) {
19912
+ function submitWizardData(tenantId, appId, bundles, mappings, configuration, title, deployment, typeId, typeGuid, piGuid, onPiPost, onGenerate, onFinish, destinationMetadata) {
19890
19913
  return function (dispatch) {
19891
19914
  var map = {};
19892
19915
  return Promise.all([dispatch(callPostBundles(tenantId, appId, bundles)), dispatch(callPostMapping(tenantId, appId, mappings)), dispatch(createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata))]).then(function (r) {
19893
19916
  map = r[1];
19894
- return dispatch(callPostProductizedIntegration(tenantId, appId, map.schemaMappingGuid, r[0].bundlePackGuid, configuration, title, typeGuid));
19917
+ var bundle = r[0];
19918
+ if (piGuid) {
19919
+ return dispatch(callUpdateProductizedIntegration(tenantId, appId, map.schemaMappingGuid, bundle.bundlePackGuid, configuration, title, typeGuid, piGuid));
19920
+ } else {
19921
+ return dispatch(callPostProductizedIntegration(tenantId, appId, map.schemaMappingGuid, bundle.bundlePackGuid, configuration, title, typeGuid));
19922
+ }
19895
19923
  }).then(function (pi) {
19896
19924
  if (map.mappings && map.mappings.length > 0 && deployment) {
19897
19925
  dispatch(callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, pi.productizedIntegrationGuid, map.schemaMappingGuid, destinationMetadata)).then(function (generatedRecipe) {
@@ -19917,8 +19945,8 @@ module.exports =
19917
19945
 
19918
19946
  function callExecuteTransformer(transId) {
19919
19947
  return function (dispatch, getState, api) {
19920
- var _getState13 = getState(),
19921
- config = _getState13.config;
19948
+ var _getState14 = getState(),
19949
+ config = _getState14.config;
19922
19950
 
19923
19951
  var query = '';
19924
19952
  var d = new Date();
@@ -19942,8 +19970,8 @@ module.exports =
19942
19970
 
19943
19971
  function callLookupLogData(externalExecutionId, index, onFinish, generatedRecipe, piGuid, mapGuid) {
19944
19972
  return function (dispatch, getState, api) {
19945
- var _getState14 = getState(),
19946
- config = _getState14.config;
19973
+ var _getState15 = getState(),
19974
+ config = _getState15.config;
19947
19975
 
19948
19976
  return api.get('logs/transformers/externalExecutionId/' + externalExecutionId, {
19949
19977
  endpoint: config.TRANS_API_URL
@@ -19986,8 +20014,8 @@ module.exports =
19986
20014
  };
19987
20015
  }
19988
20016
  return function (dispatch, getState, api) {
19989
- var _getState15 = getState(),
19990
- config = _getState15.config;
20017
+ var _getState16 = getState(),
20018
+ config = _getState16.config;
19991
20019
 
19992
20020
  return api.post('createtrigger', {
19993
20021
  endpoint: config.TRANS_API_URL,
@@ -20000,8 +20028,8 @@ module.exports =
20000
20028
 
20001
20029
  function callDeployTrigger(generatedRecipe, piGuid, mapGuid, onFinish) {
20002
20030
  return function (dispatch, getState, api) {
20003
- var _getState16 = getState(),
20004
- config = _getState16.config;
20031
+ var _getState17 = getState(),
20032
+ config = _getState17.config;
20005
20033
 
20006
20034
  return api.put('transformer/deploy/' + generatedRecipe.Id, {
20007
20035
  endpoint: config.TRANS_API_URL,
@@ -20035,15 +20063,13 @@ module.exports =
20035
20063
  // a wizard config already exists
20036
20064
  var source = metadataEndpoints.source,
20037
20065
  sourceApi = metadataEndpoints.sourceApi,
20038
- sourceEnv = metadataEndpoints.sourceEnv,
20039
20066
  destination = metadataEndpoints.destination,
20040
- destinationApi = metadataEndpoints.destinationApi,
20041
- destinationEnv = metadataEndpoints.destinationEnv;
20067
+ destinationApi = metadataEndpoints.destinationApi;
20042
20068
 
20043
20069
  if (piGuid) {
20044
20070
  return function (dispatch, getState, api) {
20045
- var _getState17 = getState(),
20046
- config = _getState17.config;
20071
+ var _getState18 = getState(),
20072
+ config = _getState18.config;
20047
20073
 
20048
20074
  return api.get(tenantId + '/' + accountId + '/productizedintegrations', {
20049
20075
  endpoint: config.TRANS_API_URL
@@ -20067,19 +20093,17 @@ module.exports =
20067
20093
  type: types.SET_WIZARD_SAVED_CONFIGURATION,
20068
20094
  data: config
20069
20095
  });
20070
- return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, source, sourceApi, savedSourceEndpoint, sourceEnv)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', providers.destination, destination, destinationApi, savedDestinationEndpoint, destinationEnv)), dispatch(callGetMapping(tenantId, accountId, PI.SchemaMappingGuid)), dispatch(callGetBundles(tenantId, accountId, PI.BundlePackGuid)), dispatch(callGetTrigger(PI.TransformerBaseId)), dispatch(callGetCredentials(tenantId, accountId, providers))]);
20096
+ return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, source, sourceApi, savedSourceEndpoint, false)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', providers.destination, destination, destinationApi, savedDestinationEndpoint, false)), dispatch(callGetMapping(tenantId, accountId, PI.SchemaMappingGuid)), dispatch(callGetBundles(tenantId, accountId, PI.BundlePackGuid)), dispatch(callGetTrigger(PI.TransformerBaseId)), dispatch(callGetCredentials(tenantId, accountId, providers))]);
20071
20097
  });
20072
20098
  };
20073
20099
  } else return function (dispatch) {
20074
20100
  // FIRST TIME!
20075
- return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, source, sourceApi, null, sourceEnv)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', providers.destination, destination, destinationApi, null, destinationEnv))]);
20101
+ return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, source, sourceApi, null, false)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', providers.destination, destination, destinationApi, null, false))]);
20076
20102
  };
20077
20103
  }
20078
20104
 
20079
- function tryGetMetadata(tenantId, appId, mode, providerType, urlSuffix, apiUrl, savedEndpoint, isEnvStep) {
20080
- if (isEnvStep && !savedEndpoint) return function () {
20081
- return Promise.resolve(null);
20082
- };
20105
+ function tryGetMetadata(tenantId, appId, mode, providerType, urlSuffix, apiUrl, savedEndpoint, isFromEnvStep) {
20106
+ //if(isFromEnvStep && !savedEndpoint) return () => Promise.resolve(null)
20083
20107
  if (urlSuffix) {
20084
20108
  return function (dispatch) {
20085
20109
  return dispatch(callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType));
@@ -20096,8 +20120,8 @@ module.exports =
20096
20120
  function callGetBundles(tenantId, accountId, bundlePackGuid) {
20097
20121
  if (bundlePackGuid) {
20098
20122
  return function (dispatch, getState, api) {
20099
- var _getState18 = getState(),
20100
- config = _getState18.config;
20123
+ var _getState19 = getState(),
20124
+ config = _getState19.config;
20101
20125
 
20102
20126
  return api.get(tenantId + '/' + accountId + '/bundle/' + bundlePackGuid, {
20103
20127
  endpoint: config.TRANS_API_URL
@@ -20116,8 +20140,8 @@ module.exports =
20116
20140
  function callGetMapping(tenantId, accountId, mappingGuid) {
20117
20141
  if (mappingGuid) {
20118
20142
  return function (dispatch, getState, api) {
20119
- var _getState19 = getState(),
20120
- config = _getState19.config;
20143
+ var _getState20 = getState(),
20144
+ config = _getState20.config;
20121
20145
 
20122
20146
  return api.get(tenantId + '/' + accountId + '/schemamappings/' + mappingGuid, {
20123
20147
  endpoint: config.TRANS_API_URL
@@ -20135,8 +20159,8 @@ module.exports =
20135
20159
 
20136
20160
  function postCredentials(tenantId, appId, providerType, url, credentials) {
20137
20161
  return function (dispatch, getState, api) {
20138
- var _getState20 = getState(),
20139
- config = _getState20.config;
20162
+ var _getState21 = getState(),
20163
+ config = _getState21.config;
20140
20164
 
20141
20165
  return api.post(tenantId + '/' + appId + '/credentials', {
20142
20166
  endpoint: config.TRANS_API_URL,
@@ -20168,8 +20192,8 @@ module.exports =
20168
20192
 
20169
20193
  function tryGetCredentials(tenantId, appId, credentialType, creds) {
20170
20194
  return function (dispatch, getState, api) {
20171
- var _getState21 = getState(),
20172
- config = _getState21.config;
20195
+ var _getState22 = getState(),
20196
+ config = _getState22.config;
20173
20197
 
20174
20198
  if (creds && creds.length > 0 && creds[0] !== 'Oauth') {
20175
20199
  return api.get(tenantId + '/' + appId + '/credentials/' + credentialType, {
@@ -20188,8 +20212,8 @@ module.exports =
20188
20212
  mode: mode
20189
20213
  });
20190
20214
 
20191
- var _getState22 = getState(),
20192
- config = _getState22.config;
20215
+ var _getState23 = getState(),
20216
+ config = _getState23.config;
20193
20217
 
20194
20218
  return api.get(tenantId + '/' + appId + '/' + urlSuffix, {
20195
20219
  endpoint: config[apiUrl]
@@ -20211,8 +20235,8 @@ module.exports =
20211
20235
 
20212
20236
  function callGetTrigger(transBaseId) {
20213
20237
  return function (dispatch, getState, api) {
20214
- var _getState23 = getState(),
20215
- config = _getState23.config;
20238
+ var _getState24 = getState(),
20239
+ config = _getState24.config;
20216
20240
 
20217
20241
  return api.get('gettrigger/' + transBaseId, {
20218
20242
  endpoint: config.TRANS_API_URL
@@ -23061,7 +23085,7 @@ module.exports =
23061
23085
 
23062
23086
  var _navButtons2 = _interopRequireDefault(_navButtons);
23063
23087
 
23064
- var _loadData = __webpack_require__(22);
23088
+ var _loadData = __webpack_require__(15);
23065
23089
 
23066
23090
  var _loadData2 = _interopRequireDefault(_loadData);
23067
23091
 
@@ -23300,7 +23324,7 @@ module.exports =
23300
23324
 
23301
23325
  var _navButtons2 = _interopRequireDefault(_navButtons);
23302
23326
 
23303
- var _loadData = __webpack_require__(22);
23327
+ var _loadData = __webpack_require__(15);
23304
23328
 
23305
23329
  var _loadData2 = _interopRequireDefault(_loadData);
23306
23330
 
@@ -23857,7 +23881,7 @@ module.exports =
23857
23881
 
23858
23882
  var _navButtons2 = _interopRequireDefault(_navButtons);
23859
23883
 
23860
- var _loadData = __webpack_require__(22);
23884
+ var _loadData = __webpack_require__(15);
23861
23885
 
23862
23886
  var _loadData2 = _interopRequireDefault(_loadData);
23863
23887
 
@@ -24146,6 +24170,10 @@ module.exports =
24146
24170
 
24147
24171
  var _navButtons2 = _interopRequireDefault(_navButtons);
24148
24172
 
24173
+ var _loadData = __webpack_require__(15);
24174
+
24175
+ var _loadData2 = _interopRequireDefault(_loadData);
24176
+
24149
24177
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24150
24178
 
24151
24179
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -24185,10 +24213,14 @@ module.exports =
24185
24213
  value: function componentDidMount() {
24186
24214
  var _props = this.props,
24187
24215
  step = _props.step,
24216
+ wizard = _props.wizard,
24188
24217
  change = _props.change,
24189
- formValues = _props.formValues;
24218
+ formValues = _props.formValues,
24219
+ actions = _props.actions;
24190
24220
 
24191
- change('title', formValues.title || step.name);
24221
+ if (!wizard.dataLoaded) {
24222
+ (0, _loadData2.default)(step, wizard, change, formValues, actions);
24223
+ }
24192
24224
  }
24193
24225
  }, {
24194
24226
  key: 'render',
@@ -24197,7 +24229,8 @@ module.exports =
24197
24229
  inputs = _props2.inputs,
24198
24230
  handleSubmit = _props2.handleSubmit,
24199
24231
  nav = _props2.nav,
24200
- reset = _props2.reset;
24232
+ reset = _props2.reset,
24233
+ formValues = _props2.formValues;
24201
24234
 
24202
24235
  return _react2.default.createElement(
24203
24236
  'form',
@@ -24213,12 +24246,13 @@ module.exports =
24213
24246
  _react2.default.createElement(
24214
24247
  'div',
24215
24248
  { style: { marginLeft: 16 } },
24216
- _react2.default.createElement(_reduxForm.Field, { name: 'title', type: 'text', component: inputs.rfInput, label: 'Name' })
24249
+ _react2.default.createElement(_reduxForm.Field, { name: 'title', type: 'text', component: inputs.rfInput,
24250
+ label: 'Integration Name' })
24217
24251
  ),
24218
24252
  _react2.default.createElement('br', null),
24219
24253
  _react2.default.createElement(_reduxForm.Field, { name: 'customer', component: renderError }),
24220
24254
  _react2.default.createElement('br', null),
24221
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, reset: reset, nav: nav, inputs: inputs }),
24255
+ _react2.default.createElement(_navButtons2.default, { nextDisabled: !formValues['title'], handleSubmit: handleSubmit, reset: reset, nav: nav, inputs: inputs }),
24222
24256
  _react2.default.createElement('br', null),
24223
24257
  _react2.default.createElement('br', null)
24224
24258
  );
@@ -24491,7 +24525,7 @@ module.exports =
24491
24525
 
24492
24526
  var _navButtons2 = _interopRequireDefault(_navButtons);
24493
24527
 
24494
- var _loadData = __webpack_require__(22);
24528
+ var _loadData = __webpack_require__(15);
24495
24529
 
24496
24530
  var _loadData2 = _interopRequireDefault(_loadData);
24497
24531
 
@@ -24731,7 +24765,7 @@ module.exports =
24731
24765
 
24732
24766
  var _navButtons2 = _interopRequireDefault(_navButtons);
24733
24767
 
24734
- var _loadData = __webpack_require__(22);
24768
+ var _loadData = __webpack_require__(15);
24735
24769
 
24736
24770
  var _loadData2 = _interopRequireDefault(_loadData);
24737
24771
 
@@ -25926,10 +25960,11 @@ module.exports =
25926
25960
  accountId = _props2.accountId,
25927
25961
  tenantId = _props2.tenantId,
25928
25962
  wizardConfig = _props2.wizardConfig,
25929
- onPiPost = _props2.onPiPost;
25963
+ onPiPost = _props2.onPiPost,
25964
+ piGuid = _props2.piGuid;
25930
25965
 
25931
25966
  if (true) {
25932
- actions.submitWizardData(tenantId, accountId, bundles, mappings, configuration, wizardConfig.title || 'Banner to Salesforce', formValues.deployment || null, wizardConfig.typeId, wizardConfig.typeGuid, onPiPost, onGenerate, onFinish, this.props.wizard.destinationMetadata || []);
25967
+ actions.submitWizardData(tenantId, accountId, bundles, mappings, configuration, formValues.title || wizardConfig.title || 'LingkSync', formValues.deployment || null, wizardConfig.typeId, wizardConfig.typeGuid, piGuid, onPiPost, onGenerate, onFinish, this.props.wizard.destinationMetadata || []);
25933
25968
  onSubmit({ complete: formValues.hasOwnProperty('deployment') });
25934
25969
  }
25935
25970
  actions.setWizardLoaded(false); // so wizard reloads config on 'restart'
@@ -26195,27 +26230,27 @@ module.exports =
26195
26230
  step.sourceProvider = wizard.source.type;
26196
26231
  step.destinationProvider = wizard.destination.type;
26197
26232
  step.isFramework = this.props.isFramework;
26198
- /*if (step.type === 'name' && wizard.nameStep) {
26199
- step.name = wizard.title
26200
- stepList.push(step)
26201
- } else if (step.type === 'phase' && wizard.phaseStep) {
26202
- stepList.push(step)
26203
- } else if (step.type === 'custom') {
26204
- const customStep = providerData.providerTypes[wizard.destination.type].customStep
26205
- if (customStep && wizard[step.mode].customStep) {
26206
- step.type = customStep.type
26207
- step.title = customStep.title
26208
- step.options = customStep.options
26209
- stepList.push(step)
26210
- }
26211
- } else */if (step.type === 'scenario') {
26233
+ if (step.type === 'name') {
26234
+ step.name = wizard.title;
26235
+ stepList.push(step);
26236
+ } /* else if (step.type === 'phase' && wizard.phaseStep) {
26237
+ stepList.push(step)
26238
+ } else if (step.type === 'custom') {
26239
+ const customStep = providerData.providerTypes[wizard.destination.type].customStep
26240
+ if (customStep && wizard[step.mode].customStep) {
26241
+ step.type = customStep.type
26242
+ step.title = customStep.title
26243
+ step.options = customStep.options
26244
+ stepList.push(step)
26245
+ }
26246
+ } else */if (step.type === 'scenario') {
26212
26247
  step.options = wizard.scenarios;
26213
26248
  step.scenarioOrder = wizard.scenarioIds;
26214
26249
  step.magicNumber = '2147483647';
26215
26250
  stepList.push(step);
26216
26251
  } else if (step.type === 'environment') {
26217
26252
  step.typeGuid = wizard.typeGuid;
26218
- if (step.mode === 'source' && !wizard.source.skipEnvStep) {
26253
+ if (step.mode === 'source') {
26219
26254
  step.message = wizard.source.message;
26220
26255
  step.providerType = wizard.source.type;
26221
26256
  step.credentials = wizard.source.credentials || null;
@@ -26223,7 +26258,7 @@ module.exports =
26223
26258
  step.metadataApi = wizard.source.metadataApi;
26224
26259
  step.previewToken = this.props.previewToken;
26225
26260
  stepList.push(step);
26226
- } else if (step.mode === 'destination' && !wizard.destination.skipEnvStep) {
26261
+ } else if (step.mode === 'destination') {
26227
26262
  step.message = wizard.destination.message;
26228
26263
  step.providerType = wizard.destination.type;
26229
26264
  step.credentials = wizard.destination.credentials || null;
@@ -26259,10 +26294,8 @@ module.exports =
26259
26294
  var metadataEndpoints = {
26260
26295
  source: wizard.source.metadataEndpoint || null,
26261
26296
  sourceApi: wizard.source.metadataApi || null,
26262
- sourceEnv: wizard.source.skipEnvStep ? false : true,
26263
26297
  destination: wizard.destination.metadataEndpoint || null,
26264
- destinationApi: wizard.destination.metadataApi || null,
26265
- destinationEnv: wizard.destination.skipEnvStep ? false : true
26298
+ destinationApi: wizard.destination.metadataApi || null
26266
26299
  };
26267
26300
  this.setState({
26268
26301
  steps: stepList,
@@ -26445,7 +26478,7 @@ module.exports =
26445
26478
 
26446
26479
  var $export = __webpack_require__(23);
26447
26480
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
26448
- $export($export.S + $export.F * !__webpack_require__(10), 'Object', {defineProperty: __webpack_require__(18).f});
26481
+ $export($export.S + $export.F * !__webpack_require__(10), 'Object', {defineProperty: __webpack_require__(19).f});
26449
26482
 
26450
26483
  /***/ },
26451
26484
  /* 262 */,