@lingk/sync 2.0.12 → 2.0.14
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 +60 -18
- 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 +60 -18
- 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
|
@@ -5019,10 +5019,7 @@ module.exports =
|
|
|
5019
5019
|
style: {
|
|
5020
5020
|
height: 30,
|
|
5021
5021
|
lineHeight: "10px",
|
|
5022
|
-
marginTop:
|
|
5023
|
-
position: "absolute",
|
|
5024
|
-
top: 130,
|
|
5025
|
-
left: 850
|
|
5022
|
+
marginTop: 15
|
|
5026
5023
|
},
|
|
5027
5024
|
onClick: this.startOauth,
|
|
5028
5025
|
disabled: credsDisabledCheck
|
|
@@ -6187,6 +6184,18 @@ module.exports =
|
|
|
6187
6184
|
|
|
6188
6185
|
var _this = _possibleConstructorReturn(this, (EnvSection.__proto__ || Object.getPrototypeOf(EnvSection)).call(this));
|
|
6189
6186
|
|
|
6187
|
+
_this.onDefaultConnectionChange = function () {
|
|
6188
|
+
_this.setState({
|
|
6189
|
+
defaultConnection: !_this.state.defaultConnection
|
|
6190
|
+
});
|
|
6191
|
+
};
|
|
6192
|
+
|
|
6193
|
+
_this.onAPIAccessChange = function () {
|
|
6194
|
+
_this.setState({
|
|
6195
|
+
APIAccess: !_this.state.APIAccess
|
|
6196
|
+
});
|
|
6197
|
+
};
|
|
6198
|
+
|
|
6190
6199
|
_this.credKeyPress = function (e) {
|
|
6191
6200
|
var _this$props = _this.props,
|
|
6192
6201
|
checking = _this$props.checking,
|
|
@@ -6215,7 +6224,8 @@ module.exports =
|
|
|
6215
6224
|
_this.state = {
|
|
6216
6225
|
actualCreds: {},
|
|
6217
6226
|
showPass: false,
|
|
6218
|
-
APIAccess: false
|
|
6227
|
+
APIAccess: false,
|
|
6228
|
+
defaultConnection: false
|
|
6219
6229
|
};
|
|
6220
6230
|
return _this;
|
|
6221
6231
|
}
|
|
@@ -6225,7 +6235,15 @@ module.exports =
|
|
|
6225
6235
|
value: function componentWillMount() {
|
|
6226
6236
|
var _props = this.props,
|
|
6227
6237
|
creds = _props.creds,
|
|
6228
|
-
config = _props.config
|
|
6238
|
+
config = _props.config,
|
|
6239
|
+
connectionInfo = _props.connectionInfo;
|
|
6240
|
+
|
|
6241
|
+
if (connectionInfo) {
|
|
6242
|
+
this.setState({
|
|
6243
|
+
defaultConnection: connectionInfo.defaultConnection,
|
|
6244
|
+
APIAccess: connectionInfo.ApiAccessible
|
|
6245
|
+
});
|
|
6246
|
+
}
|
|
6229
6247
|
|
|
6230
6248
|
if (config.type === "SFTP") {
|
|
6231
6249
|
this.setState({
|
|
@@ -6281,7 +6299,11 @@ module.exports =
|
|
|
6281
6299
|
}, {
|
|
6282
6300
|
key: "saveCreds",
|
|
6283
6301
|
value: function saveCreds() {
|
|
6284
|
-
this.
|
|
6302
|
+
var _state = this.state,
|
|
6303
|
+
APIAccess = _state.APIAccess,
|
|
6304
|
+
defaultConnection = _state.defaultConnection;
|
|
6305
|
+
|
|
6306
|
+
this.props.postCredentials(this.state.actualCreds, APIAccess, defaultConnection);
|
|
6285
6307
|
}
|
|
6286
6308
|
}, {
|
|
6287
6309
|
key: "render",
|
|
@@ -6297,7 +6319,6 @@ module.exports =
|
|
|
6297
6319
|
checkOauthCreds = _props2.checkOauthCreds,
|
|
6298
6320
|
getDocuSignOauthUrl = _props2.getDocuSignOauthUrl,
|
|
6299
6321
|
fileSchema = _props2.fileSchema,
|
|
6300
|
-
postCredentials = _props2.postCredentials,
|
|
6301
6322
|
getOauthUrl = _props2.getOauthUrl,
|
|
6302
6323
|
generateNewAdapterSecret = _props2.generateNewAdapterSecret,
|
|
6303
6324
|
setCsvFields = _props2.setCsvFields,
|
|
@@ -6312,7 +6333,6 @@ module.exports =
|
|
|
6312
6333
|
deleteFlatFile = _props2.deleteFlatFile,
|
|
6313
6334
|
gencerts = _props2.gencerts,
|
|
6314
6335
|
downloadcerts = _props2.downloadcerts,
|
|
6315
|
-
onAPIAccessChange = _props2.onAPIAccessChange,
|
|
6316
6336
|
getOauthCreds = _props2.getOauthCreds;
|
|
6317
6337
|
|
|
6318
6338
|
var Button = inputs.Button;
|
|
@@ -6328,10 +6348,12 @@ module.exports =
|
|
|
6328
6348
|
var isBVA = config.type === "BrightSpaceValenceApi";
|
|
6329
6349
|
|
|
6330
6350
|
var isGoogle = config.type.startsWith("Google");
|
|
6351
|
+
|
|
6331
6352
|
var isAdapter = config && (config.metadataEndpoint === "testconnection" || config.metadataEndpoint === "adaptermetadata");
|
|
6353
|
+
|
|
6332
6354
|
var isWebSocket = config.type === "LingkWebSocket";
|
|
6333
6355
|
var isAWS = config.type.startsWith("AWS");
|
|
6334
|
-
var isMSSQL = config.type.
|
|
6356
|
+
var isMSSQL = config.type.startsWith("MSSQL");
|
|
6335
6357
|
var isSFTP = config.type === "SFTP";
|
|
6336
6358
|
|
|
6337
6359
|
var isDocuSign = config.type === "DocuSign";
|
|
@@ -6634,8 +6656,11 @@ module.exports =
|
|
|
6634
6656
|
),
|
|
6635
6657
|
_react2.default.createElement("br", null),
|
|
6636
6658
|
config.type != "LocalFile" && _react2.default.createElement(APIAcessHandle, {
|
|
6637
|
-
APIAccess:
|
|
6638
|
-
onChangeHandle: onAPIAccessChange
|
|
6659
|
+
APIAccess: this.state.APIAccess,
|
|
6660
|
+
onChangeHandle: this.onAPIAccessChange,
|
|
6661
|
+
defaultConnection: this.state.defaultConnection,
|
|
6662
|
+
onDefaultConnectionChange: this.onDefaultConnectionChange,
|
|
6663
|
+
disableMarkConnection: wizard.disableMarkConnection
|
|
6639
6664
|
})
|
|
6640
6665
|
);
|
|
6641
6666
|
}
|
|
@@ -6707,12 +6732,30 @@ module.exports =
|
|
|
6707
6732
|
|
|
6708
6733
|
var APIAcessHandle = function APIAcessHandle(_ref3) {
|
|
6709
6734
|
var APIAccess = _ref3.APIAccess,
|
|
6710
|
-
onChangeHandle = _ref3.onChangeHandle
|
|
6735
|
+
onChangeHandle = _ref3.onChangeHandle,
|
|
6736
|
+
defaultConnection = _ref3.defaultConnection,
|
|
6737
|
+
onDefaultConnectionChange = _ref3.onDefaultConnectionChange,
|
|
6738
|
+
disableMarkConnection = _ref3.disableMarkConnection;
|
|
6711
6739
|
|
|
6712
6740
|
return _react2.default.createElement(
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6741
|
+
"div",
|
|
6742
|
+
null,
|
|
6743
|
+
_react2.default.createElement(
|
|
6744
|
+
_reactBootstrap.Checkbox,
|
|
6745
|
+
{
|
|
6746
|
+
checked: defaultConnection,
|
|
6747
|
+
onChange: onDefaultConnectionChange,
|
|
6748
|
+
disabled: disableMarkConnection
|
|
6749
|
+
},
|
|
6750
|
+
"Make this my default connection",
|
|
6751
|
+
" "
|
|
6752
|
+
),
|
|
6753
|
+
_react2.default.createElement(
|
|
6754
|
+
_reactBootstrap.Checkbox,
|
|
6755
|
+
{ checked: APIAccess, onChange: onChangeHandle },
|
|
6756
|
+
"Make this available via API",
|
|
6757
|
+
" "
|
|
6758
|
+
)
|
|
6716
6759
|
);
|
|
6717
6760
|
};
|
|
6718
6761
|
|
|
@@ -6800,7 +6843,6 @@ module.exports =
|
|
|
6800
6843
|
isWiz = _props.isWiz,
|
|
6801
6844
|
change = _props.change;
|
|
6802
6845
|
|
|
6803
|
-
console.log("OAUTH Creds", creds);
|
|
6804
6846
|
var Spinner = inputs.Spinner;
|
|
6805
6847
|
var Button = inputs.Button;
|
|
6806
6848
|
var userName = creds && creds.userName;
|
|
@@ -6867,7 +6909,7 @@ module.exports =
|
|
|
6867
6909
|
{
|
|
6868
6910
|
type: "brand",
|
|
6869
6911
|
onClick: function onClick() {
|
|
6870
|
-
return onCheck(creds, formValues.includeSystemResources ? "?all=true" : "");
|
|
6912
|
+
return onCheck(creds, formValues && formValues.includeSystemResources ? "?all=true" : "");
|
|
6871
6913
|
},
|
|
6872
6914
|
style: Object.assign({ marginLeft: 8 }, btnStyle)
|
|
6873
6915
|
},
|