@lingk/sync 1.1.10 → 1.1.12
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 +68 -34
- 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 +2 -2
- 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 +79 -53
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js.map +1 -1
- package/build/metadataFunctions.js +1 -10
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js +1 -10
- package/build/reducer.js.map +1 -1
- package/build/saveData.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -84,7 +84,12 @@ module.exports =
|
|
|
84
84
|
module.exports = require("redux-form");
|
|
85
85
|
|
|
86
86
|
/***/ },
|
|
87
|
-
/* 3
|
|
87
|
+
/* 3 */
|
|
88
|
+
/***/ function(module, exports) {
|
|
89
|
+
|
|
90
|
+
module.exports = require("react-bootstrap");
|
|
91
|
+
|
|
92
|
+
/***/ },
|
|
88
93
|
/* 4 */,
|
|
89
94
|
/* 5 */
|
|
90
95
|
/***/ function(module, exports, __webpack_require__) {
|
|
@@ -5521,6 +5526,8 @@ module.exports =
|
|
|
5521
5526
|
|
|
5522
5527
|
var _moment2 = _interopRequireDefault(_moment);
|
|
5523
5528
|
|
|
5529
|
+
var _reactBootstrap = __webpack_require__(3);
|
|
5530
|
+
|
|
5524
5531
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
5525
5532
|
|
|
5526
5533
|
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
|
@@ -5744,10 +5751,10 @@ module.exports =
|
|
|
5744
5751
|
fileSchema = _props.fileSchema,
|
|
5745
5752
|
inputs = _props.inputs;
|
|
5746
5753
|
|
|
5747
|
-
var fileSchemas = fileSchema;
|
|
5748
5754
|
var Button = inputs.Button;
|
|
5749
5755
|
var Spinner = inputs.Spinner;
|
|
5750
5756
|
var hasFile = meta && meta.length > 0;
|
|
5757
|
+
|
|
5751
5758
|
return _react2.default.createElement(
|
|
5752
5759
|
'div',
|
|
5753
5760
|
null,
|
|
@@ -5819,60 +5826,87 @@ module.exports =
|
|
|
5819
5826
|
})
|
|
5820
5827
|
)
|
|
5821
5828
|
),
|
|
5822
|
-
|
|
5829
|
+
fileSchema && fileSchema.length > 0 && _react2.default.createElement(
|
|
5823
5830
|
'div',
|
|
5824
5831
|
{ style: {
|
|
5825
5832
|
display: 'inline-block', marginTop: 13, verticalAlign: 'top'
|
|
5826
5833
|
} },
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5834
|
+
_react2.default.createElement(
|
|
5835
|
+
'div',
|
|
5836
|
+
{ style: { marginBottom: 4 } },
|
|
5837
|
+
_react2.default.createElement(
|
|
5838
|
+
'strong',
|
|
5839
|
+
null,
|
|
5840
|
+
fileSchema.length + ' file' + (fileSchema.length === 1 ? '' : 's')
|
|
5841
|
+
),
|
|
5842
|
+
_react2.default.createElement(
|
|
5843
|
+
'strong',
|
|
5844
|
+
null,
|
|
5845
|
+
' uploaded'
|
|
5846
|
+
)
|
|
5847
|
+
),
|
|
5848
|
+
_react2.default.createElement(
|
|
5849
|
+
_reactBootstrap.Table,
|
|
5850
|
+
{ bordered: true, condensed: true },
|
|
5851
|
+
_react2.default.createElement(
|
|
5852
|
+
'thead',
|
|
5853
|
+
null,
|
|
5832
5854
|
_react2.default.createElement(
|
|
5833
|
-
'
|
|
5834
|
-
|
|
5855
|
+
'tr',
|
|
5856
|
+
null,
|
|
5835
5857
|
_react2.default.createElement(
|
|
5836
|
-
'
|
|
5858
|
+
'th',
|
|
5837
5859
|
null,
|
|
5838
|
-
|
|
5860
|
+
'Name'
|
|
5839
5861
|
),
|
|
5840
5862
|
_react2.default.createElement(
|
|
5841
|
-
'
|
|
5863
|
+
'th',
|
|
5842
5864
|
null,
|
|
5843
|
-
'
|
|
5865
|
+
'Size'
|
|
5844
5866
|
),
|
|
5845
5867
|
_react2.default.createElement(
|
|
5846
|
-
'
|
|
5868
|
+
'th',
|
|
5847
5869
|
null,
|
|
5848
|
-
|
|
5870
|
+
'Date Uploaded'
|
|
5849
5871
|
)
|
|
5850
|
-
)
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5872
|
+
)
|
|
5873
|
+
),
|
|
5874
|
+
_react2.default.createElement(
|
|
5875
|
+
'tbody',
|
|
5876
|
+
null,
|
|
5877
|
+
fileSchema.map(function (file, i) {
|
|
5878
|
+
return _react2.default.createElement(
|
|
5879
|
+
'tr',
|
|
5880
|
+
{ key: i },
|
|
5881
|
+
_react2.default.createElement(
|
|
5882
|
+
'td',
|
|
5883
|
+
null,
|
|
5858
5884
|
_react2.default.createElement(
|
|
5859
5885
|
'a',
|
|
5860
5886
|
{ onClick: function onClick(e) {
|
|
5861
|
-
return _this2.downloadFile(e,
|
|
5887
|
+
return _this2.downloadFile(e, file);
|
|
5862
5888
|
} },
|
|
5863
|
-
|
|
5864
|
-
)
|
|
5889
|
+
file.name
|
|
5890
|
+
)
|
|
5891
|
+
),
|
|
5892
|
+
_react2.default.createElement(
|
|
5893
|
+
'td',
|
|
5894
|
+
null,
|
|
5865
5895
|
_react2.default.createElement(
|
|
5866
5896
|
'span',
|
|
5867
5897
|
null,
|
|
5868
|
-
|
|
5869
|
-
formatBytes(f.byteSize)
|
|
5898
|
+
formatBytes(file.byteSize)
|
|
5870
5899
|
)
|
|
5871
|
-
)
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5900
|
+
),
|
|
5901
|
+
_react2.default.createElement(
|
|
5902
|
+
'td',
|
|
5903
|
+
null,
|
|
5904
|
+
(0, _moment2.default)(file.uploadedTime).format('MMM Do, h:mm a')
|
|
5905
|
+
)
|
|
5906
|
+
);
|
|
5907
|
+
})
|
|
5908
|
+
)
|
|
5909
|
+
)
|
|
5876
5910
|
)
|
|
5877
5911
|
),
|
|
5878
5912
|
' '
|
|
@@ -55419,7 +55453,7 @@ module.exports =
|
|
|
55419
55453
|
savedFileSchema = [].concat(_toConsumableArray(formValues[mode + 'FileSchema']));
|
|
55420
55454
|
}
|
|
55421
55455
|
change(mode + 'FileSchema', {
|
|
55422
|
-
resources: metadata.
|
|
55456
|
+
resources: metadata.map(function (r) {
|
|
55423
55457
|
var existing = savedFileSchema.find(function (rsc) {
|
|
55424
55458
|
return r.name === rsc.name && r.type === rsc.type;
|
|
55425
55459
|
});
|
|
@@ -55432,12 +55466,6 @@ module.exports =
|
|
|
55432
55466
|
});
|
|
55433
55467
|
})();
|
|
55434
55468
|
}
|
|
55435
|
-
|
|
55436
|
-
var isFlat = metadata && metadata[0] && metadata[0].providerType && metadata[0].providerType.toLowerCase() === 'flatfile';
|
|
55437
|
-
if (isFlat) {
|
|
55438
|
-
change(mode + 'FileSchema', metadata);
|
|
55439
|
-
}
|
|
55440
|
-
//change(`${mode}Credentials`, credentials)
|
|
55441
55469
|
});
|
|
55442
55470
|
}
|
|
55443
55471
|
}, {
|
|
@@ -55601,7 +55629,6 @@ module.exports =
|
|
|
55601
55629
|
var modes = ['source', 'destination'];
|
|
55602
55630
|
var selectedProvider = this.state.selectedProvider;
|
|
55603
55631
|
|
|
55604
|
-
|
|
55605
55632
|
var notAllMetadata = !(wizard['sourceMetadata'] && wizard['sourceMetadata'].length > 0) || !(wizard['destinationMetadata'] && wizard['destinationMetadata'].length > 0);
|
|
55606
55633
|
|
|
55607
55634
|
return _react2.default.createElement(
|
|
@@ -55710,7 +55737,7 @@ module.exports =
|
|
|
55710
55737
|
return _this5.generateNewAdapterSecret(m);
|
|
55711
55738
|
},
|
|
55712
55739
|
seeFields: _this5.seeFields.bind(_this5),
|
|
55713
|
-
fileSchema:
|
|
55740
|
+
fileSchema: wizard[m + 'Metadata'],
|
|
55714
55741
|
check: function check(actualCreds, extraQuery) {
|
|
55715
55742
|
_this5.check(m, null, actualCreds, null, extraQuery);
|
|
55716
55743
|
}, change: change,
|
|
@@ -55770,7 +55797,6 @@ module.exports =
|
|
|
55770
55797
|
|
|
55771
55798
|
var Modal = inputs.Modal;
|
|
55772
55799
|
var config = step[mode + 'Config'];
|
|
55773
|
-
console.log(wizard[mode + 'Metadata']);
|
|
55774
55800
|
var POSTS = wizard[mode + 'Metadata'] && wizard[mode + 'Metadata'].filter(function (m) {
|
|
55775
55801
|
return m.method === 'POST' || m.method === 'PUT';
|
|
55776
55802
|
});
|
|
@@ -56538,7 +56564,7 @@ module.exports =
|
|
|
56538
56564
|
var providerType = step[step.mode + 'Provider'];
|
|
56539
56565
|
var fs = formValues[step.mode + 'FileSchema'];
|
|
56540
56566
|
var fileSchema = Object.assign({}, fs);
|
|
56541
|
-
fileSchema.
|
|
56567
|
+
fileSchema.splice(index, 1);
|
|
56542
56568
|
change(step.mode + 'FileSchema', fileSchema);
|
|
56543
56569
|
actions.removeFileResourceFromMetadata(step.mode, file, providerType);
|
|
56544
56570
|
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
@@ -56571,13 +56597,13 @@ module.exports =
|
|
|
56571
56597
|
|
|
56572
56598
|
var fileSchema = formValues[step.mode + 'FileSchema'];
|
|
56573
56599
|
var filledOut = true;
|
|
56574
|
-
if (fileSchema
|
|
56575
|
-
fileSchema.
|
|
56600
|
+
if (fileSchema) {
|
|
56601
|
+
fileSchema.forEach(function (f) {
|
|
56576
56602
|
if (!f.delimiter || !f.filePattern) {
|
|
56577
56603
|
filledOut = false;
|
|
56578
56604
|
}
|
|
56579
56605
|
});
|
|
56580
|
-
if (fileSchema.
|
|
56606
|
+
if (fileSchema.length < 1) {
|
|
56581
56607
|
filledOut = false;
|
|
56582
56608
|
}
|
|
56583
56609
|
}
|
|
@@ -56603,10 +56629,10 @@ module.exports =
|
|
|
56603
56629
|
_react2.default.createElement(
|
|
56604
56630
|
'div',
|
|
56605
56631
|
{ className: 'labelz', style: { fontSize: '14px', marginBottom: 5 } },
|
|
56606
|
-
fileSchema && fileSchema.
|
|
56632
|
+
fileSchema && fileSchema.length > 0 ? 'Available Files:' : 'No available files. Please upload files to your SFTP server and click Check Connection in the Environments step.'
|
|
56607
56633
|
),
|
|
56608
|
-
fileSchema && fileSchema.
|
|
56609
|
-
files: fileSchema
|
|
56634
|
+
fileSchema && fileSchema.length > 0 && _react2.default.createElement(FileTable, {
|
|
56635
|
+
files: fileSchema, inputs: inputs, mode: step.mode,
|
|
56610
56636
|
removeFile: this.removeFile
|
|
56611
56637
|
}),
|
|
56612
56638
|
_react2.default.createElement('br', null),
|
|
@@ -59300,7 +59326,7 @@ module.exports =
|
|
|
59300
59326
|
var destinationFileSchema = {};
|
|
59301
59327
|
if (formValues['sourceFileSchema'] && wizardConfig.source.type.toLowerCase() === 'sftp') {
|
|
59302
59328
|
sourceFileSchema = {
|
|
59303
|
-
resources: formValues['sourceFileSchema']
|
|
59329
|
+
resources: formValues['sourceFileSchema'],
|
|
59304
59330
|
name: title + ' Schema',
|
|
59305
59331
|
providerType: wizardConfig.source.type,
|
|
59306
59332
|
isSource: true
|
|
@@ -59308,7 +59334,7 @@ module.exports =
|
|
|
59308
59334
|
}
|
|
59309
59335
|
if (formValues['destinationFileSchema'] && wizardConfig.destination.type.toLowerCase() === 'sftp') {
|
|
59310
59336
|
destinationFileSchema = {
|
|
59311
|
-
resources: formValues['destinationFileSchema']
|
|
59337
|
+
resources: formValues['destinationFileSchema'],
|
|
59312
59338
|
name: title + ' Schema',
|
|
59313
59339
|
providerType: wizardConfig.destination.type,
|
|
59314
59340
|
isSource: false
|