@lingk/sync 2.0.19 → 2.1.0
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/credentialSections.js +28 -131
- package/build/credentialSections.js.map +1 -1
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/loadData.js.map +1 -1
- package/build/main.js +774 -682
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js.map +1 -1
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/build/saveData.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -9030,7 +9030,7 @@ module.exports =
|
|
|
9030
9030
|
/* 74 */
|
|
9031
9031
|
/***/ function(module, exports, __webpack_require__) {
|
|
9032
9032
|
|
|
9033
|
-
|
|
9033
|
+
"use strict";
|
|
9034
9034
|
|
|
9035
9035
|
Object.defineProperty(exports, "__esModule", {
|
|
9036
9036
|
value: true
|
|
@@ -9064,7 +9064,7 @@ module.exports =
|
|
|
9064
9064
|
}
|
|
9065
9065
|
|
|
9066
9066
|
_createClass(WebSocket, [{
|
|
9067
|
-
key:
|
|
9067
|
+
key: "render",
|
|
9068
9068
|
value: function render() {
|
|
9069
9069
|
var _props = this.props,
|
|
9070
9070
|
wizard = _props.wizard,
|
|
@@ -9088,154 +9088,51 @@ module.exports =
|
|
|
9088
9088
|
var hasDNnHOST = creds && creds.domainName && creds.Host;
|
|
9089
9089
|
|
|
9090
9090
|
return _react2.default.createElement(
|
|
9091
|
-
|
|
9091
|
+
"div",
|
|
9092
9092
|
null,
|
|
9093
9093
|
_react2.default.createElement(
|
|
9094
|
-
|
|
9094
|
+
"div",
|
|
9095
9095
|
{ style: { fontSize: 16 } },
|
|
9096
|
-
|
|
9096
|
+
"1.Generate Websocket Certificates"
|
|
9097
9097
|
),
|
|
9098
9098
|
_react2.default.createElement(
|
|
9099
|
-
|
|
9099
|
+
"div",
|
|
9100
9100
|
{ style: { fontSize: 10 } },
|
|
9101
|
-
|
|
9102
|
-
),
|
|
9103
|
-
_react2.default.createElement(
|
|
9104
|
-
'div',
|
|
9105
|
-
{ style: { display: 'inline-block' } },
|
|
9106
|
-
_react2.default.createElement(
|
|
9107
|
-
'div',
|
|
9108
|
-
{ style: { marginTop: 10 }, className: 'labelz' },
|
|
9109
|
-
_react2.default.createElement(
|
|
9110
|
-
'strong',
|
|
9111
|
-
null,
|
|
9112
|
-
'Domain Name/Public IP Address'
|
|
9113
|
-
)
|
|
9114
|
-
),
|
|
9115
|
-
_react2.default.createElement(Input, { name: 'domainName',
|
|
9116
|
-
onKeyPress: credKeyPress,
|
|
9117
|
-
value: actualCreds.domainName || '',
|
|
9118
|
-
onChange: onChange,
|
|
9119
|
-
placeholder: "localhost",
|
|
9120
|
-
style: { height: 26, width: 220 } })
|
|
9121
|
-
),
|
|
9122
|
-
_react2.default.createElement(
|
|
9123
|
-
'div',
|
|
9124
|
-
{ style: { display: 'inline-block' } },
|
|
9125
|
-
_react2.default.createElement(
|
|
9126
|
-
'div',
|
|
9127
|
-
{ className: 'labelz' },
|
|
9128
|
-
'\xA0\xA0\xA0',
|
|
9129
|
-
_react2.default.createElement(
|
|
9130
|
-
'strong',
|
|
9131
|
-
null,
|
|
9132
|
-
'Host'
|
|
9133
|
-
)
|
|
9134
|
-
),
|
|
9135
|
-
'\xA0\xA0\xA0',
|
|
9136
|
-
_react2.default.createElement(Input, { name: 'Host',
|
|
9137
|
-
onKeyPress: credKeyPress,
|
|
9138
|
-
value: actualCreds.Host || '',
|
|
9139
|
-
onChange: onChange,
|
|
9140
|
-
placeholder: "localhost 127.0.0.1",
|
|
9141
|
-
style: { height: 26, width: 220 } })
|
|
9101
|
+
"For Apache Nifi Authentication"
|
|
9142
9102
|
),
|
|
9143
9103
|
_react2.default.createElement(
|
|
9144
|
-
|
|
9104
|
+
"div",
|
|
9145
9105
|
null,
|
|
9146
9106
|
_react2.default.createElement(
|
|
9147
9107
|
Button,
|
|
9148
|
-
{
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9108
|
+
{
|
|
9109
|
+
bsStyle: "default",
|
|
9110
|
+
style: { margin: "10px 0", width: 130 }
|
|
9111
|
+
// disabled={!hasDNnHOST}
|
|
9112
|
+
, onClick: function onClick() {
|
|
9152
9113
|
return gencerts(creds);
|
|
9153
9114
|
}
|
|
9154
9115
|
},
|
|
9155
|
-
!wizard.isSaving ?
|
|
9116
|
+
!wizard.isSaving ? "Generate Certs" : _react2.default.createElement("img", {
|
|
9117
|
+
alt: "small-spinner",
|
|
9118
|
+
src: images.ajax_loader_small,
|
|
9119
|
+
height: "8"
|
|
9120
|
+
})
|
|
9156
9121
|
),
|
|
9157
|
-
|
|
9122
|
+
" ",
|
|
9123
|
+
"\xA0\xA0\xA0",
|
|
9158
9124
|
showDownload && _react2.default.createElement(
|
|
9159
|
-
|
|
9125
|
+
"strong",
|
|
9160
9126
|
null,
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
'a',
|
|
9164
|
-
{ onClick: downloadcerts, style: { cursor: 'pointer', marginTop: -10 } },
|
|
9165
|
-
'Click Here'
|
|
9166
|
-
)
|
|
9167
|
-
)
|
|
9168
|
-
),
|
|
9169
|
-
_react2.default.createElement(
|
|
9170
|
-
'div',
|
|
9171
|
-
{ style: { fontSize: 16 } },
|
|
9172
|
-
'2.Test Your Connection'
|
|
9173
|
-
),
|
|
9174
|
-
_react2.default.createElement(
|
|
9175
|
-
'div',
|
|
9176
|
-
{ style: { marginTop: 8 } },
|
|
9177
|
-
_react2.default.createElement(
|
|
9178
|
-
'div',
|
|
9179
|
-
{ style: { display: 'inline-block' } },
|
|
9180
|
-
_react2.default.createElement(
|
|
9181
|
-
'label',
|
|
9182
|
-
{ htmlFor: 'rootUrl', className: 'labelz' },
|
|
9183
|
-
'Data Source Endpoint'
|
|
9184
|
-
),
|
|
9185
|
-
_react2.default.createElement(
|
|
9186
|
-
'div',
|
|
9187
|
-
{ style: { fontSize: 10 } },
|
|
9188
|
-
'Must match the External Domain Name/IP Address of the certificate.'
|
|
9189
|
-
),
|
|
9190
|
-
_react2.default.createElement(Input, { name: 'rootUrl',
|
|
9191
|
-
onKeyPress: credKeyPress,
|
|
9192
|
-
value: actualCreds.rootUrl || '',
|
|
9193
|
-
onChange: onChange })
|
|
9194
|
-
),
|
|
9195
|
-
_react2.default.createElement('br', null),
|
|
9196
|
-
_react2.default.createElement('br', null),
|
|
9197
|
-
_react2.default.createElement(
|
|
9198
|
-
'div',
|
|
9199
|
-
{ style: { display: 'inline-block', width: 300 } },
|
|
9200
|
-
_react2.default.createElement(
|
|
9201
|
-
'label',
|
|
9202
|
-
{ htmlFor: 'rootUrl', className: 'labelz' },
|
|
9203
|
-
'Enter Sample Query / JSON'
|
|
9204
|
-
),
|
|
9205
|
-
_react2.default.createElement('textarea', { rows: '2', cols: '46', placeholder: 'Database Query',
|
|
9206
|
-
onChange: onChange,
|
|
9207
|
-
name: 'query',
|
|
9208
|
-
onKeyPress: credKeyPress,
|
|
9209
|
-
value: actualCreds.query || '' })
|
|
9210
|
-
),
|
|
9211
|
-
_react2.default.createElement(
|
|
9212
|
-
'div',
|
|
9213
|
-
{ style: { display: 'inline' } },
|
|
9127
|
+
"Download Certs:",
|
|
9128
|
+
" ",
|
|
9214
9129
|
_react2.default.createElement(
|
|
9215
|
-
|
|
9130
|
+
"a",
|
|
9216
9131
|
{
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
style: { marginBottom: 2, height: 30, lineHeight: '10px', marginTop: -3, marginLeft: 5 },
|
|
9222
|
-
disabled: !hasEndpoint || credsDisabledCheck },
|
|
9223
|
-
_react2.default.createElement(
|
|
9224
|
-
'span',
|
|
9225
|
-
{ style: { display: 'inline-block', verticalAlign: 'top', marginTop: 3 } },
|
|
9226
|
-
'Test Connection'
|
|
9227
|
-
),
|
|
9228
|
-
'\xA0\xA0'
|
|
9229
|
-
)
|
|
9230
|
-
),
|
|
9231
|
-
_react2.default.createElement(
|
|
9232
|
-
'div',
|
|
9233
|
-
{ style: { display: 'inline', marginLeft: 12 } },
|
|
9234
|
-
checking && _react2.default.createElement(Spinner, null),
|
|
9235
|
-
envCheckResult && _react2.default.createElement(
|
|
9236
|
-
'span',
|
|
9237
|
-
null,
|
|
9238
|
-
envCheckResult
|
|
9132
|
+
onClick: downloadcerts,
|
|
9133
|
+
style: { cursor: "pointer", marginTop: -10 }
|
|
9134
|
+
},
|
|
9135
|
+
"Click Here"
|
|
9239
9136
|
)
|
|
9240
9137
|
)
|
|
9241
9138
|
)
|
|
@@ -51650,7 +51547,7 @@ module.exports =
|
|
|
51650
51547
|
/* 169 */
|
|
51651
51548
|
/***/ function(module, exports, __webpack_require__) {
|
|
51652
51549
|
|
|
51653
|
-
|
|
51550
|
+
"use strict";
|
|
51654
51551
|
|
|
51655
51552
|
Object.defineProperty(exports, "__esModule", {
|
|
51656
51553
|
value: true
|
|
@@ -51742,13 +51639,13 @@ module.exports =
|
|
|
51742
51639
|
*/
|
|
51743
51640
|
|
|
51744
51641
|
// 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) {
|
|
51642
|
+
function callGetMetadata(tenantId, appId, mode, providerType, providerConfig, endpoint, isFramework, creds, environment, isReload, fileSchemaGuid, extraQuery, connectionKey) {
|
|
51746
51643
|
var metadata = null;
|
|
51747
51644
|
var credentialType = providerConfig.credentialType,
|
|
51748
51645
|
metadataApi = providerConfig.metadataApi;
|
|
51749
51646
|
|
|
51750
|
-
var isOauth = credentialType ===
|
|
51751
|
-
var isLocalFile = credentialType ===
|
|
51647
|
+
var isOauth = credentialType === "SalesforceAuthCode";
|
|
51648
|
+
var isLocalFile = credentialType === "LocalFile";
|
|
51752
51649
|
return function (dispatch) {
|
|
51753
51650
|
dispatch({
|
|
51754
51651
|
type: types.START_WIZARD_ENV_CHECK,
|
|
@@ -51757,27 +51654,27 @@ module.exports =
|
|
|
51757
51654
|
return dispatch(
|
|
51758
51655
|
// some providers skip this and go straight for getProviderMetadata
|
|
51759
51656
|
// if their credentials are stored separately (like SF oauth or Adapter)
|
|
51760
|
-
tryCheckConnection(tenantId, appId, providerType, providerConfig, isFramework, creds, fileSchemaGuid)).then(function (r) {
|
|
51657
|
+
tryCheckConnection(tenantId, appId, providerType, providerConfig, isFramework, creds, fileSchemaGuid, environment, connectionKey)).then(function (r) {
|
|
51761
51658
|
var schemaGuid = creds.schemaGuid; // flat file schema (for browser upload guid is in creds)
|
|
51762
51659
|
if (fileSchemaGuid) {
|
|
51763
51660
|
schemaGuid = fileSchemaGuid; // for SFTP guid is in wiz config
|
|
51764
51661
|
}
|
|
51765
51662
|
/*let resFromCheckConnection = null
|
|
51766
51663
|
if(r && r.schema){ // currently only for SFTP check connection
|
|
51767
|
-
|
|
51664
|
+
resFromCheckConnection = r.schema // skip callGetProviderMetadata network call
|
|
51768
51665
|
}*/
|
|
51769
|
-
return dispatch(callGetProviderMetadata(tenantId, appId, providerConfig, mode, providerType, endpoint, isOauth, environment.name, schemaGuid, creds, extraQuery));
|
|
51666
|
+
return dispatch(callGetProviderMetadata(tenantId, appId, providerConfig, mode, providerType, endpoint, isOauth, environment.name, schemaGuid, creds, extraQuery, connectionKey));
|
|
51770
51667
|
}).then(function (m) {
|
|
51771
51668
|
metadata = m;
|
|
51772
51669
|
// FOR NOW ONLY ALLOW CSV FOR FLAT FILE
|
|
51773
51670
|
if (isLocalFile) {
|
|
51774
51671
|
metadata = metadata.filter(function (rsc) {
|
|
51775
|
-
var ext = rsc.name.substr(rsc.name.lastIndexOf(
|
|
51776
|
-
return ext ===
|
|
51672
|
+
var ext = rsc.name.substr(rsc.name.lastIndexOf(".") + 1, rsc.name.length);
|
|
51673
|
+
return ext === "csv";
|
|
51777
51674
|
});
|
|
51778
51675
|
}
|
|
51779
51676
|
//console.log(metadata)
|
|
51780
|
-
var isIntro = endpoint ===
|
|
51677
|
+
var isIntro = endpoint === "_blank";
|
|
51781
51678
|
var envId = environment.environmentId;
|
|
51782
51679
|
if (isOauth || isIntro || isReload || isLocalFile) {
|
|
51783
51680
|
return Promise.resolve(null);
|
|
@@ -51786,7 +51683,7 @@ module.exports =
|
|
|
51786
51683
|
}).then(function (res) {
|
|
51787
51684
|
dispatch({
|
|
51788
51685
|
type: types.FINISH_WIZARD_ENV_CHECK,
|
|
51789
|
-
data: { metadata: metadata, mode: mode, code:
|
|
51686
|
+
data: { metadata: metadata, mode: mode, code: "200 OK", providerType: providerType }
|
|
51790
51687
|
});
|
|
51791
51688
|
return metadata;
|
|
51792
51689
|
}).catch(function (error) {
|
|
@@ -51794,18 +51691,18 @@ module.exports =
|
|
|
51794
51691
|
if (error.response && error.response.data) {
|
|
51795
51692
|
err = error.response.data;
|
|
51796
51693
|
}
|
|
51797
|
-
if (metadataApi ===
|
|
51694
|
+
if (metadataApi === "TEST_CONN_API_URL") {
|
|
51798
51695
|
err = error.response.data.error;
|
|
51799
51696
|
}
|
|
51800
51697
|
dispatch({
|
|
51801
51698
|
type: types.FINISH_WIZARD_ENV_CHECK,
|
|
51802
|
-
data: { res: null, mode: mode, code:
|
|
51699
|
+
data: { res: null, mode: mode, code: "404 Error", providerType: providerType, err: err }
|
|
51803
51700
|
});
|
|
51804
51701
|
});
|
|
51805
51702
|
};
|
|
51806
51703
|
}
|
|
51807
51704
|
|
|
51808
|
-
function tryCheckConnection(tenantId, appId, providerType, providerConfig, isFramework, creds, fileSchemaGuid) {
|
|
51705
|
+
function tryCheckConnection(tenantId, appId, providerType, providerConfig, isFramework, creds, fileSchemaGuid, environment, connectionKey) {
|
|
51809
51706
|
return function (dispatch, getState, api) {
|
|
51810
51707
|
var credentialType = providerConfig.credentialType,
|
|
51811
51708
|
metadataApi = providerConfig.metadataApi,
|
|
@@ -51821,8 +51718,8 @@ module.exports =
|
|
|
51821
51718
|
var _getState = getState(),
|
|
51822
51719
|
config = _getState.config;
|
|
51823
51720
|
|
|
51824
|
-
if (metadataApi ===
|
|
51825
|
-
return api.post(tenantId +
|
|
51721
|
+
if (metadataApi === "TEST_CONN_API_URL") {
|
|
51722
|
+
return api.post(tenantId + "/" + appId + "/testconnection/" + providerType.toLowerCase(), {
|
|
51826
51723
|
endpoint: config.TEST_CONN_API_URL,
|
|
51827
51724
|
data: {
|
|
51828
51725
|
credentialType: credentialType,
|
|
@@ -51830,12 +51727,16 @@ module.exports =
|
|
|
51830
51727
|
providerLabel: providerType
|
|
51831
51728
|
},
|
|
51832
51729
|
headers: {
|
|
51833
|
-
|
|
51730
|
+
"Content-Type": "application/json"
|
|
51834
51731
|
}
|
|
51835
51732
|
});
|
|
51733
|
+
} else if (metadataApi === "SF_AGENT_API_URL") {
|
|
51734
|
+
return api.get(tenantId + "/" + appId + "/environments/" + environment.name + "/" + connectionKey + "/testconnection", {
|
|
51735
|
+
endpoint: config.SF_AGENT_API_URL
|
|
51736
|
+
});
|
|
51836
51737
|
}
|
|
51837
51738
|
|
|
51838
|
-
return api.post(tenantId +
|
|
51739
|
+
return api.post(tenantId + "/" + appId + "/testconnection/" + providerType.toLowerCase(), {
|
|
51839
51740
|
endpoint: config.TRANS_API_URL,
|
|
51840
51741
|
data: {
|
|
51841
51742
|
credentialType: credentialType,
|
|
@@ -51848,8 +51749,8 @@ module.exports =
|
|
|
51848
51749
|
|
|
51849
51750
|
function addLeadingSlashToSftpPath(credsJson) {
|
|
51850
51751
|
var creds = Object.assign({}, credsJson);
|
|
51851
|
-
if (creds.path && creds.path[0] !==
|
|
51852
|
-
creds.path =
|
|
51752
|
+
if (creds.path && creds.path[0] !== "/") {
|
|
51753
|
+
creds.path = "/" + creds.path;
|
|
51853
51754
|
}
|
|
51854
51755
|
if (creds.rootUrl) {
|
|
51855
51756
|
creds.endpoint = creds.rootUrl;
|
|
@@ -51860,13 +51761,13 @@ module.exports =
|
|
|
51860
51761
|
return creds;
|
|
51861
51762
|
}
|
|
51862
51763
|
|
|
51863
|
-
function callGetProviderMetadata(tenantId, appId, providerConfig, mode, providerType, endpoint, isOauth, envName, schemaGuid, creds, extraQuery) {
|
|
51764
|
+
function callGetProviderMetadata(tenantId, appId, providerConfig, mode, providerType, endpoint, isOauth, envName, schemaGuid, creds, extraQuery, connectionKey) {
|
|
51864
51765
|
// urlSuffix for getMetadata. If checkConnection returns meta, skip this one
|
|
51865
51766
|
var metadataEndpoint = providerConfig.metadataEndpoint,
|
|
51866
51767
|
metadataApi = providerConfig.metadataApi,
|
|
51867
51768
|
credentialType = providerConfig.credentialType;
|
|
51868
51769
|
|
|
51869
|
-
var isFlatFile = credentialType ===
|
|
51770
|
+
var isFlatFile = credentialType === "LocalFile";
|
|
51870
51771
|
if (!metadataEndpoint) {
|
|
51871
51772
|
return function () {
|
|
51872
51773
|
return Promise.resolve();
|
|
@@ -51877,18 +51778,18 @@ module.exports =
|
|
|
51877
51778
|
config = _getState2.config;
|
|
51878
51779
|
|
|
51879
51780
|
var isAdapter = false;
|
|
51880
|
-
if (metadataEndpoint ===
|
|
51881
|
-
metadataEndpoint =
|
|
51781
|
+
if (metadataEndpoint === "adaptermetadata") {
|
|
51782
|
+
metadataEndpoint = "adaptermetadata?url=" + endpoint;
|
|
51882
51783
|
isAdapter = true;
|
|
51883
51784
|
}
|
|
51884
51785
|
/*if(metadataEndpoint==='fileschema'){ // CHANGE FLAT FILE TO ALL IN ENV
|
|
51885
51786
|
metadataEndpoint = `fileschema?schemaGuid=${schemaGuid}`
|
|
51886
51787
|
}*/
|
|
51887
|
-
if (metadataEndpoint ===
|
|
51888
|
-
metadataEndpoint =
|
|
51788
|
+
if (metadataEndpoint === "schema/swagger/moodle" && creds.swaggerUrl) {
|
|
51789
|
+
metadataEndpoint = "schema/swagger/moodle?swaggerUrl=" + creds.swaggerUrl;
|
|
51889
51790
|
}
|
|
51890
|
-
if (metadataApi ===
|
|
51891
|
-
return api.post(tenantId +
|
|
51791
|
+
if (metadataApi === "TEST_CONN_API_URL") {
|
|
51792
|
+
return api.post(tenantId + "/" + appId + "/" + metadataEndpoint, {
|
|
51892
51793
|
endpoint: config[metadataApi],
|
|
51893
51794
|
data: {
|
|
51894
51795
|
credentialType: credentialType,
|
|
@@ -51896,16 +51797,20 @@ module.exports =
|
|
|
51896
51797
|
providerLabel: providerType
|
|
51897
51798
|
},
|
|
51898
51799
|
headers: {
|
|
51899
|
-
|
|
51800
|
+
"Content-Type": "application/json"
|
|
51900
51801
|
}
|
|
51901
51802
|
});
|
|
51902
51803
|
} else {
|
|
51903
|
-
if (isOauth
|
|
51904
|
-
return api.get(tenantId +
|
|
51804
|
+
if (isOauth) {
|
|
51805
|
+
return api.get(tenantId + "/" + appId + "/environments/" + envName + "/" + connectionKey + "/" + metadataEndpoint, {
|
|
51806
|
+
endpoint: config[metadataApi]
|
|
51807
|
+
});
|
|
51808
|
+
} else if (isAdapter || isFlatFile || providerType === "Ethos") {
|
|
51809
|
+
return api.get(tenantId + "/" + appId + "/environments/" + envName + "/" + metadataEndpoint + (extraQuery || ""), {
|
|
51905
51810
|
endpoint: config[metadataApi]
|
|
51906
51811
|
});
|
|
51907
51812
|
} else {
|
|
51908
|
-
return api.get(tenantId +
|
|
51813
|
+
return api.get(tenantId + "/" + appId + "/" + metadataEndpoint + (extraQuery || ""), {
|
|
51909
51814
|
endpoint: config[metadataApi]
|
|
51910
51815
|
});
|
|
51911
51816
|
}
|
|
@@ -51919,17 +51824,22 @@ module.exports =
|
|
|
51919
51824
|
var _getState3 = getState(),
|
|
51920
51825
|
config = _getState3.config;
|
|
51921
51826
|
|
|
51922
|
-
return api.post(tenantId +
|
|
51827
|
+
return api.post(tenantId + "/" + appId + "/" + envId + "/uploadpolicy", {
|
|
51923
51828
|
endpoint: config.TRANS_API_URL,
|
|
51924
|
-
data: { name:
|
|
51829
|
+
data: { name: "flatfile", resources: metadata, providerType: providerType, isSource: isSource }
|
|
51925
51830
|
}).then(function (data) {
|
|
51926
51831
|
d = data;
|
|
51927
51832
|
return dispatch(uploadFilesToS3(tenantKey, appKey, envId, metadata, data, contents));
|
|
51928
51833
|
}).then(function () {
|
|
51929
|
-
return dispatch(postCredentials(tenantId, appId, providerType, d.guids, mode, envId,
|
|
51834
|
+
return dispatch(postCredentials(tenantId, appId, providerType, d.guids, mode, envId, "LocalFile")).then(function () {
|
|
51930
51835
|
dispatch({
|
|
51931
51836
|
type: types.FINISH_WIZARD_ENV_CHECK,
|
|
51932
|
-
data: {
|
|
51837
|
+
data: {
|
|
51838
|
+
metadata: { resources: metadata },
|
|
51839
|
+
mode: mode,
|
|
51840
|
+
code: "200 OK",
|
|
51841
|
+
providerType: providerType
|
|
51842
|
+
}
|
|
51933
51843
|
});
|
|
51934
51844
|
return d.guids;
|
|
51935
51845
|
});
|
|
@@ -51944,7 +51854,7 @@ module.exports =
|
|
|
51944
51854
|
var _getState4 = getState(),
|
|
51945
51855
|
config = _getState4.config;
|
|
51946
51856
|
|
|
51947
|
-
return api.delete(tenantId +
|
|
51857
|
+
return api.delete(tenantId + "/" + appId + "/" + envId + "/deletefile/" + fileName, {
|
|
51948
51858
|
endpoint: config.TRANS_API_URL
|
|
51949
51859
|
}).catch(function (err) {
|
|
51950
51860
|
console.log(err);
|
|
@@ -51957,16 +51867,21 @@ module.exports =
|
|
|
51957
51867
|
var _getState5 = getState(),
|
|
51958
51868
|
wizard = _getState5.wizard;
|
|
51959
51869
|
|
|
51960
|
-
var metadata = [].concat(_toConsumableArray(wizard[mode +
|
|
51870
|
+
var metadata = [].concat(_toConsumableArray(wizard[mode + "Metadata"]));
|
|
51961
51871
|
var i = metadata.findIndex(function (rsc) {
|
|
51962
51872
|
return r.name === rsc.name && r.type === rsc.type;
|
|
51963
51873
|
});
|
|
51964
51874
|
if (i > -1) {
|
|
51965
51875
|
metadata.splice(i, 1);
|
|
51966
|
-
console.log(
|
|
51876
|
+
console.log("send now", { resources: metadata });
|
|
51967
51877
|
dispatch({
|
|
51968
51878
|
type: types.FINISH_WIZARD_ENV_CHECK,
|
|
51969
|
-
data: {
|
|
51879
|
+
data: {
|
|
51880
|
+
metadata: { resources: metadata },
|
|
51881
|
+
mode: mode,
|
|
51882
|
+
code: "200 OK",
|
|
51883
|
+
providerType: providerType
|
|
51884
|
+
}
|
|
51970
51885
|
});
|
|
51971
51886
|
}
|
|
51972
51887
|
};
|
|
@@ -51981,7 +51896,14 @@ module.exports =
|
|
|
51981
51896
|
|
|
51982
51897
|
function uploadFilesToS3(tenantKey, appKey, envId, metadata, d, contents) {
|
|
51983
51898
|
var args = contents.map(function (fileContent, i) {
|
|
51984
|
-
return {
|
|
51899
|
+
return {
|
|
51900
|
+
tenantKey: tenantKey,
|
|
51901
|
+
appKey: appKey,
|
|
51902
|
+
envId: envId,
|
|
51903
|
+
fileContent: fileContent,
|
|
51904
|
+
d: d,
|
|
51905
|
+
fileName: metadata[i].name
|
|
51906
|
+
};
|
|
51985
51907
|
});
|
|
51986
51908
|
return function (dispatch, getState, api) {
|
|
51987
51909
|
return Promise.all(args.map(singleFileToS3));
|
|
@@ -52006,20 +51928,20 @@ module.exports =
|
|
|
52006
51928
|
})[s];
|
|
52007
51929
|
};
|
|
52008
51930
|
var fd = new FormData();
|
|
52009
|
-
fd.append(
|
|
52010
|
-
fd.append(
|
|
52011
|
-
fd.append(
|
|
52012
|
-
fd.append(
|
|
52013
|
-
fd.append(
|
|
52014
|
-
fd.append(
|
|
52015
|
-
fd.append(
|
|
52016
|
-
fd.append(
|
|
52017
|
-
fd.append(
|
|
51931
|
+
fd.append("key", tenantKey + "/" + appKey + "/" + envId + "/" + fileName);
|
|
51932
|
+
fd.append("policy", d.policy);
|
|
51933
|
+
fd.append("acl", pFind("acl"));
|
|
51934
|
+
fd.append("success_action_status", pFind("success_action_status"));
|
|
51935
|
+
fd.append("x-amz-credential", pFind("x-amz-credential"));
|
|
51936
|
+
fd.append("x-amz-algorithm", pFind("x-amz-algorithm"));
|
|
51937
|
+
fd.append("x-amz-date", pFind("x-amz-date"));
|
|
51938
|
+
fd.append("x-amz-signature", d.signature);
|
|
51939
|
+
fd.append("file", fileContent);
|
|
52018
51940
|
return (0, _axios2.default)({
|
|
52019
|
-
method:
|
|
52020
|
-
url:
|
|
51941
|
+
method: "post",
|
|
51942
|
+
url: "https://" + pFind("bucket") + ".s3.amazonaws.com/",
|
|
52021
51943
|
data: fd,
|
|
52022
|
-
config: { headers: {
|
|
51944
|
+
config: { headers: { "Content-Type": "multipart/form-data" } }
|
|
52023
51945
|
});
|
|
52024
51946
|
}
|
|
52025
51947
|
|
|
@@ -52028,13 +51950,13 @@ module.exports =
|
|
|
52028
51950
|
var _getState6 = getState(),
|
|
52029
51951
|
config = _getState6.config;
|
|
52030
51952
|
|
|
52031
|
-
return api.get(tenantId +
|
|
51953
|
+
return api.get(tenantId + "/" + appId + "/" + envId + "/downloadpolicy/" + file.name, {
|
|
52032
51954
|
endpoint: config.TRANS_API_URL
|
|
52033
51955
|
}).then(function (d) {
|
|
52034
|
-
var element = document.createElement(
|
|
52035
|
-
element.setAttribute(
|
|
52036
|
-
element.setAttribute(
|
|
52037
|
-
element.style.display =
|
|
51956
|
+
var element = document.createElement("a");
|
|
51957
|
+
element.setAttribute("href", d);
|
|
51958
|
+
element.setAttribute("target", "_blank");
|
|
51959
|
+
element.style.display = "none";
|
|
52038
51960
|
document.body.appendChild(element);
|
|
52039
51961
|
element.click();
|
|
52040
51962
|
document.body.removeChild(element);
|
|
@@ -52082,9 +52004,9 @@ module.exports =
|
|
|
52082
52004
|
})[s];
|
|
52083
52005
|
};
|
|
52084
52006
|
return (0, _axios2.default)({
|
|
52085
|
-
method:
|
|
52086
|
-
url:
|
|
52087
|
-
config: { headers: {
|
|
52007
|
+
method: "get",
|
|
52008
|
+
url: "https://" + pFind("bucket") + ".s3.amazonaws.com/" + tenantKey + "/" + appKey + "/" + file.name,
|
|
52009
|
+
config: { headers: { "Content-Type": "multipart/form-data" } }
|
|
52088
52010
|
});
|
|
52089
52011
|
}
|
|
52090
52012
|
|
|
@@ -52092,11 +52014,11 @@ module.exports =
|
|
|
52092
52014
|
function isDemoCreds(creds, providerType) {
|
|
52093
52015
|
if (creds && providerType) {
|
|
52094
52016
|
switch (providerType) {
|
|
52095
|
-
case
|
|
52096
|
-
if (creds.key ===
|
|
52017
|
+
case "Blackboard":
|
|
52018
|
+
if (creds.key === "6c53d83209834b0e982c0984a5c11bdc" && creds.secret === "16d2ba71f8fa4f13a74f2264c47f6244") return true;
|
|
52097
52019
|
return false;
|
|
52098
|
-
case
|
|
52099
|
-
if (creds.accessToken ===
|
|
52020
|
+
case "Canvas":
|
|
52021
|
+
if (creds.accessToken === "7d4fb8b1afb540049ad2a7268b78da07") return true;
|
|
52100
52022
|
return false;
|
|
52101
52023
|
default:
|
|
52102
52024
|
return false;
|
|
@@ -52115,7 +52037,7 @@ module.exports =
|
|
|
52115
52037
|
var _getState7 = getState(),
|
|
52116
52038
|
config = _getState7.config;
|
|
52117
52039
|
|
|
52118
|
-
return api.get(tenantId +
|
|
52040
|
+
return api.get(tenantId + "/" + appId + "/environments/" + envName + "/oauthurl/9090b61412a74d97ad9ed02c5fx7e705/" + orgType, {
|
|
52119
52041
|
endpoint: config.SF_AGENT_API_URL
|
|
52120
52042
|
}).then(function (data) {
|
|
52121
52043
|
dispatch({
|
|
@@ -52136,12 +52058,12 @@ module.exports =
|
|
|
52136
52058
|
|
|
52137
52059
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
52138
52060
|
|
|
52139
|
-
return api.post(tenantId +
|
|
52061
|
+
return api.post(tenantId + "/" + accountId + "/credentials/AdapterSecret/environment/" + envName + "/generate", {
|
|
52140
52062
|
endpoint: TRANS_API_URL
|
|
52141
52063
|
}).then(function (data) {
|
|
52142
52064
|
dispatch({
|
|
52143
52065
|
type: types.SET_WIZARD_SAVED_CREDENTIALS,
|
|
52144
|
-
data: Object.assign({}, wizard.savedCredentials, _defineProperty({}, mode +
|
|
52066
|
+
data: Object.assign({}, wizard.savedCredentials, _defineProperty({}, mode + "AdapterSecret", data))
|
|
52145
52067
|
});
|
|
52146
52068
|
});
|
|
52147
52069
|
};
|
|
@@ -52155,13 +52077,13 @@ module.exports =
|
|
|
52155
52077
|
var externalIdlessObjects = [];
|
|
52156
52078
|
// only run for Salesforce
|
|
52157
52079
|
bundles && bundles.filter(function (b) {
|
|
52158
|
-
return b.provider.toLowerCase() ===
|
|
52080
|
+
return b.provider.toLowerCase() === "salesforce";
|
|
52159
52081
|
}).forEach(function (b) {
|
|
52160
52082
|
var rsc = metadata.find(function (r) {
|
|
52161
52083
|
return r.type === b.name;
|
|
52162
52084
|
});
|
|
52163
52085
|
var externalIdProp = rsc && rsc.properties && rsc.properties.find(function (p) {
|
|
52164
|
-
return p.name ===
|
|
52086
|
+
return p.name === "Lingk_External_Id__c";
|
|
52165
52087
|
});
|
|
52166
52088
|
// only add to the array if Lingk External Id does not already exist
|
|
52167
52089
|
if (!externalIdProp || externalIdProp.fake === true) {
|
|
@@ -52170,13 +52092,13 @@ module.exports =
|
|
|
52170
52092
|
});
|
|
52171
52093
|
|
|
52172
52094
|
if (externalIdlessObjects.length > 0) {
|
|
52173
|
-
console.log(
|
|
52174
|
-
return api.post(tenantId +
|
|
52095
|
+
console.log("Adding Lingk External Id field to: ", externalIdlessObjects);
|
|
52096
|
+
return api.post(tenantId + "/" + appId + "/environments/" + envName + "/salesforceschema/field", {
|
|
52175
52097
|
endpoint: config.SF_AGENT_API_URL,
|
|
52176
52098
|
data: externalIdlessObjects.map(function (o) {
|
|
52177
52099
|
return {
|
|
52178
52100
|
type: o,
|
|
52179
|
-
field:
|
|
52101
|
+
field: "Lingk_External_Id__c"
|
|
52180
52102
|
};
|
|
52181
52103
|
})
|
|
52182
52104
|
});
|
|
@@ -52191,7 +52113,7 @@ module.exports =
|
|
|
52191
52113
|
var _getState10 = getState(),
|
|
52192
52114
|
config = _getState10.config;
|
|
52193
52115
|
|
|
52194
|
-
return api.post(tenantId +
|
|
52116
|
+
return api.post(tenantId + "/" + appId + "/environments/" + envName + "/salesforceschema/field", {
|
|
52195
52117
|
endpoint: config.SF_AGENT_API_URL,
|
|
52196
52118
|
data: [{
|
|
52197
52119
|
type: objectType,
|
|
@@ -52260,7 +52182,7 @@ module.exports =
|
|
|
52260
52182
|
var _getState11 = getState(),
|
|
52261
52183
|
config = _getState11.config;
|
|
52262
52184
|
|
|
52263
|
-
return api.get(tenantId +
|
|
52185
|
+
return api.get(tenantId + "/" + appId + "/scenarios/" + typeGuid, {
|
|
52264
52186
|
endpoint: config.TRANS_API_URL
|
|
52265
52187
|
}).then(function (r) {
|
|
52266
52188
|
var scenarios = r;
|
|
@@ -52286,7 +52208,7 @@ module.exports =
|
|
|
52286
52208
|
var _getState12 = getState(),
|
|
52287
52209
|
config = _getState12.config;
|
|
52288
52210
|
|
|
52289
|
-
return api.post(tenantId +
|
|
52211
|
+
return api.post(tenantId + "/" + appId + "/scenario", {
|
|
52290
52212
|
endpoint: config.TRANS_API_URL,
|
|
52291
52213
|
data: data
|
|
52292
52214
|
});
|
|
@@ -52298,7 +52220,7 @@ module.exports =
|
|
|
52298
52220
|
var _getState13 = getState(),
|
|
52299
52221
|
config = _getState13.config;
|
|
52300
52222
|
|
|
52301
|
-
return api.post(tenantId +
|
|
52223
|
+
return api.post(tenantId + "/" + appId + "/scenarios/" + typeGuid + (isGlobal ? "/global" : ""), {
|
|
52302
52224
|
endpoint: config.TRANS_API_URL,
|
|
52303
52225
|
data: scenarios.map(function (s, i) {
|
|
52304
52226
|
return {
|
|
@@ -52319,11 +52241,11 @@ module.exports =
|
|
|
52319
52241
|
config = _getState14.config;
|
|
52320
52242
|
|
|
52321
52243
|
var data = { bundles: bundles };
|
|
52322
|
-
return api.post(tenantId +
|
|
52244
|
+
return api.post(tenantId + "/" + appId + "/bundle", {
|
|
52323
52245
|
endpoint: config.TRANS_API_URL,
|
|
52324
52246
|
data: data
|
|
52325
52247
|
}).catch(function (err) {
|
|
52326
|
-
onGenerationError(
|
|
52248
|
+
onGenerationError("There was an error in your Object Mapping. Please contact Lingk Support");
|
|
52327
52249
|
return Promise.reject(err);
|
|
52328
52250
|
});
|
|
52329
52251
|
};
|
|
@@ -52335,11 +52257,11 @@ module.exports =
|
|
|
52335
52257
|
config = _getState15.config;
|
|
52336
52258
|
|
|
52337
52259
|
var data = { mappings: mappings };
|
|
52338
|
-
return api.post(tenantId +
|
|
52260
|
+
return api.post(tenantId + "/" + appId + "/schemamappings", {
|
|
52339
52261
|
endpoint: config.TRANS_API_URL,
|
|
52340
52262
|
data: data
|
|
52341
52263
|
}).catch(function (err) {
|
|
52342
|
-
onGenerationError(
|
|
52264
|
+
onGenerationError("There was an error in your Field Mapping. Please contact Lingk Support");
|
|
52343
52265
|
return Promise.reject(err);
|
|
52344
52266
|
});
|
|
52345
52267
|
};
|
|
@@ -52356,12 +52278,12 @@ module.exports =
|
|
|
52356
52278
|
integrationTypeGuid: typeGuid,
|
|
52357
52279
|
name: title,
|
|
52358
52280
|
configuration: configuration
|
|
52359
|
-
}, piGuid && piGuid !==
|
|
52360
|
-
return api.post(tenantId +
|
|
52281
|
+
}, piGuid && piGuid !== "_" && { productizedIntegrationGuid: piGuid }, transformerBaseId && { transformerBaseId: transformerBaseId });
|
|
52282
|
+
return api.post(tenantId + "/" + appId + "/productizedintegrations", {
|
|
52361
52283
|
endpoint: config.TRANS_API_URL,
|
|
52362
52284
|
data: data
|
|
52363
52285
|
}).catch(function (err) {
|
|
52364
|
-
onGenerationError(
|
|
52286
|
+
onGenerationError("There was an error creating your Integration. Please contact Lingk Support");
|
|
52365
52287
|
return Promise.reject(err);
|
|
52366
52288
|
});
|
|
52367
52289
|
};
|
|
@@ -52380,11 +52302,11 @@ module.exports =
|
|
|
52380
52302
|
configuration: configuration,
|
|
52381
52303
|
id: updateWizardVersionId
|
|
52382
52304
|
}, transformerBaseId && { transformerBaseId: transformerBaseId });
|
|
52383
|
-
return api.put(tenantId +
|
|
52305
|
+
return api.put(tenantId + "/" + appId + "/productizedintegrations/" + piGuid, {
|
|
52384
52306
|
endpoint: config.TRANS_API_URL,
|
|
52385
52307
|
data: data
|
|
52386
52308
|
}).catch(function (err) {
|
|
52387
|
-
onGenerationError(
|
|
52309
|
+
onGenerationError("There was an error updating your Integration. Please contact Lingk Support");
|
|
52388
52310
|
return Promise.reject(err);
|
|
52389
52311
|
});
|
|
52390
52312
|
};
|
|
@@ -52395,16 +52317,16 @@ module.exports =
|
|
|
52395
52317
|
var _getState18 = getState(),
|
|
52396
52318
|
config = _getState18.config;
|
|
52397
52319
|
|
|
52398
|
-
return api.post(tenantId +
|
|
52320
|
+
return api.post(tenantId + "/" + appId + "/productizedintegrations/" + piGuid + "/generate", {
|
|
52399
52321
|
endpoint: config.TRANS_API_URL,
|
|
52400
52322
|
data: Object.assign({
|
|
52401
|
-
|
|
52402
|
-
|
|
52403
|
-
|
|
52404
|
-
|
|
52323
|
+
sourceSchema: sourceMetadata,
|
|
52324
|
+
destinationSchema: destinationMetadata,
|
|
52325
|
+
environment: envName,
|
|
52326
|
+
environmentId: String(envId)
|
|
52405
52327
|
}, updateWizardVersionId && { updateWizardVersionId: updateWizardVersionId })
|
|
52406
52328
|
}).catch(function (err) {
|
|
52407
|
-
onGenerationError(
|
|
52329
|
+
onGenerationError("There was an error generating the Integration. Please contact Lingk Support");
|
|
52408
52330
|
return Promise.reject(err);
|
|
52409
52331
|
});
|
|
52410
52332
|
};
|
|
@@ -52416,7 +52338,7 @@ module.exports =
|
|
|
52416
52338
|
config = _getState19.config;
|
|
52417
52339
|
|
|
52418
52340
|
if (schema && schema.resources) {
|
|
52419
|
-
return api.post(tenantId +
|
|
52341
|
+
return api.post(tenantId + "/" + appId + "/" + envId + "/fileschema", {
|
|
52420
52342
|
endpoint: config.TRANS_API_URL,
|
|
52421
52343
|
data: schema
|
|
52422
52344
|
});
|
|
@@ -52466,7 +52388,7 @@ module.exports =
|
|
|
52466
52388
|
if (r[3] && r[3].schemaGuid && r[3].schemaGuid.length > 0) {
|
|
52467
52389
|
configuration.destinationFileSchemaGuid = r[3].schemaGuid;
|
|
52468
52390
|
}
|
|
52469
|
-
if (piGuid && piGuid !==
|
|
52391
|
+
if (piGuid && piGuid !== "_" && updateWizardVersionId) {
|
|
52470
52392
|
// same version
|
|
52471
52393
|
return dispatch(callUpdateProductizedIntegration(tenantId, appId, map.schemaMappingGuid, bundle.bundlePackGuid, configuration, title, typeGuid, piGuid, onGenerationError, updateWizardVersionId, transformerBaseId));
|
|
52472
52394
|
} else {
|
|
@@ -52478,11 +52400,13 @@ module.exports =
|
|
|
52478
52400
|
dispatch(callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, pi.productizedIntegrationGuid, map.schemaMappingGuid, sourceMetadata, destinationMetadata, isManagedPackage, onGenerationError, envName, envId, updateWizardVersionId)).then(function (generatedRecipe) {
|
|
52479
52401
|
onGenerate();
|
|
52480
52402
|
if (deployment && isFinishClick) {
|
|
52481
|
-
if (deployment.type ===
|
|
52482
|
-
dispatch(callPostEventContext({
|
|
52403
|
+
if (deployment.type === "once") {
|
|
52404
|
+
dispatch(callPostEventContext({
|
|
52405
|
+
eventData: {
|
|
52483
52406
|
environmentName: envName,
|
|
52484
52407
|
environmentId: String(envId)
|
|
52485
|
-
}
|
|
52408
|
+
}
|
|
52409
|
+
}, generatedRecipe.BaseId)).then(function () {
|
|
52486
52410
|
dispatch(callExecuteTransformer(generatedRecipe.Id)).then(function (response) {
|
|
52487
52411
|
dispatch(callLookupLogData(tenantId, response.externalExecutionId, 0, onFinish, generatedRecipe, pi));
|
|
52488
52412
|
});
|
|
@@ -52507,7 +52431,7 @@ module.exports =
|
|
|
52507
52431
|
|
|
52508
52432
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
52509
52433
|
|
|
52510
|
-
return api.post(
|
|
52434
|
+
return api.post("transformers/" + transBaseId + "/eventdata", {
|
|
52511
52435
|
endpoint: TRANS_API_URL,
|
|
52512
52436
|
data: data
|
|
52513
52437
|
});
|
|
@@ -52519,15 +52443,15 @@ module.exports =
|
|
|
52519
52443
|
var _getState21 = getState(),
|
|
52520
52444
|
config = _getState21.config;
|
|
52521
52445
|
|
|
52522
|
-
var query =
|
|
52446
|
+
var query = "";
|
|
52523
52447
|
var d = new Date();
|
|
52524
52448
|
var seconds = d.getTime() / 1000;
|
|
52525
52449
|
var externalExecutionId = Math.round(seconds);
|
|
52526
|
-
query +=
|
|
52450
|
+
query += "externalExecutionId=" + externalExecutionId;
|
|
52527
52451
|
|
|
52528
|
-
console.log(
|
|
52529
|
-
dispatch(setFaviconInWizard({ icon:
|
|
52530
|
-
return api.get(
|
|
52452
|
+
console.log("executing generated recipe", transId);
|
|
52453
|
+
dispatch(setFaviconInWizard({ icon: "wizard", alertCount: null }));
|
|
52454
|
+
return api.get("execute/" + transId + "?" + query, {
|
|
52531
52455
|
endpoint: config.TRANS_API_URL
|
|
52532
52456
|
}).then(function (data) {
|
|
52533
52457
|
return { done: data, externalExecutionId: externalExecutionId };
|
|
@@ -52540,7 +52464,7 @@ module.exports =
|
|
|
52540
52464
|
var _getState22 = getState(),
|
|
52541
52465
|
config = _getState22.config;
|
|
52542
52466
|
|
|
52543
|
-
return api.get(tenantId +
|
|
52467
|
+
return api.get(tenantId + "/logs/transformers/externalExecutionId/" + externalExecutionId, {
|
|
52544
52468
|
endpoint: config.TRANS_API_URL
|
|
52545
52469
|
}).then(function (data) {
|
|
52546
52470
|
console.log("LOG", data);
|
|
@@ -52550,7 +52474,10 @@ module.exports =
|
|
|
52550
52474
|
onFinish(generatedRecipe, pi);
|
|
52551
52475
|
} else {
|
|
52552
52476
|
dispatch(setOngoingExecutionLogCount(data[0].stepCount));
|
|
52553
|
-
dispatch(setFaviconInWizard({
|
|
52477
|
+
dispatch(setFaviconInWizard({
|
|
52478
|
+
icon: "wizard",
|
|
52479
|
+
alertCount: data[0].stepCount + 1
|
|
52480
|
+
}));
|
|
52554
52481
|
dispatch(callGetLogSteps(tenantId, externalExecutionId, 0, onFinish, generatedRecipe, pi));
|
|
52555
52482
|
}
|
|
52556
52483
|
} else {
|
|
@@ -52565,20 +52492,20 @@ module.exports =
|
|
|
52565
52492
|
}
|
|
52566
52493
|
}
|
|
52567
52494
|
/*if (!(data[0] && data[0].completed)) {
|
|
52568
|
-
|
|
52569
|
-
|
|
52570
|
-
|
|
52571
|
-
|
|
52572
|
-
|
|
52573
|
-
|
|
52574
|
-
} else {
|
|
52575
|
-
onFinish(generatedRecipe, pi)
|
|
52576
|
-
}
|
|
52495
|
+
if (index < 3600) {
|
|
52496
|
+
setTimeout(() => {
|
|
52497
|
+
dispatch(
|
|
52498
|
+
callLookupLogData(tenantId, externalExecutionId, index+1, onFinish, generatedRecipe, pi)
|
|
52499
|
+
);
|
|
52500
|
+
}, 1000);
|
|
52577
52501
|
} else {
|
|
52578
|
-
if (!(data[0] && data[0].succeeded)) {
|
|
52579
|
-
onFinish(generatedRecipe, pi)
|
|
52580
|
-
}
|
|
52581
52502
|
onFinish(generatedRecipe, pi)
|
|
52503
|
+
}
|
|
52504
|
+
} else {
|
|
52505
|
+
if (!(data[0] && data[0].succeeded)) {
|
|
52506
|
+
onFinish(generatedRecipe, pi)
|
|
52507
|
+
}
|
|
52508
|
+
onFinish(generatedRecipe, pi)
|
|
52582
52509
|
}*/
|
|
52583
52510
|
});
|
|
52584
52511
|
};
|
|
@@ -52614,7 +52541,7 @@ module.exports =
|
|
|
52614
52541
|
|
|
52615
52542
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
52616
52543
|
|
|
52617
|
-
return api.get(tenantId +
|
|
52544
|
+
return api.get(tenantId + "/logs/steps/externalExecutionId/" + externalExecutionId, {
|
|
52618
52545
|
endpoint: TRANS_API_URL
|
|
52619
52546
|
}).then(function (data) {
|
|
52620
52547
|
dispatch(setOngoingExecutionLogs(data));
|
|
@@ -52641,19 +52568,21 @@ module.exports =
|
|
|
52641
52568
|
isrecurring: true
|
|
52642
52569
|
//schedule: `${deployment.minutes || 0} ${deployment.hours || 0} ${deployment.days || 0} * ? *`
|
|
52643
52570
|
};
|
|
52644
|
-
if (deployment.type ===
|
|
52645
|
-
triggerData.dailySchedule = {
|
|
52646
|
-
|
|
52571
|
+
if (deployment.type === "daily") {
|
|
52572
|
+
triggerData.dailySchedule = {
|
|
52573
|
+
timeUTC: _moment2.default.utc(deployment.dailySchedule).format("HH:mm")
|
|
52574
|
+
};
|
|
52575
|
+
} else if (deployment.type === "repeating") {
|
|
52647
52576
|
triggerData.repeatingSchedule = {
|
|
52648
|
-
|
|
52649
|
-
|
|
52577
|
+
frequency: parseInt(deployment.frequency, 10),
|
|
52578
|
+
frequencyUnit: deployment.frequencyUnit.toLowerCase().substring(0, deployment.frequencyUnit.length - 1)
|
|
52650
52579
|
};
|
|
52651
52580
|
}
|
|
52652
52581
|
return function (dispatch, getState, api) {
|
|
52653
52582
|
var _getState24 = getState(),
|
|
52654
52583
|
config = _getState24.config;
|
|
52655
52584
|
|
|
52656
|
-
return api.post(tenantId +
|
|
52585
|
+
return api.post(tenantId + "/createtrigger", {
|
|
52657
52586
|
endpoint: config.TRANS_API_URL,
|
|
52658
52587
|
data: triggerData
|
|
52659
52588
|
}).then(function () {
|
|
@@ -52686,25 +52615,25 @@ module.exports =
|
|
|
52686
52615
|
var source = wiz.source,
|
|
52687
52616
|
destination = wiz.destination;
|
|
52688
52617
|
|
|
52689
|
-
if (piGuid && piGuid !==
|
|
52618
|
+
if (piGuid && piGuid !== "_") {
|
|
52690
52619
|
return function (dispatch, getState, api) {
|
|
52691
52620
|
var _getState25 = getState(),
|
|
52692
52621
|
config = _getState25.config;
|
|
52693
52622
|
|
|
52694
|
-
return api.get(tenantId +
|
|
52623
|
+
return api.get(tenantId + "/" + accountId + "/productizedintegrations/" + piGuid + "/versions", {
|
|
52695
52624
|
endpoint: config.TRANS_API_URL
|
|
52696
52625
|
}).then(function (pis) {
|
|
52697
52626
|
var pi = pis[parseInt(piIndex, 10)];
|
|
52698
52627
|
var piconfig = pi.configuration;
|
|
52699
|
-
piconfig[
|
|
52628
|
+
piconfig["title"] = pi.name;
|
|
52700
52629
|
dispatch({
|
|
52701
52630
|
type: types.SET_WIZARD_SAVED_CONFIGURATION,
|
|
52702
52631
|
data: piconfig
|
|
52703
52632
|
});
|
|
52704
|
-
var envName = piconfig[
|
|
52705
|
-
var sourceFileSchemaGuid = piconfig[
|
|
52706
|
-
var destinationFileSchemaGuid = piconfig[
|
|
52707
|
-
var includeSystemResources = piconfig[
|
|
52633
|
+
var envName = piconfig["environment"];
|
|
52634
|
+
var sourceFileSchemaGuid = piconfig["sourceFileSchemaGuid"];
|
|
52635
|
+
var destinationFileSchemaGuid = piconfig["destinationFileSchemaGuid"];
|
|
52636
|
+
var includeSystemResources = piconfig["includeSystemResources"] === "true";
|
|
52708
52637
|
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
52638
|
var creds = res[0];
|
|
52710
52639
|
var sourceCreds = creds[0] && creds[0].credentialsJson;
|
|
@@ -52720,7 +52649,9 @@ module.exports =
|
|
|
52720
52649
|
});
|
|
52721
52650
|
var savedSourceEndpoint = sourceCreds && sourceCreds.rootUrl;
|
|
52722
52651
|
var savedDestinationEndpoint = destCreds && destCreds.rootUrl;
|
|
52723
|
-
|
|
52652
|
+
var sourceConnectionKey = creds[0] && creds[0].key;
|
|
52653
|
+
var destConnectionKey = creds[1] && creds[1].key;
|
|
52654
|
+
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
52655
|
});
|
|
52725
52656
|
});
|
|
52726
52657
|
};
|
|
@@ -52749,11 +52680,11 @@ module.exports =
|
|
|
52749
52680
|
if (fromUI) {
|
|
52750
52681
|
dispatch({
|
|
52751
52682
|
type: types.START_WIZARD_ENV_CHECK,
|
|
52752
|
-
mode:
|
|
52683
|
+
mode: "source"
|
|
52753
52684
|
});
|
|
52754
52685
|
dispatch({
|
|
52755
52686
|
type: types.START_WIZARD_ENV_CHECK,
|
|
52756
|
-
mode:
|
|
52687
|
+
mode: "destination"
|
|
52757
52688
|
});
|
|
52758
52689
|
}
|
|
52759
52690
|
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 +52713,14 @@ module.exports =
|
|
|
52782
52713
|
|
|
52783
52714
|
dispatch({
|
|
52784
52715
|
type: types.SET_WIZARD_SAVED_CREDENTIALS,
|
|
52785
|
-
data: Object.assign({}, wizard.savedCredentials, _defineProperty({}, mode +
|
|
52716
|
+
data: Object.assign({}, wizard.savedCredentials, _defineProperty({}, mode + "AdapterSecret", cred))
|
|
52786
52717
|
});
|
|
52787
52718
|
};
|
|
52788
52719
|
}
|
|
52789
52720
|
|
|
52790
52721
|
function getCredentialForEnvironment(tenantId, appId, credentialType, envName, mode) {
|
|
52791
52722
|
return function (dispatch, getState, api) {
|
|
52792
|
-
if (credentialType ===
|
|
52723
|
+
if (credentialType === "LocalFile") {
|
|
52793
52724
|
return Promise.resolve({
|
|
52794
52725
|
credentialType: "LocalFile",
|
|
52795
52726
|
credentials: "",
|
|
@@ -52801,7 +52732,7 @@ module.exports =
|
|
|
52801
52732
|
var _getState28 = getState(),
|
|
52802
52733
|
config = _getState28.config;
|
|
52803
52734
|
|
|
52804
|
-
return api.get(tenantId +
|
|
52735
|
+
return api.get(tenantId + "/" + appId + "/credentials/" + credentialType + "/" + envName + "/defaultConnection", {
|
|
52805
52736
|
endpoint: config.TRANS_API_URL
|
|
52806
52737
|
});
|
|
52807
52738
|
};
|
|
@@ -52820,29 +52751,29 @@ module.exports =
|
|
|
52820
52751
|
|
|
52821
52752
|
function tryGetAdapterSecret(tenantId, appId, metadataEndpoint, envName) {
|
|
52822
52753
|
return function (dispatch, getState, api) {
|
|
52823
|
-
var isAdapter = metadataEndpoint ===
|
|
52754
|
+
var isAdapter = metadataEndpoint === "adaptermetadata";
|
|
52824
52755
|
if (isAdapter) {
|
|
52825
|
-
return dispatch(getCredentialForEnvironment(tenantId, appId,
|
|
52756
|
+
return dispatch(getCredentialForEnvironment(tenantId, appId, "AdapterSecret", envName)).catch(function () {
|
|
52826
52757
|
return null;
|
|
52827
52758
|
});
|
|
52828
52759
|
} else return Promise.resolve(null);
|
|
52829
52760
|
};
|
|
52830
52761
|
}
|
|
52831
52762
|
|
|
52832
|
-
function tryGetMetadataReload(tenantId, appId, mode, wiz, savedEndpoint, actualCreds, envName, fileSchemaGuid, includeSystemResources) {
|
|
52763
|
+
function tryGetMetadataReload(tenantId, appId, mode, wiz, savedEndpoint, actualCreds, envName, fileSchemaGuid, includeSystemResources, connectionKey) {
|
|
52833
52764
|
return function (dispatch, getState, api) {
|
|
52834
52765
|
// if skipEnvStep (as in SF App), auto pull SF metadata
|
|
52835
52766
|
var type = wiz.type,
|
|
52836
52767
|
credentials = wiz.credentials;
|
|
52837
52768
|
|
|
52838
|
-
var isOauth = credentials && credentials[0] ===
|
|
52839
|
-
var extraQuery = isOauth && includeSystemResources ?
|
|
52840
|
-
var isFlatFile = credentials && credentials[0] ===
|
|
52841
|
-
var isSFTP = type ===
|
|
52769
|
+
var isOauth = credentials && credentials[0] === "Oauth";
|
|
52770
|
+
var extraQuery = isOauth && includeSystemResources ? "?all=true" : "";
|
|
52771
|
+
var isFlatFile = credentials && credentials[0] === "LocalFile";
|
|
52772
|
+
var isSFTP = type === "SFTP";
|
|
52842
52773
|
if (envName && (isOauth || isFlatFile || isSFTP || savedEndpoint && savedEndpoint.length > 8)) {
|
|
52843
52774
|
var isReload = true;
|
|
52844
52775
|
var environment = { name: envName };
|
|
52845
|
-
return dispatch(callGetMetadata(tenantId, appId, mode, type, wiz, savedEndpoint, null, actualCreds, environment, isReload, fileSchemaGuid, extraQuery));
|
|
52776
|
+
return dispatch(callGetMetadata(tenantId, appId, mode, type, wiz, savedEndpoint, null, actualCreds, environment, isReload, fileSchemaGuid, extraQuery, connectionKey));
|
|
52846
52777
|
} else return Promise.resolve(null);
|
|
52847
52778
|
};
|
|
52848
52779
|
}
|
|
@@ -52853,7 +52784,7 @@ module.exports =
|
|
|
52853
52784
|
var _getState29 = getState(),
|
|
52854
52785
|
config = _getState29.config;
|
|
52855
52786
|
|
|
52856
|
-
return api.get(tenantId +
|
|
52787
|
+
return api.get(tenantId + "/" + accountId + "/bundle/" + bundlePackGuid, {
|
|
52857
52788
|
endpoint: config.TRANS_API_URL
|
|
52858
52789
|
}).then(function (data) {
|
|
52859
52790
|
dispatch({
|
|
@@ -52871,7 +52802,7 @@ module.exports =
|
|
|
52871
52802
|
var _getState30 = getState(),
|
|
52872
52803
|
config = _getState30.config;
|
|
52873
52804
|
|
|
52874
|
-
return api.get(tenantId +
|
|
52805
|
+
return api.get(tenantId + "/" + accountId + "/schemamappings/" + mappingGuid, {
|
|
52875
52806
|
endpoint: config.TRANS_API_URL
|
|
52876
52807
|
}).then(function (data) {
|
|
52877
52808
|
dispatch({
|
|
@@ -52893,7 +52824,7 @@ module.exports =
|
|
|
52893
52824
|
var _getState31 = getState(),
|
|
52894
52825
|
config = _getState31.config;
|
|
52895
52826
|
|
|
52896
|
-
return api.post(tenantId +
|
|
52827
|
+
return api.post(tenantId + "/" + appId + "/environments/" + envId + "/credentials", {
|
|
52897
52828
|
endpoint: config.TRANS_API_URL,
|
|
52898
52829
|
data: {
|
|
52899
52830
|
credentialType: credType,
|
|
@@ -52909,7 +52840,7 @@ module.exports =
|
|
|
52909
52840
|
var _getState32 = getState(),
|
|
52910
52841
|
config = _getState32.config;
|
|
52911
52842
|
|
|
52912
|
-
return api.get(tenantId +
|
|
52843
|
+
return api.get(tenantId + "/" + appId + "/environments", {
|
|
52913
52844
|
endpoint: config.TRANS_API_URL
|
|
52914
52845
|
}).then(function (data) {
|
|
52915
52846
|
dispatch({
|
|
@@ -52931,7 +52862,7 @@ module.exports =
|
|
|
52931
52862
|
config = _getState33.config;
|
|
52932
52863
|
|
|
52933
52864
|
if (transBaseId) {
|
|
52934
|
-
return api.get(
|
|
52865
|
+
return api.get("gettriggers/" + transBaseId, {
|
|
52935
52866
|
endpoint: config.TRANS_API_URL
|
|
52936
52867
|
}).then(function (data) {
|
|
52937
52868
|
var trig = null;
|
|
@@ -52970,7 +52901,7 @@ module.exports =
|
|
|
52970
52901
|
function clearWizardFormData() {
|
|
52971
52902
|
return function (dispatch) {
|
|
52972
52903
|
dispatch(setFaviconInWizard({ icon: false, alertCount: null }));
|
|
52973
|
-
dispatch((0, _reduxForm.reset)(
|
|
52904
|
+
dispatch((0, _reduxForm.reset)("wizard"));
|
|
52974
52905
|
dispatch({
|
|
52975
52906
|
type: types.CLEAR_WIZARD
|
|
52976
52907
|
});
|
|
@@ -56515,7 +56446,7 @@ module.exports =
|
|
|
56515
56446
|
/* 179 */
|
|
56516
56447
|
/***/ function(module, exports, __webpack_require__) {
|
|
56517
56448
|
|
|
56518
|
-
|
|
56449
|
+
"use strict";
|
|
56519
56450
|
|
|
56520
56451
|
Object.defineProperty(exports, "__esModule", {
|
|
56521
56452
|
value: true
|
|
@@ -56583,11 +56514,11 @@ module.exports =
|
|
|
56583
56514
|
// set meta for File Schema step if needed
|
|
56584
56515
|
// set defaults of filename and delimiter
|
|
56585
56516
|
|
|
56586
|
-
var isSFTP = config.type ===
|
|
56517
|
+
var isSFTP = config.type === "SFTP";
|
|
56587
56518
|
if (isSFTP) {
|
|
56588
56519
|
var savedFileSchema = [];
|
|
56589
|
-
if (_this.props.formValues[mode +
|
|
56590
|
-
savedFileSchema = [].concat(_toConsumableArray(formValues[mode +
|
|
56520
|
+
if (_this.props.formValues[mode + "FileSchema"]) {
|
|
56521
|
+
savedFileSchema = [].concat(_toConsumableArray(formValues[mode + "FileSchema"]));
|
|
56591
56522
|
}
|
|
56592
56523
|
var fileSchema = metadata.resources && metadata.resources.map(function (r) {
|
|
56593
56524
|
var existing = savedFileSchema.find(function (rsc) {
|
|
@@ -56596,15 +56527,15 @@ module.exports =
|
|
|
56596
56527
|
if (existing) return existing;
|
|
56597
56528
|
return Object.assign({}, r, {
|
|
56598
56529
|
filePattern: r.name,
|
|
56599
|
-
delimiter:
|
|
56530
|
+
delimiter: ","
|
|
56600
56531
|
});
|
|
56601
56532
|
});
|
|
56602
|
-
change(mode +
|
|
56533
|
+
change(mode + "FileSchema", fileSchema);
|
|
56603
56534
|
}
|
|
56604
56535
|
|
|
56605
|
-
var isFlat = config.type ===
|
|
56536
|
+
var isFlat = config.type === "LocalFile";
|
|
56606
56537
|
if (isFlat) {
|
|
56607
|
-
change(mode +
|
|
56538
|
+
change(mode + "FileSchema", metadata);
|
|
56608
56539
|
}
|
|
56609
56540
|
};
|
|
56610
56541
|
|
|
@@ -56618,24 +56549,24 @@ module.exports =
|
|
|
56618
56549
|
wizard = _this$props2.wizard,
|
|
56619
56550
|
change = _this$props2.change;
|
|
56620
56551
|
|
|
56621
|
-
var config = step[mode +
|
|
56552
|
+
var config = step[mode + "Config"];
|
|
56622
56553
|
var env = wizard.environments.find(function (e) {
|
|
56623
|
-
return e.name === formValues[
|
|
56554
|
+
return e.name === formValues["environment"];
|
|
56624
56555
|
});
|
|
56625
|
-
if (phase ===
|
|
56626
|
-
var c = formValues[mode +
|
|
56627
|
-
change(mode +
|
|
56628
|
-
userName:
|
|
56556
|
+
if (phase === "start") {
|
|
56557
|
+
var c = formValues[mode + "Credentials"];
|
|
56558
|
+
change(mode + "Credentials", Object.assign({}, c.credentialsJson, {
|
|
56559
|
+
userName: "_" // this will make the dot dot show up
|
|
56629
56560
|
}));
|
|
56630
56561
|
} else {
|
|
56631
56562
|
actions.tryGetCredentials(tenantId, accountId, config.type, config.credentials, env.name).then(function (c) {
|
|
56632
|
-
change(mode +
|
|
56633
|
-
var extraQuery =
|
|
56563
|
+
change(mode + "Credentials", c.credentialsJson);
|
|
56564
|
+
var extraQuery = "";
|
|
56634
56565
|
if (formValues.includeSystemResources) {
|
|
56635
|
-
extraQuery =
|
|
56566
|
+
extraQuery = "?all=true";
|
|
56636
56567
|
}
|
|
56637
56568
|
var isReload = false; // skips posting creds again
|
|
56638
|
-
_this.check(mode, env, c.credentialsJson, isReload, extraQuery);
|
|
56569
|
+
_this.check(mode, env, c.credentialsJson, isReload, extraQuery, c.key);
|
|
56639
56570
|
});
|
|
56640
56571
|
}
|
|
56641
56572
|
};
|
|
@@ -56647,7 +56578,7 @@ module.exports =
|
|
|
56647
56578
|
accountId = _this$props3.accountId,
|
|
56648
56579
|
formValues = _this$props3.formValues;
|
|
56649
56580
|
|
|
56650
|
-
var envName = formValues[
|
|
56581
|
+
var envName = formValues["environment"];
|
|
56651
56582
|
actions.generateNewAdapterSecret(tenantId, accountId, envName, mode);
|
|
56652
56583
|
};
|
|
56653
56584
|
|
|
@@ -56658,9 +56589,9 @@ module.exports =
|
|
|
56658
56589
|
actions = _this$props4.actions,
|
|
56659
56590
|
formValues = _this$props4.formValues;
|
|
56660
56591
|
|
|
56661
|
-
return actions.deleteFlatFile(tenantId, accountId, formValues[
|
|
56592
|
+
return actions.deleteFlatFile(tenantId, accountId, formValues["environmentId"], fileName).then(function () {
|
|
56662
56593
|
var isReload = true;
|
|
56663
|
-
return _this.check(mode, null, {}, isReload,
|
|
56594
|
+
return _this.check(mode, null, {}, isReload, "");
|
|
56664
56595
|
});
|
|
56665
56596
|
};
|
|
56666
56597
|
|
|
@@ -56673,7 +56604,7 @@ module.exports =
|
|
|
56673
56604
|
actions = _this$props5.actions,
|
|
56674
56605
|
formValues = _this$props5.formValues;
|
|
56675
56606
|
|
|
56676
|
-
return actions.downloadFileFromAws(tenantId, accountId, tenantKey, accountKey, formValues[
|
|
56607
|
+
return actions.downloadFileFromAws(tenantId, accountId, tenantKey, accountKey, formValues["environmentId"], file);
|
|
56677
56608
|
};
|
|
56678
56609
|
|
|
56679
56610
|
_this.state = {
|
|
@@ -56688,7 +56619,7 @@ module.exports =
|
|
|
56688
56619
|
}
|
|
56689
56620
|
|
|
56690
56621
|
_createClass(EnvStep, [{
|
|
56691
|
-
key:
|
|
56622
|
+
key: "seeFields",
|
|
56692
56623
|
value: function seeFields(target, mode) {
|
|
56693
56624
|
var _props = this.props,
|
|
56694
56625
|
tenantId = _props.tenantId,
|
|
@@ -56697,16 +56628,16 @@ module.exports =
|
|
|
56697
56628
|
step = _props.step,
|
|
56698
56629
|
configUrls = _props.configUrls;
|
|
56699
56630
|
|
|
56700
|
-
var endpoint = formValues[mode +
|
|
56631
|
+
var endpoint = formValues[mode + "Credentials"].rootUrl;
|
|
56701
56632
|
var x = window.open();
|
|
56702
|
-
x.document.open(
|
|
56703
|
-
x.document.write((0, _previewTabContent.makeContent)(configUrls.TRANS_API_URL, tenantId, accountId, endpoint, target.endpointSuffix, target.name, step.previewToken, formValues[
|
|
56704
|
-
x.document.title =
|
|
56633
|
+
x.document.open("", "_blank");
|
|
56634
|
+
x.document.write((0, _previewTabContent.makeContent)(configUrls.TRANS_API_URL, tenantId, accountId, endpoint, target.endpointSuffix, target.name, step.previewToken, formValues["environment"]));
|
|
56635
|
+
x.document.title = "Preview Data (" + target.name + ")";
|
|
56705
56636
|
x.document.close();
|
|
56706
56637
|
x.focus();
|
|
56707
56638
|
}
|
|
56708
56639
|
}, {
|
|
56709
|
-
key:
|
|
56640
|
+
key: "componentWillMount",
|
|
56710
56641
|
value: function componentWillMount() {
|
|
56711
56642
|
var _props2 = this.props,
|
|
56712
56643
|
step = _props2.step,
|
|
@@ -56720,7 +56651,7 @@ module.exports =
|
|
|
56720
56651
|
}
|
|
56721
56652
|
}
|
|
56722
56653
|
}, {
|
|
56723
|
-
key:
|
|
56654
|
+
key: "componentDidMount",
|
|
56724
56655
|
value: function componentDidMount() {
|
|
56725
56656
|
var _this2 = this;
|
|
56726
56657
|
|
|
@@ -56732,14 +56663,14 @@ module.exports =
|
|
|
56732
56663
|
this.selectEnvironment(null, null, wizard.environments[0]);
|
|
56733
56664
|
}
|
|
56734
56665
|
// IF SAVED CONFIG, LOAD UP FLAT FILES INTO ENV
|
|
56735
|
-
var modes = [
|
|
56666
|
+
var modes = ["source", "destination"];
|
|
56736
56667
|
modes.forEach(function (mode) {
|
|
56737
|
-
_this2.updateFileSchema(mode, step[mode +
|
|
56668
|
+
_this2.updateFileSchema(mode, step[mode + "Config"], wizard[mode + "Metadata"]);
|
|
56738
56669
|
});
|
|
56739
56670
|
}
|
|
56740
56671
|
}, {
|
|
56741
|
-
key:
|
|
56742
|
-
value: function check(mode, environment, actualCreds, isReload, extraQuery) {
|
|
56672
|
+
key: "check",
|
|
56673
|
+
value: function check(mode, environment, actualCreds, isReload, extraQuery, connectionKey) {
|
|
56743
56674
|
var _this3 = this;
|
|
56744
56675
|
|
|
56745
56676
|
var _props4 = this.props,
|
|
@@ -56751,28 +56682,28 @@ module.exports =
|
|
|
56751
56682
|
change = _props4.change,
|
|
56752
56683
|
wizard = _props4.wizard;
|
|
56753
56684
|
|
|
56754
|
-
var config = step[mode +
|
|
56685
|
+
var config = step[mode + "Config"];
|
|
56755
56686
|
var credentials = actualCreds;
|
|
56756
56687
|
var endpoint = credentials && credentials.rootUrl;
|
|
56757
56688
|
//remove trailing slash if exists
|
|
56758
|
-
if (endpoint && endpoint[endpoint.length - 1] ===
|
|
56689
|
+
if (endpoint && endpoint[endpoint.length - 1] === "/" && endpoint.length > 8) {
|
|
56759
56690
|
endpoint = endpoint.slice(0, -1);
|
|
56760
|
-
change(mode +
|
|
56691
|
+
change(mode + "Credentials.rootUrl", endpoint);
|
|
56761
56692
|
}
|
|
56762
56693
|
|
|
56763
56694
|
var env = environment || wizard.environments.find(function (e) {
|
|
56764
|
-
return e.name === formValues[
|
|
56695
|
+
return e.name === formValues["environment"];
|
|
56765
56696
|
});
|
|
56766
56697
|
|
|
56767
|
-
change(mode +
|
|
56768
|
-
this.setState(_defineProperty({}, mode +
|
|
56769
|
-
actions.callGetMetadata(tenantId, accountId, mode, step[mode +
|
|
56770
|
-
_this3.setState(_defineProperty({}, mode +
|
|
56698
|
+
change(mode + "Credentials", credentials);
|
|
56699
|
+
this.setState(_defineProperty({}, mode + "EnvChecking", true));
|
|
56700
|
+
actions.callGetMetadata(tenantId, accountId, mode, step[mode + "Provider"], config, endpoint || "_blank", step.isFramework, credentials, env, isReload, null, extraQuery, connectionKey).then(function (metadata) {
|
|
56701
|
+
_this3.setState(_defineProperty({}, mode + "EnvChecking", false));
|
|
56771
56702
|
_this3.updateFileSchema(mode, config, metadata);
|
|
56772
56703
|
});
|
|
56773
56704
|
}
|
|
56774
56705
|
}, {
|
|
56775
|
-
key:
|
|
56706
|
+
key: "getOauthUrl",
|
|
56776
56707
|
value: function getOauthUrl(type, mode) {
|
|
56777
56708
|
var _props5 = this.props,
|
|
56778
56709
|
actions = _props5.actions,
|
|
@@ -56781,40 +56712,42 @@ module.exports =
|
|
|
56781
56712
|
step = _props5.step,
|
|
56782
56713
|
formValues = _props5.formValues;
|
|
56783
56714
|
|
|
56784
|
-
var envName = formValues[
|
|
56715
|
+
var envName = formValues["environment"];
|
|
56785
56716
|
actions.getOauthUrl(tenantId, accountId, step.typeGuid, type, mode, envName);
|
|
56786
56717
|
}
|
|
56787
56718
|
}, {
|
|
56788
|
-
key:
|
|
56719
|
+
key: "clickDirection",
|
|
56789
56720
|
value: function clickDirection() {
|
|
56790
56721
|
var _props6 = this.props,
|
|
56791
56722
|
change = _props6.change,
|
|
56792
56723
|
nav = _props6.nav;
|
|
56793
56724
|
|
|
56794
|
-
change(
|
|
56795
|
-
change(
|
|
56725
|
+
change("resourceGroups", []);
|
|
56726
|
+
change("scenario", null);
|
|
56796
56727
|
if (nav.limitBackToCurrentPage) {
|
|
56797
56728
|
nav.limitBackToCurrentPage();
|
|
56798
56729
|
}
|
|
56799
56730
|
}
|
|
56800
56731
|
}, {
|
|
56801
|
-
key:
|
|
56732
|
+
key: "selectProvider",
|
|
56802
56733
|
value: function selectProvider(provider) {
|
|
56803
56734
|
var selectedProvider = this.state.selectedProvider;
|
|
56804
56735
|
|
|
56805
|
-
this.setState({
|
|
56736
|
+
this.setState({
|
|
56737
|
+
selectedProvider: provider === selectedProvider ? null : provider
|
|
56738
|
+
});
|
|
56806
56739
|
}
|
|
56807
56740
|
}, {
|
|
56808
|
-
key:
|
|
56741
|
+
key: "selectEnvironment",
|
|
56809
56742
|
value: function selectEnvironment(v, i, env) {
|
|
56810
|
-
this.props.change(
|
|
56811
|
-
this.props.change(
|
|
56743
|
+
this.props.change("environment", env.name);
|
|
56744
|
+
this.props.change("environmentId", String(env.environmentId));
|
|
56812
56745
|
this.props.actions.clearAdapterSecrets();
|
|
56813
56746
|
this.setState({ selectedProvider: null });
|
|
56814
56747
|
this.tryGetCredentialAndCheck(env);
|
|
56815
56748
|
}
|
|
56816
56749
|
}, {
|
|
56817
|
-
key:
|
|
56750
|
+
key: "tryGetCredentialAndCheck",
|
|
56818
56751
|
value: function tryGetCredentialAndCheck(env) {
|
|
56819
56752
|
var _this4 = this;
|
|
56820
56753
|
|
|
@@ -56826,9 +56759,9 @@ module.exports =
|
|
|
56826
56759
|
change = _props7.change,
|
|
56827
56760
|
formValues = _props7.formValues;
|
|
56828
56761
|
|
|
56829
|
-
var modes = [
|
|
56830
|
-
change(
|
|
56831
|
-
change(
|
|
56762
|
+
var modes = ["source", "destination"];
|
|
56763
|
+
change("sourceCredentials", { rootUrl: "https://" });
|
|
56764
|
+
change("destinationCredentials", { rootUrl: "https://" });
|
|
56832
56765
|
this.setState({ sourceEnvChecking: true });
|
|
56833
56766
|
this.setState({ destinationEnvChecking: true });
|
|
56834
56767
|
var wiz = {
|
|
@@ -56843,15 +56776,15 @@ module.exports =
|
|
|
56843
56776
|
// main creds
|
|
56844
56777
|
if (cred && cred.credentialsJson) {
|
|
56845
56778
|
var modeCreds = cred.credentialsJson;
|
|
56846
|
-
change(m +
|
|
56779
|
+
change(m + "Credentials", modeCreds);
|
|
56847
56780
|
var isReload = true; // skips posting creds again
|
|
56848
|
-
var extraQuery =
|
|
56849
|
-
if (formValues.includeSystemResources && wiz[m].type ===
|
|
56850
|
-
extraQuery =
|
|
56781
|
+
var extraQuery = "";
|
|
56782
|
+
if (formValues.includeSystemResources && wiz[m].type === "Salesforce") {
|
|
56783
|
+
extraQuery = "?all=true";
|
|
56851
56784
|
}
|
|
56852
|
-
_this4.check(m, env, modeCreds, isReload, extraQuery);
|
|
56785
|
+
_this4.check(m, env, modeCreds, isReload, extraQuery, cred.key);
|
|
56853
56786
|
} else {
|
|
56854
|
-
_this4.setState(_defineProperty({}, m +
|
|
56787
|
+
_this4.setState(_defineProperty({}, m + "EnvChecking", false));
|
|
56855
56788
|
}
|
|
56856
56789
|
} else {
|
|
56857
56790
|
// adapter secret if exists
|
|
@@ -56863,7 +56796,7 @@ module.exports =
|
|
|
56863
56796
|
});
|
|
56864
56797
|
}
|
|
56865
56798
|
}, {
|
|
56866
|
-
key:
|
|
56799
|
+
key: "setCsvFields",
|
|
56867
56800
|
value: function setCsvFields(meta, contents, mode, providerType) {
|
|
56868
56801
|
var _this5 = this;
|
|
56869
56802
|
|
|
@@ -56877,19 +56810,19 @@ module.exports =
|
|
|
56877
56810
|
//let meta = wizard[`${mode}Metadata`] || []
|
|
56878
56811
|
//meta = meta.concat(metadata)
|
|
56879
56812
|
|
|
56880
|
-
return actions.setCsvFields(tenantId, accountId, tenantKey, accountKey, meta, contents, mode, providerType, mode ===
|
|
56813
|
+
return actions.setCsvFields(tenantId, accountId, tenantKey, accountKey, meta, contents, mode, providerType, mode === "source", formValues["environmentId"]).then(function (d) {
|
|
56881
56814
|
// get the new list of files
|
|
56882
56815
|
var isReload = true; // skip post creds
|
|
56883
|
-
return _this5.check(mode, null, d, isReload,
|
|
56816
|
+
return _this5.check(mode, null, d, isReload, "");
|
|
56884
56817
|
});
|
|
56885
56818
|
}
|
|
56886
56819
|
}, {
|
|
56887
|
-
key:
|
|
56820
|
+
key: "clearCsvFields",
|
|
56888
56821
|
value: function clearCsvFields(mode) {
|
|
56889
56822
|
return this.props.actions.clearCsvFields(mode);
|
|
56890
56823
|
}
|
|
56891
56824
|
}, {
|
|
56892
|
-
key:
|
|
56825
|
+
key: "createCustomSettings",
|
|
56893
56826
|
value: function createCustomSettings(mode) {
|
|
56894
56827
|
var _props9 = this.props,
|
|
56895
56828
|
wizard = _props9.wizard,
|
|
@@ -56897,23 +56830,26 @@ module.exports =
|
|
|
56897
56830
|
inputs = _props9.inputs,
|
|
56898
56831
|
formValues = _props9.formValues;
|
|
56899
56832
|
|
|
56900
|
-
var config = step[mode +
|
|
56833
|
+
var config = step[mode + "Config"];
|
|
56901
56834
|
var customSettings = null;
|
|
56902
|
-
var POSTS = wizard[mode +
|
|
56903
|
-
return m.method ===
|
|
56835
|
+
var POSTS = wizard[mode + "Metadata"] && wizard[mode + "Metadata"].filter(function (m) {
|
|
56836
|
+
return m.method === "POST" || m.method === "PUT";
|
|
56904
56837
|
});
|
|
56905
56838
|
|
|
56906
|
-
if (wizard[mode +
|
|
56907
|
-
customSettings = _react2.default.createElement(CustomAdapterSettings, {
|
|
56908
|
-
|
|
56909
|
-
|
|
56839
|
+
if (wizard[mode + "Metadata"] && mode === "source" && config.bidirectional && POSTS && POSTS.length > 0) {
|
|
56840
|
+
customSettings = _react2.default.createElement(CustomAdapterSettings, {
|
|
56841
|
+
provider: step[mode + "Provider"],
|
|
56842
|
+
clickDirection: this.clickDirection,
|
|
56843
|
+
inputs: inputs
|
|
56844
|
+
});
|
|
56845
|
+
} else if (config.type === "Salesforce") {
|
|
56910
56846
|
customSettings = _react2.default.createElement(CustomSalesforceSettings, { inputs: inputs, formValues: formValues });
|
|
56911
56847
|
}
|
|
56912
56848
|
|
|
56913
56849
|
return customSettings;
|
|
56914
56850
|
}
|
|
56915
56851
|
}, {
|
|
56916
|
-
key:
|
|
56852
|
+
key: "render",
|
|
56917
56853
|
value: function render() {
|
|
56918
56854
|
var _this6 = this;
|
|
56919
56855
|
|
|
@@ -56929,121 +56865,158 @@ module.exports =
|
|
|
56929
56865
|
accountKey = _props10.accountKey,
|
|
56930
56866
|
change = _props10.change;
|
|
56931
56867
|
|
|
56932
|
-
var modes = [
|
|
56868
|
+
var modes = ["source", "destination"];
|
|
56933
56869
|
var selectedProvider = this.state.selectedProvider;
|
|
56934
56870
|
|
|
56935
|
-
var notAllMetadata = !(wizard[
|
|
56871
|
+
var notAllMetadata = !(wizard["sourceMetadata"] && wizard["sourceMetadata"].length > 0) || !(wizard["destinationMetadata"] && wizard["destinationMetadata"].length > 0);
|
|
56936
56872
|
|
|
56937
56873
|
return _react2.default.createElement(
|
|
56938
|
-
|
|
56874
|
+
"form",
|
|
56939
56875
|
{ onKeyPress: function onKeyPress(e) {
|
|
56940
56876
|
return e.charCode === 13 ? e.preventDefault() : null;
|
|
56941
56877
|
} },
|
|
56942
56878
|
_react2.default.createElement(
|
|
56943
|
-
|
|
56944
|
-
{ style: { fontSize: 20, display:
|
|
56945
|
-
|
|
56879
|
+
"div",
|
|
56880
|
+
{ style: { fontSize: 20, display: "inline-block" } },
|
|
56881
|
+
"Connect to Data Environments"
|
|
56946
56882
|
),
|
|
56947
|
-
_react2.default.createElement(
|
|
56948
|
-
_react2.default.createElement(
|
|
56883
|
+
_react2.default.createElement("br", null),
|
|
56884
|
+
_react2.default.createElement("br", null),
|
|
56949
56885
|
_react2.default.createElement(
|
|
56950
|
-
|
|
56886
|
+
"p",
|
|
56951
56887
|
null,
|
|
56952
|
-
|
|
56888
|
+
"Connect to sources of data and inspect available resources. You can save data environments for later re-use."
|
|
56953
56889
|
),
|
|
56954
|
-
_react2.default.createElement(
|
|
56890
|
+
_react2.default.createElement("br", null),
|
|
56955
56891
|
_react2.default.createElement(
|
|
56956
|
-
|
|
56892
|
+
"div",
|
|
56957
56893
|
{ style: { height: 52 } },
|
|
56958
56894
|
_react2.default.createElement(
|
|
56959
|
-
|
|
56960
|
-
{
|
|
56961
|
-
|
|
56962
|
-
|
|
56963
|
-
|
|
56964
|
-
|
|
56895
|
+
"div",
|
|
56896
|
+
{
|
|
56897
|
+
style: {
|
|
56898
|
+
display: "inline-block",
|
|
56899
|
+
width: 196,
|
|
56900
|
+
verticalAlign: "top"
|
|
56901
|
+
}
|
|
56902
|
+
},
|
|
56903
|
+
_react2.default.createElement(_selectWrapper2.default, {
|
|
56904
|
+
type: "neutral",
|
|
56905
|
+
label: formValues["environment"] || "Existing Environments",
|
|
56906
|
+
minWidth: 260,
|
|
56907
|
+
fieldPropLabel: "name",
|
|
56908
|
+
style: { minWidth: 200, textAlign: "left" },
|
|
56965
56909
|
values: wizard.environments,
|
|
56966
|
-
title:
|
|
56910
|
+
title: "Choose Environment",
|
|
56911
|
+
inputs: inputs,
|
|
56912
|
+
sectionLabelSuffix: "",
|
|
56967
56913
|
onSelect: this.selectEnvironment.bind(this),
|
|
56968
|
-
selectedValues: [formValues[
|
|
56914
|
+
selectedValues: [formValues["environment"] ? { name: formValues["environment"] } : {}],
|
|
56969
56915
|
disabled: wizard.environments && wizard.environments.length > 0 ? false : true
|
|
56970
56916
|
})
|
|
56971
56917
|
)
|
|
56972
56918
|
),
|
|
56973
|
-
_react2.default.createElement(
|
|
56919
|
+
_react2.default.createElement("br", null),
|
|
56974
56920
|
_react2.default.createElement(
|
|
56975
56921
|
_CSSTransitionGroup2.default,
|
|
56976
|
-
{
|
|
56977
|
-
|
|
56978
|
-
|
|
56979
|
-
|
|
56980
|
-
|
|
56981
|
-
|
|
56922
|
+
{
|
|
56923
|
+
transitionName: "env-content",
|
|
56924
|
+
transitionEnterTimeout: 250,
|
|
56925
|
+
transitionLeaveTimeout: 250
|
|
56926
|
+
},
|
|
56927
|
+
formValues["environment"] && _react2.default.createElement(
|
|
56928
|
+
"div",
|
|
56929
|
+
{ className: "env-content" },
|
|
56930
|
+
_react2.default.createElement("br", null),
|
|
56982
56931
|
modes.map(function (m) {
|
|
56983
|
-
var isSelected = step[m +
|
|
56984
|
-
var checking = _this6.state[m +
|
|
56985
|
-
var adapterSecret = wizard.savedCredentials && wizard.savedCredentials[m +
|
|
56932
|
+
var isSelected = step[m + "Provider"] === selectedProvider;
|
|
56933
|
+
var checking = _this6.state[m + "EnvChecking"];
|
|
56934
|
+
var adapterSecret = wizard.savedCredentials && wizard.savedCredentials[m + "AdapterSecret"] && wizard.savedCredentials[m + "AdapterSecret"].credentials;
|
|
56986
56935
|
var customSettings = _this6.createCustomSettings(m);
|
|
56987
56936
|
return _react2.default.createElement(
|
|
56988
|
-
|
|
56989
|
-
{ key: m, className:
|
|
56937
|
+
"div",
|
|
56938
|
+
{ key: m, className: "env-section" },
|
|
56990
56939
|
_react2.default.createElement(
|
|
56991
|
-
|
|
56992
|
-
{
|
|
56993
|
-
|
|
56940
|
+
"div",
|
|
56941
|
+
{
|
|
56942
|
+
onClick: function onClick() {
|
|
56943
|
+
return _this6.selectProvider(step[m + "Provider"]);
|
|
56994
56944
|
},
|
|
56995
|
-
className:
|
|
56996
|
-
|
|
56945
|
+
className: "env-section-header"
|
|
56946
|
+
},
|
|
56947
|
+
_react2.default.createElement(EnvCheckIcons, {
|
|
56948
|
+
wizard: wizard,
|
|
56949
|
+
inputs: inputs,
|
|
56950
|
+
mode: m,
|
|
56951
|
+
checking: checking,
|
|
56952
|
+
isSelected: isSelected
|
|
56953
|
+
}),
|
|
56997
56954
|
_react2.default.createElement(
|
|
56998
|
-
|
|
56999
|
-
{ className:
|
|
57000
|
-
step[m +
|
|
56955
|
+
"div",
|
|
56956
|
+
{ className: "env-section-header-title" },
|
|
56957
|
+
step[m + "Config"].label || step[m + "Provider"]
|
|
57001
56958
|
)
|
|
57002
56959
|
),
|
|
57003
|
-
wizard[m +
|
|
57004
|
-
|
|
57005
|
-
{
|
|
56960
|
+
wizard[m + "Metadata"] && _react2.default.createElement(
|
|
56961
|
+
"div",
|
|
56962
|
+
{
|
|
56963
|
+
className: "env-inspect-button",
|
|
57006
56964
|
onClick: function onClick() {
|
|
57007
56965
|
return _this6.setState({ showResources: m });
|
|
57008
|
-
}
|
|
56966
|
+
}
|
|
56967
|
+
},
|
|
57009
56968
|
_react2.default.createElement(
|
|
57010
|
-
|
|
56969
|
+
"span",
|
|
57011
56970
|
null,
|
|
57012
|
-
|
|
56971
|
+
"View Resources"
|
|
57013
56972
|
),
|
|
57014
56973
|
_react2.default.createElement(
|
|
57015
|
-
|
|
57016
|
-
{
|
|
57017
|
-
|
|
57018
|
-
|
|
56974
|
+
"svg",
|
|
56975
|
+
{
|
|
56976
|
+
className: "env-inspect-eye",
|
|
56977
|
+
height: "24",
|
|
56978
|
+
viewBox: "0 0 24 24",
|
|
56979
|
+
width: "24"
|
|
56980
|
+
},
|
|
56981
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
56982
|
+
_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
56983
|
)
|
|
57020
56984
|
),
|
|
57021
56985
|
_react2.default.createElement(
|
|
57022
56986
|
_CSSTransitionGroup2.default,
|
|
57023
|
-
{
|
|
57024
|
-
|
|
56987
|
+
{
|
|
56988
|
+
transitionName: "env-creds",
|
|
56989
|
+
transitionEnterTimeout: 250,
|
|
56990
|
+
transitionLeaveTimeout: 250
|
|
56991
|
+
},
|
|
57025
56992
|
isSelected && _react2.default.createElement(
|
|
57026
|
-
|
|
57027
|
-
{ className:
|
|
57028
|
-
wizard[m +
|
|
57029
|
-
|
|
57030
|
-
{ className:
|
|
57031
|
-
wizard[m +
|
|
56993
|
+
"div",
|
|
56994
|
+
{ className: "env-creds" },
|
|
56995
|
+
wizard[m + "CheckError"] && _react2.default.createElement(
|
|
56996
|
+
"div",
|
|
56997
|
+
{ className: "check-metadata-error" },
|
|
56998
|
+
wizard[m + "CheckError"]
|
|
57032
56999
|
),
|
|
57033
57000
|
_react2.default.createElement(
|
|
57034
57001
|
_credSections2.default,
|
|
57035
|
-
{
|
|
57036
|
-
|
|
57037
|
-
|
|
57002
|
+
{
|
|
57003
|
+
config: step[m + "Config"],
|
|
57004
|
+
checking: checking,
|
|
57005
|
+
wizard: wizard,
|
|
57006
|
+
getOauthUrl: _this6.getOauthUrl.bind(_this6),
|
|
57007
|
+
formValues: formValues,
|
|
57008
|
+
inputs: inputs,
|
|
57038
57009
|
generateNewAdapterSecret: function generateNewAdapterSecret() {
|
|
57039
57010
|
return _this6.generateNewAdapterSecret(m);
|
|
57040
57011
|
},
|
|
57041
57012
|
seeFields: _this6.seeFields.bind(_this6),
|
|
57042
|
-
fileSchema: formValues[m +
|
|
57013
|
+
fileSchema: formValues[m + "FileSchema"],
|
|
57043
57014
|
check: function check(actualCreds, extraQuery) {
|
|
57044
57015
|
_this6.check(m, null, actualCreds, null, extraQuery);
|
|
57045
|
-
},
|
|
57046
|
-
|
|
57016
|
+
},
|
|
57017
|
+
change: change,
|
|
57018
|
+
tenantKey: tenantKey,
|
|
57019
|
+
accountKey: accountKey,
|
|
57047
57020
|
setCsvFields: function setCsvFields(meta, contents, providerType) {
|
|
57048
57021
|
return _this6.setCsvFields(meta, contents, m, providerType);
|
|
57049
57022
|
},
|
|
@@ -57051,15 +57024,16 @@ module.exports =
|
|
|
57051
57024
|
clearCsvFields: function clearCsvFields() {
|
|
57052
57025
|
return _this6.clearCsvFields(m);
|
|
57053
57026
|
},
|
|
57054
|
-
creds: formValues[m +
|
|
57055
|
-
envCheckResult: wizard[m +
|
|
57027
|
+
creds: formValues[m + "Credentials"],
|
|
57028
|
+
envCheckResult: wizard[m + "CheckResult"],
|
|
57056
57029
|
adapterSecret: adapterSecret,
|
|
57057
57030
|
deleteFlatFile: function deleteFlatFile(fileName) {
|
|
57058
57031
|
return _this6.deleteFlatFile(fileName, m);
|
|
57059
57032
|
},
|
|
57060
57033
|
checkOauthCreds: function checkOauthCreds(phase) {
|
|
57061
57034
|
return _this6.checkOauthCreds(phase, m);
|
|
57062
|
-
}
|
|
57035
|
+
}
|
|
57036
|
+
},
|
|
57063
57037
|
_react2.default.isValidElement(customSettings) ? _react2.default.cloneElement(customSettings) : null
|
|
57064
57038
|
)
|
|
57065
57039
|
)
|
|
@@ -57072,18 +57046,25 @@ module.exports =
|
|
|
57072
57046
|
onHide: function onHide() {
|
|
57073
57047
|
return _this6.setState({ showResources: null });
|
|
57074
57048
|
},
|
|
57075
|
-
mode: this.state.showResources,
|
|
57076
|
-
|
|
57049
|
+
mode: this.state.showResources,
|
|
57050
|
+
wizard: wizard,
|
|
57051
|
+
step: step,
|
|
57052
|
+
inputs: inputs,
|
|
57077
57053
|
seeFields: this.seeFields.bind(this),
|
|
57078
|
-
isReverse: formValues.direction ===
|
|
57054
|
+
isReverse: formValues.direction === "reverse"
|
|
57079
57055
|
}),
|
|
57080
|
-
_react2.default.createElement(
|
|
57081
|
-
_react2.default.createElement(
|
|
57082
|
-
_react2.default.createElement(_navButtons2.default, {
|
|
57083
|
-
|
|
57084
|
-
|
|
57085
|
-
|
|
57086
|
-
|
|
57056
|
+
_react2.default.createElement("br", null),
|
|
57057
|
+
_react2.default.createElement("br", null),
|
|
57058
|
+
_react2.default.createElement(_navButtons2.default, {
|
|
57059
|
+
nextDisabled: notAllMetadata || !formValues["environmentId"],
|
|
57060
|
+
handleSubmit: handleSubmit,
|
|
57061
|
+
nav: nav,
|
|
57062
|
+
reset: reset,
|
|
57063
|
+
inputs: inputs,
|
|
57064
|
+
isAdmin: this.props.isAdmin
|
|
57065
|
+
}),
|
|
57066
|
+
_react2.default.createElement("br", null),
|
|
57067
|
+
_react2.default.createElement("br", null)
|
|
57087
57068
|
);
|
|
57088
57069
|
}
|
|
57089
57070
|
}]);
|
|
@@ -57101,87 +57082,107 @@ module.exports =
|
|
|
57101
57082
|
isReverse = _ref.isReverse;
|
|
57102
57083
|
|
|
57103
57084
|
var Modal = inputs.Modal;
|
|
57104
|
-
var config = step[mode +
|
|
57105
|
-
var POSTS = wizard[mode +
|
|
57106
|
-
return m.method ===
|
|
57085
|
+
var config = step[mode + "Config"];
|
|
57086
|
+
var POSTS = wizard[mode + "Metadata"] && wizard[mode + "Metadata"].filter(function (m) {
|
|
57087
|
+
return m.method === "POST" || m.method === "PUT";
|
|
57107
57088
|
});
|
|
57108
57089
|
|
|
57109
57090
|
var providerLabel = config.label;
|
|
57110
57091
|
|
|
57111
57092
|
// "testconnection" will be deprecated
|
|
57112
|
-
var isFromAdapter = config && (config.metadataEndpoint ===
|
|
57093
|
+
var isFromAdapter = config && (config.metadataEndpoint === "testconnection" || config.metadataEndpoint === "adaptermetadata");
|
|
57113
57094
|
|
|
57114
57095
|
return _react2.default.createElement(
|
|
57115
57096
|
Modal,
|
|
57116
|
-
{
|
|
57117
|
-
|
|
57097
|
+
{
|
|
57098
|
+
opened: mode ? true : false,
|
|
57099
|
+
hideModal: onHide,
|
|
57100
|
+
submitModal: onHide,
|
|
57101
|
+
title: "Available " + providerLabel + " Resources"
|
|
57102
|
+
},
|
|
57118
57103
|
_react2.default.createElement(
|
|
57119
|
-
|
|
57120
|
-
{
|
|
57121
|
-
|
|
57122
|
-
|
|
57104
|
+
"div",
|
|
57105
|
+
{
|
|
57106
|
+
style: { overflow: "scroll", maxHeight: "69vh", padding: "1em 2em" }
|
|
57107
|
+
},
|
|
57108
|
+
wizard[mode + "Metadata"] && !isReverse ? _react2.default.createElement(
|
|
57109
|
+
"div",
|
|
57123
57110
|
null,
|
|
57124
57111
|
_react2.default.createElement(
|
|
57125
|
-
|
|
57126
|
-
{ className:
|
|
57127
|
-
|
|
57128
|
-
step[mode +
|
|
57129
|
-
|
|
57112
|
+
"span",
|
|
57113
|
+
{ className: "labelz" },
|
|
57114
|
+
"Available ",
|
|
57115
|
+
step[mode + "Provider"],
|
|
57116
|
+
" Data Objects",
|
|
57130
57117
|
isFromAdapter && _react2.default.createElement(
|
|
57131
|
-
|
|
57118
|
+
"span",
|
|
57132
57119
|
null,
|
|
57133
|
-
|
|
57120
|
+
"\xA0(click to preview data):"
|
|
57134
57121
|
)
|
|
57135
57122
|
),
|
|
57136
57123
|
_react2.default.createElement(
|
|
57137
|
-
|
|
57138
|
-
{ style: { listStyle:
|
|
57139
|
-
wizard[mode +
|
|
57140
|
-
return m.method !==
|
|
57124
|
+
"ul",
|
|
57125
|
+
{ style: { listStyle: "none", paddingLeft: 5 } },
|
|
57126
|
+
wizard[mode + "Metadata"].filter(function (m) {
|
|
57127
|
+
return m.method !== "POST";
|
|
57141
57128
|
}).map(function (rsc, i) {
|
|
57142
57129
|
return _react2.default.createElement(
|
|
57143
|
-
|
|
57144
|
-
{
|
|
57130
|
+
"li",
|
|
57131
|
+
{
|
|
57132
|
+
key: i,
|
|
57133
|
+
style: {
|
|
57134
|
+
paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10
|
|
57135
|
+
}
|
|
57136
|
+
},
|
|
57145
57137
|
isFromAdapter ? _react2.default.createElement(
|
|
57146
|
-
|
|
57147
|
-
{
|
|
57138
|
+
"a",
|
|
57139
|
+
{
|
|
57140
|
+
onClick: function onClick() {
|
|
57148
57141
|
return seeFields(rsc, mode);
|
|
57149
57142
|
},
|
|
57150
|
-
style: { textDecoration:
|
|
57143
|
+
style: { textDecoration: "none", cursor: "pointer" }
|
|
57144
|
+
},
|
|
57151
57145
|
rsc.name
|
|
57152
57146
|
) : _react2.default.createElement(
|
|
57153
|
-
|
|
57147
|
+
"div",
|
|
57154
57148
|
null,
|
|
57155
57149
|
rsc.name,
|
|
57156
|
-
rsc.sheetName ?
|
|
57150
|
+
rsc.sheetName ? " (" + rsc.sheetName + ")" : ""
|
|
57157
57151
|
)
|
|
57158
57152
|
);
|
|
57159
57153
|
})
|
|
57160
57154
|
)
|
|
57161
57155
|
) : null,
|
|
57162
|
-
wizard[mode +
|
|
57163
|
-
|
|
57156
|
+
wizard[mode + "Metadata"] && mode === "source" && POSTS && POSTS.length > 0 && _react2.default.createElement(
|
|
57157
|
+
"div",
|
|
57164
57158
|
null,
|
|
57165
57159
|
isReverse && _react2.default.createElement(
|
|
57166
|
-
|
|
57160
|
+
"div",
|
|
57167
57161
|
null,
|
|
57168
57162
|
_react2.default.createElement(
|
|
57169
|
-
|
|
57170
|
-
{ className:
|
|
57171
|
-
|
|
57172
|
-
step[mode +
|
|
57173
|
-
|
|
57163
|
+
"span",
|
|
57164
|
+
{ className: "labelz" },
|
|
57165
|
+
"Available ",
|
|
57166
|
+
step[mode + "Provider"],
|
|
57167
|
+
" Data Target Objects:"
|
|
57174
57168
|
),
|
|
57175
57169
|
_react2.default.createElement(
|
|
57176
|
-
|
|
57177
|
-
{ style: { listStyle:
|
|
57170
|
+
"ul",
|
|
57171
|
+
{ style: { listStyle: "none", paddingLeft: 5 } },
|
|
57178
57172
|
POSTS.map(function (rsc, i) {
|
|
57179
57173
|
return _react2.default.createElement(
|
|
57180
|
-
|
|
57181
|
-
{
|
|
57174
|
+
"li",
|
|
57175
|
+
{
|
|
57176
|
+
key: i,
|
|
57177
|
+
style: {
|
|
57178
|
+
paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10
|
|
57179
|
+
}
|
|
57180
|
+
},
|
|
57182
57181
|
_react2.default.createElement(
|
|
57183
|
-
|
|
57184
|
-
{
|
|
57182
|
+
"a",
|
|
57183
|
+
{
|
|
57184
|
+
style: { textDecoration: "none", cursor: "default" }
|
|
57185
|
+
},
|
|
57185
57186
|
rsc.name
|
|
57186
57187
|
)
|
|
57187
57188
|
);
|
|
@@ -57200,37 +57201,62 @@ module.exports =
|
|
|
57200
57201
|
checking = _ref2.checking,
|
|
57201
57202
|
isSelected = _ref2.isSelected;
|
|
57202
57203
|
|
|
57203
|
-
var envCheckResult = wizard[mode +
|
|
57204
|
+
var envCheckResult = wizard[mode + "CheckResult"];
|
|
57204
57205
|
return _react2.default.createElement(
|
|
57205
|
-
|
|
57206
|
-
{ className:
|
|
57206
|
+
"div",
|
|
57207
|
+
{ className: "env-section-icon" },
|
|
57207
57208
|
checking && _react2.default.createElement(inputs.Spinner, null),
|
|
57208
57209
|
envCheckResult && !checking ? _react2.default.createElement(
|
|
57209
|
-
|
|
57210
|
+
"span",
|
|
57210
57211
|
null,
|
|
57211
|
-
envCheckResult ===
|
|
57212
|
-
|
|
57213
|
-
{
|
|
57214
|
-
|
|
57215
|
-
|
|
57212
|
+
envCheckResult === "200 OK" ? _react2.default.createElement(
|
|
57213
|
+
"svg",
|
|
57214
|
+
{
|
|
57215
|
+
fill: "#019644",
|
|
57216
|
+
height: "24",
|
|
57217
|
+
viewBox: "0 0 24 24",
|
|
57218
|
+
width: "24",
|
|
57219
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
57220
|
+
},
|
|
57221
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
57222
|
+
_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
57223
|
) : _react2.default.createElement(
|
|
57217
|
-
|
|
57218
|
-
{
|
|
57219
|
-
|
|
57220
|
-
|
|
57224
|
+
"svg",
|
|
57225
|
+
{
|
|
57226
|
+
fill: "#EA5A5A",
|
|
57227
|
+
height: "24",
|
|
57228
|
+
viewBox: "0 0 24 24",
|
|
57229
|
+
width: "24",
|
|
57230
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
57231
|
+
},
|
|
57232
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
57233
|
+
_react2.default.createElement("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" })
|
|
57221
57234
|
)
|
|
57222
57235
|
) : _react2.default.createElement(
|
|
57223
|
-
|
|
57236
|
+
"span",
|
|
57224
57237
|
null,
|
|
57225
57238
|
!checking && _react2.default.createElement(
|
|
57226
|
-
|
|
57227
|
-
{
|
|
57228
|
-
|
|
57229
|
-
|
|
57239
|
+
"svg",
|
|
57240
|
+
{
|
|
57241
|
+
x: "0px",
|
|
57242
|
+
y: "0px",
|
|
57243
|
+
viewBox: "0 0 1000 1000",
|
|
57244
|
+
height: "16",
|
|
57245
|
+
width: "16",
|
|
57246
|
+
style: {
|
|
57247
|
+
marginLeft: 4,
|
|
57248
|
+
marginTop: 3,
|
|
57249
|
+
transform: "rotate(" + (isSelected ? -90 : 0) + "deg)",
|
|
57250
|
+
transition: "all 0.1s"
|
|
57251
|
+
}
|
|
57252
|
+
},
|
|
57230
57253
|
_react2.default.createElement(
|
|
57231
|
-
|
|
57232
|
-
{ transform:
|
|
57233
|
-
_react2.default.createElement(
|
|
57254
|
+
"g",
|
|
57255
|
+
{ transform: "matrix(1 0 0 -1 1000 -536) rotate(180)" },
|
|
57256
|
+
_react2.default.createElement("path", {
|
|
57257
|
+
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",
|
|
57258
|
+
fill: "grey"
|
|
57259
|
+
})
|
|
57234
57260
|
)
|
|
57235
57261
|
)
|
|
57236
57262
|
)
|
|
@@ -57252,7 +57278,7 @@ module.exports =
|
|
|
57252
57278
|
}
|
|
57253
57279
|
|
|
57254
57280
|
_createClass(CustomSalesforceSettings, [{
|
|
57255
|
-
key:
|
|
57281
|
+
key: "componentWillMount",
|
|
57256
57282
|
value: function componentWillMount() {
|
|
57257
57283
|
var formValues = this.props.formValues;
|
|
57258
57284
|
|
|
@@ -57261,7 +57287,7 @@ module.exports =
|
|
|
57261
57287
|
}
|
|
57262
57288
|
}
|
|
57263
57289
|
}, {
|
|
57264
|
-
key:
|
|
57290
|
+
key: "render",
|
|
57265
57291
|
value: function render() {
|
|
57266
57292
|
var _this8 = this;
|
|
57267
57293
|
|
|
@@ -57270,36 +57296,43 @@ module.exports =
|
|
|
57270
57296
|
|
|
57271
57297
|
|
|
57272
57298
|
return _react2.default.createElement(
|
|
57273
|
-
|
|
57299
|
+
"div",
|
|
57274
57300
|
{ style: { marginTop: 23 } },
|
|
57275
57301
|
_react2.default.createElement(
|
|
57276
|
-
|
|
57277
|
-
{ className:
|
|
57278
|
-
|
|
57302
|
+
"label",
|
|
57303
|
+
{ className: "labelz", style: { fontWeight: "bold" } },
|
|
57304
|
+
"Bulk Upload Batch Size:"
|
|
57279
57305
|
),
|
|
57280
|
-
_react2.default.createElement(
|
|
57281
|
-
_react2.default.createElement(Radio, {
|
|
57306
|
+
_react2.default.createElement("br", null),
|
|
57307
|
+
_react2.default.createElement(Radio, {
|
|
57308
|
+
onChange: function onChange() {
|
|
57282
57309
|
return _this8.setState({ custom: false });
|
|
57283
57310
|
},
|
|
57284
|
-
label:
|
|
57311
|
+
label: "Default Batch Size (10,000)",
|
|
57285
57312
|
checked: this.state.custom === false,
|
|
57286
|
-
style: { cursor:
|
|
57313
|
+
style: { cursor: "pointer", fontWeight: "normal" }
|
|
57287
57314
|
}),
|
|
57288
|
-
_react2.default.createElement(
|
|
57289
|
-
_react2.default.createElement(Radio, {
|
|
57315
|
+
_react2.default.createElement("br", null),
|
|
57316
|
+
_react2.default.createElement(Radio, {
|
|
57317
|
+
onChange: function onChange() {
|
|
57290
57318
|
return _this8.setState({ custom: true });
|
|
57291
57319
|
},
|
|
57292
|
-
label:
|
|
57320
|
+
label: "Custom Batch Size",
|
|
57293
57321
|
checked: this.state.custom === true,
|
|
57294
|
-
style: { cursor:
|
|
57322
|
+
style: { cursor: "pointer", fontWeight: "normal" }
|
|
57295
57323
|
}),
|
|
57296
57324
|
this.state.custom === true && _react2.default.createElement(
|
|
57297
|
-
|
|
57325
|
+
"div",
|
|
57298
57326
|
null,
|
|
57299
|
-
_react2.default.createElement(
|
|
57300
|
-
_react2.default.createElement(_reduxForm.Field, {
|
|
57327
|
+
_react2.default.createElement("br", null),
|
|
57328
|
+
_react2.default.createElement(_reduxForm.Field, {
|
|
57329
|
+
name: "batchSize",
|
|
57330
|
+
type: "number",
|
|
57331
|
+
component: inputs.rfInput,
|
|
57301
57332
|
style: { width: 300 },
|
|
57302
|
-
label:
|
|
57333
|
+
label: "Set Batch Size:",
|
|
57334
|
+
placeholder: "Number of Records"
|
|
57335
|
+
})
|
|
57303
57336
|
)
|
|
57304
57337
|
);
|
|
57305
57338
|
}
|
|
@@ -57314,22 +57347,24 @@ module.exports =
|
|
|
57314
57347
|
inputs = _ref3.inputs;
|
|
57315
57348
|
|
|
57316
57349
|
return _react2.default.createElement(
|
|
57317
|
-
|
|
57350
|
+
"div",
|
|
57318
57351
|
null,
|
|
57319
|
-
_react2.default.createElement(
|
|
57320
|
-
_react2.default.createElement(_reduxForm.Field, {
|
|
57321
|
-
|
|
57352
|
+
_react2.default.createElement("br", null),
|
|
57353
|
+
_react2.default.createElement(_reduxForm.Field, {
|
|
57354
|
+
name: "direction",
|
|
57355
|
+
component: inputs.rfRadioGroup,
|
|
57356
|
+
label: "Integration Direction",
|
|
57322
57357
|
onClickOption: clickDirection,
|
|
57323
57358
|
options: {
|
|
57324
|
-
|
|
57325
|
-
|
|
57359
|
+
normal: "Read Data from " + provider,
|
|
57360
|
+
reverse: "Write Data to " + provider
|
|
57326
57361
|
}
|
|
57327
57362
|
})
|
|
57328
57363
|
);
|
|
57329
57364
|
};
|
|
57330
57365
|
|
|
57331
57366
|
exports.default = (0, _reduxForm.reduxForm)({
|
|
57332
|
-
form:
|
|
57367
|
+
form: "wizard",
|
|
57333
57368
|
destroyOnUnmount: false,
|
|
57334
57369
|
forceUnregisterOnUnmount: true,
|
|
57335
57370
|
touchOnBlur: false,
|
|
@@ -57340,7 +57375,7 @@ module.exports =
|
|
|
57340
57375
|
/* 180 */
|
|
57341
57376
|
/***/ function(module, exports, __webpack_require__) {
|
|
57342
57377
|
|
|
57343
|
-
|
|
57378
|
+
"use strict";
|
|
57344
57379
|
|
|
57345
57380
|
Object.defineProperty(exports, "__esModule", {
|
|
57346
57381
|
value: true
|
|
@@ -57381,15 +57416,15 @@ module.exports =
|
|
|
57381
57416
|
touched = _ref$meta.touched,
|
|
57382
57417
|
error = _ref$meta.error;
|
|
57383
57418
|
return touched && error ? _react2.default.createElement(
|
|
57384
|
-
|
|
57419
|
+
"div",
|
|
57385
57420
|
null,
|
|
57386
57421
|
_react2.default.createElement(
|
|
57387
|
-
|
|
57422
|
+
"span",
|
|
57388
57423
|
null,
|
|
57389
57424
|
error
|
|
57390
57425
|
),
|
|
57391
|
-
_react2.default.createElement(
|
|
57392
|
-
_react2.default.createElement(
|
|
57426
|
+
_react2.default.createElement("br", null),
|
|
57427
|
+
_react2.default.createElement("br", null)
|
|
57393
57428
|
) : false;
|
|
57394
57429
|
};
|
|
57395
57430
|
|
|
@@ -57407,7 +57442,7 @@ module.exports =
|
|
|
57407
57442
|
}
|
|
57408
57443
|
|
|
57409
57444
|
_createClass(EnvironmentStep, [{
|
|
57410
|
-
key:
|
|
57445
|
+
key: "seeFields",
|
|
57411
57446
|
value: function seeFields(target) {
|
|
57412
57447
|
var _props = this.props,
|
|
57413
57448
|
tenantId = _props.tenantId,
|
|
@@ -57416,16 +57451,16 @@ module.exports =
|
|
|
57416
57451
|
step = _props.step,
|
|
57417
57452
|
configUrls = _props.configUrls;
|
|
57418
57453
|
|
|
57419
|
-
var endpoint = formValues[step.mode +
|
|
57454
|
+
var endpoint = formValues[step.mode + "Endpoint"];
|
|
57420
57455
|
var x = window.open();
|
|
57421
|
-
x.document.open(
|
|
57456
|
+
x.document.open("", "_blank");
|
|
57422
57457
|
x.document.write((0, _previewTabContent.makeContent)(configUrls.TRANS_API_URL, tenantId, accountId, endpoint, target.endpointSuffix, target.name, step.previewToken));
|
|
57423
|
-
x.document.title =
|
|
57458
|
+
x.document.title = "Preview Data (" + target.name + ")";
|
|
57424
57459
|
x.document.close();
|
|
57425
57460
|
x.focus();
|
|
57426
57461
|
}
|
|
57427
57462
|
}, {
|
|
57428
|
-
key:
|
|
57463
|
+
key: "componentWillMount",
|
|
57429
57464
|
value: function componentWillMount() {
|
|
57430
57465
|
var _props2 = this.props,
|
|
57431
57466
|
step = _props2.step,
|
|
@@ -57439,7 +57474,7 @@ module.exports =
|
|
|
57439
57474
|
}
|
|
57440
57475
|
}
|
|
57441
57476
|
}, {
|
|
57442
|
-
key:
|
|
57477
|
+
key: "check",
|
|
57443
57478
|
value: function check() {
|
|
57444
57479
|
var _props3 = this.props,
|
|
57445
57480
|
actions = _props3.actions,
|
|
@@ -57449,44 +57484,43 @@ module.exports =
|
|
|
57449
57484
|
step = _props3.step,
|
|
57450
57485
|
change = _props3.change;
|
|
57451
57486
|
|
|
57452
|
-
var endpoint = formValues[step.mode +
|
|
57453
|
-
var credentials = formValues[step.mode +
|
|
57487
|
+
var endpoint = formValues[step.mode + "Endpoint"];
|
|
57488
|
+
var credentials = formValues[step.mode + "Credentials"];
|
|
57454
57489
|
//remove trailing slash if exists
|
|
57455
|
-
if (endpoint && endpoint[endpoint.length - 1] ===
|
|
57490
|
+
if (endpoint && endpoint[endpoint.length - 1] === "/" && endpoint.length > 8) {
|
|
57456
57491
|
endpoint = endpoint.slice(0, -1);
|
|
57457
|
-
change(step.mode +
|
|
57492
|
+
change(step.mode + "Endpoint", endpoint);
|
|
57458
57493
|
}
|
|
57459
|
-
|
|
57460
57494
|
if (credentials) {
|
|
57461
|
-
actions.postCredentials(tenantId, accountId, step[step.mode +
|
|
57462
|
-
actions.callGetMetadata(tenantId, accountId, step.mode, step[step.mode +
|
|
57495
|
+
actions.postCredentials(tenantId, accountId, step[step.mode + "Provider"], endpoint, credentials, step.mode).then(function () {
|
|
57496
|
+
actions.callGetMetadata(tenantId, accountId, step.mode, step[step.mode + "Provider"], step.metadataEndpoint, step.metadataApi, endpoint || "_blank", step.credentials, step.isFramework, credentials);
|
|
57463
57497
|
});
|
|
57464
57498
|
} else {
|
|
57465
|
-
actions.callGetMetadata(tenantId, accountId, step.mode, step[step.mode +
|
|
57499
|
+
actions.callGetMetadata(tenantId, accountId, step.mode, step[step.mode + "Provider"], step.metadataEndpoint, step.metadataApi, endpoint || "_blank", step.credentials, step.isFramework);
|
|
57466
57500
|
}
|
|
57467
57501
|
}
|
|
57468
57502
|
}, {
|
|
57469
|
-
key:
|
|
57503
|
+
key: "startOauth",
|
|
57470
57504
|
value: function startOauth() {
|
|
57471
57505
|
var width = 600;
|
|
57472
57506
|
var height = 600;
|
|
57473
57507
|
var left = window.screenX + (window.outerWidth - width) / 2;
|
|
57474
57508
|
var top = window.screenY + (window.outerHeight - height) / 2.5;
|
|
57475
|
-
var popup = window.open(this.props.wizard.oauthUrl,
|
|
57509
|
+
var popup = window.open(this.props.wizard.oauthUrl, "Oauth", "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left);
|
|
57476
57510
|
popup.focus();
|
|
57477
57511
|
}
|
|
57478
57512
|
|
|
57479
57513
|
// turns camel-case cred names into human-readable
|
|
57480
57514
|
|
|
57481
57515
|
}, {
|
|
57482
|
-
key:
|
|
57516
|
+
key: "unCamelize",
|
|
57483
57517
|
value: function unCamelize(text) {
|
|
57484
|
-
return text.replace(/([A-Z])/g,
|
|
57518
|
+
return text.replace(/([A-Z])/g, " $1").replace(/^./, function (str) {
|
|
57485
57519
|
return str.toUpperCase();
|
|
57486
57520
|
});
|
|
57487
57521
|
}
|
|
57488
57522
|
}, {
|
|
57489
|
-
key:
|
|
57523
|
+
key: "render",
|
|
57490
57524
|
value: function render() {
|
|
57491
57525
|
var _this2 = this;
|
|
57492
57526
|
|
|
@@ -57506,113 +57540,127 @@ module.exports =
|
|
|
57506
57540
|
var Button = inputs.Button;
|
|
57507
57541
|
var Spinner = inputs.Spinner;
|
|
57508
57542
|
|
|
57509
|
-
var envCheckResult = wizard[step.mode +
|
|
57543
|
+
var envCheckResult = wizard[step.mode + "CheckResult"];
|
|
57510
57544
|
|
|
57511
|
-
var POSTS = wizard[step.mode +
|
|
57512
|
-
return m.method ===
|
|
57545
|
+
var POSTS = wizard[step.mode + "Metadata"] && wizard[step.mode + "Metadata"].filter(function (m) {
|
|
57546
|
+
return m.method === "POST" || m.method === "PUT";
|
|
57513
57547
|
});
|
|
57514
57548
|
|
|
57515
|
-
var hasEndpoint = formValues[step.mode +
|
|
57549
|
+
var hasEndpoint = formValues[step.mode + "Endpoint"] && formValues[step.mode + "Endpoint"].length > 8;
|
|
57516
57550
|
|
|
57517
|
-
var isOauth = step.credentials && step.credentials.length === 1 && step.credentials[0] ===
|
|
57551
|
+
var isOauth = step.credentials && step.credentials.length === 1 && step.credentials[0] === "Oauth";
|
|
57518
57552
|
|
|
57519
57553
|
return _react2.default.createElement(
|
|
57520
|
-
|
|
57554
|
+
"form",
|
|
57521
57555
|
{ onKeyPress: function onKeyPress(e) {
|
|
57522
57556
|
return e.charCode === 13 ? e.preventDefault() : null;
|
|
57523
57557
|
} },
|
|
57524
57558
|
_react2.default.createElement(
|
|
57525
|
-
|
|
57526
|
-
{ style: { fontSize: 20, display:
|
|
57527
|
-
|
|
57528
|
-
step[step.mode +
|
|
57529
|
-
|
|
57559
|
+
"div",
|
|
57560
|
+
{ style: { fontSize: 20, display: "inline-block" } },
|
|
57561
|
+
"Define ",
|
|
57562
|
+
step[step.mode + "Provider"],
|
|
57563
|
+
" Environment"
|
|
57530
57564
|
),
|
|
57531
|
-
_react2.default.createElement(
|
|
57532
|
-
_react2.default.createElement(
|
|
57565
|
+
_react2.default.createElement("br", null),
|
|
57566
|
+
_react2.default.createElement("br", null),
|
|
57533
57567
|
step.message && _react2.default.createElement(
|
|
57534
|
-
|
|
57568
|
+
"p",
|
|
57535
57569
|
null,
|
|
57536
57570
|
step.message
|
|
57537
57571
|
),
|
|
57538
|
-
_react2.default.createElement(
|
|
57572
|
+
_react2.default.createElement("br", null),
|
|
57539
57573
|
isOauth ? _react2.default.createElement(
|
|
57540
|
-
|
|
57574
|
+
"div",
|
|
57541
57575
|
null,
|
|
57542
57576
|
_react2.default.createElement(
|
|
57543
|
-
|
|
57577
|
+
"div",
|
|
57544
57578
|
null,
|
|
57545
|
-
|
|
57579
|
+
"Are you connecting to a Sandbox or Production Org?"
|
|
57546
57580
|
),
|
|
57547
57581
|
_react2.default.createElement(
|
|
57548
|
-
|
|
57582
|
+
"div",
|
|
57549
57583
|
{ style: { marginTop: 12 } },
|
|
57550
57584
|
_react2.default.createElement(
|
|
57551
57585
|
Button,
|
|
57552
|
-
{
|
|
57586
|
+
{
|
|
57587
|
+
type: "brand",
|
|
57553
57588
|
onClick: function onClick() {
|
|
57554
|
-
return actions.getOauthUrl(tenantId, accountId, step.typeGuid,
|
|
57555
|
-
}
|
|
57556
|
-
|
|
57589
|
+
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, "sandbox", step.mode);
|
|
57590
|
+
}
|
|
57591
|
+
},
|
|
57592
|
+
"Sandbox"
|
|
57557
57593
|
),
|
|
57558
57594
|
_react2.default.createElement(
|
|
57559
57595
|
Button,
|
|
57560
|
-
{
|
|
57596
|
+
{
|
|
57597
|
+
type: "brand",
|
|
57598
|
+
style: { margin: "0 12px" },
|
|
57561
57599
|
onClick: function onClick() {
|
|
57562
|
-
return actions.getOauthUrl(tenantId, accountId, step.typeGuid,
|
|
57563
|
-
}
|
|
57564
|
-
|
|
57600
|
+
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, "production", step.mode);
|
|
57601
|
+
}
|
|
57602
|
+
},
|
|
57603
|
+
"Production"
|
|
57565
57604
|
),
|
|
57566
57605
|
wizard.gettingOauthUrl && _react2.default.createElement(Spinner, null),
|
|
57567
57606
|
(wizard.oauthUrl || true) && _react2.default.createElement(
|
|
57568
|
-
|
|
57607
|
+
"div",
|
|
57569
57608
|
null,
|
|
57570
|
-
_react2.default.createElement(
|
|
57609
|
+
_react2.default.createElement("br", null),
|
|
57571
57610
|
_react2.default.createElement(
|
|
57572
|
-
|
|
57611
|
+
"div",
|
|
57573
57612
|
null,
|
|
57574
57613
|
_react2.default.createElement(
|
|
57575
|
-
|
|
57614
|
+
"strong",
|
|
57576
57615
|
null,
|
|
57577
57616
|
_react2.default.createElement(
|
|
57578
|
-
|
|
57617
|
+
"a",
|
|
57579
57618
|
{ onClick: this.startOauth },
|
|
57580
|
-
|
|
57619
|
+
"Click Here"
|
|
57581
57620
|
)
|
|
57582
57621
|
),
|
|
57583
|
-
|
|
57584
|
-
|
|
57585
|
-
|
|
57622
|
+
" ",
|
|
57623
|
+
"to authorize your ",
|
|
57624
|
+
step[step.mode + "Provider"],
|
|
57625
|
+
" Org."
|
|
57586
57626
|
),
|
|
57587
|
-
_react2.default.createElement(
|
|
57588
|
-
_react2.default.createElement(
|
|
57627
|
+
_react2.default.createElement("br", null),
|
|
57628
|
+
_react2.default.createElement("br", null),
|
|
57589
57629
|
_react2.default.createElement(
|
|
57590
|
-
|
|
57630
|
+
"div",
|
|
57591
57631
|
null,
|
|
57592
57632
|
_react2.default.createElement(
|
|
57593
|
-
|
|
57633
|
+
"span",
|
|
57594
57634
|
null,
|
|
57595
|
-
|
|
57596
|
-
|
|
57597
|
-
|
|
57635
|
+
"After you have completed the",
|
|
57636
|
+
" ",
|
|
57637
|
+
step[step.mode + "Provider"],
|
|
57638
|
+
" authorization process:",
|
|
57639
|
+
" "
|
|
57598
57640
|
),
|
|
57599
57641
|
_react2.default.createElement(
|
|
57600
57642
|
Button,
|
|
57601
57643
|
{
|
|
57602
|
-
icon:
|
|
57603
|
-
iconAlign:
|
|
57644
|
+
icon: "sync",
|
|
57645
|
+
iconAlign: "left",
|
|
57604
57646
|
onClick: function onClick() {
|
|
57605
57647
|
return _this2.check();
|
|
57606
57648
|
},
|
|
57607
|
-
style: {
|
|
57608
|
-
|
|
57649
|
+
style: {
|
|
57650
|
+
marginLeft: 8,
|
|
57651
|
+
marginBottom: 2,
|
|
57652
|
+
height: 30,
|
|
57653
|
+
lineHeight: "10px"
|
|
57654
|
+
}
|
|
57655
|
+
},
|
|
57656
|
+
"Test Connection"
|
|
57609
57657
|
),
|
|
57610
57658
|
_react2.default.createElement(
|
|
57611
|
-
|
|
57612
|
-
{ style: { display:
|
|
57659
|
+
"div",
|
|
57660
|
+
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
57613
57661
|
wizard.envChecking && _react2.default.createElement(Spinner, null),
|
|
57614
57662
|
envCheckResult && _react2.default.createElement(
|
|
57615
|
-
|
|
57663
|
+
"span",
|
|
57616
57664
|
null,
|
|
57617
57665
|
envCheckResult
|
|
57618
57666
|
)
|
|
@@ -57621,37 +57669,48 @@ module.exports =
|
|
|
57621
57669
|
)
|
|
57622
57670
|
)
|
|
57623
57671
|
) : _react2.default.createElement(
|
|
57624
|
-
|
|
57672
|
+
"div",
|
|
57625
57673
|
null,
|
|
57626
57674
|
_react2.default.createElement(
|
|
57627
|
-
|
|
57675
|
+
"div",
|
|
57628
57676
|
{ style: { marginLeft: 16 } },
|
|
57629
57677
|
_react2.default.createElement(
|
|
57630
|
-
|
|
57678
|
+
"div",
|
|
57631
57679
|
null,
|
|
57632
57680
|
_react2.default.createElement(
|
|
57633
|
-
|
|
57634
|
-
{ style: { display:
|
|
57635
|
-
_react2.default.createElement(_reduxForm.Field, {
|
|
57681
|
+
"div",
|
|
57682
|
+
{ style: { display: "inline-block", width: 300 } },
|
|
57683
|
+
_react2.default.createElement(_reduxForm.Field, {
|
|
57684
|
+
name: step.mode + "Endpoint",
|
|
57685
|
+
type: "text",
|
|
57686
|
+
component: inputs.rfInput,
|
|
57687
|
+
label: "Data Source Endpoint"
|
|
57688
|
+
})
|
|
57636
57689
|
),
|
|
57637
57690
|
!step.credentials ? _react2.default.createElement(
|
|
57638
57691
|
Button,
|
|
57639
57692
|
{
|
|
57640
|
-
icon:
|
|
57641
|
-
iconAlign:
|
|
57693
|
+
icon: "sync",
|
|
57694
|
+
iconAlign: "left",
|
|
57642
57695
|
onClick: function onClick() {
|
|
57643
57696
|
return _this2.check();
|
|
57644
57697
|
},
|
|
57645
|
-
style: {
|
|
57646
|
-
|
|
57647
|
-
|
|
57698
|
+
style: {
|
|
57699
|
+
marginLeft: 8,
|
|
57700
|
+
marginBottom: 2,
|
|
57701
|
+
height: 30,
|
|
57702
|
+
lineHeight: "10px"
|
|
57703
|
+
},
|
|
57704
|
+
disabled: !hasEndpoint
|
|
57705
|
+
},
|
|
57706
|
+
"Test Connection"
|
|
57648
57707
|
) : null,
|
|
57649
57708
|
_react2.default.createElement(
|
|
57650
|
-
|
|
57651
|
-
{ style: { display:
|
|
57709
|
+
"div",
|
|
57710
|
+
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
57652
57711
|
wizard.envChecking && _react2.default.createElement(Spinner, null),
|
|
57653
57712
|
envCheckResult && _react2.default.createElement(
|
|
57654
|
-
|
|
57713
|
+
"span",
|
|
57655
57714
|
null,
|
|
57656
57715
|
envCheckResult
|
|
57657
57716
|
)
|
|
@@ -57659,99 +57718,118 @@ module.exports =
|
|
|
57659
57718
|
)
|
|
57660
57719
|
),
|
|
57661
57720
|
step.credentials && _react2.default.createElement(
|
|
57662
|
-
|
|
57721
|
+
"div",
|
|
57663
57722
|
{ style: { marginLeft: 16 } },
|
|
57664
|
-
_react2.default.createElement(
|
|
57723
|
+
_react2.default.createElement("br", null),
|
|
57665
57724
|
_react2.default.createElement(
|
|
57666
|
-
|
|
57725
|
+
"label",
|
|
57667
57726
|
null,
|
|
57668
|
-
step[step.mode +
|
|
57669
|
-
|
|
57727
|
+
step[step.mode + "Provider"],
|
|
57728
|
+
" Credentials"
|
|
57670
57729
|
),
|
|
57671
|
-
_react2.default.createElement(
|
|
57730
|
+
_react2.default.createElement("br", null),
|
|
57672
57731
|
_react2.default.createElement(
|
|
57673
|
-
|
|
57674
|
-
{ style: { display:
|
|
57732
|
+
"div",
|
|
57733
|
+
{ style: { display: "inline-block", marginLeft: 16 } },
|
|
57675
57734
|
step.credentials.map(function (cred, index) {
|
|
57676
57735
|
return _react2.default.createElement(
|
|
57677
|
-
|
|
57736
|
+
"div",
|
|
57678
57737
|
{ key: index, style: { marginTop: 8 } },
|
|
57679
|
-
_react2.default.createElement(_reduxForm.Field, {
|
|
57680
|
-
|
|
57681
|
-
|
|
57738
|
+
_react2.default.createElement(_reduxForm.Field, {
|
|
57739
|
+
name: step.mode + "Credentials." + cred,
|
|
57740
|
+
label: step[step.mode + "Provider"] + " " + _this2.unCamelize(cred),
|
|
57741
|
+
type: "text",
|
|
57742
|
+
component: inputs.rfInput
|
|
57743
|
+
})
|
|
57682
57744
|
);
|
|
57683
57745
|
})
|
|
57684
57746
|
),
|
|
57685
57747
|
_react2.default.createElement(
|
|
57686
57748
|
Button,
|
|
57687
57749
|
{
|
|
57688
|
-
icon:
|
|
57689
|
-
iconAlign:
|
|
57750
|
+
icon: "sync",
|
|
57751
|
+
iconAlign: "left",
|
|
57690
57752
|
onClick: function onClick() {
|
|
57691
57753
|
return _this2.check();
|
|
57692
57754
|
},
|
|
57693
|
-
type:
|
|
57694
|
-
style: {
|
|
57755
|
+
type: "neutral",
|
|
57756
|
+
style: {
|
|
57757
|
+
marginLeft: 8,
|
|
57758
|
+
marginBottom: 2,
|
|
57759
|
+
height: 30,
|
|
57760
|
+
lineHeight: "10px"
|
|
57761
|
+
},
|
|
57695
57762
|
disabled: step.credentials.some(function (c) {
|
|
57696
|
-
var formCreds = formValues[step.mode +
|
|
57697
|
-
return !(formCreds && Object.keys(formCreds).includes(c.split(
|
|
57698
|
-
}) || !hasEndpoint
|
|
57699
|
-
|
|
57763
|
+
var formCreds = formValues[step.mode + "Credentials"];
|
|
57764
|
+
return !(formCreds && Object.keys(formCreds).includes(c.split(" ").join("")));
|
|
57765
|
+
}) || !hasEndpoint
|
|
57766
|
+
},
|
|
57767
|
+
"Test Connection"
|
|
57700
57768
|
)
|
|
57701
57769
|
)
|
|
57702
57770
|
),
|
|
57703
|
-
wizard[step.mode +
|
|
57704
|
-
|
|
57771
|
+
wizard[step.mode + "Metadata"] && step.mode === "source" && step.bidirectional && POSTS && POSTS.length > 0 && _react2.default.createElement(
|
|
57772
|
+
"div",
|
|
57705
57773
|
null,
|
|
57706
|
-
_react2.default.createElement(
|
|
57707
|
-
_react2.default.createElement(_reduxForm.Field, {
|
|
57708
|
-
|
|
57774
|
+
_react2.default.createElement("br", null),
|
|
57775
|
+
_react2.default.createElement(_reduxForm.Field, {
|
|
57776
|
+
name: "direction",
|
|
57777
|
+
component: inputs.rfRadioGroup,
|
|
57778
|
+
label: "Integration Direction",
|
|
57709
57779
|
onClickOption: function onClickOption(v) {
|
|
57710
|
-
change(
|
|
57711
|
-
change(
|
|
57780
|
+
change("resourceGroups", []);
|
|
57781
|
+
change("scenario", null);
|
|
57712
57782
|
if (_this2.props.nav.limitBackToCurrentPage) {
|
|
57713
57783
|
_this2.props.nav.limitBackToCurrentPage();
|
|
57714
57784
|
}
|
|
57715
57785
|
},
|
|
57716
57786
|
options: {
|
|
57717
|
-
|
|
57718
|
-
|
|
57787
|
+
normal: "Read Data from " + step[step.mode + "Provider"],
|
|
57788
|
+
reverse: "Write Data to " + step[step.mode + "Provider"]
|
|
57719
57789
|
}
|
|
57720
57790
|
})
|
|
57721
57791
|
),
|
|
57722
|
-
wizard[step.mode +
|
|
57723
|
-
|
|
57792
|
+
wizard[step.mode + "Metadata"] && formValues.direction === "normal" ? _react2.default.createElement(
|
|
57793
|
+
"div",
|
|
57724
57794
|
null,
|
|
57725
|
-
_react2.default.createElement(
|
|
57795
|
+
_react2.default.createElement("br", null),
|
|
57726
57796
|
_react2.default.createElement(
|
|
57727
|
-
|
|
57728
|
-
{ className:
|
|
57729
|
-
|
|
57730
|
-
step[step.mode +
|
|
57731
|
-
|
|
57732
|
-
step.metadataEndpoint ===
|
|
57733
|
-
|
|
57797
|
+
"span",
|
|
57798
|
+
{ className: "labelz" },
|
|
57799
|
+
"Available ",
|
|
57800
|
+
step[step.mode + "Provider"],
|
|
57801
|
+
" Data Objects",
|
|
57802
|
+
step.metadataEndpoint === "testconnection" && _react2.default.createElement(
|
|
57803
|
+
"span",
|
|
57734
57804
|
null,
|
|
57735
|
-
|
|
57805
|
+
"\xA0(click to preview data):"
|
|
57736
57806
|
)
|
|
57737
57807
|
),
|
|
57738
57808
|
_react2.default.createElement(
|
|
57739
|
-
|
|
57740
|
-
{ style: { listStyle:
|
|
57741
|
-
wizard[step.mode +
|
|
57742
|
-
return m.method !==
|
|
57809
|
+
"ul",
|
|
57810
|
+
{ style: { listStyle: "none", paddingLeft: 5 } },
|
|
57811
|
+
wizard[step.mode + "Metadata"].filter(function (m) {
|
|
57812
|
+
return m.method !== "POST";
|
|
57743
57813
|
}).map(function (rsc, i) {
|
|
57744
57814
|
return _react2.default.createElement(
|
|
57745
|
-
|
|
57746
|
-
{
|
|
57747
|
-
|
|
57748
|
-
|
|
57749
|
-
|
|
57815
|
+
"li",
|
|
57816
|
+
{
|
|
57817
|
+
key: i,
|
|
57818
|
+
style: {
|
|
57819
|
+
paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10
|
|
57820
|
+
}
|
|
57821
|
+
},
|
|
57822
|
+
step.metadataEndpoint === "testconnection" ? _react2.default.createElement(
|
|
57823
|
+
"a",
|
|
57824
|
+
{
|
|
57825
|
+
onClick: function onClick() {
|
|
57750
57826
|
return _this2.seeFields(rsc);
|
|
57751
|
-
},
|
|
57827
|
+
},
|
|
57828
|
+
style: { textDecoration: "none", cursor: "pointer" }
|
|
57829
|
+
},
|
|
57752
57830
|
rsc.name
|
|
57753
57831
|
) : _react2.default.createElement(
|
|
57754
|
-
|
|
57832
|
+
"div",
|
|
57755
57833
|
null,
|
|
57756
57834
|
rsc.name
|
|
57757
57835
|
)
|
|
@@ -57759,30 +57837,37 @@ module.exports =
|
|
|
57759
57837
|
})
|
|
57760
57838
|
)
|
|
57761
57839
|
) : null,
|
|
57762
|
-
_react2.default.createElement(
|
|
57763
|
-
wizard[step.mode +
|
|
57764
|
-
|
|
57840
|
+
_react2.default.createElement("br", null),
|
|
57841
|
+
wizard[step.mode + "Metadata"] && step.mode === "source" && POSTS && POSTS.length > 0 && _react2.default.createElement(
|
|
57842
|
+
"div",
|
|
57765
57843
|
null,
|
|
57766
|
-
formValues.direction ===
|
|
57767
|
-
|
|
57844
|
+
formValues.direction === "reverse" && _react2.default.createElement(
|
|
57845
|
+
"div",
|
|
57768
57846
|
null,
|
|
57769
57847
|
_react2.default.createElement(
|
|
57770
|
-
|
|
57771
|
-
{ className:
|
|
57772
|
-
|
|
57773
|
-
step[step.mode +
|
|
57774
|
-
|
|
57848
|
+
"span",
|
|
57849
|
+
{ className: "labelz" },
|
|
57850
|
+
"Available ",
|
|
57851
|
+
step[step.mode + "Provider"],
|
|
57852
|
+
" Data Target Objects:"
|
|
57775
57853
|
),
|
|
57776
57854
|
_react2.default.createElement(
|
|
57777
|
-
|
|
57778
|
-
{ style: { listStyle:
|
|
57855
|
+
"ul",
|
|
57856
|
+
{ style: { listStyle: "none", paddingLeft: 5 } },
|
|
57779
57857
|
POSTS.map(function (rsc, i) {
|
|
57780
57858
|
return _react2.default.createElement(
|
|
57781
|
-
|
|
57782
|
-
{
|
|
57859
|
+
"li",
|
|
57860
|
+
{
|
|
57861
|
+
key: i,
|
|
57862
|
+
style: {
|
|
57863
|
+
paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10
|
|
57864
|
+
}
|
|
57865
|
+
},
|
|
57783
57866
|
_react2.default.createElement(
|
|
57784
|
-
|
|
57785
|
-
{
|
|
57867
|
+
"a",
|
|
57868
|
+
{
|
|
57869
|
+
style: { textDecoration: "none", cursor: "default" }
|
|
57870
|
+
},
|
|
57786
57871
|
rsc.name
|
|
57787
57872
|
)
|
|
57788
57873
|
);
|
|
@@ -57790,11 +57875,18 @@ module.exports =
|
|
|
57790
57875
|
)
|
|
57791
57876
|
)
|
|
57792
57877
|
),
|
|
57793
|
-
_react2.default.createElement(
|
|
57794
|
-
_react2.default.createElement(_reduxForm.Field, { name: step.mode +
|
|
57795
|
-
_react2.default.createElement(_navButtons2.default, {
|
|
57796
|
-
|
|
57797
|
-
|
|
57878
|
+
_react2.default.createElement("br", null),
|
|
57879
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + "Environment", component: renderError }),
|
|
57880
|
+
_react2.default.createElement(_navButtons2.default, {
|
|
57881
|
+
nextDisabled: !wizard[step.mode + "Metadata"],
|
|
57882
|
+
handleSubmit: handleSubmit,
|
|
57883
|
+
nav: nav,
|
|
57884
|
+
reset: reset,
|
|
57885
|
+
inputs: inputs,
|
|
57886
|
+
isAdmin: this.props.isAdmin
|
|
57887
|
+
}),
|
|
57888
|
+
_react2.default.createElement("br", null),
|
|
57889
|
+
_react2.default.createElement("br", null)
|
|
57798
57890
|
);
|
|
57799
57891
|
}
|
|
57800
57892
|
}]);
|
|
@@ -57803,7 +57895,7 @@ module.exports =
|
|
|
57803
57895
|
}(_react.Component);
|
|
57804
57896
|
|
|
57805
57897
|
exports.default = (0, _reduxForm.reduxForm)({
|
|
57806
|
-
form:
|
|
57898
|
+
form: "wizard",
|
|
57807
57899
|
destroyOnUnmount: false,
|
|
57808
57900
|
forceUnregisterOnUnmount: true,
|
|
57809
57901
|
touchOnBlur: false,
|