@lingk/sync 1.1.9 → 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 +70 -35
- 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 +82 -50
- 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,
|
|
@@ -5771,7 +5778,8 @@ module.exports =
|
|
|
5771
5778
|
),
|
|
5772
5779
|
_react2.default.createElement(
|
|
5773
5780
|
'div',
|
|
5774
|
-
{ style: { marginLeft: 30, display: 'inline-block', verticalAlign: 'top'
|
|
5781
|
+
{ style: { marginLeft: 30, display: 'inline-block', verticalAlign: 'top',
|
|
5782
|
+
maxWidth: '60%' } },
|
|
5775
5783
|
hasFile && _react2.default.createElement(
|
|
5776
5784
|
'aside',
|
|
5777
5785
|
null,
|
|
@@ -5818,60 +5826,87 @@ module.exports =
|
|
|
5818
5826
|
})
|
|
5819
5827
|
)
|
|
5820
5828
|
),
|
|
5821
|
-
|
|
5829
|
+
fileSchema && fileSchema.length > 0 && _react2.default.createElement(
|
|
5822
5830
|
'div',
|
|
5823
5831
|
{ style: {
|
|
5824
5832
|
display: 'inline-block', marginTop: 13, verticalAlign: 'top'
|
|
5825
5833
|
} },
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
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,
|
|
5831
5854
|
_react2.default.createElement(
|
|
5832
|
-
'
|
|
5833
|
-
|
|
5855
|
+
'tr',
|
|
5856
|
+
null,
|
|
5834
5857
|
_react2.default.createElement(
|
|
5835
|
-
'
|
|
5858
|
+
'th',
|
|
5836
5859
|
null,
|
|
5837
|
-
|
|
5860
|
+
'Name'
|
|
5838
5861
|
),
|
|
5839
5862
|
_react2.default.createElement(
|
|
5840
|
-
'
|
|
5863
|
+
'th',
|
|
5841
5864
|
null,
|
|
5842
|
-
'
|
|
5865
|
+
'Size'
|
|
5843
5866
|
),
|
|
5844
5867
|
_react2.default.createElement(
|
|
5845
|
-
'
|
|
5868
|
+
'th',
|
|
5846
5869
|
null,
|
|
5847
|
-
|
|
5870
|
+
'Date Uploaded'
|
|
5848
5871
|
)
|
|
5849
|
-
)
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
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,
|
|
5857
5884
|
_react2.default.createElement(
|
|
5858
5885
|
'a',
|
|
5859
5886
|
{ onClick: function onClick(e) {
|
|
5860
|
-
return _this2.downloadFile(e,
|
|
5887
|
+
return _this2.downloadFile(e, file);
|
|
5861
5888
|
} },
|
|
5862
|
-
|
|
5863
|
-
)
|
|
5889
|
+
file.name
|
|
5890
|
+
)
|
|
5891
|
+
),
|
|
5892
|
+
_react2.default.createElement(
|
|
5893
|
+
'td',
|
|
5894
|
+
null,
|
|
5864
5895
|
_react2.default.createElement(
|
|
5865
5896
|
'span',
|
|
5866
5897
|
null,
|
|
5867
|
-
|
|
5868
|
-
formatBytes(f.byteSize)
|
|
5898
|
+
formatBytes(file.byteSize)
|
|
5869
5899
|
)
|
|
5870
|
-
)
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
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
|
+
)
|
|
5875
5910
|
)
|
|
5876
5911
|
),
|
|
5877
5912
|
' '
|
|
@@ -55418,7 +55453,7 @@ module.exports =
|
|
|
55418
55453
|
savedFileSchema = [].concat(_toConsumableArray(formValues[mode + 'FileSchema']));
|
|
55419
55454
|
}
|
|
55420
55455
|
change(mode + 'FileSchema', {
|
|
55421
|
-
resources: metadata.
|
|
55456
|
+
resources: metadata.map(function (r) {
|
|
55422
55457
|
var existing = savedFileSchema.find(function (rsc) {
|
|
55423
55458
|
return r.name === rsc.name && r.type === rsc.type;
|
|
55424
55459
|
});
|
|
@@ -55431,8 +55466,7 @@ module.exports =
|
|
|
55431
55466
|
});
|
|
55432
55467
|
})();
|
|
55433
55468
|
}
|
|
55434
|
-
|
|
55435
|
-
var isFlat = metadata && metadata[0] && metadata[0].providerType && metadata[0].providerType.toLowerCase() === 'flatfile';
|
|
55469
|
+
var isFlat = metadata && metadata.providerType && metadata.providerType.toLowerCase() === 'flatfile';
|
|
55436
55470
|
if (isFlat) {
|
|
55437
55471
|
change(mode + 'FileSchema', metadata);
|
|
55438
55472
|
}
|
|
@@ -55600,7 +55634,6 @@ module.exports =
|
|
|
55600
55634
|
var modes = ['source', 'destination'];
|
|
55601
55635
|
var selectedProvider = this.state.selectedProvider;
|
|
55602
55636
|
|
|
55603
|
-
|
|
55604
55637
|
var notAllMetadata = !(wizard['sourceMetadata'] && wizard['sourceMetadata'].length > 0) || !(wizard['destinationMetadata'] && wizard['destinationMetadata'].length > 0);
|
|
55605
55638
|
|
|
55606
55639
|
return _react2.default.createElement(
|
|
@@ -55709,7 +55742,7 @@ module.exports =
|
|
|
55709
55742
|
return _this5.generateNewAdapterSecret(m);
|
|
55710
55743
|
},
|
|
55711
55744
|
seeFields: _this5.seeFields.bind(_this5),
|
|
55712
|
-
fileSchema:
|
|
55745
|
+
fileSchema: wizard[m + 'Metadata'],
|
|
55713
55746
|
check: function check(actualCreds, extraQuery) {
|
|
55714
55747
|
_this5.check(m, null, actualCreds, null, extraQuery);
|
|
55715
55748
|
}, change: change,
|
|
@@ -55769,7 +55802,6 @@ module.exports =
|
|
|
55769
55802
|
|
|
55770
55803
|
var Modal = inputs.Modal;
|
|
55771
55804
|
var config = step[mode + 'Config'];
|
|
55772
|
-
console.log(wizard[mode + 'Metadata']);
|
|
55773
55805
|
var POSTS = wizard[mode + 'Metadata'] && wizard[mode + 'Metadata'].filter(function (m) {
|
|
55774
55806
|
return m.method === 'POST' || m.method === 'PUT';
|
|
55775
55807
|
});
|
|
@@ -56537,7 +56569,7 @@ module.exports =
|
|
|
56537
56569
|
var providerType = step[step.mode + 'Provider'];
|
|
56538
56570
|
var fs = formValues[step.mode + 'FileSchema'];
|
|
56539
56571
|
var fileSchema = Object.assign({}, fs);
|
|
56540
|
-
fileSchema.
|
|
56572
|
+
fileSchema.splice(index, 1);
|
|
56541
56573
|
change(step.mode + 'FileSchema', fileSchema);
|
|
56542
56574
|
actions.removeFileResourceFromMetadata(step.mode, file, providerType);
|
|
56543
56575
|
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
@@ -56570,13 +56602,13 @@ module.exports =
|
|
|
56570
56602
|
|
|
56571
56603
|
var fileSchema = formValues[step.mode + 'FileSchema'];
|
|
56572
56604
|
var filledOut = true;
|
|
56573
|
-
if (fileSchema
|
|
56574
|
-
fileSchema.
|
|
56605
|
+
if (fileSchema) {
|
|
56606
|
+
fileSchema.forEach(function (f) {
|
|
56575
56607
|
if (!f.delimiter || !f.filePattern) {
|
|
56576
56608
|
filledOut = false;
|
|
56577
56609
|
}
|
|
56578
56610
|
});
|
|
56579
|
-
if (fileSchema.
|
|
56611
|
+
if (fileSchema.length < 1) {
|
|
56580
56612
|
filledOut = false;
|
|
56581
56613
|
}
|
|
56582
56614
|
}
|
|
@@ -56602,10 +56634,10 @@ module.exports =
|
|
|
56602
56634
|
_react2.default.createElement(
|
|
56603
56635
|
'div',
|
|
56604
56636
|
{ className: 'labelz', style: { fontSize: '14px', marginBottom: 5 } },
|
|
56605
|
-
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.'
|
|
56606
56638
|
),
|
|
56607
|
-
fileSchema && fileSchema.
|
|
56608
|
-
files: fileSchema
|
|
56639
|
+
fileSchema && fileSchema.length > 0 && _react2.default.createElement(FileTable, {
|
|
56640
|
+
files: fileSchema, inputs: inputs, mode: step.mode,
|
|
56609
56641
|
removeFile: this.removeFile
|
|
56610
56642
|
}),
|
|
56611
56643
|
_react2.default.createElement('br', null),
|
|
@@ -59299,7 +59331,7 @@ module.exports =
|
|
|
59299
59331
|
var destinationFileSchema = {};
|
|
59300
59332
|
if (formValues['sourceFileSchema'] && wizardConfig.source.type.toLowerCase() === 'sftp') {
|
|
59301
59333
|
sourceFileSchema = {
|
|
59302
|
-
resources: formValues['sourceFileSchema']
|
|
59334
|
+
resources: formValues['sourceFileSchema'],
|
|
59303
59335
|
name: title + ' Schema',
|
|
59304
59336
|
providerType: wizardConfig.source.type,
|
|
59305
59337
|
isSource: true
|
|
@@ -59307,7 +59339,7 @@ module.exports =
|
|
|
59307
59339
|
}
|
|
59308
59340
|
if (formValues['destinationFileSchema'] && wizardConfig.destination.type.toLowerCase() === 'sftp') {
|
|
59309
59341
|
destinationFileSchema = {
|
|
59310
|
-
resources: formValues['destinationFileSchema']
|
|
59342
|
+
resources: formValues['destinationFileSchema'],
|
|
59311
59343
|
name: title + ' Schema',
|
|
59312
59344
|
providerType: wizardConfig.destination.type,
|
|
59313
59345
|
isSource: false
|