@lingk/sync 2.0.19 → 2.0.20

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
@@ -51650,7 +51650,7 @@ module.exports =
51650
51650
  /* 169 */
51651
51651
  /***/ function(module, exports, __webpack_require__) {
51652
51652
 
51653
- 'use strict';
51653
+ "use strict";
51654
51654
 
51655
51655
  Object.defineProperty(exports, "__esModule", {
51656
51656
  value: true
@@ -51742,13 +51742,13 @@ module.exports =
51742
51742
  */
51743
51743
 
51744
51744
  // isReload means that the "Check Connection" button was NOT clicked
51745
- function callGetMetadata(tenantId, appId, mode, providerType, providerConfig, endpoint, isFramework, creds, environment, isReload, fileSchemaGuid, extraQuery) {
51745
+ function callGetMetadata(tenantId, appId, mode, providerType, providerConfig, endpoint, isFramework, creds, environment, isReload, fileSchemaGuid, extraQuery, connectionKey) {
51746
51746
  var metadata = null;
51747
51747
  var credentialType = providerConfig.credentialType,
51748
51748
  metadataApi = providerConfig.metadataApi;
51749
51749
 
51750
- var isOauth = credentialType === 'SalesforceAuthCode';
51751
- var isLocalFile = credentialType === 'LocalFile';
51750
+ var isOauth = credentialType === "SalesforceAuthCode";
51751
+ var isLocalFile = credentialType === "LocalFile";
51752
51752
  return function (dispatch) {
51753
51753
  dispatch({
51754
51754
  type: types.START_WIZARD_ENV_CHECK,
@@ -51757,27 +51757,27 @@ module.exports =
51757
51757
  return dispatch(
51758
51758
  // some providers skip this and go straight for getProviderMetadata
51759
51759
  // if their credentials are stored separately (like SF oauth or Adapter)
51760
- tryCheckConnection(tenantId, appId, providerType, providerConfig, isFramework, creds, fileSchemaGuid)).then(function (r) {
51760
+ tryCheckConnection(tenantId, appId, providerType, providerConfig, isFramework, creds, fileSchemaGuid, environment, connectionKey)).then(function (r) {
51761
51761
  var schemaGuid = creds.schemaGuid; // flat file schema (for browser upload guid is in creds)
51762
51762
  if (fileSchemaGuid) {
51763
51763
  schemaGuid = fileSchemaGuid; // for SFTP guid is in wiz config
51764
51764
  }
51765
51765
  /*let resFromCheckConnection = null
51766
51766
  if(r && r.schema){ // currently only for SFTP check connection
51767
- resFromCheckConnection = r.schema // skip callGetProviderMetadata network call
51767
+ resFromCheckConnection = r.schema // skip callGetProviderMetadata network call
51768
51768
  }*/
51769
- return dispatch(callGetProviderMetadata(tenantId, appId, providerConfig, mode, providerType, endpoint, isOauth, environment.name, schemaGuid, creds, extraQuery));
51769
+ return dispatch(callGetProviderMetadata(tenantId, appId, providerConfig, mode, providerType, endpoint, isOauth, environment.name, schemaGuid, creds, extraQuery, connectionKey));
51770
51770
  }).then(function (m) {
51771
51771
  metadata = m;
51772
51772
  // FOR NOW ONLY ALLOW CSV FOR FLAT FILE
51773
51773
  if (isLocalFile) {
51774
51774
  metadata = metadata.filter(function (rsc) {
51775
- var ext = rsc.name.substr(rsc.name.lastIndexOf('.') + 1, rsc.name.length);
51776
- return ext === 'csv';
51775
+ var ext = rsc.name.substr(rsc.name.lastIndexOf(".") + 1, rsc.name.length);
51776
+ return ext === "csv";
51777
51777
  });
51778
51778
  }
51779
51779
  //console.log(metadata)
51780
- var isIntro = endpoint === '_blank';
51780
+ var isIntro = endpoint === "_blank";
51781
51781
  var envId = environment.environmentId;
51782
51782
  if (isOauth || isIntro || isReload || isLocalFile) {
51783
51783
  return Promise.resolve(null);
@@ -51786,7 +51786,7 @@ module.exports =
51786
51786
  }).then(function (res) {
51787
51787
  dispatch({
51788
51788
  type: types.FINISH_WIZARD_ENV_CHECK,
51789
- data: { metadata: metadata, mode: mode, code: '200 OK', providerType: providerType }
51789
+ data: { metadata: metadata, mode: mode, code: "200 OK", providerType: providerType }
51790
51790
  });
51791
51791
  return metadata;
51792
51792
  }).catch(function (error) {
@@ -51794,18 +51794,18 @@ module.exports =
51794
51794
  if (error.response && error.response.data) {
51795
51795
  err = error.response.data;
51796
51796
  }
51797
- if (metadataApi === 'TEST_CONN_API_URL') {
51797
+ if (metadataApi === "TEST_CONN_API_URL") {
51798
51798
  err = error.response.data.error;
51799
51799
  }
51800
51800
  dispatch({
51801
51801
  type: types.FINISH_WIZARD_ENV_CHECK,
51802
- data: { res: null, mode: mode, code: '404 Error', providerType: providerType, err: err }
51802
+ data: { res: null, mode: mode, code: "404 Error", providerType: providerType, err: err }
51803
51803
  });
51804
51804
  });
51805
51805
  };
51806
51806
  }
51807
51807
 
51808
- function tryCheckConnection(tenantId, appId, providerType, providerConfig, isFramework, creds, fileSchemaGuid) {
51808
+ function tryCheckConnection(tenantId, appId, providerType, providerConfig, isFramework, creds, fileSchemaGuid, environment, connectionKey) {
51809
51809
  return function (dispatch, getState, api) {
51810
51810
  var credentialType = providerConfig.credentialType,
51811
51811
  metadataApi = providerConfig.metadataApi,
@@ -51821,8 +51821,8 @@ module.exports =
51821
51821
  var _getState = getState(),
51822
51822
  config = _getState.config;
51823
51823
 
51824
- if (metadataApi === 'TEST_CONN_API_URL') {
51825
- return api.post(tenantId + '/' + appId + '/testconnection/' + providerType.toLowerCase(), {
51824
+ if (metadataApi === "TEST_CONN_API_URL") {
51825
+ return api.post(tenantId + "/" + appId + "/testconnection/" + providerType.toLowerCase(), {
51826
51826
  endpoint: config.TEST_CONN_API_URL,
51827
51827
  data: {
51828
51828
  credentialType: credentialType,
@@ -51830,12 +51830,16 @@ module.exports =
51830
51830
  providerLabel: providerType
51831
51831
  },
51832
51832
  headers: {
51833
- 'Content-Type': 'application/json'
51833
+ "Content-Type": "application/json"
51834
51834
  }
51835
51835
  });
51836
+ } else if (metadataApi === "SF_AGENT_API_URL") {
51837
+ return api.get(tenantId + "/" + appId + "/environments/" + environment.name + "/" + connectionKey + "/testconnection", {
51838
+ endpoint: config.SF_AGENT_API_URL
51839
+ });
51836
51840
  }
51837
51841
 
51838
- return api.post(tenantId + '/' + appId + '/testconnection/' + providerType.toLowerCase(), {
51842
+ return api.post(tenantId + "/" + appId + "/testconnection/" + providerType.toLowerCase(), {
51839
51843
  endpoint: config.TRANS_API_URL,
51840
51844
  data: {
51841
51845
  credentialType: credentialType,
@@ -51848,8 +51852,8 @@ module.exports =
51848
51852
 
51849
51853
  function addLeadingSlashToSftpPath(credsJson) {
51850
51854
  var creds = Object.assign({}, credsJson);
51851
- if (creds.path && creds.path[0] !== '/') {
51852
- creds.path = '/' + creds.path;
51855
+ if (creds.path && creds.path[0] !== "/") {
51856
+ creds.path = "/" + creds.path;
51853
51857
  }
51854
51858
  if (creds.rootUrl) {
51855
51859
  creds.endpoint = creds.rootUrl;
@@ -51860,13 +51864,13 @@ module.exports =
51860
51864
  return creds;
51861
51865
  }
51862
51866
 
51863
- function callGetProviderMetadata(tenantId, appId, providerConfig, mode, providerType, endpoint, isOauth, envName, schemaGuid, creds, extraQuery) {
51867
+ function callGetProviderMetadata(tenantId, appId, providerConfig, mode, providerType, endpoint, isOauth, envName, schemaGuid, creds, extraQuery, connectionKey) {
51864
51868
  // urlSuffix for getMetadata. If checkConnection returns meta, skip this one
51865
51869
  var metadataEndpoint = providerConfig.metadataEndpoint,
51866
51870
  metadataApi = providerConfig.metadataApi,
51867
51871
  credentialType = providerConfig.credentialType;
51868
51872
 
51869
- var isFlatFile = credentialType === 'LocalFile';
51873
+ var isFlatFile = credentialType === "LocalFile";
51870
51874
  if (!metadataEndpoint) {
51871
51875
  return function () {
51872
51876
  return Promise.resolve();
@@ -51877,18 +51881,18 @@ module.exports =
51877
51881
  config = _getState2.config;
51878
51882
 
51879
51883
  var isAdapter = false;
51880
- if (metadataEndpoint === 'adaptermetadata') {
51881
- metadataEndpoint = 'adaptermetadata?url=' + endpoint;
51884
+ if (metadataEndpoint === "adaptermetadata") {
51885
+ metadataEndpoint = "adaptermetadata?url=" + endpoint;
51882
51886
  isAdapter = true;
51883
51887
  }
51884
51888
  /*if(metadataEndpoint==='fileschema'){ // CHANGE FLAT FILE TO ALL IN ENV
51885
51889
  metadataEndpoint = `fileschema?schemaGuid=${schemaGuid}`
51886
51890
  }*/
51887
- if (metadataEndpoint === 'schema/swagger/moodle' && creds.swaggerUrl) {
51888
- metadataEndpoint = 'schema/swagger/moodle?swaggerUrl=' + creds.swaggerUrl;
51891
+ if (metadataEndpoint === "schema/swagger/moodle" && creds.swaggerUrl) {
51892
+ metadataEndpoint = "schema/swagger/moodle?swaggerUrl=" + creds.swaggerUrl;
51889
51893
  }
51890
- if (metadataApi === 'TEST_CONN_API_URL') {
51891
- return api.post(tenantId + '/' + appId + '/' + metadataEndpoint, {
51894
+ if (metadataApi === "TEST_CONN_API_URL") {
51895
+ return api.post(tenantId + "/" + appId + "/" + metadataEndpoint, {
51892
51896
  endpoint: config[metadataApi],
51893
51897
  data: {
51894
51898
  credentialType: credentialType,
@@ -51896,16 +51900,20 @@ module.exports =
51896
51900
  providerLabel: providerType
51897
51901
  },
51898
51902
  headers: {
51899
- 'Content-Type': 'application/json'
51903
+ "Content-Type": "application/json"
51900
51904
  }
51901
51905
  });
51902
51906
  } else {
51903
- if (isOauth || isAdapter || isFlatFile || providerType === 'Ethos') {
51904
- return api.get(tenantId + '/' + appId + '/environments/' + envName + '/' + metadataEndpoint + (extraQuery || ''), {
51907
+ if (isOauth) {
51908
+ return api.get(tenantId + "/" + appId + "/environments/" + envName + "/" + connectionKey + "/" + metadataEndpoint, {
51909
+ endpoint: config[metadataApi]
51910
+ });
51911
+ } else if (isAdapter || isFlatFile || providerType === "Ethos") {
51912
+ return api.get(tenantId + "/" + appId + "/environments/" + envName + "/" + metadataEndpoint + (extraQuery || ""), {
51905
51913
  endpoint: config[metadataApi]
51906
51914
  });
51907
51915
  } else {
51908
- return api.get(tenantId + '/' + appId + '/' + metadataEndpoint + (extraQuery || ''), {
51916
+ return api.get(tenantId + "/" + appId + "/" + metadataEndpoint + (extraQuery || ""), {
51909
51917
  endpoint: config[metadataApi]
51910
51918
  });
51911
51919
  }
@@ -51919,17 +51927,22 @@ module.exports =
51919
51927
  var _getState3 = getState(),
51920
51928
  config = _getState3.config;
51921
51929
 
51922
- return api.post(tenantId + '/' + appId + '/' + envId + '/uploadpolicy', {
51930
+ return api.post(tenantId + "/" + appId + "/" + envId + "/uploadpolicy", {
51923
51931
  endpoint: config.TRANS_API_URL,
51924
- data: { name: 'flatfile', resources: metadata, providerType: providerType, isSource: isSource }
51932
+ data: { name: "flatfile", resources: metadata, providerType: providerType, isSource: isSource }
51925
51933
  }).then(function (data) {
51926
51934
  d = data;
51927
51935
  return dispatch(uploadFilesToS3(tenantKey, appKey, envId, metadata, data, contents));
51928
51936
  }).then(function () {
51929
- return dispatch(postCredentials(tenantId, appId, providerType, d.guids, mode, envId, 'LocalFile')).then(function () {
51937
+ return dispatch(postCredentials(tenantId, appId, providerType, d.guids, mode, envId, "LocalFile")).then(function () {
51930
51938
  dispatch({
51931
51939
  type: types.FINISH_WIZARD_ENV_CHECK,
51932
- data: { metadata: { resources: metadata }, mode: mode, code: '200 OK', providerType: providerType }
51940
+ data: {
51941
+ metadata: { resources: metadata },
51942
+ mode: mode,
51943
+ code: "200 OK",
51944
+ providerType: providerType
51945
+ }
51933
51946
  });
51934
51947
  return d.guids;
51935
51948
  });
@@ -51944,7 +51957,7 @@ module.exports =
51944
51957
  var _getState4 = getState(),
51945
51958
  config = _getState4.config;
51946
51959
 
51947
- return api.delete(tenantId + '/' + appId + '/' + envId + '/deletefile/' + fileName, {
51960
+ return api.delete(tenantId + "/" + appId + "/" + envId + "/deletefile/" + fileName, {
51948
51961
  endpoint: config.TRANS_API_URL
51949
51962
  }).catch(function (err) {
51950
51963
  console.log(err);
@@ -51957,16 +51970,21 @@ module.exports =
51957
51970
  var _getState5 = getState(),
51958
51971
  wizard = _getState5.wizard;
51959
51972
 
51960
- var metadata = [].concat(_toConsumableArray(wizard[mode + 'Metadata']));
51973
+ var metadata = [].concat(_toConsumableArray(wizard[mode + "Metadata"]));
51961
51974
  var i = metadata.findIndex(function (rsc) {
51962
51975
  return r.name === rsc.name && r.type === rsc.type;
51963
51976
  });
51964
51977
  if (i > -1) {
51965
51978
  metadata.splice(i, 1);
51966
- console.log('send now', { resources: metadata });
51979
+ console.log("send now", { resources: metadata });
51967
51980
  dispatch({
51968
51981
  type: types.FINISH_WIZARD_ENV_CHECK,
51969
- data: { metadata: { resources: metadata }, mode: mode, code: '200 OK', providerType: providerType }
51982
+ data: {
51983
+ metadata: { resources: metadata },
51984
+ mode: mode,
51985
+ code: "200 OK",
51986
+ providerType: providerType
51987
+ }
51970
51988
  });
51971
51989
  }
51972
51990
  };
@@ -51981,7 +51999,14 @@ module.exports =
51981
51999
 
51982
52000
  function uploadFilesToS3(tenantKey, appKey, envId, metadata, d, contents) {
51983
52001
  var args = contents.map(function (fileContent, i) {
51984
- return { tenantKey: tenantKey, appKey: appKey, envId: envId, fileContent: fileContent, d: d, fileName: metadata[i].name };
52002
+ return {
52003
+ tenantKey: tenantKey,
52004
+ appKey: appKey,
52005
+ envId: envId,
52006
+ fileContent: fileContent,
52007
+ d: d,
52008
+ fileName: metadata[i].name
52009
+ };
51985
52010
  });
51986
52011
  return function (dispatch, getState, api) {
51987
52012
  return Promise.all(args.map(singleFileToS3));
@@ -52006,20 +52031,20 @@ module.exports =
52006
52031
  })[s];
52007
52032
  };
52008
52033
  var fd = new FormData();
52009
- fd.append('key', tenantKey + '/' + appKey + '/' + envId + '/' + fileName);
52010
- fd.append('policy', d.policy);
52011
- fd.append('acl', pFind('acl'));
52012
- fd.append('success_action_status', pFind('success_action_status'));
52013
- fd.append('x-amz-credential', pFind('x-amz-credential'));
52014
- fd.append('x-amz-algorithm', pFind('x-amz-algorithm'));
52015
- fd.append('x-amz-date', pFind('x-amz-date'));
52016
- fd.append('x-amz-signature', d.signature);
52017
- fd.append('file', fileContent);
52034
+ fd.append("key", tenantKey + "/" + appKey + "/" + envId + "/" + fileName);
52035
+ fd.append("policy", d.policy);
52036
+ fd.append("acl", pFind("acl"));
52037
+ fd.append("success_action_status", pFind("success_action_status"));
52038
+ fd.append("x-amz-credential", pFind("x-amz-credential"));
52039
+ fd.append("x-amz-algorithm", pFind("x-amz-algorithm"));
52040
+ fd.append("x-amz-date", pFind("x-amz-date"));
52041
+ fd.append("x-amz-signature", d.signature);
52042
+ fd.append("file", fileContent);
52018
52043
  return (0, _axios2.default)({
52019
- method: 'post',
52020
- url: 'https://' + pFind('bucket') + '.s3.amazonaws.com/',
52044
+ method: "post",
52045
+ url: "https://" + pFind("bucket") + ".s3.amazonaws.com/",
52021
52046
  data: fd,
52022
- config: { headers: { 'Content-Type': 'multipart/form-data' } }
52047
+ config: { headers: { "Content-Type": "multipart/form-data" } }
52023
52048
  });
52024
52049
  }
52025
52050
 
@@ -52028,13 +52053,13 @@ module.exports =
52028
52053
  var _getState6 = getState(),
52029
52054
  config = _getState6.config;
52030
52055
 
52031
- return api.get(tenantId + '/' + appId + '/' + envId + '/downloadpolicy/' + file.name, {
52056
+ return api.get(tenantId + "/" + appId + "/" + envId + "/downloadpolicy/" + file.name, {
52032
52057
  endpoint: config.TRANS_API_URL
52033
52058
  }).then(function (d) {
52034
- var element = document.createElement('a');
52035
- element.setAttribute('href', d);
52036
- element.setAttribute('target', '_blank');
52037
- element.style.display = 'none';
52059
+ var element = document.createElement("a");
52060
+ element.setAttribute("href", d);
52061
+ element.setAttribute("target", "_blank");
52062
+ element.style.display = "none";
52038
52063
  document.body.appendChild(element);
52039
52064
  element.click();
52040
52065
  document.body.removeChild(element);
@@ -52082,9 +52107,9 @@ module.exports =
52082
52107
  })[s];
52083
52108
  };
52084
52109
  return (0, _axios2.default)({
52085
- method: 'get',
52086
- url: 'https://' + pFind('bucket') + '.s3.amazonaws.com/' + tenantKey + '/' + appKey + '/' + file.name,
52087
- config: { headers: { 'Content-Type': 'multipart/form-data' } }
52110
+ method: "get",
52111
+ url: "https://" + pFind("bucket") + ".s3.amazonaws.com/" + tenantKey + "/" + appKey + "/" + file.name,
52112
+ config: { headers: { "Content-Type": "multipart/form-data" } }
52088
52113
  });
52089
52114
  }
52090
52115
 
@@ -52092,11 +52117,11 @@ module.exports =
52092
52117
  function isDemoCreds(creds, providerType) {
52093
52118
  if (creds && providerType) {
52094
52119
  switch (providerType) {
52095
- case 'Blackboard':
52096
- if (creds.key === '6c53d83209834b0e982c0984a5c11bdc' && creds.secret === '16d2ba71f8fa4f13a74f2264c47f6244') return true;
52120
+ case "Blackboard":
52121
+ if (creds.key === "6c53d83209834b0e982c0984a5c11bdc" && creds.secret === "16d2ba71f8fa4f13a74f2264c47f6244") return true;
52097
52122
  return false;
52098
- case 'Canvas':
52099
- if (creds.accessToken === '7d4fb8b1afb540049ad2a7268b78da07') return true;
52123
+ case "Canvas":
52124
+ if (creds.accessToken === "7d4fb8b1afb540049ad2a7268b78da07") return true;
52100
52125
  return false;
52101
52126
  default:
52102
52127
  return false;
@@ -52115,7 +52140,7 @@ module.exports =
52115
52140
  var _getState7 = getState(),
52116
52141
  config = _getState7.config;
52117
52142
 
52118
- return api.get(tenantId + '/' + appId + '/environments/' + envName + '/oauthurl/9090b61412a74d97ad9ed02c5fx7e705/' + orgType, {
52143
+ return api.get(tenantId + "/" + appId + "/environments/" + envName + "/oauthurl/9090b61412a74d97ad9ed02c5fx7e705/" + orgType, {
52119
52144
  endpoint: config.SF_AGENT_API_URL
52120
52145
  }).then(function (data) {
52121
52146
  dispatch({
@@ -52136,12 +52161,12 @@ module.exports =
52136
52161
 
52137
52162
  var TRANS_API_URL = config.TRANS_API_URL;
52138
52163
 
52139
- return api.post(tenantId + '/' + accountId + '/credentials/AdapterSecret/environment/' + envName + '/generate', {
52164
+ return api.post(tenantId + "/" + accountId + "/credentials/AdapterSecret/environment/" + envName + "/generate", {
52140
52165
  endpoint: TRANS_API_URL
52141
52166
  }).then(function (data) {
52142
52167
  dispatch({
52143
52168
  type: types.SET_WIZARD_SAVED_CREDENTIALS,
52144
- data: Object.assign({}, wizard.savedCredentials, _defineProperty({}, mode + 'AdapterSecret', data))
52169
+ data: Object.assign({}, wizard.savedCredentials, _defineProperty({}, mode + "AdapterSecret", data))
52145
52170
  });
52146
52171
  });
52147
52172
  };
@@ -52155,13 +52180,13 @@ module.exports =
52155
52180
  var externalIdlessObjects = [];
52156
52181
  // only run for Salesforce
52157
52182
  bundles && bundles.filter(function (b) {
52158
- return b.provider.toLowerCase() === 'salesforce';
52183
+ return b.provider.toLowerCase() === "salesforce";
52159
52184
  }).forEach(function (b) {
52160
52185
  var rsc = metadata.find(function (r) {
52161
52186
  return r.type === b.name;
52162
52187
  });
52163
52188
  var externalIdProp = rsc && rsc.properties && rsc.properties.find(function (p) {
52164
- return p.name === 'Lingk_External_Id__c';
52189
+ return p.name === "Lingk_External_Id__c";
52165
52190
  });
52166
52191
  // only add to the array if Lingk External Id does not already exist
52167
52192
  if (!externalIdProp || externalIdProp.fake === true) {
@@ -52170,13 +52195,13 @@ module.exports =
52170
52195
  });
52171
52196
 
52172
52197
  if (externalIdlessObjects.length > 0) {
52173
- console.log('Adding Lingk External Id field to: ', externalIdlessObjects);
52174
- return api.post(tenantId + '/' + appId + '/environments/' + envName + '/salesforceschema/field', {
52198
+ console.log("Adding Lingk External Id field to: ", externalIdlessObjects);
52199
+ return api.post(tenantId + "/" + appId + "/environments/" + envName + "/salesforceschema/field", {
52175
52200
  endpoint: config.SF_AGENT_API_URL,
52176
52201
  data: externalIdlessObjects.map(function (o) {
52177
52202
  return {
52178
52203
  type: o,
52179
- field: 'Lingk_External_Id__c'
52204
+ field: "Lingk_External_Id__c"
52180
52205
  };
52181
52206
  })
52182
52207
  });
@@ -52191,7 +52216,7 @@ module.exports =
52191
52216
  var _getState10 = getState(),
52192
52217
  config = _getState10.config;
52193
52218
 
52194
- return api.post(tenantId + '/' + appId + '/environments/' + envName + '/salesforceschema/field', {
52219
+ return api.post(tenantId + "/" + appId + "/environments/" + envName + "/salesforceschema/field", {
52195
52220
  endpoint: config.SF_AGENT_API_URL,
52196
52221
  data: [{
52197
52222
  type: objectType,
@@ -52260,7 +52285,7 @@ module.exports =
52260
52285
  var _getState11 = getState(),
52261
52286
  config = _getState11.config;
52262
52287
 
52263
- return api.get(tenantId + '/' + appId + '/scenarios/' + typeGuid, {
52288
+ return api.get(tenantId + "/" + appId + "/scenarios/" + typeGuid, {
52264
52289
  endpoint: config.TRANS_API_URL
52265
52290
  }).then(function (r) {
52266
52291
  var scenarios = r;
@@ -52286,7 +52311,7 @@ module.exports =
52286
52311
  var _getState12 = getState(),
52287
52312
  config = _getState12.config;
52288
52313
 
52289
- return api.post(tenantId + '/' + appId + '/scenario', {
52314
+ return api.post(tenantId + "/" + appId + "/scenario", {
52290
52315
  endpoint: config.TRANS_API_URL,
52291
52316
  data: data
52292
52317
  });
@@ -52298,7 +52323,7 @@ module.exports =
52298
52323
  var _getState13 = getState(),
52299
52324
  config = _getState13.config;
52300
52325
 
52301
- return api.post(tenantId + '/' + appId + '/scenarios/' + typeGuid + (isGlobal ? '/global' : ''), {
52326
+ return api.post(tenantId + "/" + appId + "/scenarios/" + typeGuid + (isGlobal ? "/global" : ""), {
52302
52327
  endpoint: config.TRANS_API_URL,
52303
52328
  data: scenarios.map(function (s, i) {
52304
52329
  return {
@@ -52319,11 +52344,11 @@ module.exports =
52319
52344
  config = _getState14.config;
52320
52345
 
52321
52346
  var data = { bundles: bundles };
52322
- return api.post(tenantId + '/' + appId + '/bundle', {
52347
+ return api.post(tenantId + "/" + appId + "/bundle", {
52323
52348
  endpoint: config.TRANS_API_URL,
52324
52349
  data: data
52325
52350
  }).catch(function (err) {
52326
- onGenerationError('There was an error in your Object Mapping. Please contact Lingk Support');
52351
+ onGenerationError("There was an error in your Object Mapping. Please contact Lingk Support");
52327
52352
  return Promise.reject(err);
52328
52353
  });
52329
52354
  };
@@ -52335,11 +52360,11 @@ module.exports =
52335
52360
  config = _getState15.config;
52336
52361
 
52337
52362
  var data = { mappings: mappings };
52338
- return api.post(tenantId + '/' + appId + '/schemamappings', {
52363
+ return api.post(tenantId + "/" + appId + "/schemamappings", {
52339
52364
  endpoint: config.TRANS_API_URL,
52340
52365
  data: data
52341
52366
  }).catch(function (err) {
52342
- onGenerationError('There was an error in your Field Mapping. Please contact Lingk Support');
52367
+ onGenerationError("There was an error in your Field Mapping. Please contact Lingk Support");
52343
52368
  return Promise.reject(err);
52344
52369
  });
52345
52370
  };
@@ -52356,12 +52381,12 @@ module.exports =
52356
52381
  integrationTypeGuid: typeGuid,
52357
52382
  name: title,
52358
52383
  configuration: configuration
52359
- }, piGuid && piGuid !== '_' && { productizedIntegrationGuid: piGuid }, transformerBaseId && { transformerBaseId: transformerBaseId });
52360
- return api.post(tenantId + '/' + appId + '/productizedintegrations', {
52384
+ }, piGuid && piGuid !== "_" && { productizedIntegrationGuid: piGuid }, transformerBaseId && { transformerBaseId: transformerBaseId });
52385
+ return api.post(tenantId + "/" + appId + "/productizedintegrations", {
52361
52386
  endpoint: config.TRANS_API_URL,
52362
52387
  data: data
52363
52388
  }).catch(function (err) {
52364
- onGenerationError('There was an error creating your Integration. Please contact Lingk Support');
52389
+ onGenerationError("There was an error creating your Integration. Please contact Lingk Support");
52365
52390
  return Promise.reject(err);
52366
52391
  });
52367
52392
  };
@@ -52380,11 +52405,11 @@ module.exports =
52380
52405
  configuration: configuration,
52381
52406
  id: updateWizardVersionId
52382
52407
  }, transformerBaseId && { transformerBaseId: transformerBaseId });
52383
- return api.put(tenantId + '/' + appId + '/productizedintegrations/' + piGuid, {
52408
+ return api.put(tenantId + "/" + appId + "/productizedintegrations/" + piGuid, {
52384
52409
  endpoint: config.TRANS_API_URL,
52385
52410
  data: data
52386
52411
  }).catch(function (err) {
52387
- onGenerationError('There was an error updating your Integration. Please contact Lingk Support');
52412
+ onGenerationError("There was an error updating your Integration. Please contact Lingk Support");
52388
52413
  return Promise.reject(err);
52389
52414
  });
52390
52415
  };
@@ -52395,16 +52420,16 @@ module.exports =
52395
52420
  var _getState18 = getState(),
52396
52421
  config = _getState18.config;
52397
52422
 
52398
- return api.post(tenantId + '/' + appId + '/productizedintegrations/' + piGuid + '/generate', {
52423
+ return api.post(tenantId + "/" + appId + "/productizedintegrations/" + piGuid + "/generate", {
52399
52424
  endpoint: config.TRANS_API_URL,
52400
52425
  data: Object.assign({
52401
- "sourceSchema": sourceMetadata,
52402
- "destinationSchema": destinationMetadata,
52403
- "environment": envName,
52404
- "environmentId": String(envId)
52426
+ sourceSchema: sourceMetadata,
52427
+ destinationSchema: destinationMetadata,
52428
+ environment: envName,
52429
+ environmentId: String(envId)
52405
52430
  }, updateWizardVersionId && { updateWizardVersionId: updateWizardVersionId })
52406
52431
  }).catch(function (err) {
52407
- onGenerationError('There was an error generating the Integration. Please contact Lingk Support');
52432
+ onGenerationError("There was an error generating the Integration. Please contact Lingk Support");
52408
52433
  return Promise.reject(err);
52409
52434
  });
52410
52435
  };
@@ -52416,7 +52441,7 @@ module.exports =
52416
52441
  config = _getState19.config;
52417
52442
 
52418
52443
  if (schema && schema.resources) {
52419
- return api.post(tenantId + '/' + appId + '/' + envId + '/fileschema', {
52444
+ return api.post(tenantId + "/" + appId + "/" + envId + "/fileschema", {
52420
52445
  endpoint: config.TRANS_API_URL,
52421
52446
  data: schema
52422
52447
  });
@@ -52466,7 +52491,7 @@ module.exports =
52466
52491
  if (r[3] && r[3].schemaGuid && r[3].schemaGuid.length > 0) {
52467
52492
  configuration.destinationFileSchemaGuid = r[3].schemaGuid;
52468
52493
  }
52469
- if (piGuid && piGuid !== '_' && updateWizardVersionId) {
52494
+ if (piGuid && piGuid !== "_" && updateWizardVersionId) {
52470
52495
  // same version
52471
52496
  return dispatch(callUpdateProductizedIntegration(tenantId, appId, map.schemaMappingGuid, bundle.bundlePackGuid, configuration, title, typeGuid, piGuid, onGenerationError, updateWizardVersionId, transformerBaseId));
52472
52497
  } else {
@@ -52478,11 +52503,13 @@ module.exports =
52478
52503
  dispatch(callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, pi.productizedIntegrationGuid, map.schemaMappingGuid, sourceMetadata, destinationMetadata, isManagedPackage, onGenerationError, envName, envId, updateWizardVersionId)).then(function (generatedRecipe) {
52479
52504
  onGenerate();
52480
52505
  if (deployment && isFinishClick) {
52481
- if (deployment.type === 'once') {
52482
- dispatch(callPostEventContext({ eventData: {
52506
+ if (deployment.type === "once") {
52507
+ dispatch(callPostEventContext({
52508
+ eventData: {
52483
52509
  environmentName: envName,
52484
52510
  environmentId: String(envId)
52485
- } }, generatedRecipe.BaseId)).then(function () {
52511
+ }
52512
+ }, generatedRecipe.BaseId)).then(function () {
52486
52513
  dispatch(callExecuteTransformer(generatedRecipe.Id)).then(function (response) {
52487
52514
  dispatch(callLookupLogData(tenantId, response.externalExecutionId, 0, onFinish, generatedRecipe, pi));
52488
52515
  });
@@ -52507,7 +52534,7 @@ module.exports =
52507
52534
 
52508
52535
  var TRANS_API_URL = config.TRANS_API_URL;
52509
52536
 
52510
- return api.post('transformers/' + transBaseId + '/eventdata', {
52537
+ return api.post("transformers/" + transBaseId + "/eventdata", {
52511
52538
  endpoint: TRANS_API_URL,
52512
52539
  data: data
52513
52540
  });
@@ -52519,15 +52546,15 @@ module.exports =
52519
52546
  var _getState21 = getState(),
52520
52547
  config = _getState21.config;
52521
52548
 
52522
- var query = '';
52549
+ var query = "";
52523
52550
  var d = new Date();
52524
52551
  var seconds = d.getTime() / 1000;
52525
52552
  var externalExecutionId = Math.round(seconds);
52526
- query += 'externalExecutionId=' + externalExecutionId;
52553
+ query += "externalExecutionId=" + externalExecutionId;
52527
52554
 
52528
- console.log('executing generated recipe', transId);
52529
- dispatch(setFaviconInWizard({ icon: 'wizard', alertCount: null }));
52530
- return api.get('execute/' + transId + '?' + query, {
52555
+ console.log("executing generated recipe", transId);
52556
+ dispatch(setFaviconInWizard({ icon: "wizard", alertCount: null }));
52557
+ return api.get("execute/" + transId + "?" + query, {
52531
52558
  endpoint: config.TRANS_API_URL
52532
52559
  }).then(function (data) {
52533
52560
  return { done: data, externalExecutionId: externalExecutionId };
@@ -52540,7 +52567,7 @@ module.exports =
52540
52567
  var _getState22 = getState(),
52541
52568
  config = _getState22.config;
52542
52569
 
52543
- return api.get(tenantId + '/logs/transformers/externalExecutionId/' + externalExecutionId, {
52570
+ return api.get(tenantId + "/logs/transformers/externalExecutionId/" + externalExecutionId, {
52544
52571
  endpoint: config.TRANS_API_URL
52545
52572
  }).then(function (data) {
52546
52573
  console.log("LOG", data);
@@ -52550,7 +52577,10 @@ module.exports =
52550
52577
  onFinish(generatedRecipe, pi);
52551
52578
  } else {
52552
52579
  dispatch(setOngoingExecutionLogCount(data[0].stepCount));
52553
- dispatch(setFaviconInWizard({ icon: 'wizard', alertCount: data[0].stepCount + 1 }));
52580
+ dispatch(setFaviconInWizard({
52581
+ icon: "wizard",
52582
+ alertCount: data[0].stepCount + 1
52583
+ }));
52554
52584
  dispatch(callGetLogSteps(tenantId, externalExecutionId, 0, onFinish, generatedRecipe, pi));
52555
52585
  }
52556
52586
  } else {
@@ -52565,20 +52595,20 @@ module.exports =
52565
52595
  }
52566
52596
  }
52567
52597
  /*if (!(data[0] && data[0].completed)) {
52568
- if (index < 3600) {
52569
- setTimeout(() => {
52570
- dispatch(
52571
- callLookupLogData(tenantId, externalExecutionId, index+1, onFinish, generatedRecipe, pi)
52572
- );
52573
- }, 1000);
52574
- } else {
52575
- onFinish(generatedRecipe, pi)
52576
- }
52598
+ if (index < 3600) {
52599
+ setTimeout(() => {
52600
+ dispatch(
52601
+ callLookupLogData(tenantId, externalExecutionId, index+1, onFinish, generatedRecipe, pi)
52602
+ );
52603
+ }, 1000);
52577
52604
  } else {
52578
- if (!(data[0] && data[0].succeeded)) {
52579
- onFinish(generatedRecipe, pi)
52580
- }
52581
52605
  onFinish(generatedRecipe, pi)
52606
+ }
52607
+ } else {
52608
+ if (!(data[0] && data[0].succeeded)) {
52609
+ onFinish(generatedRecipe, pi)
52610
+ }
52611
+ onFinish(generatedRecipe, pi)
52582
52612
  }*/
52583
52613
  });
52584
52614
  };
@@ -52614,7 +52644,7 @@ module.exports =
52614
52644
 
52615
52645
  var TRANS_API_URL = config.TRANS_API_URL;
52616
52646
 
52617
- return api.get(tenantId + '/logs/steps/externalExecutionId/' + externalExecutionId, {
52647
+ return api.get(tenantId + "/logs/steps/externalExecutionId/" + externalExecutionId, {
52618
52648
  endpoint: TRANS_API_URL
52619
52649
  }).then(function (data) {
52620
52650
  dispatch(setOngoingExecutionLogs(data));
@@ -52641,19 +52671,21 @@ module.exports =
52641
52671
  isrecurring: true
52642
52672
  //schedule: `${deployment.minutes || 0} ${deployment.hours || 0} ${deployment.days || 0} * ? *`
52643
52673
  };
52644
- if (deployment.type === 'daily') {
52645
- triggerData.dailySchedule = { 'timeUTC': _moment2.default.utc(deployment.dailySchedule).format('HH:mm') };
52646
- } else if (deployment.type === 'repeating') {
52674
+ if (deployment.type === "daily") {
52675
+ triggerData.dailySchedule = {
52676
+ timeUTC: _moment2.default.utc(deployment.dailySchedule).format("HH:mm")
52677
+ };
52678
+ } else if (deployment.type === "repeating") {
52647
52679
  triggerData.repeatingSchedule = {
52648
- 'frequency': parseInt(deployment.frequency, 10),
52649
- 'frequencyUnit': deployment.frequencyUnit.toLowerCase().substring(0, deployment.frequencyUnit.length - 1)
52680
+ frequency: parseInt(deployment.frequency, 10),
52681
+ frequencyUnit: deployment.frequencyUnit.toLowerCase().substring(0, deployment.frequencyUnit.length - 1)
52650
52682
  };
52651
52683
  }
52652
52684
  return function (dispatch, getState, api) {
52653
52685
  var _getState24 = getState(),
52654
52686
  config = _getState24.config;
52655
52687
 
52656
- return api.post(tenantId + '/createtrigger', {
52688
+ return api.post(tenantId + "/createtrigger", {
52657
52689
  endpoint: config.TRANS_API_URL,
52658
52690
  data: triggerData
52659
52691
  }).then(function () {
@@ -52686,25 +52718,25 @@ module.exports =
52686
52718
  var source = wiz.source,
52687
52719
  destination = wiz.destination;
52688
52720
 
52689
- if (piGuid && piGuid !== '_') {
52721
+ if (piGuid && piGuid !== "_") {
52690
52722
  return function (dispatch, getState, api) {
52691
52723
  var _getState25 = getState(),
52692
52724
  config = _getState25.config;
52693
52725
 
52694
- return api.get(tenantId + '/' + accountId + '/productizedintegrations/' + piGuid + '/versions', {
52726
+ return api.get(tenantId + "/" + accountId + "/productizedintegrations/" + piGuid + "/versions", {
52695
52727
  endpoint: config.TRANS_API_URL
52696
52728
  }).then(function (pis) {
52697
52729
  var pi = pis[parseInt(piIndex, 10)];
52698
52730
  var piconfig = pi.configuration;
52699
- piconfig['title'] = pi.name;
52731
+ piconfig["title"] = pi.name;
52700
52732
  dispatch({
52701
52733
  type: types.SET_WIZARD_SAVED_CONFIGURATION,
52702
52734
  data: piconfig
52703
52735
  });
52704
- var envName = piconfig['environment'];
52705
- var sourceFileSchemaGuid = piconfig['sourceFileSchemaGuid'];
52706
- var destinationFileSchemaGuid = piconfig['destinationFileSchemaGuid'];
52707
- var includeSystemResources = piconfig['includeSystemResources'] === 'true';
52736
+ var envName = piconfig["environment"];
52737
+ var sourceFileSchemaGuid = piconfig["sourceFileSchemaGuid"];
52738
+ var destinationFileSchemaGuid = piconfig["destinationFileSchemaGuid"];
52739
+ var includeSystemResources = piconfig["includeSystemResources"] === "true";
52708
52740
  return Promise.all([dispatch(callGetCredentials(tenantId, accountId, wiz, envName)), dispatch(callGetMapping(tenantId, accountId, pi.schemaMappingGuid)), dispatch(callGetBundles(tenantId, accountId, pi.bundlePackGuid)), dispatch(callGetTrigger(pi.transformerBaseId, piconfig.environmentId))]).then(function (res) {
52709
52741
  var creds = res[0];
52710
52742
  var sourceCreds = creds[0] && creds[0].credentialsJson;
@@ -52720,7 +52752,9 @@ module.exports =
52720
52752
  });
52721
52753
  var savedSourceEndpoint = sourceCreds && sourceCreds.rootUrl;
52722
52754
  var savedDestinationEndpoint = destCreds && destCreds.rootUrl;
52723
- return Promise.all([dispatch(tryGetMetadataReload(tenantId, accountId, 'source', source, savedSourceEndpoint, sourceCreds, envName, sourceFileSchemaGuid, includeSystemResources)), dispatch(tryGetMetadataReload(tenantId, accountId, 'destination', destination, savedDestinationEndpoint, destCreds, envName, destinationFileSchemaGuid, includeSystemResources))]);
52755
+ var sourceConnectionKey = creds[0] && creds[0].key;
52756
+ var destConnectionKey = creds[1] && creds[1].key;
52757
+ return Promise.all([dispatch(tryGetMetadataReload(tenantId, accountId, "source", source, savedSourceEndpoint, sourceCreds, envName, sourceFileSchemaGuid, includeSystemResources, sourceConnectionKey)), dispatch(tryGetMetadataReload(tenantId, accountId, "destination", destination, savedDestinationEndpoint, destCreds, envName, destinationFileSchemaGuid, includeSystemResources, destConnectionKey))]);
52724
52758
  });
52725
52759
  });
52726
52760
  };
@@ -52749,11 +52783,11 @@ module.exports =
52749
52783
  if (fromUI) {
52750
52784
  dispatch({
52751
52785
  type: types.START_WIZARD_ENV_CHECK,
52752
- mode: 'source'
52786
+ mode: "source"
52753
52787
  });
52754
52788
  dispatch({
52755
52789
  type: types.START_WIZARD_ENV_CHECK,
52756
- mode: 'destination'
52790
+ mode: "destination"
52757
52791
  });
52758
52792
  }
52759
52793
  return Promise.all([dispatch(tryGetCredentials(tenantId, appId, source.type, source.credentials, envName)), dispatch(tryGetCredentials(tenantId, appId, destination.type, destination.credentials, envName)), dispatch(tryGetAdapterSecret(tenantId, appId, source.metadataEndpoint, envName)), dispatch(tryGetAdapterSecret(tenantId, appId, destination.metadataEndpoint, envName))]);
@@ -52782,14 +52816,14 @@ module.exports =
52782
52816
 
52783
52817
  dispatch({
52784
52818
  type: types.SET_WIZARD_SAVED_CREDENTIALS,
52785
- data: Object.assign({}, wizard.savedCredentials, _defineProperty({}, mode + 'AdapterSecret', cred))
52819
+ data: Object.assign({}, wizard.savedCredentials, _defineProperty({}, mode + "AdapterSecret", cred))
52786
52820
  });
52787
52821
  };
52788
52822
  }
52789
52823
 
52790
52824
  function getCredentialForEnvironment(tenantId, appId, credentialType, envName, mode) {
52791
52825
  return function (dispatch, getState, api) {
52792
- if (credentialType === 'LocalFile') {
52826
+ if (credentialType === "LocalFile") {
52793
52827
  return Promise.resolve({
52794
52828
  credentialType: "LocalFile",
52795
52829
  credentials: "",
@@ -52801,7 +52835,7 @@ module.exports =
52801
52835
  var _getState28 = getState(),
52802
52836
  config = _getState28.config;
52803
52837
 
52804
- return api.get(tenantId + '/' + appId + '/credentials/' + credentialType + '/' + envName, {
52838
+ return api.get(tenantId + "/" + appId + "/credentials/" + credentialType + "/" + envName + "/defaultConnection", {
52805
52839
  endpoint: config.TRANS_API_URL
52806
52840
  });
52807
52841
  };
@@ -52820,29 +52854,29 @@ module.exports =
52820
52854
 
52821
52855
  function tryGetAdapterSecret(tenantId, appId, metadataEndpoint, envName) {
52822
52856
  return function (dispatch, getState, api) {
52823
- var isAdapter = metadataEndpoint === 'adaptermetadata';
52857
+ var isAdapter = metadataEndpoint === "adaptermetadata";
52824
52858
  if (isAdapter) {
52825
- return dispatch(getCredentialForEnvironment(tenantId, appId, 'AdapterSecret', envName)).catch(function () {
52859
+ return dispatch(getCredentialForEnvironment(tenantId, appId, "AdapterSecret", envName)).catch(function () {
52826
52860
  return null;
52827
52861
  });
52828
52862
  } else return Promise.resolve(null);
52829
52863
  };
52830
52864
  }
52831
52865
 
52832
- function tryGetMetadataReload(tenantId, appId, mode, wiz, savedEndpoint, actualCreds, envName, fileSchemaGuid, includeSystemResources) {
52866
+ function tryGetMetadataReload(tenantId, appId, mode, wiz, savedEndpoint, actualCreds, envName, fileSchemaGuid, includeSystemResources, connectionKey) {
52833
52867
  return function (dispatch, getState, api) {
52834
52868
  // if skipEnvStep (as in SF App), auto pull SF metadata
52835
52869
  var type = wiz.type,
52836
52870
  credentials = wiz.credentials;
52837
52871
 
52838
- var isOauth = credentials && credentials[0] === 'Oauth';
52839
- var extraQuery = isOauth && includeSystemResources ? '?all=true' : '';
52840
- var isFlatFile = credentials && credentials[0] === 'LocalFile';
52841
- var isSFTP = type === 'SFTP';
52872
+ var isOauth = credentials && credentials[0] === "Oauth";
52873
+ var extraQuery = isOauth && includeSystemResources ? "?all=true" : "";
52874
+ var isFlatFile = credentials && credentials[0] === "LocalFile";
52875
+ var isSFTP = type === "SFTP";
52842
52876
  if (envName && (isOauth || isFlatFile || isSFTP || savedEndpoint && savedEndpoint.length > 8)) {
52843
52877
  var isReload = true;
52844
52878
  var environment = { name: envName };
52845
- return dispatch(callGetMetadata(tenantId, appId, mode, type, wiz, savedEndpoint, null, actualCreds, environment, isReload, fileSchemaGuid, extraQuery));
52879
+ return dispatch(callGetMetadata(tenantId, appId, mode, type, wiz, savedEndpoint, null, actualCreds, environment, isReload, fileSchemaGuid, extraQuery, connectionKey));
52846
52880
  } else return Promise.resolve(null);
52847
52881
  };
52848
52882
  }
@@ -52853,7 +52887,7 @@ module.exports =
52853
52887
  var _getState29 = getState(),
52854
52888
  config = _getState29.config;
52855
52889
 
52856
- return api.get(tenantId + '/' + accountId + '/bundle/' + bundlePackGuid, {
52890
+ return api.get(tenantId + "/" + accountId + "/bundle/" + bundlePackGuid, {
52857
52891
  endpoint: config.TRANS_API_URL
52858
52892
  }).then(function (data) {
52859
52893
  dispatch({
@@ -52871,7 +52905,7 @@ module.exports =
52871
52905
  var _getState30 = getState(),
52872
52906
  config = _getState30.config;
52873
52907
 
52874
- return api.get(tenantId + '/' + accountId + '/schemamappings/' + mappingGuid, {
52908
+ return api.get(tenantId + "/" + accountId + "/schemamappings/" + mappingGuid, {
52875
52909
  endpoint: config.TRANS_API_URL
52876
52910
  }).then(function (data) {
52877
52911
  dispatch({
@@ -52893,7 +52927,7 @@ module.exports =
52893
52927
  var _getState31 = getState(),
52894
52928
  config = _getState31.config;
52895
52929
 
52896
- return api.post(tenantId + '/' + appId + '/environments/' + envId + '/credentials', {
52930
+ return api.post(tenantId + "/" + appId + "/environments/" + envId + "/credentials", {
52897
52931
  endpoint: config.TRANS_API_URL,
52898
52932
  data: {
52899
52933
  credentialType: credType,
@@ -52909,7 +52943,7 @@ module.exports =
52909
52943
  var _getState32 = getState(),
52910
52944
  config = _getState32.config;
52911
52945
 
52912
- return api.get(tenantId + '/' + appId + '/environments', {
52946
+ return api.get(tenantId + "/" + appId + "/environments", {
52913
52947
  endpoint: config.TRANS_API_URL
52914
52948
  }).then(function (data) {
52915
52949
  dispatch({
@@ -52931,7 +52965,7 @@ module.exports =
52931
52965
  config = _getState33.config;
52932
52966
 
52933
52967
  if (transBaseId) {
52934
- return api.get('gettriggers/' + transBaseId, {
52968
+ return api.get("gettriggers/" + transBaseId, {
52935
52969
  endpoint: config.TRANS_API_URL
52936
52970
  }).then(function (data) {
52937
52971
  var trig = null;
@@ -52970,7 +53004,7 @@ module.exports =
52970
53004
  function clearWizardFormData() {
52971
53005
  return function (dispatch) {
52972
53006
  dispatch(setFaviconInWizard({ icon: false, alertCount: null }));
52973
- dispatch((0, _reduxForm.reset)('wizard'));
53007
+ dispatch((0, _reduxForm.reset)("wizard"));
52974
53008
  dispatch({
52975
53009
  type: types.CLEAR_WIZARD
52976
53010
  });
@@ -56515,7 +56549,7 @@ module.exports =
56515
56549
  /* 179 */
56516
56550
  /***/ function(module, exports, __webpack_require__) {
56517
56551
 
56518
- 'use strict';
56552
+ "use strict";
56519
56553
 
56520
56554
  Object.defineProperty(exports, "__esModule", {
56521
56555
  value: true
@@ -56583,11 +56617,11 @@ module.exports =
56583
56617
  // set meta for File Schema step if needed
56584
56618
  // set defaults of filename and delimiter
56585
56619
 
56586
- var isSFTP = config.type === 'SFTP';
56620
+ var isSFTP = config.type === "SFTP";
56587
56621
  if (isSFTP) {
56588
56622
  var savedFileSchema = [];
56589
- if (_this.props.formValues[mode + 'FileSchema']) {
56590
- savedFileSchema = [].concat(_toConsumableArray(formValues[mode + 'FileSchema']));
56623
+ if (_this.props.formValues[mode + "FileSchema"]) {
56624
+ savedFileSchema = [].concat(_toConsumableArray(formValues[mode + "FileSchema"]));
56591
56625
  }
56592
56626
  var fileSchema = metadata.resources && metadata.resources.map(function (r) {
56593
56627
  var existing = savedFileSchema.find(function (rsc) {
@@ -56596,15 +56630,15 @@ module.exports =
56596
56630
  if (existing) return existing;
56597
56631
  return Object.assign({}, r, {
56598
56632
  filePattern: r.name,
56599
- delimiter: ','
56633
+ delimiter: ","
56600
56634
  });
56601
56635
  });
56602
- change(mode + 'FileSchema', fileSchema);
56636
+ change(mode + "FileSchema", fileSchema);
56603
56637
  }
56604
56638
 
56605
- var isFlat = config.type === 'LocalFile';
56639
+ var isFlat = config.type === "LocalFile";
56606
56640
  if (isFlat) {
56607
- change(mode + 'FileSchema', metadata);
56641
+ change(mode + "FileSchema", metadata);
56608
56642
  }
56609
56643
  };
56610
56644
 
@@ -56618,24 +56652,24 @@ module.exports =
56618
56652
  wizard = _this$props2.wizard,
56619
56653
  change = _this$props2.change;
56620
56654
 
56621
- var config = step[mode + 'Config'];
56655
+ var config = step[mode + "Config"];
56622
56656
  var env = wizard.environments.find(function (e) {
56623
- return e.name === formValues['environment'];
56657
+ return e.name === formValues["environment"];
56624
56658
  });
56625
- if (phase === 'start') {
56626
- var c = formValues[mode + 'Credentials'];
56627
- change(mode + 'Credentials', Object.assign({}, c.credentialsJson, {
56628
- userName: '_' // this will make the dot dot show up
56659
+ if (phase === "start") {
56660
+ var c = formValues[mode + "Credentials"];
56661
+ change(mode + "Credentials", Object.assign({}, c.credentialsJson, {
56662
+ userName: "_" // this will make the dot dot show up
56629
56663
  }));
56630
56664
  } else {
56631
56665
  actions.tryGetCredentials(tenantId, accountId, config.type, config.credentials, env.name).then(function (c) {
56632
- change(mode + 'Credentials', c.credentialsJson);
56633
- var extraQuery = '';
56666
+ change(mode + "Credentials", c.credentialsJson);
56667
+ var extraQuery = "";
56634
56668
  if (formValues.includeSystemResources) {
56635
- extraQuery = '?all=true';
56669
+ extraQuery = "?all=true";
56636
56670
  }
56637
56671
  var isReload = false; // skips posting creds again
56638
- _this.check(mode, env, c.credentialsJson, isReload, extraQuery);
56672
+ _this.check(mode, env, c.credentialsJson, isReload, extraQuery, c.key);
56639
56673
  });
56640
56674
  }
56641
56675
  };
@@ -56647,7 +56681,7 @@ module.exports =
56647
56681
  accountId = _this$props3.accountId,
56648
56682
  formValues = _this$props3.formValues;
56649
56683
 
56650
- var envName = formValues['environment'];
56684
+ var envName = formValues["environment"];
56651
56685
  actions.generateNewAdapterSecret(tenantId, accountId, envName, mode);
56652
56686
  };
56653
56687
 
@@ -56658,9 +56692,9 @@ module.exports =
56658
56692
  actions = _this$props4.actions,
56659
56693
  formValues = _this$props4.formValues;
56660
56694
 
56661
- return actions.deleteFlatFile(tenantId, accountId, formValues['environmentId'], fileName).then(function () {
56695
+ return actions.deleteFlatFile(tenantId, accountId, formValues["environmentId"], fileName).then(function () {
56662
56696
  var isReload = true;
56663
- return _this.check(mode, null, {}, isReload, '');
56697
+ return _this.check(mode, null, {}, isReload, "");
56664
56698
  });
56665
56699
  };
56666
56700
 
@@ -56673,7 +56707,7 @@ module.exports =
56673
56707
  actions = _this$props5.actions,
56674
56708
  formValues = _this$props5.formValues;
56675
56709
 
56676
- return actions.downloadFileFromAws(tenantId, accountId, tenantKey, accountKey, formValues['environmentId'], file);
56710
+ return actions.downloadFileFromAws(tenantId, accountId, tenantKey, accountKey, formValues["environmentId"], file);
56677
56711
  };
56678
56712
 
56679
56713
  _this.state = {
@@ -56688,7 +56722,7 @@ module.exports =
56688
56722
  }
56689
56723
 
56690
56724
  _createClass(EnvStep, [{
56691
- key: 'seeFields',
56725
+ key: "seeFields",
56692
56726
  value: function seeFields(target, mode) {
56693
56727
  var _props = this.props,
56694
56728
  tenantId = _props.tenantId,
@@ -56697,16 +56731,16 @@ module.exports =
56697
56731
  step = _props.step,
56698
56732
  configUrls = _props.configUrls;
56699
56733
 
56700
- var endpoint = formValues[mode + 'Credentials'].rootUrl;
56734
+ var endpoint = formValues[mode + "Credentials"].rootUrl;
56701
56735
  var x = window.open();
56702
- x.document.open('', '_blank');
56703
- x.document.write((0, _previewTabContent.makeContent)(configUrls.TRANS_API_URL, tenantId, accountId, endpoint, target.endpointSuffix, target.name, step.previewToken, formValues['environment']));
56704
- x.document.title = 'Preview Data (' + target.name + ')';
56736
+ x.document.open("", "_blank");
56737
+ x.document.write((0, _previewTabContent.makeContent)(configUrls.TRANS_API_URL, tenantId, accountId, endpoint, target.endpointSuffix, target.name, step.previewToken, formValues["environment"]));
56738
+ x.document.title = "Preview Data (" + target.name + ")";
56705
56739
  x.document.close();
56706
56740
  x.focus();
56707
56741
  }
56708
56742
  }, {
56709
- key: 'componentWillMount',
56743
+ key: "componentWillMount",
56710
56744
  value: function componentWillMount() {
56711
56745
  var _props2 = this.props,
56712
56746
  step = _props2.step,
@@ -56720,7 +56754,7 @@ module.exports =
56720
56754
  }
56721
56755
  }
56722
56756
  }, {
56723
- key: 'componentDidMount',
56757
+ key: "componentDidMount",
56724
56758
  value: function componentDidMount() {
56725
56759
  var _this2 = this;
56726
56760
 
@@ -56732,14 +56766,14 @@ module.exports =
56732
56766
  this.selectEnvironment(null, null, wizard.environments[0]);
56733
56767
  }
56734
56768
  // IF SAVED CONFIG, LOAD UP FLAT FILES INTO ENV
56735
- var modes = ['source', 'destination'];
56769
+ var modes = ["source", "destination"];
56736
56770
  modes.forEach(function (mode) {
56737
- _this2.updateFileSchema(mode, step[mode + 'Config'], wizard[mode + 'Metadata']);
56771
+ _this2.updateFileSchema(mode, step[mode + "Config"], wizard[mode + "Metadata"]);
56738
56772
  });
56739
56773
  }
56740
56774
  }, {
56741
- key: 'check',
56742
- value: function check(mode, environment, actualCreds, isReload, extraQuery) {
56775
+ key: "check",
56776
+ value: function check(mode, environment, actualCreds, isReload, extraQuery, connectionKey) {
56743
56777
  var _this3 = this;
56744
56778
 
56745
56779
  var _props4 = this.props,
@@ -56751,28 +56785,28 @@ module.exports =
56751
56785
  change = _props4.change,
56752
56786
  wizard = _props4.wizard;
56753
56787
 
56754
- var config = step[mode + 'Config'];
56788
+ var config = step[mode + "Config"];
56755
56789
  var credentials = actualCreds;
56756
56790
  var endpoint = credentials && credentials.rootUrl;
56757
56791
  //remove trailing slash if exists
56758
- if (endpoint && endpoint[endpoint.length - 1] === '/' && endpoint.length > 8) {
56792
+ if (endpoint && endpoint[endpoint.length - 1] === "/" && endpoint.length > 8) {
56759
56793
  endpoint = endpoint.slice(0, -1);
56760
- change(mode + 'Credentials.rootUrl', endpoint);
56794
+ change(mode + "Credentials.rootUrl", endpoint);
56761
56795
  }
56762
56796
 
56763
56797
  var env = environment || wizard.environments.find(function (e) {
56764
- return e.name === formValues['environment'];
56798
+ return e.name === formValues["environment"];
56765
56799
  });
56766
56800
 
56767
- change(mode + 'Credentials', credentials);
56768
- this.setState(_defineProperty({}, mode + 'EnvChecking', true));
56769
- actions.callGetMetadata(tenantId, accountId, mode, step[mode + 'Provider'], config, endpoint || '_blank', step.isFramework, credentials, env, isReload, null, extraQuery).then(function (metadata) {
56770
- _this3.setState(_defineProperty({}, mode + 'EnvChecking', false));
56801
+ change(mode + "Credentials", credentials);
56802
+ this.setState(_defineProperty({}, mode + "EnvChecking", true));
56803
+ actions.callGetMetadata(tenantId, accountId, mode, step[mode + "Provider"], config, endpoint || "_blank", step.isFramework, credentials, env, isReload, null, extraQuery, connectionKey).then(function (metadata) {
56804
+ _this3.setState(_defineProperty({}, mode + "EnvChecking", false));
56771
56805
  _this3.updateFileSchema(mode, config, metadata);
56772
56806
  });
56773
56807
  }
56774
56808
  }, {
56775
- key: 'getOauthUrl',
56809
+ key: "getOauthUrl",
56776
56810
  value: function getOauthUrl(type, mode) {
56777
56811
  var _props5 = this.props,
56778
56812
  actions = _props5.actions,
@@ -56781,40 +56815,42 @@ module.exports =
56781
56815
  step = _props5.step,
56782
56816
  formValues = _props5.formValues;
56783
56817
 
56784
- var envName = formValues['environment'];
56818
+ var envName = formValues["environment"];
56785
56819
  actions.getOauthUrl(tenantId, accountId, step.typeGuid, type, mode, envName);
56786
56820
  }
56787
56821
  }, {
56788
- key: 'clickDirection',
56822
+ key: "clickDirection",
56789
56823
  value: function clickDirection() {
56790
56824
  var _props6 = this.props,
56791
56825
  change = _props6.change,
56792
56826
  nav = _props6.nav;
56793
56827
 
56794
- change('resourceGroups', []);
56795
- change('scenario', null);
56828
+ change("resourceGroups", []);
56829
+ change("scenario", null);
56796
56830
  if (nav.limitBackToCurrentPage) {
56797
56831
  nav.limitBackToCurrentPage();
56798
56832
  }
56799
56833
  }
56800
56834
  }, {
56801
- key: 'selectProvider',
56835
+ key: "selectProvider",
56802
56836
  value: function selectProvider(provider) {
56803
56837
  var selectedProvider = this.state.selectedProvider;
56804
56838
 
56805
- this.setState({ selectedProvider: provider === selectedProvider ? null : provider });
56839
+ this.setState({
56840
+ selectedProvider: provider === selectedProvider ? null : provider
56841
+ });
56806
56842
  }
56807
56843
  }, {
56808
- key: 'selectEnvironment',
56844
+ key: "selectEnvironment",
56809
56845
  value: function selectEnvironment(v, i, env) {
56810
- this.props.change('environment', env.name);
56811
- this.props.change('environmentId', String(env.environmentId));
56846
+ this.props.change("environment", env.name);
56847
+ this.props.change("environmentId", String(env.environmentId));
56812
56848
  this.props.actions.clearAdapterSecrets();
56813
56849
  this.setState({ selectedProvider: null });
56814
56850
  this.tryGetCredentialAndCheck(env);
56815
56851
  }
56816
56852
  }, {
56817
- key: 'tryGetCredentialAndCheck',
56853
+ key: "tryGetCredentialAndCheck",
56818
56854
  value: function tryGetCredentialAndCheck(env) {
56819
56855
  var _this4 = this;
56820
56856
 
@@ -56826,9 +56862,9 @@ module.exports =
56826
56862
  change = _props7.change,
56827
56863
  formValues = _props7.formValues;
56828
56864
 
56829
- var modes = ['source', 'destination'];
56830
- change('sourceCredentials', { rootUrl: 'https://' });
56831
- change('destinationCredentials', { rootUrl: 'https://' });
56865
+ var modes = ["source", "destination"];
56866
+ change("sourceCredentials", { rootUrl: "https://" });
56867
+ change("destinationCredentials", { rootUrl: "https://" });
56832
56868
  this.setState({ sourceEnvChecking: true });
56833
56869
  this.setState({ destinationEnvChecking: true });
56834
56870
  var wiz = {
@@ -56843,15 +56879,15 @@ module.exports =
56843
56879
  // main creds
56844
56880
  if (cred && cred.credentialsJson) {
56845
56881
  var modeCreds = cred.credentialsJson;
56846
- change(m + 'Credentials', modeCreds);
56882
+ change(m + "Credentials", modeCreds);
56847
56883
  var isReload = true; // skips posting creds again
56848
- var extraQuery = '';
56849
- if (formValues.includeSystemResources && wiz[m].type === 'Salesforce') {
56850
- extraQuery = '?all=true';
56884
+ var extraQuery = "";
56885
+ if (formValues.includeSystemResources && wiz[m].type === "Salesforce") {
56886
+ extraQuery = "?all=true";
56851
56887
  }
56852
- _this4.check(m, env, modeCreds, isReload, extraQuery);
56888
+ _this4.check(m, env, modeCreds, isReload, extraQuery, cred.key);
56853
56889
  } else {
56854
- _this4.setState(_defineProperty({}, m + 'EnvChecking', false));
56890
+ _this4.setState(_defineProperty({}, m + "EnvChecking", false));
56855
56891
  }
56856
56892
  } else {
56857
56893
  // adapter secret if exists
@@ -56863,7 +56899,7 @@ module.exports =
56863
56899
  });
56864
56900
  }
56865
56901
  }, {
56866
- key: 'setCsvFields',
56902
+ key: "setCsvFields",
56867
56903
  value: function setCsvFields(meta, contents, mode, providerType) {
56868
56904
  var _this5 = this;
56869
56905
 
@@ -56877,19 +56913,19 @@ module.exports =
56877
56913
  //let meta = wizard[`${mode}Metadata`] || []
56878
56914
  //meta = meta.concat(metadata)
56879
56915
 
56880
- return actions.setCsvFields(tenantId, accountId, tenantKey, accountKey, meta, contents, mode, providerType, mode === 'source', formValues['environmentId']).then(function (d) {
56916
+ return actions.setCsvFields(tenantId, accountId, tenantKey, accountKey, meta, contents, mode, providerType, mode === "source", formValues["environmentId"]).then(function (d) {
56881
56917
  // get the new list of files
56882
56918
  var isReload = true; // skip post creds
56883
- return _this5.check(mode, null, d, isReload, '');
56919
+ return _this5.check(mode, null, d, isReload, "");
56884
56920
  });
56885
56921
  }
56886
56922
  }, {
56887
- key: 'clearCsvFields',
56923
+ key: "clearCsvFields",
56888
56924
  value: function clearCsvFields(mode) {
56889
56925
  return this.props.actions.clearCsvFields(mode);
56890
56926
  }
56891
56927
  }, {
56892
- key: 'createCustomSettings',
56928
+ key: "createCustomSettings",
56893
56929
  value: function createCustomSettings(mode) {
56894
56930
  var _props9 = this.props,
56895
56931
  wizard = _props9.wizard,
@@ -56897,23 +56933,26 @@ module.exports =
56897
56933
  inputs = _props9.inputs,
56898
56934
  formValues = _props9.formValues;
56899
56935
 
56900
- var config = step[mode + 'Config'];
56936
+ var config = step[mode + "Config"];
56901
56937
  var customSettings = null;
56902
- var POSTS = wizard[mode + 'Metadata'] && wizard[mode + 'Metadata'].filter(function (m) {
56903
- return m.method === 'POST' || m.method === 'PUT';
56938
+ var POSTS = wizard[mode + "Metadata"] && wizard[mode + "Metadata"].filter(function (m) {
56939
+ return m.method === "POST" || m.method === "PUT";
56904
56940
  });
56905
56941
 
56906
- if (wizard[mode + 'Metadata'] && mode === 'source' && config.bidirectional && POSTS && POSTS.length > 0) {
56907
- customSettings = _react2.default.createElement(CustomAdapterSettings, { provider: step[mode + 'Provider'],
56908
- clickDirection: this.clickDirection, inputs: inputs });
56909
- } else if (config.type === 'Salesforce') {
56942
+ if (wizard[mode + "Metadata"] && mode === "source" && config.bidirectional && POSTS && POSTS.length > 0) {
56943
+ customSettings = _react2.default.createElement(CustomAdapterSettings, {
56944
+ provider: step[mode + "Provider"],
56945
+ clickDirection: this.clickDirection,
56946
+ inputs: inputs
56947
+ });
56948
+ } else if (config.type === "Salesforce") {
56910
56949
  customSettings = _react2.default.createElement(CustomSalesforceSettings, { inputs: inputs, formValues: formValues });
56911
56950
  }
56912
56951
 
56913
56952
  return customSettings;
56914
56953
  }
56915
56954
  }, {
56916
- key: 'render',
56955
+ key: "render",
56917
56956
  value: function render() {
56918
56957
  var _this6 = this;
56919
56958
 
@@ -56929,121 +56968,158 @@ module.exports =
56929
56968
  accountKey = _props10.accountKey,
56930
56969
  change = _props10.change;
56931
56970
 
56932
- var modes = ['source', 'destination'];
56971
+ var modes = ["source", "destination"];
56933
56972
  var selectedProvider = this.state.selectedProvider;
56934
56973
 
56935
- var notAllMetadata = !(wizard['sourceMetadata'] && wizard['sourceMetadata'].length > 0) || !(wizard['destinationMetadata'] && wizard['destinationMetadata'].length > 0);
56974
+ var notAllMetadata = !(wizard["sourceMetadata"] && wizard["sourceMetadata"].length > 0) || !(wizard["destinationMetadata"] && wizard["destinationMetadata"].length > 0);
56936
56975
 
56937
56976
  return _react2.default.createElement(
56938
- 'form',
56977
+ "form",
56939
56978
  { onKeyPress: function onKeyPress(e) {
56940
56979
  return e.charCode === 13 ? e.preventDefault() : null;
56941
56980
  } },
56942
56981
  _react2.default.createElement(
56943
- 'div',
56944
- { style: { fontSize: 20, display: 'inline-block' } },
56945
- 'Connect to Data Environments'
56982
+ "div",
56983
+ { style: { fontSize: 20, display: "inline-block" } },
56984
+ "Connect to Data Environments"
56946
56985
  ),
56947
- _react2.default.createElement('br', null),
56948
- _react2.default.createElement('br', null),
56986
+ _react2.default.createElement("br", null),
56987
+ _react2.default.createElement("br", null),
56949
56988
  _react2.default.createElement(
56950
- 'p',
56989
+ "p",
56951
56990
  null,
56952
- 'Connect to sources of data and inspect available resources. You can save data environments for later re-use.'
56991
+ "Connect to sources of data and inspect available resources. You can save data environments for later re-use."
56953
56992
  ),
56954
- _react2.default.createElement('br', null),
56993
+ _react2.default.createElement("br", null),
56955
56994
  _react2.default.createElement(
56956
- 'div',
56995
+ "div",
56957
56996
  { style: { height: 52 } },
56958
56997
  _react2.default.createElement(
56959
- 'div',
56960
- { style: { display: 'inline-block', width: 196, verticalAlign: 'top' } },
56961
- _react2.default.createElement(_selectWrapper2.default, { type: 'neutral',
56962
- label: formValues['environment'] || 'Existing Environments',
56963
- minWidth: 260, fieldPropLabel: 'name',
56964
- style: { minWidth: 200, textAlign: 'left' },
56998
+ "div",
56999
+ {
57000
+ style: {
57001
+ display: "inline-block",
57002
+ width: 196,
57003
+ verticalAlign: "top"
57004
+ }
57005
+ },
57006
+ _react2.default.createElement(_selectWrapper2.default, {
57007
+ type: "neutral",
57008
+ label: formValues["environment"] || "Existing Environments",
57009
+ minWidth: 260,
57010
+ fieldPropLabel: "name",
57011
+ style: { minWidth: 200, textAlign: "left" },
56965
57012
  values: wizard.environments,
56966
- title: 'Choose Environment', inputs: inputs, sectionLabelSuffix: '',
57013
+ title: "Choose Environment",
57014
+ inputs: inputs,
57015
+ sectionLabelSuffix: "",
56967
57016
  onSelect: this.selectEnvironment.bind(this),
56968
- selectedValues: [formValues['environment'] ? { name: formValues['environment'] } : {}],
57017
+ selectedValues: [formValues["environment"] ? { name: formValues["environment"] } : {}],
56969
57018
  disabled: wizard.environments && wizard.environments.length > 0 ? false : true
56970
57019
  })
56971
57020
  )
56972
57021
  ),
56973
- _react2.default.createElement('br', null),
57022
+ _react2.default.createElement("br", null),
56974
57023
  _react2.default.createElement(
56975
57024
  _CSSTransitionGroup2.default,
56976
- { transitionName: 'env-content',
56977
- transitionEnterTimeout: 250, transitionLeaveTimeout: 250 },
56978
- formValues['environment'] && _react2.default.createElement(
56979
- 'div',
56980
- { className: 'env-content' },
56981
- _react2.default.createElement('br', null),
57025
+ {
57026
+ transitionName: "env-content",
57027
+ transitionEnterTimeout: 250,
57028
+ transitionLeaveTimeout: 250
57029
+ },
57030
+ formValues["environment"] && _react2.default.createElement(
57031
+ "div",
57032
+ { className: "env-content" },
57033
+ _react2.default.createElement("br", null),
56982
57034
  modes.map(function (m) {
56983
- var isSelected = step[m + 'Provider'] === selectedProvider;
56984
- var checking = _this6.state[m + 'EnvChecking'];
56985
- var adapterSecret = wizard.savedCredentials && wizard.savedCredentials[m + 'AdapterSecret'] && wizard.savedCredentials[m + 'AdapterSecret'].credentials;
57035
+ var isSelected = step[m + "Provider"] === selectedProvider;
57036
+ var checking = _this6.state[m + "EnvChecking"];
57037
+ var adapterSecret = wizard.savedCredentials && wizard.savedCredentials[m + "AdapterSecret"] && wizard.savedCredentials[m + "AdapterSecret"].credentials;
56986
57038
  var customSettings = _this6.createCustomSettings(m);
56987
57039
  return _react2.default.createElement(
56988
- 'div',
56989
- { key: m, className: 'env-section' },
57040
+ "div",
57041
+ { key: m, className: "env-section" },
56990
57042
  _react2.default.createElement(
56991
- 'div',
56992
- { onClick: function onClick() {
56993
- return _this6.selectProvider(step[m + 'Provider']);
57043
+ "div",
57044
+ {
57045
+ onClick: function onClick() {
57046
+ return _this6.selectProvider(step[m + "Provider"]);
56994
57047
  },
56995
- className: 'env-section-header' },
56996
- _react2.default.createElement(EnvCheckIcons, { wizard: wizard, inputs: inputs, mode: m, checking: checking, isSelected: isSelected }),
57048
+ className: "env-section-header"
57049
+ },
57050
+ _react2.default.createElement(EnvCheckIcons, {
57051
+ wizard: wizard,
57052
+ inputs: inputs,
57053
+ mode: m,
57054
+ checking: checking,
57055
+ isSelected: isSelected
57056
+ }),
56997
57057
  _react2.default.createElement(
56998
- 'div',
56999
- { className: 'env-section-header-title' },
57000
- step[m + 'Config'].label || step[m + 'Provider']
57058
+ "div",
57059
+ { className: "env-section-header-title" },
57060
+ step[m + "Config"].label || step[m + "Provider"]
57001
57061
  )
57002
57062
  ),
57003
- wizard[m + 'Metadata'] && _react2.default.createElement(
57004
- 'div',
57005
- { className: 'env-inspect-button',
57063
+ wizard[m + "Metadata"] && _react2.default.createElement(
57064
+ "div",
57065
+ {
57066
+ className: "env-inspect-button",
57006
57067
  onClick: function onClick() {
57007
57068
  return _this6.setState({ showResources: m });
57008
- } },
57069
+ }
57070
+ },
57009
57071
  _react2.default.createElement(
57010
- 'span',
57072
+ "span",
57011
57073
  null,
57012
- 'View Resources'
57074
+ "View Resources"
57013
57075
  ),
57014
57076
  _react2.default.createElement(
57015
- 'svg',
57016
- { className: 'env-inspect-eye', height: '24', viewBox: '0 0 24 24', width: '24' },
57017
- _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),
57018
- _react2.default.createElement('path', { d: 'M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z' })
57077
+ "svg",
57078
+ {
57079
+ className: "env-inspect-eye",
57080
+ height: "24",
57081
+ viewBox: "0 0 24 24",
57082
+ width: "24"
57083
+ },
57084
+ _react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
57085
+ _react2.default.createElement("path", { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" })
57019
57086
  )
57020
57087
  ),
57021
57088
  _react2.default.createElement(
57022
57089
  _CSSTransitionGroup2.default,
57023
- { transitionName: 'env-creds',
57024
- transitionEnterTimeout: 250, transitionLeaveTimeout: 250 },
57090
+ {
57091
+ transitionName: "env-creds",
57092
+ transitionEnterTimeout: 250,
57093
+ transitionLeaveTimeout: 250
57094
+ },
57025
57095
  isSelected && _react2.default.createElement(
57026
- 'div',
57027
- { className: 'env-creds' },
57028
- wizard[m + 'CheckError'] && _react2.default.createElement(
57029
- 'div',
57030
- { className: 'check-metadata-error' },
57031
- wizard[m + 'CheckError']
57096
+ "div",
57097
+ { className: "env-creds" },
57098
+ wizard[m + "CheckError"] && _react2.default.createElement(
57099
+ "div",
57100
+ { className: "check-metadata-error" },
57101
+ wizard[m + "CheckError"]
57032
57102
  ),
57033
57103
  _react2.default.createElement(
57034
57104
  _credSections2.default,
57035
- { config: step[m + 'Config'], checking: checking,
57036
- wizard: wizard, getOauthUrl: _this6.getOauthUrl.bind(_this6),
57037
- formValues: formValues, inputs: inputs,
57105
+ {
57106
+ config: step[m + "Config"],
57107
+ checking: checking,
57108
+ wizard: wizard,
57109
+ getOauthUrl: _this6.getOauthUrl.bind(_this6),
57110
+ formValues: formValues,
57111
+ inputs: inputs,
57038
57112
  generateNewAdapterSecret: function generateNewAdapterSecret() {
57039
57113
  return _this6.generateNewAdapterSecret(m);
57040
57114
  },
57041
57115
  seeFields: _this6.seeFields.bind(_this6),
57042
- fileSchema: formValues[m + 'FileSchema'],
57116
+ fileSchema: formValues[m + "FileSchema"],
57043
57117
  check: function check(actualCreds, extraQuery) {
57044
57118
  _this6.check(m, null, actualCreds, null, extraQuery);
57045
- }, change: change,
57046
- tenantKey: tenantKey, accountKey: accountKey,
57119
+ },
57120
+ change: change,
57121
+ tenantKey: tenantKey,
57122
+ accountKey: accountKey,
57047
57123
  setCsvFields: function setCsvFields(meta, contents, providerType) {
57048
57124
  return _this6.setCsvFields(meta, contents, m, providerType);
57049
57125
  },
@@ -57051,15 +57127,16 @@ module.exports =
57051
57127
  clearCsvFields: function clearCsvFields() {
57052
57128
  return _this6.clearCsvFields(m);
57053
57129
  },
57054
- creds: formValues[m + 'Credentials'],
57055
- envCheckResult: wizard[m + 'CheckResult'],
57130
+ creds: formValues[m + "Credentials"],
57131
+ envCheckResult: wizard[m + "CheckResult"],
57056
57132
  adapterSecret: adapterSecret,
57057
57133
  deleteFlatFile: function deleteFlatFile(fileName) {
57058
57134
  return _this6.deleteFlatFile(fileName, m);
57059
57135
  },
57060
57136
  checkOauthCreds: function checkOauthCreds(phase) {
57061
57137
  return _this6.checkOauthCreds(phase, m);
57062
- } },
57138
+ }
57139
+ },
57063
57140
  _react2.default.isValidElement(customSettings) ? _react2.default.cloneElement(customSettings) : null
57064
57141
  )
57065
57142
  )
@@ -57072,18 +57149,25 @@ module.exports =
57072
57149
  onHide: function onHide() {
57073
57150
  return _this6.setState({ showResources: null });
57074
57151
  },
57075
- mode: this.state.showResources, wizard: wizard,
57076
- step: step, inputs: inputs,
57152
+ mode: this.state.showResources,
57153
+ wizard: wizard,
57154
+ step: step,
57155
+ inputs: inputs,
57077
57156
  seeFields: this.seeFields.bind(this),
57078
- isReverse: formValues.direction === 'reverse'
57157
+ isReverse: formValues.direction === "reverse"
57079
57158
  }),
57080
- _react2.default.createElement('br', null),
57081
- _react2.default.createElement('br', null),
57082
- _react2.default.createElement(_navButtons2.default, { nextDisabled: notAllMetadata || !formValues['environmentId'],
57083
- handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs,
57084
- isAdmin: this.props.isAdmin }),
57085
- _react2.default.createElement('br', null),
57086
- _react2.default.createElement('br', null)
57159
+ _react2.default.createElement("br", null),
57160
+ _react2.default.createElement("br", null),
57161
+ _react2.default.createElement(_navButtons2.default, {
57162
+ nextDisabled: notAllMetadata || !formValues["environmentId"],
57163
+ handleSubmit: handleSubmit,
57164
+ nav: nav,
57165
+ reset: reset,
57166
+ inputs: inputs,
57167
+ isAdmin: this.props.isAdmin
57168
+ }),
57169
+ _react2.default.createElement("br", null),
57170
+ _react2.default.createElement("br", null)
57087
57171
  );
57088
57172
  }
57089
57173
  }]);
@@ -57101,87 +57185,107 @@ module.exports =
57101
57185
  isReverse = _ref.isReverse;
57102
57186
 
57103
57187
  var Modal = inputs.Modal;
57104
- var config = step[mode + 'Config'];
57105
- var POSTS = wizard[mode + 'Metadata'] && wizard[mode + 'Metadata'].filter(function (m) {
57106
- return m.method === 'POST' || m.method === 'PUT';
57188
+ var config = step[mode + "Config"];
57189
+ var POSTS = wizard[mode + "Metadata"] && wizard[mode + "Metadata"].filter(function (m) {
57190
+ return m.method === "POST" || m.method === "PUT";
57107
57191
  });
57108
57192
 
57109
57193
  var providerLabel = config.label;
57110
57194
 
57111
57195
  // "testconnection" will be deprecated
57112
- var isFromAdapter = config && (config.metadataEndpoint === 'testconnection' || config.metadataEndpoint === 'adaptermetadata');
57196
+ var isFromAdapter = config && (config.metadataEndpoint === "testconnection" || config.metadataEndpoint === "adaptermetadata");
57113
57197
 
57114
57198
  return _react2.default.createElement(
57115
57199
  Modal,
57116
- { opened: mode ? true : false, hideModal: onHide, submitModal: onHide,
57117
- title: 'Available ' + providerLabel + ' Resources' },
57200
+ {
57201
+ opened: mode ? true : false,
57202
+ hideModal: onHide,
57203
+ submitModal: onHide,
57204
+ title: "Available " + providerLabel + " Resources"
57205
+ },
57118
57206
  _react2.default.createElement(
57119
- 'div',
57120
- { style: { overflow: 'scroll', maxHeight: '69vh', padding: '1em 2em' } },
57121
- wizard[mode + 'Metadata'] && !isReverse ? _react2.default.createElement(
57122
- 'div',
57207
+ "div",
57208
+ {
57209
+ style: { overflow: "scroll", maxHeight: "69vh", padding: "1em 2em" }
57210
+ },
57211
+ wizard[mode + "Metadata"] && !isReverse ? _react2.default.createElement(
57212
+ "div",
57123
57213
  null,
57124
57214
  _react2.default.createElement(
57125
- 'span',
57126
- { className: 'labelz' },
57127
- 'Available ',
57128
- step[mode + 'Provider'],
57129
- ' Data Objects',
57215
+ "span",
57216
+ { className: "labelz" },
57217
+ "Available ",
57218
+ step[mode + "Provider"],
57219
+ " Data Objects",
57130
57220
  isFromAdapter && _react2.default.createElement(
57131
- 'span',
57221
+ "span",
57132
57222
  null,
57133
- '\xA0(click to preview data):'
57223
+ "\xA0(click to preview data):"
57134
57224
  )
57135
57225
  ),
57136
57226
  _react2.default.createElement(
57137
- 'ul',
57138
- { style: { listStyle: 'none', paddingLeft: 5 } },
57139
- wizard[mode + 'Metadata'].filter(function (m) {
57140
- return m.method !== 'POST';
57227
+ "ul",
57228
+ { style: { listStyle: "none", paddingLeft: 5 } },
57229
+ wizard[mode + "Metadata"].filter(function (m) {
57230
+ return m.method !== "POST";
57141
57231
  }).map(function (rsc, i) {
57142
57232
  return _react2.default.createElement(
57143
- 'li',
57144
- { key: i, style: { paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10 } },
57233
+ "li",
57234
+ {
57235
+ key: i,
57236
+ style: {
57237
+ paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10
57238
+ }
57239
+ },
57145
57240
  isFromAdapter ? _react2.default.createElement(
57146
- 'a',
57147
- { onClick: function onClick() {
57241
+ "a",
57242
+ {
57243
+ onClick: function onClick() {
57148
57244
  return seeFields(rsc, mode);
57149
57245
  },
57150
- style: { textDecoration: 'none', cursor: 'pointer' } },
57246
+ style: { textDecoration: "none", cursor: "pointer" }
57247
+ },
57151
57248
  rsc.name
57152
57249
  ) : _react2.default.createElement(
57153
- 'div',
57250
+ "div",
57154
57251
  null,
57155
57252
  rsc.name,
57156
- rsc.sheetName ? ' (' + rsc.sheetName + ')' : ''
57253
+ rsc.sheetName ? " (" + rsc.sheetName + ")" : ""
57157
57254
  )
57158
57255
  );
57159
57256
  })
57160
57257
  )
57161
57258
  ) : null,
57162
- wizard[mode + 'Metadata'] && mode === 'source' && POSTS && POSTS.length > 0 && _react2.default.createElement(
57163
- 'div',
57259
+ wizard[mode + "Metadata"] && mode === "source" && POSTS && POSTS.length > 0 && _react2.default.createElement(
57260
+ "div",
57164
57261
  null,
57165
57262
  isReverse && _react2.default.createElement(
57166
- 'div',
57263
+ "div",
57167
57264
  null,
57168
57265
  _react2.default.createElement(
57169
- 'span',
57170
- { className: 'labelz' },
57171
- 'Available ',
57172
- step[mode + 'Provider'],
57173
- ' Data Target Objects:'
57266
+ "span",
57267
+ { className: "labelz" },
57268
+ "Available ",
57269
+ step[mode + "Provider"],
57270
+ " Data Target Objects:"
57174
57271
  ),
57175
57272
  _react2.default.createElement(
57176
- 'ul',
57177
- { style: { listStyle: 'none', paddingLeft: 5 } },
57273
+ "ul",
57274
+ { style: { listStyle: "none", paddingLeft: 5 } },
57178
57275
  POSTS.map(function (rsc, i) {
57179
57276
  return _react2.default.createElement(
57180
- 'li',
57181
- { key: i, style: { paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10 } },
57277
+ "li",
57278
+ {
57279
+ key: i,
57280
+ style: {
57281
+ paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10
57282
+ }
57283
+ },
57182
57284
  _react2.default.createElement(
57183
- 'a',
57184
- { style: { textDecoration: 'none', cursor: 'default' } },
57285
+ "a",
57286
+ {
57287
+ style: { textDecoration: "none", cursor: "default" }
57288
+ },
57185
57289
  rsc.name
57186
57290
  )
57187
57291
  );
@@ -57200,37 +57304,62 @@ module.exports =
57200
57304
  checking = _ref2.checking,
57201
57305
  isSelected = _ref2.isSelected;
57202
57306
 
57203
- var envCheckResult = wizard[mode + 'CheckResult'];
57307
+ var envCheckResult = wizard[mode + "CheckResult"];
57204
57308
  return _react2.default.createElement(
57205
- 'div',
57206
- { className: 'env-section-icon' },
57309
+ "div",
57310
+ { className: "env-section-icon" },
57207
57311
  checking && _react2.default.createElement(inputs.Spinner, null),
57208
57312
  envCheckResult && !checking ? _react2.default.createElement(
57209
- 'span',
57313
+ "span",
57210
57314
  null,
57211
- envCheckResult === '200 OK' ? _react2.default.createElement(
57212
- 'svg',
57213
- { fill: '#019644', height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },
57214
- _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),
57215
- _react2.default.createElement('path', { d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z' })
57315
+ envCheckResult === "200 OK" ? _react2.default.createElement(
57316
+ "svg",
57317
+ {
57318
+ fill: "#019644",
57319
+ height: "24",
57320
+ viewBox: "0 0 24 24",
57321
+ width: "24",
57322
+ xmlns: "http://www.w3.org/2000/svg"
57323
+ },
57324
+ _react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
57325
+ _react2.default.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })
57216
57326
  ) : _react2.default.createElement(
57217
- 'svg',
57218
- { fill: '#EA5A5A', height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },
57219
- _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),
57220
- _react2.default.createElement('path', { d: 'M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z' })
57327
+ "svg",
57328
+ {
57329
+ fill: "#EA5A5A",
57330
+ height: "24",
57331
+ viewBox: "0 0 24 24",
57332
+ width: "24",
57333
+ xmlns: "http://www.w3.org/2000/svg"
57334
+ },
57335
+ _react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
57336
+ _react2.default.createElement("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" })
57221
57337
  )
57222
57338
  ) : _react2.default.createElement(
57223
- 'span',
57339
+ "span",
57224
57340
  null,
57225
57341
  !checking && _react2.default.createElement(
57226
- 'svg',
57227
- { x: '0px', y: '0px', viewBox: '0 0 1000 1000', height: '16', width: '16',
57228
- style: { marginLeft: 4, marginTop: 3,
57229
- transform: 'rotate(' + (isSelected ? -90 : 0) + 'deg)', transition: 'all 0.1s' } },
57342
+ "svg",
57343
+ {
57344
+ x: "0px",
57345
+ y: "0px",
57346
+ viewBox: "0 0 1000 1000",
57347
+ height: "16",
57348
+ width: "16",
57349
+ style: {
57350
+ marginLeft: 4,
57351
+ marginTop: 3,
57352
+ transform: "rotate(" + (isSelected ? -90 : 0) + "deg)",
57353
+ transition: "all 0.1s"
57354
+ }
57355
+ },
57230
57356
  _react2.default.createElement(
57231
- 'g',
57232
- { transform: 'matrix(1 0 0 -1 1000 -536) rotate(180)' },
57233
- _react2.default.createElement('path', { d: 'M978.4,833.3L877.5,732.9c-7.7-7.7-16.8-11.5-27.4-11.5c-10.5,0-19.7,3.8-27.4,11.5L500,1055.8L177.2,732.9c-7.7-7.7-16.8-11.5-27.4-11.5s-19.7,3.8-27.4,11.5L21.6,833.3C13.9,841,10,850.2,10,860.9c0,10.7,3.9,20,11.6,27.7l451.1,450.5c7.7,7.7,16.8,11.6,27.4,11.6c10.5,0,19.7-3.9,27.4-11.6l451.1-450.5c7.7-7.7,11.6-16.9,11.6-27.7C990,850.2,986.1,841,978.4,833.3z', fill: 'grey' })
57357
+ "g",
57358
+ { transform: "matrix(1 0 0 -1 1000 -536) rotate(180)" },
57359
+ _react2.default.createElement("path", {
57360
+ d: "M978.4,833.3L877.5,732.9c-7.7-7.7-16.8-11.5-27.4-11.5c-10.5,0-19.7,3.8-27.4,11.5L500,1055.8L177.2,732.9c-7.7-7.7-16.8-11.5-27.4-11.5s-19.7,3.8-27.4,11.5L21.6,833.3C13.9,841,10,850.2,10,860.9c0,10.7,3.9,20,11.6,27.7l451.1,450.5c7.7,7.7,16.8,11.6,27.4,11.6c10.5,0,19.7-3.9,27.4-11.6l451.1-450.5c7.7-7.7,11.6-16.9,11.6-27.7C990,850.2,986.1,841,978.4,833.3z",
57361
+ fill: "grey"
57362
+ })
57234
57363
  )
57235
57364
  )
57236
57365
  )
@@ -57252,7 +57381,7 @@ module.exports =
57252
57381
  }
57253
57382
 
57254
57383
  _createClass(CustomSalesforceSettings, [{
57255
- key: 'componentWillMount',
57384
+ key: "componentWillMount",
57256
57385
  value: function componentWillMount() {
57257
57386
  var formValues = this.props.formValues;
57258
57387
 
@@ -57261,7 +57390,7 @@ module.exports =
57261
57390
  }
57262
57391
  }
57263
57392
  }, {
57264
- key: 'render',
57393
+ key: "render",
57265
57394
  value: function render() {
57266
57395
  var _this8 = this;
57267
57396
 
@@ -57270,36 +57399,43 @@ module.exports =
57270
57399
 
57271
57400
 
57272
57401
  return _react2.default.createElement(
57273
- 'div',
57402
+ "div",
57274
57403
  { style: { marginTop: 23 } },
57275
57404
  _react2.default.createElement(
57276
- 'label',
57277
- { className: 'labelz', style: { fontWeight: 'bold' } },
57278
- 'Bulk Upload Batch Size:'
57405
+ "label",
57406
+ { className: "labelz", style: { fontWeight: "bold" } },
57407
+ "Bulk Upload Batch Size:"
57279
57408
  ),
57280
- _react2.default.createElement('br', null),
57281
- _react2.default.createElement(Radio, { onChange: function onChange() {
57409
+ _react2.default.createElement("br", null),
57410
+ _react2.default.createElement(Radio, {
57411
+ onChange: function onChange() {
57282
57412
  return _this8.setState({ custom: false });
57283
57413
  },
57284
- label: 'Default Batch Size (10,000)',
57414
+ label: "Default Batch Size (10,000)",
57285
57415
  checked: this.state.custom === false,
57286
- style: { cursor: 'pointer', fontWeight: 'normal' }
57416
+ style: { cursor: "pointer", fontWeight: "normal" }
57287
57417
  }),
57288
- _react2.default.createElement('br', null),
57289
- _react2.default.createElement(Radio, { onChange: function onChange() {
57418
+ _react2.default.createElement("br", null),
57419
+ _react2.default.createElement(Radio, {
57420
+ onChange: function onChange() {
57290
57421
  return _this8.setState({ custom: true });
57291
57422
  },
57292
- label: 'Custom Batch Size',
57423
+ label: "Custom Batch Size",
57293
57424
  checked: this.state.custom === true,
57294
- style: { cursor: 'pointer', fontWeight: 'normal' }
57425
+ style: { cursor: "pointer", fontWeight: "normal" }
57295
57426
  }),
57296
57427
  this.state.custom === true && _react2.default.createElement(
57297
- 'div',
57428
+ "div",
57298
57429
  null,
57299
- _react2.default.createElement('br', null),
57300
- _react2.default.createElement(_reduxForm.Field, { name: 'batchSize', type: 'number', component: inputs.rfInput,
57430
+ _react2.default.createElement("br", null),
57431
+ _react2.default.createElement(_reduxForm.Field, {
57432
+ name: "batchSize",
57433
+ type: "number",
57434
+ component: inputs.rfInput,
57301
57435
  style: { width: 300 },
57302
- label: 'Set Batch Size:', placeholder: 'Number of Records' })
57436
+ label: "Set Batch Size:",
57437
+ placeholder: "Number of Records"
57438
+ })
57303
57439
  )
57304
57440
  );
57305
57441
  }
@@ -57314,22 +57450,24 @@ module.exports =
57314
57450
  inputs = _ref3.inputs;
57315
57451
 
57316
57452
  return _react2.default.createElement(
57317
- 'div',
57453
+ "div",
57318
57454
  null,
57319
- _react2.default.createElement('br', null),
57320
- _react2.default.createElement(_reduxForm.Field, { name: 'direction', component: inputs.rfRadioGroup,
57321
- label: 'Integration Direction',
57455
+ _react2.default.createElement("br", null),
57456
+ _react2.default.createElement(_reduxForm.Field, {
57457
+ name: "direction",
57458
+ component: inputs.rfRadioGroup,
57459
+ label: "Integration Direction",
57322
57460
  onClickOption: clickDirection,
57323
57461
  options: {
57324
- 'normal': 'Read Data from ' + provider,
57325
- 'reverse': 'Write Data to ' + provider
57462
+ normal: "Read Data from " + provider,
57463
+ reverse: "Write Data to " + provider
57326
57464
  }
57327
57465
  })
57328
57466
  );
57329
57467
  };
57330
57468
 
57331
57469
  exports.default = (0, _reduxForm.reduxForm)({
57332
- form: 'wizard',
57470
+ form: "wizard",
57333
57471
  destroyOnUnmount: false,
57334
57472
  forceUnregisterOnUnmount: true,
57335
57473
  touchOnBlur: false,
@@ -57340,7 +57478,7 @@ module.exports =
57340
57478
  /* 180 */
57341
57479
  /***/ function(module, exports, __webpack_require__) {
57342
57480
 
57343
- 'use strict';
57481
+ "use strict";
57344
57482
 
57345
57483
  Object.defineProperty(exports, "__esModule", {
57346
57484
  value: true
@@ -57381,15 +57519,15 @@ module.exports =
57381
57519
  touched = _ref$meta.touched,
57382
57520
  error = _ref$meta.error;
57383
57521
  return touched && error ? _react2.default.createElement(
57384
- 'div',
57522
+ "div",
57385
57523
  null,
57386
57524
  _react2.default.createElement(
57387
- 'span',
57525
+ "span",
57388
57526
  null,
57389
57527
  error
57390
57528
  ),
57391
- _react2.default.createElement('br', null),
57392
- _react2.default.createElement('br', null)
57529
+ _react2.default.createElement("br", null),
57530
+ _react2.default.createElement("br", null)
57393
57531
  ) : false;
57394
57532
  };
57395
57533
 
@@ -57407,7 +57545,7 @@ module.exports =
57407
57545
  }
57408
57546
 
57409
57547
  _createClass(EnvironmentStep, [{
57410
- key: 'seeFields',
57548
+ key: "seeFields",
57411
57549
  value: function seeFields(target) {
57412
57550
  var _props = this.props,
57413
57551
  tenantId = _props.tenantId,
@@ -57416,16 +57554,16 @@ module.exports =
57416
57554
  step = _props.step,
57417
57555
  configUrls = _props.configUrls;
57418
57556
 
57419
- var endpoint = formValues[step.mode + 'Endpoint'];
57557
+ var endpoint = formValues[step.mode + "Endpoint"];
57420
57558
  var x = window.open();
57421
- x.document.open('', '_blank');
57559
+ x.document.open("", "_blank");
57422
57560
  x.document.write((0, _previewTabContent.makeContent)(configUrls.TRANS_API_URL, tenantId, accountId, endpoint, target.endpointSuffix, target.name, step.previewToken));
57423
- x.document.title = 'Preview Data (' + target.name + ')';
57561
+ x.document.title = "Preview Data (" + target.name + ")";
57424
57562
  x.document.close();
57425
57563
  x.focus();
57426
57564
  }
57427
57565
  }, {
57428
- key: 'componentWillMount',
57566
+ key: "componentWillMount",
57429
57567
  value: function componentWillMount() {
57430
57568
  var _props2 = this.props,
57431
57569
  step = _props2.step,
@@ -57439,7 +57577,7 @@ module.exports =
57439
57577
  }
57440
57578
  }
57441
57579
  }, {
57442
- key: 'check',
57580
+ key: "check",
57443
57581
  value: function check() {
57444
57582
  var _props3 = this.props,
57445
57583
  actions = _props3.actions,
@@ -57449,44 +57587,43 @@ module.exports =
57449
57587
  step = _props3.step,
57450
57588
  change = _props3.change;
57451
57589
 
57452
- var endpoint = formValues[step.mode + 'Endpoint'];
57453
- var credentials = formValues[step.mode + 'Credentials'];
57590
+ var endpoint = formValues[step.mode + "Endpoint"];
57591
+ var credentials = formValues[step.mode + "Credentials"];
57454
57592
  //remove trailing slash if exists
57455
- if (endpoint && endpoint[endpoint.length - 1] === '/' && endpoint.length > 8) {
57593
+ if (endpoint && endpoint[endpoint.length - 1] === "/" && endpoint.length > 8) {
57456
57594
  endpoint = endpoint.slice(0, -1);
57457
- change(step.mode + 'Endpoint', endpoint);
57595
+ change(step.mode + "Endpoint", endpoint);
57458
57596
  }
57459
-
57460
57597
  if (credentials) {
57461
- actions.postCredentials(tenantId, accountId, step[step.mode + 'Provider'], endpoint, credentials, step.mode).then(function () {
57462
- actions.callGetMetadata(tenantId, accountId, step.mode, step[step.mode + 'Provider'], step.metadataEndpoint, step.metadataApi, endpoint || '_blank', step.credentials, step.isFramework, credentials);
57598
+ actions.postCredentials(tenantId, accountId, step[step.mode + "Provider"], endpoint, credentials, step.mode).then(function () {
57599
+ actions.callGetMetadata(tenantId, accountId, step.mode, step[step.mode + "Provider"], step.metadataEndpoint, step.metadataApi, endpoint || "_blank", step.credentials, step.isFramework, credentials);
57463
57600
  });
57464
57601
  } else {
57465
- actions.callGetMetadata(tenantId, accountId, step.mode, step[step.mode + 'Provider'], step.metadataEndpoint, step.metadataApi, endpoint || '_blank', step.credentials, step.isFramework);
57602
+ actions.callGetMetadata(tenantId, accountId, step.mode, step[step.mode + "Provider"], step.metadataEndpoint, step.metadataApi, endpoint || "_blank", step.credentials, step.isFramework);
57466
57603
  }
57467
57604
  }
57468
57605
  }, {
57469
- key: 'startOauth',
57606
+ key: "startOauth",
57470
57607
  value: function startOauth() {
57471
57608
  var width = 600;
57472
57609
  var height = 600;
57473
57610
  var left = window.screenX + (window.outerWidth - width) / 2;
57474
57611
  var top = window.screenY + (window.outerHeight - height) / 2.5;
57475
- var popup = window.open(this.props.wizard.oauthUrl, 'Oauth', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left);
57612
+ var popup = window.open(this.props.wizard.oauthUrl, "Oauth", "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left);
57476
57613
  popup.focus();
57477
57614
  }
57478
57615
 
57479
57616
  // turns camel-case cred names into human-readable
57480
57617
 
57481
57618
  }, {
57482
- key: 'unCamelize',
57619
+ key: "unCamelize",
57483
57620
  value: function unCamelize(text) {
57484
- return text.replace(/([A-Z])/g, ' $1').replace(/^./, function (str) {
57621
+ return text.replace(/([A-Z])/g, " $1").replace(/^./, function (str) {
57485
57622
  return str.toUpperCase();
57486
57623
  });
57487
57624
  }
57488
57625
  }, {
57489
- key: 'render',
57626
+ key: "render",
57490
57627
  value: function render() {
57491
57628
  var _this2 = this;
57492
57629
 
@@ -57506,113 +57643,127 @@ module.exports =
57506
57643
  var Button = inputs.Button;
57507
57644
  var Spinner = inputs.Spinner;
57508
57645
 
57509
- var envCheckResult = wizard[step.mode + 'CheckResult'];
57646
+ var envCheckResult = wizard[step.mode + "CheckResult"];
57510
57647
 
57511
- var POSTS = wizard[step.mode + 'Metadata'] && wizard[step.mode + 'Metadata'].filter(function (m) {
57512
- return m.method === 'POST' || m.method === 'PUT';
57648
+ var POSTS = wizard[step.mode + "Metadata"] && wizard[step.mode + "Metadata"].filter(function (m) {
57649
+ return m.method === "POST" || m.method === "PUT";
57513
57650
  });
57514
57651
 
57515
- var hasEndpoint = formValues[step.mode + 'Endpoint'] && formValues[step.mode + 'Endpoint'].length > 8;
57652
+ var hasEndpoint = formValues[step.mode + "Endpoint"] && formValues[step.mode + "Endpoint"].length > 8;
57516
57653
 
57517
- var isOauth = step.credentials && step.credentials.length === 1 && step.credentials[0] === 'Oauth';
57654
+ var isOauth = step.credentials && step.credentials.length === 1 && step.credentials[0] === "Oauth";
57518
57655
 
57519
57656
  return _react2.default.createElement(
57520
- 'form',
57657
+ "form",
57521
57658
  { onKeyPress: function onKeyPress(e) {
57522
57659
  return e.charCode === 13 ? e.preventDefault() : null;
57523
57660
  } },
57524
57661
  _react2.default.createElement(
57525
- 'div',
57526
- { style: { fontSize: 20, display: 'inline-block' } },
57527
- 'Define ',
57528
- step[step.mode + 'Provider'],
57529
- ' Environment'
57662
+ "div",
57663
+ { style: { fontSize: 20, display: "inline-block" } },
57664
+ "Define ",
57665
+ step[step.mode + "Provider"],
57666
+ " Environment"
57530
57667
  ),
57531
- _react2.default.createElement('br', null),
57532
- _react2.default.createElement('br', null),
57668
+ _react2.default.createElement("br", null),
57669
+ _react2.default.createElement("br", null),
57533
57670
  step.message && _react2.default.createElement(
57534
- 'p',
57671
+ "p",
57535
57672
  null,
57536
57673
  step.message
57537
57674
  ),
57538
- _react2.default.createElement('br', null),
57675
+ _react2.default.createElement("br", null),
57539
57676
  isOauth ? _react2.default.createElement(
57540
- 'div',
57677
+ "div",
57541
57678
  null,
57542
57679
  _react2.default.createElement(
57543
- 'div',
57680
+ "div",
57544
57681
  null,
57545
- 'Are you connecting to a Sandbox or Production Org?'
57682
+ "Are you connecting to a Sandbox or Production Org?"
57546
57683
  ),
57547
57684
  _react2.default.createElement(
57548
- 'div',
57685
+ "div",
57549
57686
  { style: { marginTop: 12 } },
57550
57687
  _react2.default.createElement(
57551
57688
  Button,
57552
- { type: 'brand',
57689
+ {
57690
+ type: "brand",
57553
57691
  onClick: function onClick() {
57554
- return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'sandbox', step.mode);
57555
- } },
57556
- 'Sandbox'
57692
+ return actions.getOauthUrl(tenantId, accountId, step.typeGuid, "sandbox", step.mode);
57693
+ }
57694
+ },
57695
+ "Sandbox"
57557
57696
  ),
57558
57697
  _react2.default.createElement(
57559
57698
  Button,
57560
- { type: 'brand', style: { margin: '0 12px' },
57699
+ {
57700
+ type: "brand",
57701
+ style: { margin: "0 12px" },
57561
57702
  onClick: function onClick() {
57562
- return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'production', step.mode);
57563
- } },
57564
- 'Production'
57703
+ return actions.getOauthUrl(tenantId, accountId, step.typeGuid, "production", step.mode);
57704
+ }
57705
+ },
57706
+ "Production"
57565
57707
  ),
57566
57708
  wizard.gettingOauthUrl && _react2.default.createElement(Spinner, null),
57567
57709
  (wizard.oauthUrl || true) && _react2.default.createElement(
57568
- 'div',
57710
+ "div",
57569
57711
  null,
57570
- _react2.default.createElement('br', null),
57712
+ _react2.default.createElement("br", null),
57571
57713
  _react2.default.createElement(
57572
- 'div',
57714
+ "div",
57573
57715
  null,
57574
57716
  _react2.default.createElement(
57575
- 'strong',
57717
+ "strong",
57576
57718
  null,
57577
57719
  _react2.default.createElement(
57578
- 'a',
57720
+ "a",
57579
57721
  { onClick: this.startOauth },
57580
- 'Click Here'
57722
+ "Click Here"
57581
57723
  )
57582
57724
  ),
57583
- ' to authorize your ',
57584
- step[step.mode + 'Provider'],
57585
- ' Org.'
57725
+ " ",
57726
+ "to authorize your ",
57727
+ step[step.mode + "Provider"],
57728
+ " Org."
57586
57729
  ),
57587
- _react2.default.createElement('br', null),
57588
- _react2.default.createElement('br', null),
57730
+ _react2.default.createElement("br", null),
57731
+ _react2.default.createElement("br", null),
57589
57732
  _react2.default.createElement(
57590
- 'div',
57733
+ "div",
57591
57734
  null,
57592
57735
  _react2.default.createElement(
57593
- 'span',
57736
+ "span",
57594
57737
  null,
57595
- 'After you have completed the ',
57596
- step[step.mode + 'Provider'],
57597
- ' authorization process: '
57738
+ "After you have completed the",
57739
+ " ",
57740
+ step[step.mode + "Provider"],
57741
+ " authorization process:",
57742
+ " "
57598
57743
  ),
57599
57744
  _react2.default.createElement(
57600
57745
  Button,
57601
57746
  {
57602
- icon: 'sync',
57603
- iconAlign: 'left',
57747
+ icon: "sync",
57748
+ iconAlign: "left",
57604
57749
  onClick: function onClick() {
57605
57750
  return _this2.check();
57606
57751
  },
57607
- style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' } },
57608
- 'Test Connection'
57752
+ style: {
57753
+ marginLeft: 8,
57754
+ marginBottom: 2,
57755
+ height: 30,
57756
+ lineHeight: "10px"
57757
+ }
57758
+ },
57759
+ "Test Connection"
57609
57760
  ),
57610
57761
  _react2.default.createElement(
57611
- 'div',
57612
- { style: { display: 'inline-block', marginLeft: 12 } },
57762
+ "div",
57763
+ { style: { display: "inline-block", marginLeft: 12 } },
57613
57764
  wizard.envChecking && _react2.default.createElement(Spinner, null),
57614
57765
  envCheckResult && _react2.default.createElement(
57615
- 'span',
57766
+ "span",
57616
57767
  null,
57617
57768
  envCheckResult
57618
57769
  )
@@ -57621,37 +57772,48 @@ module.exports =
57621
57772
  )
57622
57773
  )
57623
57774
  ) : _react2.default.createElement(
57624
- 'div',
57775
+ "div",
57625
57776
  null,
57626
57777
  _react2.default.createElement(
57627
- 'div',
57778
+ "div",
57628
57779
  { style: { marginLeft: 16 } },
57629
57780
  _react2.default.createElement(
57630
- 'div',
57781
+ "div",
57631
57782
  null,
57632
57783
  _react2.default.createElement(
57633
- 'div',
57634
- { style: { display: 'inline-block', width: 300 } },
57635
- _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Endpoint', type: 'text', component: inputs.rfInput, label: 'Data Source Endpoint' })
57784
+ "div",
57785
+ { style: { display: "inline-block", width: 300 } },
57786
+ _react2.default.createElement(_reduxForm.Field, {
57787
+ name: step.mode + "Endpoint",
57788
+ type: "text",
57789
+ component: inputs.rfInput,
57790
+ label: "Data Source Endpoint"
57791
+ })
57636
57792
  ),
57637
57793
  !step.credentials ? _react2.default.createElement(
57638
57794
  Button,
57639
57795
  {
57640
- icon: 'sync',
57641
- iconAlign: 'left',
57796
+ icon: "sync",
57797
+ iconAlign: "left",
57642
57798
  onClick: function onClick() {
57643
57799
  return _this2.check();
57644
57800
  },
57645
- style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
57646
- disabled: !hasEndpoint },
57647
- 'Test Connection'
57801
+ style: {
57802
+ marginLeft: 8,
57803
+ marginBottom: 2,
57804
+ height: 30,
57805
+ lineHeight: "10px"
57806
+ },
57807
+ disabled: !hasEndpoint
57808
+ },
57809
+ "Test Connection"
57648
57810
  ) : null,
57649
57811
  _react2.default.createElement(
57650
- 'div',
57651
- { style: { display: 'inline-block', marginLeft: 12 } },
57812
+ "div",
57813
+ { style: { display: "inline-block", marginLeft: 12 } },
57652
57814
  wizard.envChecking && _react2.default.createElement(Spinner, null),
57653
57815
  envCheckResult && _react2.default.createElement(
57654
- 'span',
57816
+ "span",
57655
57817
  null,
57656
57818
  envCheckResult
57657
57819
  )
@@ -57659,99 +57821,118 @@ module.exports =
57659
57821
  )
57660
57822
  ),
57661
57823
  step.credentials && _react2.default.createElement(
57662
- 'div',
57824
+ "div",
57663
57825
  { style: { marginLeft: 16 } },
57664
- _react2.default.createElement('br', null),
57826
+ _react2.default.createElement("br", null),
57665
57827
  _react2.default.createElement(
57666
- 'label',
57828
+ "label",
57667
57829
  null,
57668
- step[step.mode + 'Provider'],
57669
- ' Credentials'
57830
+ step[step.mode + "Provider"],
57831
+ " Credentials"
57670
57832
  ),
57671
- _react2.default.createElement('br', null),
57833
+ _react2.default.createElement("br", null),
57672
57834
  _react2.default.createElement(
57673
- 'div',
57674
- { style: { display: 'inline-block', marginLeft: 16 } },
57835
+ "div",
57836
+ { style: { display: "inline-block", marginLeft: 16 } },
57675
57837
  step.credentials.map(function (cred, index) {
57676
57838
  return _react2.default.createElement(
57677
- 'div',
57839
+ "div",
57678
57840
  { key: index, style: { marginTop: 8 } },
57679
- _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Credentials.' + cred,
57680
- label: step[step.mode + 'Provider'] + ' ' + _this2.unCamelize(cred), type: 'text',
57681
- component: inputs.rfInput })
57841
+ _react2.default.createElement(_reduxForm.Field, {
57842
+ name: step.mode + "Credentials." + cred,
57843
+ label: step[step.mode + "Provider"] + " " + _this2.unCamelize(cred),
57844
+ type: "text",
57845
+ component: inputs.rfInput
57846
+ })
57682
57847
  );
57683
57848
  })
57684
57849
  ),
57685
57850
  _react2.default.createElement(
57686
57851
  Button,
57687
57852
  {
57688
- icon: 'sync',
57689
- iconAlign: 'left',
57853
+ icon: "sync",
57854
+ iconAlign: "left",
57690
57855
  onClick: function onClick() {
57691
57856
  return _this2.check();
57692
57857
  },
57693
- type: 'neutral',
57694
- style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
57858
+ type: "neutral",
57859
+ style: {
57860
+ marginLeft: 8,
57861
+ marginBottom: 2,
57862
+ height: 30,
57863
+ lineHeight: "10px"
57864
+ },
57695
57865
  disabled: step.credentials.some(function (c) {
57696
- var formCreds = formValues[step.mode + 'Credentials'];
57697
- return !(formCreds && Object.keys(formCreds).includes(c.split(' ').join('')));
57698
- }) || !hasEndpoint },
57699
- 'Test Connection'
57866
+ var formCreds = formValues[step.mode + "Credentials"];
57867
+ return !(formCreds && Object.keys(formCreds).includes(c.split(" ").join("")));
57868
+ }) || !hasEndpoint
57869
+ },
57870
+ "Test Connection"
57700
57871
  )
57701
57872
  )
57702
57873
  ),
57703
- wizard[step.mode + 'Metadata'] && step.mode === 'source' && step.bidirectional && POSTS && POSTS.length > 0 && _react2.default.createElement(
57704
- 'div',
57874
+ wizard[step.mode + "Metadata"] && step.mode === "source" && step.bidirectional && POSTS && POSTS.length > 0 && _react2.default.createElement(
57875
+ "div",
57705
57876
  null,
57706
- _react2.default.createElement('br', null),
57707
- _react2.default.createElement(_reduxForm.Field, { name: 'direction', component: inputs.rfRadioGroup,
57708
- label: 'Integration Direction',
57877
+ _react2.default.createElement("br", null),
57878
+ _react2.default.createElement(_reduxForm.Field, {
57879
+ name: "direction",
57880
+ component: inputs.rfRadioGroup,
57881
+ label: "Integration Direction",
57709
57882
  onClickOption: function onClickOption(v) {
57710
- change('resourceGroups', []);
57711
- change('scenario', null);
57883
+ change("resourceGroups", []);
57884
+ change("scenario", null);
57712
57885
  if (_this2.props.nav.limitBackToCurrentPage) {
57713
57886
  _this2.props.nav.limitBackToCurrentPage();
57714
57887
  }
57715
57888
  },
57716
57889
  options: {
57717
- 'normal': 'Read Data from ' + step[step.mode + 'Provider'],
57718
- 'reverse': 'Write Data to ' + step[step.mode + 'Provider']
57890
+ normal: "Read Data from " + step[step.mode + "Provider"],
57891
+ reverse: "Write Data to " + step[step.mode + "Provider"]
57719
57892
  }
57720
57893
  })
57721
57894
  ),
57722
- wizard[step.mode + 'Metadata'] && formValues.direction === 'normal' ? _react2.default.createElement(
57723
- 'div',
57895
+ wizard[step.mode + "Metadata"] && formValues.direction === "normal" ? _react2.default.createElement(
57896
+ "div",
57724
57897
  null,
57725
- _react2.default.createElement('br', null),
57898
+ _react2.default.createElement("br", null),
57726
57899
  _react2.default.createElement(
57727
- 'span',
57728
- { className: 'labelz' },
57729
- 'Available ',
57730
- step[step.mode + 'Provider'],
57731
- ' Data Objects',
57732
- step.metadataEndpoint === 'testconnection' && _react2.default.createElement(
57733
- 'span',
57900
+ "span",
57901
+ { className: "labelz" },
57902
+ "Available ",
57903
+ step[step.mode + "Provider"],
57904
+ " Data Objects",
57905
+ step.metadataEndpoint === "testconnection" && _react2.default.createElement(
57906
+ "span",
57734
57907
  null,
57735
- '\xA0(click to preview data):'
57908
+ "\xA0(click to preview data):"
57736
57909
  )
57737
57910
  ),
57738
57911
  _react2.default.createElement(
57739
- 'ul',
57740
- { style: { listStyle: 'none', paddingLeft: 5 } },
57741
- wizard[step.mode + 'Metadata'].filter(function (m) {
57742
- return m.method !== 'POST';
57912
+ "ul",
57913
+ { style: { listStyle: "none", paddingLeft: 5 } },
57914
+ wizard[step.mode + "Metadata"].filter(function (m) {
57915
+ return m.method !== "POST";
57743
57916
  }).map(function (rsc, i) {
57744
57917
  return _react2.default.createElement(
57745
- 'li',
57746
- { key: i, style: { paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10 } },
57747
- step.metadataEndpoint === 'testconnection' ? _react2.default.createElement(
57748
- 'a',
57749
- { onClick: function onClick() {
57918
+ "li",
57919
+ {
57920
+ key: i,
57921
+ style: {
57922
+ paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10
57923
+ }
57924
+ },
57925
+ step.metadataEndpoint === "testconnection" ? _react2.default.createElement(
57926
+ "a",
57927
+ {
57928
+ onClick: function onClick() {
57750
57929
  return _this2.seeFields(rsc);
57751
- }, style: { textDecoration: 'none', cursor: 'pointer' } },
57930
+ },
57931
+ style: { textDecoration: "none", cursor: "pointer" }
57932
+ },
57752
57933
  rsc.name
57753
57934
  ) : _react2.default.createElement(
57754
- 'div',
57935
+ "div",
57755
57936
  null,
57756
57937
  rsc.name
57757
57938
  )
@@ -57759,30 +57940,37 @@ module.exports =
57759
57940
  })
57760
57941
  )
57761
57942
  ) : null,
57762
- _react2.default.createElement('br', null),
57763
- wizard[step.mode + 'Metadata'] && step.mode === 'source' && POSTS && POSTS.length > 0 && _react2.default.createElement(
57764
- 'div',
57943
+ _react2.default.createElement("br", null),
57944
+ wizard[step.mode + "Metadata"] && step.mode === "source" && POSTS && POSTS.length > 0 && _react2.default.createElement(
57945
+ "div",
57765
57946
  null,
57766
- formValues.direction === 'reverse' && _react2.default.createElement(
57767
- 'div',
57947
+ formValues.direction === "reverse" && _react2.default.createElement(
57948
+ "div",
57768
57949
  null,
57769
57950
  _react2.default.createElement(
57770
- 'span',
57771
- { className: 'labelz' },
57772
- 'Available ',
57773
- step[step.mode + 'Provider'],
57774
- ' Data Target Objects:'
57951
+ "span",
57952
+ { className: "labelz" },
57953
+ "Available ",
57954
+ step[step.mode + "Provider"],
57955
+ " Data Target Objects:"
57775
57956
  ),
57776
57957
  _react2.default.createElement(
57777
- 'ul',
57778
- { style: { listStyle: 'none', paddingLeft: 5 } },
57958
+ "ul",
57959
+ { style: { listStyle: "none", paddingLeft: 5 } },
57779
57960
  POSTS.map(function (rsc, i) {
57780
57961
  return _react2.default.createElement(
57781
- 'li',
57782
- { key: i, style: { paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10 } },
57962
+ "li",
57963
+ {
57964
+ key: i,
57965
+ style: {
57966
+ paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10
57967
+ }
57968
+ },
57783
57969
  _react2.default.createElement(
57784
- 'a',
57785
- { style: { textDecoration: 'none', cursor: 'default' } },
57970
+ "a",
57971
+ {
57972
+ style: { textDecoration: "none", cursor: "default" }
57973
+ },
57786
57974
  rsc.name
57787
57975
  )
57788
57976
  );
@@ -57790,11 +57978,18 @@ module.exports =
57790
57978
  )
57791
57979
  )
57792
57980
  ),
57793
- _react2.default.createElement('br', null),
57794
- _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Environment', component: renderError }),
57795
- _react2.default.createElement(_navButtons2.default, { nextDisabled: !wizard[step.mode + 'Metadata'], handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs, isAdmin: this.props.isAdmin }),
57796
- _react2.default.createElement('br', null),
57797
- _react2.default.createElement('br', null)
57981
+ _react2.default.createElement("br", null),
57982
+ _react2.default.createElement(_reduxForm.Field, { name: step.mode + "Environment", component: renderError }),
57983
+ _react2.default.createElement(_navButtons2.default, {
57984
+ nextDisabled: !wizard[step.mode + "Metadata"],
57985
+ handleSubmit: handleSubmit,
57986
+ nav: nav,
57987
+ reset: reset,
57988
+ inputs: inputs,
57989
+ isAdmin: this.props.isAdmin
57990
+ }),
57991
+ _react2.default.createElement("br", null),
57992
+ _react2.default.createElement("br", null)
57798
57993
  );
57799
57994
  }
57800
57995
  }]);
@@ -57803,7 +57998,7 @@ module.exports =
57803
57998
  }(_react.Component);
57804
57999
 
57805
58000
  exports.default = (0, _reduxForm.reduxForm)({
57806
- form: 'wizard',
58001
+ form: "wizard",
57807
58002
  destroyOnUnmount: false,
57808
58003
  forceUnregisterOnUnmount: true,
57809
58004
  touchOnBlur: false,