@lingk/sync 1.1.10 → 1.1.11
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 +80 -49
- 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 Y, 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,8 +55466,7 @@ module.exports =
|
|
|
55432
55466
|
});
|
|
55433
55467
|
})();
|
|
55434
55468
|
}
|
|
55435
|
-
|
|
55436
|
-
var isFlat = metadata && metadata[0] && metadata[0].providerType && metadata[0].providerType.toLowerCase() === 'flatfile';
|
|
55469
|
+
var isFlat = metadata && metadata.providerType && metadata.providerType.toLowerCase() === 'flatfile';
|
|
55437
55470
|
if (isFlat) {
|
|
55438
55471
|
change(mode + 'FileSchema', metadata);
|
|
55439
55472
|
}
|
|
@@ -55601,7 +55634,6 @@ module.exports =
|
|
|
55601
55634
|
var modes = ['source', 'destination'];
|
|
55602
55635
|
var selectedProvider = this.state.selectedProvider;
|
|
55603
55636
|
|
|
55604
|
-
|
|
55605
55637
|
var notAllMetadata = !(wizard['sourceMetadata'] && wizard['sourceMetadata'].length > 0) || !(wizard['destinationMetadata'] && wizard['destinationMetadata'].length > 0);
|
|
55606
55638
|
|
|
55607
55639
|
return _react2.default.createElement(
|
|
@@ -55710,7 +55742,7 @@ module.exports =
|
|
|
55710
55742
|
return _this5.generateNewAdapterSecret(m);
|
|
55711
55743
|
},
|
|
55712
55744
|
seeFields: _this5.seeFields.bind(_this5),
|
|
55713
|
-
fileSchema:
|
|
55745
|
+
fileSchema: wizard[m + 'Metadata'],
|
|
55714
55746
|
check: function check(actualCreds, extraQuery) {
|
|
55715
55747
|
_this5.check(m, null, actualCreds, null, extraQuery);
|
|
55716
55748
|
}, change: change,
|
|
@@ -55770,7 +55802,6 @@ module.exports =
|
|
|
55770
55802
|
|
|
55771
55803
|
var Modal = inputs.Modal;
|
|
55772
55804
|
var config = step[mode + 'Config'];
|
|
55773
|
-
console.log(wizard[mode + 'Metadata']);
|
|
55774
55805
|
var POSTS = wizard[mode + 'Metadata'] && wizard[mode + 'Metadata'].filter(function (m) {
|
|
55775
55806
|
return m.method === 'POST' || m.method === 'PUT';
|
|
55776
55807
|
});
|
|
@@ -56538,7 +56569,7 @@ module.exports =
|
|
|
56538
56569
|
var providerType = step[step.mode + 'Provider'];
|
|
56539
56570
|
var fs = formValues[step.mode + 'FileSchema'];
|
|
56540
56571
|
var fileSchema = Object.assign({}, fs);
|
|
56541
|
-
fileSchema.
|
|
56572
|
+
fileSchema.splice(index, 1);
|
|
56542
56573
|
change(step.mode + 'FileSchema', fileSchema);
|
|
56543
56574
|
actions.removeFileResourceFromMetadata(step.mode, file, providerType);
|
|
56544
56575
|
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
@@ -56571,13 +56602,13 @@ module.exports =
|
|
|
56571
56602
|
|
|
56572
56603
|
var fileSchema = formValues[step.mode + 'FileSchema'];
|
|
56573
56604
|
var filledOut = true;
|
|
56574
|
-
if (fileSchema
|
|
56575
|
-
fileSchema.
|
|
56605
|
+
if (fileSchema) {
|
|
56606
|
+
fileSchema.forEach(function (f) {
|
|
56576
56607
|
if (!f.delimiter || !f.filePattern) {
|
|
56577
56608
|
filledOut = false;
|
|
56578
56609
|
}
|
|
56579
56610
|
});
|
|
56580
|
-
if (fileSchema.
|
|
56611
|
+
if (fileSchema.length < 1) {
|
|
56581
56612
|
filledOut = false;
|
|
56582
56613
|
}
|
|
56583
56614
|
}
|
|
@@ -56603,10 +56634,10 @@ module.exports =
|
|
|
56603
56634
|
_react2.default.createElement(
|
|
56604
56635
|
'div',
|
|
56605
56636
|
{ className: 'labelz', style: { fontSize: '14px', marginBottom: 5 } },
|
|
56606
|
-
fileSchema && fileSchema.
|
|
56637
|
+
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
56638
|
),
|
|
56608
|
-
fileSchema && fileSchema.
|
|
56609
|
-
files: fileSchema
|
|
56639
|
+
fileSchema && fileSchema.length > 0 && _react2.default.createElement(FileTable, {
|
|
56640
|
+
files: fileSchema, inputs: inputs, mode: step.mode,
|
|
56610
56641
|
removeFile: this.removeFile
|
|
56611
56642
|
}),
|
|
56612
56643
|
_react2.default.createElement('br', null),
|
|
@@ -59300,7 +59331,7 @@ module.exports =
|
|
|
59300
59331
|
var destinationFileSchema = {};
|
|
59301
59332
|
if (formValues['sourceFileSchema'] && wizardConfig.source.type.toLowerCase() === 'sftp') {
|
|
59302
59333
|
sourceFileSchema = {
|
|
59303
|
-
resources: formValues['sourceFileSchema']
|
|
59334
|
+
resources: formValues['sourceFileSchema'],
|
|
59304
59335
|
name: title + ' Schema',
|
|
59305
59336
|
providerType: wizardConfig.source.type,
|
|
59306
59337
|
isSource: true
|
|
@@ -59308,7 +59339,7 @@ module.exports =
|
|
|
59308
59339
|
}
|
|
59309
59340
|
if (formValues['destinationFileSchema'] && wizardConfig.destination.type.toLowerCase() === 'sftp') {
|
|
59310
59341
|
destinationFileSchema = {
|
|
59311
|
-
resources: formValues['destinationFileSchema']
|
|
59342
|
+
resources: formValues['destinationFileSchema'],
|
|
59312
59343
|
name: title + ' Schema',
|
|
59313
59344
|
providerType: wizardConfig.destination.type,
|
|
59314
59345
|
isSource: false
|