@lingk/sync 1.1.4 → 1.1.6

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/main.js CHANGED
@@ -215,7 +215,7 @@ module.exports =
215
215
  value: true
216
216
  });
217
217
 
218
- var _moment = __webpack_require__(24);
218
+ var _moment = __webpack_require__(11);
219
219
 
220
220
  var _moment2 = _interopRequireDefault(_moment);
221
221
 
@@ -377,7 +377,7 @@ module.exports =
377
377
  /***/ function(module, exports, __webpack_require__) {
378
378
 
379
379
  // Thank's IE8 for his funny defineProperty
380
- module.exports = !__webpack_require__(13)(function(){
380
+ module.exports = !__webpack_require__(14)(function(){
381
381
  return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
382
382
  });
383
383
 
@@ -385,10 +385,16 @@ module.exports =
385
385
  /* 11 */
386
386
  /***/ function(module, exports) {
387
387
 
388
- module.exports = require("react-dom");
388
+ module.exports = require("moment");
389
389
 
390
390
  /***/ },
391
391
  /* 12 */
392
+ /***/ function(module, exports) {
393
+
394
+ module.exports = require("react-dom");
395
+
396
+ /***/ },
397
+ /* 13 */
392
398
  /***/ function(module, exports, __webpack_require__) {
393
399
 
394
400
  'use strict';
@@ -583,7 +589,7 @@ module.exports =
583
589
  exports.default = SelectWrapper;
584
590
 
585
591
  /***/ },
586
- /* 13 */
592
+ /* 14 */
587
593
  /***/ function(module, exports) {
588
594
 
589
595
  module.exports = function(exec){
@@ -595,10 +601,10 @@ module.exports =
595
601
  };
596
602
 
597
603
  /***/ },
598
- /* 14 */
604
+ /* 15 */
599
605
  /***/ function(module, exports, __webpack_require__) {
600
606
 
601
- var dP = __webpack_require__(20)
607
+ var dP = __webpack_require__(21)
602
608
  , createDesc = __webpack_require__(38);
603
609
  module.exports = __webpack_require__(10) ? function(object, key, value){
604
610
  return dP.f(object, key, createDesc(1, value));
@@ -608,7 +614,7 @@ module.exports =
608
614
  };
609
615
 
610
616
  /***/ },
611
- /* 15 */
617
+ /* 16 */
612
618
  /***/ function(module, exports) {
613
619
 
614
620
  module.exports = function(it){
@@ -616,7 +622,7 @@ module.exports =
616
622
  };
617
623
 
618
624
  /***/ },
619
- /* 16 */
625
+ /* 17 */
620
626
  /***/ function(module, exports, __webpack_require__) {
621
627
 
622
628
  /* WEBPACK VAR INJECTION */(function(global) {/*!
@@ -2412,17 +2418,17 @@ module.exports =
2412
2418
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
2413
2419
 
2414
2420
  /***/ },
2415
- /* 17 */
2421
+ /* 18 */
2416
2422
  /***/ function(module, exports, __webpack_require__) {
2417
2423
 
2418
- var isObject = __webpack_require__(15);
2424
+ var isObject = __webpack_require__(16);
2419
2425
  module.exports = function(it){
2420
2426
  if(!isObject(it))throw TypeError(it + ' is not an object!');
2421
2427
  return it;
2422
2428
  };
2423
2429
 
2424
2430
  /***/ },
2425
- /* 18 */
2431
+ /* 19 */
2426
2432
  /***/ function(module, exports) {
2427
2433
 
2428
2434
  // 7.2.1 RequireObjectCoercible(argument)
@@ -2432,7 +2438,7 @@ module.exports =
2432
2438
  };
2433
2439
 
2434
2440
  /***/ },
2435
- /* 19 */
2441
+ /* 20 */
2436
2442
  /***/ function(module, exports) {
2437
2443
 
2438
2444
  var hasOwnProperty = {}.hasOwnProperty;
@@ -2441,10 +2447,10 @@ module.exports =
2441
2447
  };
2442
2448
 
2443
2449
  /***/ },
2444
- /* 20 */
2450
+ /* 21 */
2445
2451
  /***/ function(module, exports, __webpack_require__) {
2446
2452
 
2447
- var anObject = __webpack_require__(17)
2453
+ var anObject = __webpack_require__(18)
2448
2454
  , IE8_DOM_DEFINE = __webpack_require__(59)
2449
2455
  , toPrimitive = __webpack_require__(63)
2450
2456
  , dP = Object.defineProperty;
@@ -2462,7 +2468,7 @@ module.exports =
2462
2468
  };
2463
2469
 
2464
2470
  /***/ },
2465
- /* 21 */
2471
+ /* 22 */
2466
2472
  /***/ function(module, exports) {
2467
2473
 
2468
2474
  // 7.1.4 ToInteger
@@ -2473,31 +2479,25 @@ module.exports =
2473
2479
  };
2474
2480
 
2475
2481
  /***/ },
2476
- /* 22 */
2482
+ /* 23 */
2477
2483
  /***/ function(module, exports, __webpack_require__) {
2478
2484
 
2479
2485
  // to indexed object, toObject with fallback for non-array-like ES3 strings
2480
2486
  var IObject = __webpack_require__(35)
2481
- , defined = __webpack_require__(18);
2487
+ , defined = __webpack_require__(19);
2482
2488
  module.exports = function(it){
2483
2489
  return IObject(defined(it));
2484
2490
  };
2485
2491
 
2486
2492
  /***/ },
2487
- /* 23 */,
2488
- /* 24 */
2489
- /***/ function(module, exports) {
2490
-
2491
- module.exports = require("moment");
2492
-
2493
- /***/ },
2493
+ /* 24 */,
2494
2494
  /* 25 */
2495
2495
  /***/ function(module, exports, __webpack_require__) {
2496
2496
 
2497
2497
  var global = __webpack_require__(7)
2498
2498
  , core = __webpack_require__(9)
2499
2499
  , ctx = __webpack_require__(58)
2500
- , hide = __webpack_require__(14)
2500
+ , hide = __webpack_require__(15)
2501
2501
  , PROTOTYPE = 'prototype';
2502
2502
 
2503
2503
  var $export = function(type, name, source){
@@ -4639,7 +4639,7 @@ module.exports =
4639
4639
  return cpt;
4640
4640
  }));
4641
4641
 
4642
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16).Buffer))
4642
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17).Buffer))
4643
4643
 
4644
4644
  /***/ },
4645
4645
  /* 29 */
@@ -5031,7 +5031,7 @@ module.exports =
5031
5031
  /* 33 */
5032
5032
  /***/ function(module, exports, __webpack_require__) {
5033
5033
 
5034
- var isObject = __webpack_require__(15)
5034
+ var isObject = __webpack_require__(16)
5035
5035
  , document = __webpack_require__(7).document
5036
5036
  // in old IE typeof document.createElement is 'object'
5037
5037
  , is = isObject(document) && isObject(document.createElement);
@@ -5100,7 +5100,7 @@ module.exports =
5100
5100
  /***/ function(module, exports, __webpack_require__) {
5101
5101
 
5102
5102
  // 7.1.13 ToObject(argument)
5103
- var defined = __webpack_require__(18);
5103
+ var defined = __webpack_require__(19);
5104
5104
  module.exports = function(it){
5105
5105
  return Object(defined(it));
5106
5106
  };
@@ -5517,6 +5517,10 @@ module.exports =
5517
5517
 
5518
5518
  var _xlsx2 = _interopRequireDefault(_xlsx);
5519
5519
 
5520
+ var _moment = __webpack_require__(11);
5521
+
5522
+ var _moment2 = _interopRequireDefault(_moment);
5523
+
5520
5524
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5521
5525
 
5522
5526
  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); } }
@@ -5629,8 +5633,15 @@ module.exports =
5629
5633
  var data = e.target.result;
5630
5634
  var csv = null;
5631
5635
  if (isXLS) {
5636
+ var i;
5637
+
5632
5638
  (function () {
5633
- var workbook = _xlsx2.default.read(data, { type: 'binary' });
5639
+ var binary = '';
5640
+ var bytes = new Uint8Array(data);
5641
+ for (i = 0; i < length; i++) {
5642
+ binary += String.fromCharCode(bytes[i]);
5643
+ }
5644
+ var workbook = _xlsx2.default.read(binary, { type: 'binary' });
5634
5645
  workbook.SheetNames.forEach(function (sn) {
5635
5646
  if (sn !== 'Export Summary') {
5636
5647
  csv = _xlsx2.default.utils.sheet_to_csv(workbook.Sheets[sn]);
@@ -5671,10 +5682,10 @@ module.exports =
5671
5682
  if (contentCounter === fs.length) {
5672
5683
  _this.setState({ fileContents: fileContents });
5673
5684
  }
5674
- };
5685
+ }; // end file reader on load callback
5675
5686
 
5676
5687
  if (isXLS) {
5677
- reader.readAsBinaryString(file);
5688
+ reader.readAsArrayBuffer(file); // read as binary string???
5678
5689
  } else {
5679
5690
  reader.readAsText(file);
5680
5691
  }
@@ -5706,6 +5717,11 @@ module.exports =
5706
5717
  });
5707
5718
  };
5708
5719
 
5720
+ _this.downloadFile = function (e, file) {
5721
+ e.preventDefault();
5722
+ _this.props.downloadFileFromAws(file);
5723
+ };
5724
+
5709
5725
  _this.state = {
5710
5726
  meta: [],
5711
5727
  fileContents: [],
@@ -5718,14 +5734,17 @@ module.exports =
5718
5734
  _createClass(FlatFile, [{
5719
5735
  key: 'render',
5720
5736
  value: function render() {
5737
+ var _this2 = this;
5738
+
5721
5739
  var _state = this.state,
5722
5740
  meta = _state.meta,
5723
5741
  uploading = _state.uploading,
5724
5742
  dropError = _state.dropError;
5725
5743
  var _props = this.props,
5726
- metadata = _props.metadata,
5744
+ fileSchema = _props.fileSchema,
5727
5745
  inputs = _props.inputs;
5728
5746
 
5747
+ var files = fileSchema && fileSchema.resources;
5729
5748
  var Button = inputs.Button;
5730
5749
  var Spinner = inputs.Spinner;
5731
5750
  var hasFile = meta && meta.length > 0;
@@ -5796,7 +5815,7 @@ module.exports =
5796
5815
  })
5797
5816
  )
5798
5817
  ),
5799
- !uploading && !hasFile && metadata && metadata.length > 0 && _react2.default.createElement(
5818
+ !uploading && !hasFile && files && files.length > 0 && _react2.default.createElement(
5800
5819
  'div',
5801
5820
  { style: {
5802
5821
  marginLeft: 20, display: 'inline-block', marginTop: 13, verticalAlign: 'top'
@@ -5807,24 +5826,39 @@ module.exports =
5807
5826
  _react2.default.createElement(
5808
5827
  'strong',
5809
5828
  { style: { marginRight: 5 } },
5810
- metadata && metadata.length
5829
+ files && files.length
5830
+ ),
5831
+ _react2.default.createElement(
5832
+ 'strong',
5833
+ null,
5834
+ 'file' + (files.length === 1 ? '' : 's') + ' uploaded on '
5811
5835
  ),
5812
5836
  _react2.default.createElement(
5813
5837
  'strong',
5814
5838
  null,
5815
- 'file' + (metadata.length === 1 ? '' : 's') + ' uploaded'
5839
+ (0, _moment2.default)(fileSchema.uploadedTime).format('MMM Do Y, h:mm a')
5816
5840
  )
5817
5841
  ),
5818
5842
  _react2.default.createElement(
5819
5843
  'ul',
5820
5844
  { style: { padding: 0 } },
5821
- metadata.map(function (f, i) {
5845
+ files.map(function (f, i) {
5822
5846
  return _react2.default.createElement(
5823
5847
  'li',
5824
5848
  { key: i, style: { listStyle: 'none' } },
5825
- f.name,
5826
- ' - ',
5827
- formatBytes(f.byteSize)
5849
+ _react2.default.createElement(
5850
+ 'a',
5851
+ { onClick: function onClick(e) {
5852
+ return _this2.downloadFile(e, f);
5853
+ } },
5854
+ f.name
5855
+ ),
5856
+ _react2.default.createElement(
5857
+ 'span',
5858
+ null,
5859
+ ' - ',
5860
+ formatBytes(f.byteSize)
5861
+ )
5828
5862
  );
5829
5863
  })
5830
5864
  )
@@ -6138,7 +6172,7 @@ module.exports =
6138
6172
  wizard = _props.wizard,
6139
6173
  adapterSecret = _props.adapterSecret,
6140
6174
  checkOauthCreds = _props.checkOauthCreds,
6141
- metadata = _props.metadata,
6175
+ fileSchema = _props.fileSchema,
6142
6176
  getOauthUrl = _props.getOauthUrl,
6143
6177
  generateNewAdapterSecret = _props.generateNewAdapterSecret,
6144
6178
  setCsvFields = _props.setCsvFields,
@@ -6148,7 +6182,8 @@ module.exports =
6148
6182
  envCheckResult = _props.envCheckResult,
6149
6183
  clearCsvFields = _props.clearCsvFields,
6150
6184
  formValues = _props.formValues,
6151
- change = _props.change;
6185
+ change = _props.change,
6186
+ downloadFileFromAws = _props.downloadFileFromAws;
6152
6187
 
6153
6188
 
6154
6189
  var Button = inputs.Button;
@@ -6195,13 +6230,16 @@ module.exports =
6195
6230
  },
6196
6231
  checkOauthCreds: checkOauthCreds, envCheckResult: envCheckResult,
6197
6232
  checking: checking, inputs: inputs, formValues: formValues,
6198
- isWiz: _react2.default.Children.count(this.props.children) > 0 }) : isFlatFile ? _react2.default.createElement(_flatfile2.default, { wizard: wizard, onCheck: check, metadata: metadata,
6233
+ isWiz: _react2.default.Children.count(this.props.children) > 0
6234
+ }) : isFlatFile ? _react2.default.createElement(_flatfile2.default, { wizard: wizard, onCheck: check, fileSchema: fileSchema,
6199
6235
  checking: checking, setCsvFields: setCsvFields,
6200
6236
  providerType: providerType, inputs: inputs,
6201
6237
  accountKey: accountKey, tenantKey: tenantKey,
6202
- onDrop: clearCsvFields }) : isGoogle ? _react2.default.createElement(_google2.default, { config: config, creds: creds, onChange: this.onChange,
6238
+ onDrop: clearCsvFields, downloadFileFromAws: downloadFileFromAws
6239
+ }) : isGoogle ? _react2.default.createElement(_google2.default, { config: config, creds: creds, onChange: this.onChange,
6203
6240
  credsDisabledCheck: credsDisabledCheck, inputs: inputs,
6204
- onCheck: check }) : _react2.default.createElement(
6241
+ onCheck: check
6242
+ }) : _react2.default.createElement(
6205
6243
  'div',
6206
6244
  null,
6207
6245
  !noRootUrl && _react2.default.createElement(
@@ -7181,7 +7219,7 @@ module.exports =
7181
7219
 
7182
7220
  // false -> Array#indexOf
7183
7221
  // true -> Array#includes
7184
- var toIObject = __webpack_require__(22)
7222
+ var toIObject = __webpack_require__(23)
7185
7223
  , toLength = __webpack_require__(62)
7186
7224
  , toIndex = __webpack_require__(61);
7187
7225
  module.exports = function(IS_INCLUDES){
@@ -7230,7 +7268,7 @@ module.exports =
7230
7268
  /* 59 */
7231
7269
  /***/ function(module, exports, __webpack_require__) {
7232
7270
 
7233
- module.exports = !__webpack_require__(10) && !__webpack_require__(13)(function(){
7271
+ module.exports = !__webpack_require__(10) && !__webpack_require__(14)(function(){
7234
7272
  return Object.defineProperty(__webpack_require__(33)('div'), 'a', {get: function(){ return 7; }}).a != 7;
7235
7273
  });
7236
7274
 
@@ -7238,8 +7276,8 @@ module.exports =
7238
7276
  /* 60 */
7239
7277
  /***/ function(module, exports, __webpack_require__) {
7240
7278
 
7241
- var has = __webpack_require__(19)
7242
- , toIObject = __webpack_require__(22)
7279
+ var has = __webpack_require__(20)
7280
+ , toIObject = __webpack_require__(23)
7243
7281
  , arrayIndexOf = __webpack_require__(57)(false)
7244
7282
  , IE_PROTO = __webpack_require__(26)('IE_PROTO');
7245
7283
 
@@ -7260,7 +7298,7 @@ module.exports =
7260
7298
  /* 61 */
7261
7299
  /***/ function(module, exports, __webpack_require__) {
7262
7300
 
7263
- var toInteger = __webpack_require__(21)
7301
+ var toInteger = __webpack_require__(22)
7264
7302
  , max = Math.max
7265
7303
  , min = Math.min;
7266
7304
  module.exports = function(index, length){
@@ -7273,7 +7311,7 @@ module.exports =
7273
7311
  /***/ function(module, exports, __webpack_require__) {
7274
7312
 
7275
7313
  // 7.1.15 ToLength
7276
- var toInteger = __webpack_require__(21)
7314
+ var toInteger = __webpack_require__(22)
7277
7315
  , min = Math.min;
7278
7316
  module.exports = function(it){
7279
7317
  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
@@ -7284,7 +7322,7 @@ module.exports =
7284
7322
  /***/ function(module, exports, __webpack_require__) {
7285
7323
 
7286
7324
  // 7.1.1 ToPrimitive(input [, PreferredType])
7287
- var isObject = __webpack_require__(15);
7325
+ var isObject = __webpack_require__(16);
7288
7326
  // instead of the ES6 spec version, we didn't implement @@toPrimitive case
7289
7327
  // and the second argument - flag - preferred type is a string
7290
7328
  module.exports = function(it, S){
@@ -27247,7 +27285,7 @@ module.exports =
27247
27285
  (9)
27248
27286
  }));
27249
27287
 
27250
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16).Buffer, (function() { return this; }())))
27288
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17).Buffer, (function() { return this; }())))
27251
27289
 
27252
27290
  /***/ },
27253
27291
  /* 73 */
@@ -47502,7 +47540,7 @@ module.exports =
47502
47540
  /*exported XLS, ODS */
47503
47541
  var XLS = XLSX, ODS = XLSX;
47504
47542
 
47505
- /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(16).Buffer, __webpack_require__(70)))
47543
+ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(17).Buffer, __webpack_require__(70)))
47506
47544
 
47507
47545
  /***/ },
47508
47546
  /* 74 */
@@ -47536,7 +47574,7 @@ module.exports =
47536
47574
 
47537
47575
  var _react2 = _interopRequireDefault(_react);
47538
47576
 
47539
- var _selectWrapper = __webpack_require__(12);
47577
+ var _selectWrapper = __webpack_require__(13);
47540
47578
 
47541
47579
  var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
47542
47580
 
@@ -48216,7 +48254,7 @@ module.exports =
48216
48254
 
48217
48255
  var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
48218
48256
 
48219
- var _reactDom = __webpack_require__(11);
48257
+ var _reactDom = __webpack_require__(12);
48220
48258
 
48221
48259
  var _reactDom2 = _interopRequireDefault(_reactDom);
48222
48260
 
@@ -48237,7 +48275,7 @@ module.exports =
48237
48275
 
48238
48276
  (function webpackUniversalModuleDefinition(root, factory) {
48239
48277
  if(true)
48240
- module.exports = factory(__webpack_require__(1), __webpack_require__(11));
48278
+ module.exports = factory(__webpack_require__(1), __webpack_require__(12));
48241
48279
  else if(typeof define === 'function' && define.amd)
48242
48280
  define(["react", "react-dom"], factory);
48243
48281
  else if(typeof exports === 'object')
@@ -50355,6 +50393,8 @@ module.exports =
50355
50393
  exports.clearCsvFields = clearCsvFields;
50356
50394
  exports.uploadFilesToS3 = uploadFilesToS3;
50357
50395
  exports.singleFileToS3 = singleFileToS3;
50396
+ exports.downloadFileFromAws = downloadFileFromAws;
50397
+ exports.downloadFileFromS3 = downloadFileFromS3;
50358
50398
  exports.getOauthUrl = getOauthUrl;
50359
50399
  exports.generateNewAdapterSecret = generateNewAdapterSecret;
50360
50400
  exports.createLingkExternalIds = createLingkExternalIds;
@@ -50402,7 +50442,7 @@ module.exports =
50402
50442
 
50403
50443
  var types = _interopRequireWildcard(_types);
50404
50444
 
50405
- var _moment = __webpack_require__(24);
50445
+ var _moment = __webpack_require__(11);
50406
50446
 
50407
50447
  var _moment2 = _interopRequireDefault(_moment);
50408
50448
 
@@ -50597,7 +50637,7 @@ module.exports =
50597
50637
  var _getState3 = getState(),
50598
50638
  config = _getState3.config;
50599
50639
 
50600
- return api.post(tenantId + '/' + appId + '/uploadpolicy', {
50640
+ return api.post(tenantId + '/' + appId + '/' + envId + '/uploadpolicy', {
50601
50641
  endpoint: config.TRANS_API_URL,
50602
50642
  data: { name: 'flatfile', resources: metadata, providerType: providerType, isSource: isSource }
50603
50643
  }).then(function (data) {
@@ -50690,6 +50730,61 @@ module.exports =
50690
50730
  });
50691
50731
  }
50692
50732
 
50733
+ function downloadFileFromAws(tenantId, appId, tenantKey, appKey, file) {
50734
+ return function (dispatch, getState, api) {
50735
+ var _getState5 = getState(),
50736
+ config = _getState5.config;
50737
+
50738
+ return api.get(tenantId + '/' + appId + '/downloadpolicy/' + file.fileHash, {
50739
+ endpoint: config.TRANS_API_URL
50740
+ }).then(function (d) {
50741
+ return (0, _axios2.default)({
50742
+ method: 'get',
50743
+ url: d
50744
+ });
50745
+ }).then(function (f) {
50746
+ var extension = file.name.substr(file.name.lastIndexOf('.') + 1, file.name.length);
50747
+ var mime = 'data:text/plain;charset=utf-8,'; // csv
50748
+ var data = f.data;
50749
+ if (extension === 'json') {
50750
+ console.log('json!!!!');
50751
+ mime = 'data:text/json;charset=utf-8,';
50752
+ data = encodeURIComponent(JSON.stringify(f.data));
50753
+ } else if (extension === 'xls') {
50754
+ mime = 'data:application/vnd.ms-excel;charset=utf-8,';
50755
+ data = encodeURIComponent(f.data);
50756
+ } else if (extension === 'xlsx') {
50757
+ mime = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8,';
50758
+ data = encodeURIComponent(f.data);
50759
+ }
50760
+ console.log(data);
50761
+ // NEED TO DOWNLOAD DEPENDING ON TYPE, JSON VS XLS
50762
+ var element = document.createElement('a');
50763
+ element.setAttribute('href', mime + data);
50764
+ element.setAttribute('download', 'hi.xlsx');
50765
+ element.style.display = 'none';
50766
+ document.body.appendChild(element);
50767
+ element.click();
50768
+ document.body.removeChild(element);
50769
+ });
50770
+ };
50771
+ }
50772
+
50773
+ function downloadFileFromS3(tenantKey, appKey, d, file) {
50774
+ var p = JSON.parse(atob(d.policy));
50775
+ console.log(p, file);
50776
+ var pFind = function pFind(s) {
50777
+ return p.conditions.find(function (pf) {
50778
+ return Object.keys(pf).includes(s);
50779
+ })[s];
50780
+ };
50781
+ return (0, _axios2.default)({
50782
+ method: 'get',
50783
+ url: 'https://' + pFind('bucket') + '.s3.amazonaws.com/' + tenantKey + '/' + appKey + '/' + file.fileHash,
50784
+ config: { headers: { 'Content-Type': 'multipart/form-data' } }
50785
+ });
50786
+ }
50787
+
50693
50788
  // "fake" credentials for demo purposes
50694
50789
  function isDemoCreds(creds, providerType) {
50695
50790
  if (creds && providerType) {
@@ -50714,8 +50809,8 @@ module.exports =
50714
50809
  mode: mode
50715
50810
  });
50716
50811
 
50717
- var _getState5 = getState(),
50718
- config = _getState5.config;
50812
+ var _getState6 = getState(),
50813
+ config = _getState6.config;
50719
50814
 
50720
50815
  return api.get(tenantId + '/' + appId + '/environments/' + envName + '/oauthurl/9090b61412a74d97ad9ed02c5fx7e705/' + orgType, {
50721
50816
  endpoint: config.SF_AGENT_API_URL
@@ -50732,9 +50827,9 @@ module.exports =
50732
50827
 
50733
50828
  function generateNewAdapterSecret(tenantId, accountId, envName, mode) {
50734
50829
  return function (dispatch, getState, api) {
50735
- var _getState6 = getState(),
50736
- config = _getState6.config,
50737
- wizard = _getState6.wizard;
50830
+ var _getState7 = getState(),
50831
+ config = _getState7.config,
50832
+ wizard = _getState7.wizard;
50738
50833
 
50739
50834
  var TRANS_API_URL = config.TRANS_API_URL;
50740
50835
 
@@ -50751,8 +50846,8 @@ module.exports =
50751
50846
 
50752
50847
  function createLingkExternalIds(tenantId, appId, bundles, mappings, metadata, envName) {
50753
50848
  return function (dispatch, getState, api) {
50754
- var _getState7 = getState(),
50755
- config = _getState7.config;
50849
+ var _getState8 = getState(),
50850
+ config = _getState8.config;
50756
50851
 
50757
50852
  var externalIdlessObjects = [];
50758
50853
  // only run for Salesforce
@@ -50790,8 +50885,8 @@ module.exports =
50790
50885
 
50791
50886
  function callAddCustomField(tenantId, appId, objectType, fieldName, completedCallback, envName) {
50792
50887
  return function (dispatch, getState, api) {
50793
- var _getState8 = getState(),
50794
- config = _getState8.config;
50888
+ var _getState9 = getState(),
50889
+ config = _getState9.config;
50795
50890
 
50796
50891
  return api.post(tenantId + '/' + appId + '/environments/' + envName + '/salesforceschema/field', {
50797
50892
  endpoint: config.SF_AGENT_API_URL,
@@ -50859,8 +50954,8 @@ module.exports =
50859
50954
 
50860
50955
  function callGetScenarioList(tenantId, appId, typeGuid, isGlobal, isOrgAdmin) {
50861
50956
  return function (dispatch, getState, api) {
50862
- var _getState9 = getState(),
50863
- config = _getState9.config;
50957
+ var _getState10 = getState(),
50958
+ config = _getState10.config;
50864
50959
 
50865
50960
  return api.get(tenantId + '/' + appId + '/scenarios/' + typeGuid, {
50866
50961
  endpoint: config.TRANS_API_URL
@@ -50885,8 +50980,8 @@ module.exports =
50885
50980
 
50886
50981
  function callCreateScenario(tenantId, appId, data) {
50887
50982
  return function (dispatch, getState, api) {
50888
- var _getState10 = getState(),
50889
- config = _getState10.config;
50983
+ var _getState11 = getState(),
50984
+ config = _getState11.config;
50890
50985
 
50891
50986
  return api.post(tenantId + '/' + appId + '/scenario', {
50892
50987
  endpoint: config.TRANS_API_URL,
@@ -50897,8 +50992,8 @@ module.exports =
50897
50992
 
50898
50993
  function callUpdateScenarioList(tenantId, appId, typeGuid, scenarios, isGlobal) {
50899
50994
  return function (dispatch, getState, api) {
50900
- var _getState11 = getState(),
50901
- config = _getState11.config;
50995
+ var _getState12 = getState(),
50996
+ config = _getState12.config;
50902
50997
 
50903
50998
  return api.post(tenantId + '/' + appId + '/scenarios/' + typeGuid + (isGlobal ? '/global' : ''), {
50904
50999
  endpoint: config.TRANS_API_URL,
@@ -50917,8 +51012,8 @@ module.exports =
50917
51012
 
50918
51013
  function callPostBundles(tenantId, appId, bundles, onGenerationError) {
50919
51014
  return function (dispatch, getState, api) {
50920
- var _getState12 = getState(),
50921
- config = _getState12.config;
51015
+ var _getState13 = getState(),
51016
+ config = _getState13.config;
50922
51017
 
50923
51018
  var data = { bundles: bundles };
50924
51019
  return api.post(tenantId + '/' + appId + '/bundle', {
@@ -50933,8 +51028,8 @@ module.exports =
50933
51028
 
50934
51029
  function callPostMapping(tenantId, appId, mappings, onGenerationError) {
50935
51030
  return function (dispatch, getState, api) {
50936
- var _getState13 = getState(),
50937
- config = _getState13.config;
51031
+ var _getState14 = getState(),
51032
+ config = _getState14.config;
50938
51033
 
50939
51034
  var data = { mappings: mappings };
50940
51035
  return api.post(tenantId + '/' + appId + '/schemamappings', {
@@ -50949,8 +51044,8 @@ module.exports =
50949
51044
 
50950
51045
  function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, bundlePackGuid, configuration, title, typeGuid, piGuid, onGenerationError) {
50951
51046
  return function (dispatch, getState, api) {
50952
- var _getState14 = getState(),
50953
- config = _getState14.config;
51047
+ var _getState15 = getState(),
51048
+ config = _getState15.config;
50954
51049
 
50955
51050
  var data = Object.assign({
50956
51051
  schemaMappingGuid: schemaMappingGuid,
@@ -50971,8 +51066,8 @@ module.exports =
50971
51066
 
50972
51067
  function callUpdateProductizedIntegration(tenantId, appId, schemaMappingGuid, bundlePackGuid, configuration, title, typeGuid, piGuid, onGenerationError) {
50973
51068
  return function (dispatch, getState, api) {
50974
- var _getState15 = getState(),
50975
- config = _getState15.config;
51069
+ var _getState16 = getState(),
51070
+ config = _getState16.config;
50976
51071
 
50977
51072
  var data = {
50978
51073
  schemaMappingGuid: schemaMappingGuid,
@@ -50993,8 +51088,8 @@ module.exports =
50993
51088
 
50994
51089
  function callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, piGuid, mappingGuid, sourceMetadata, destinationMetadata, isManagedPackage, onGenerationError, envName, envId) {
50995
51090
  return function (dispatch, getState, api) {
50996
- var _getState16 = getState(),
50997
- config = _getState16.config;
51091
+ var _getState17 = getState(),
51092
+ config = _getState17.config;
50998
51093
 
50999
51094
  return api.post(tenantId + '/' + appId + '/productizedintegrations/' + piGuid + '/generate', {
51000
51095
  endpoint: config.TRANS_API_URL,
@@ -51011,13 +51106,13 @@ module.exports =
51011
51106
  };
51012
51107
  }
51013
51108
 
51014
- function trySaveFileSchema(tenantId, appId, schema) {
51109
+ function trySaveFileSchema(tenantId, appId, envId, schema) {
51015
51110
  return function (dispatch, getState, api) {
51016
- var _getState17 = getState(),
51017
- config = _getState17.config;
51111
+ var _getState18 = getState(),
51112
+ config = _getState18.config;
51018
51113
 
51019
51114
  if (schema && schema.resources) {
51020
- return api.post(tenantId + '/' + appId + '/fileschema', {
51115
+ return api.post(tenantId + '/' + appId + '/' + envId + '/fileschema', {
51021
51116
  endpoint: config.TRANS_API_URL,
51022
51117
  data: schema
51023
51118
  });
@@ -51055,7 +51150,7 @@ module.exports =
51055
51150
 
51056
51151
  return function (dispatch) {
51057
51152
  var map = {};
51058
- return Promise.all([dispatch(callPostBundles(tenantId, appId, bundles, onGenerationError)), dispatch(callPostMapping(tenantId, appId, mappings, onGenerationError)), dispatch(trySaveFileSchema(tenantId, appId, sourceFileSchema)), dispatch(trySaveFileSchema(tenantId, appId, destinationFileSchema)),
51153
+ return Promise.all([dispatch(callPostBundles(tenantId, appId, bundles, onGenerationError)), dispatch(callPostMapping(tenantId, appId, mappings, onGenerationError)), dispatch(trySaveFileSchema(tenantId, appId, envId, sourceFileSchema)), dispatch(trySaveFileSchema(tenantId, appId, envId, destinationFileSchema)),
51059
51154
  // IF REVERSE USE CORRECT METADATA
51060
51155
  dispatch(createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata, envName))]).then(function (r) {
51061
51156
  map = r[1];
@@ -51101,8 +51196,8 @@ module.exports =
51101
51196
 
51102
51197
  function callPostEventContext(data, transBaseId) {
51103
51198
  return function (dispatch, getState, api) {
51104
- var _getState18 = getState(),
51105
- config = _getState18.config;
51199
+ var _getState19 = getState(),
51200
+ config = _getState19.config;
51106
51201
 
51107
51202
  var TRANS_API_URL = config.TRANS_API_URL;
51108
51203
 
@@ -51115,8 +51210,8 @@ module.exports =
51115
51210
 
51116
51211
  function callExecuteTransformer(transId) {
51117
51212
  return function (dispatch, getState, api) {
51118
- var _getState19 = getState(),
51119
- config = _getState19.config;
51213
+ var _getState20 = getState(),
51214
+ config = _getState20.config;
51120
51215
 
51121
51216
  var query = '';
51122
51217
  var d = new Date();
@@ -51136,8 +51231,8 @@ module.exports =
51136
51231
 
51137
51232
  function callLookupLogData(tenantId, externalExecutionId, index, onFinish, generatedRecipe, pi) {
51138
51233
  return function (dispatch, getState, api) {
51139
- var _getState20 = getState(),
51140
- config = _getState20.config;
51234
+ var _getState21 = getState(),
51235
+ config = _getState21.config;
51141
51236
 
51142
51237
  return api.get(tenantId + '/logs/transformers/externalExecutionId/' + externalExecutionId, {
51143
51238
  endpoint: config.TRANS_API_URL
@@ -51208,8 +51303,8 @@ module.exports =
51208
51303
 
51209
51304
  function callGetLogSteps(tenantId, externalExecutionId, index, onFinish, generatedRecipe, pi) {
51210
51305
  return function (dispatch, getState, api) {
51211
- var _getState21 = getState(),
51212
- config = _getState21.config;
51306
+ var _getState22 = getState(),
51307
+ config = _getState22.config;
51213
51308
 
51214
51309
  var TRANS_API_URL = config.TRANS_API_URL;
51215
51310
 
@@ -51248,8 +51343,8 @@ module.exports =
51248
51343
  };
51249
51344
  }
51250
51345
  return function (dispatch, getState, api) {
51251
- var _getState22 = getState(),
51252
- config = _getState22.config;
51346
+ var _getState23 = getState(),
51347
+ config = _getState23.config;
51253
51348
 
51254
51349
  return api.post(tenantId + '/createtrigger', {
51255
51350
  endpoint: config.TRANS_API_URL,
@@ -51286,8 +51381,8 @@ module.exports =
51286
51381
 
51287
51382
  if (piGuid && piGuid !== '_') {
51288
51383
  return function (dispatch, getState, api) {
51289
- var _getState23 = getState(),
51290
- config = _getState23.config;
51384
+ var _getState24 = getState(),
51385
+ config = _getState24.config;
51291
51386
 
51292
51387
  return api.get(tenantId + '/' + accountId + '/productizedintegrations/' + piGuid + '/versions', {
51293
51388
  endpoint: config.TRANS_API_URL
@@ -51360,8 +51455,8 @@ module.exports =
51360
51455
 
51361
51456
  function clearAdapterSecrets() {
51362
51457
  return function (dispatch, getState, api) {
51363
- var _getState24 = getState(),
51364
- wizard = _getState24.wizard;
51458
+ var _getState25 = getState(),
51459
+ wizard = _getState25.wizard;
51365
51460
 
51366
51461
  dispatch({
51367
51462
  type: types.SET_WIZARD_SAVED_CREDENTIALS,
@@ -51375,8 +51470,8 @@ module.exports =
51375
51470
 
51376
51471
  function setLoadedAdapterSecret(cred, mode) {
51377
51472
  return function (dispatch, getState, api) {
51378
- var _getState25 = getState(),
51379
- wizard = _getState25.wizard;
51473
+ var _getState26 = getState(),
51474
+ wizard = _getState26.wizard;
51380
51475
 
51381
51476
  dispatch({
51382
51477
  type: types.SET_WIZARD_SAVED_CREDENTIALS,
@@ -51387,8 +51482,8 @@ module.exports =
51387
51482
 
51388
51483
  function getCredentialForEnvironment(tenantId, appId, credentialType, envName, mode) {
51389
51484
  return function (dispatch, getState, api) {
51390
- var _getState26 = getState(),
51391
- config = _getState26.config;
51485
+ var _getState27 = getState(),
51486
+ config = _getState27.config;
51392
51487
 
51393
51488
  return api.get(tenantId + '/' + appId + '/credentials/' + credentialType + '/' + envName, {
51394
51489
  endpoint: config.TRANS_API_URL
@@ -51439,8 +51534,8 @@ module.exports =
51439
51534
  function callGetBundles(tenantId, accountId, bundlePackGuid) {
51440
51535
  if (bundlePackGuid) {
51441
51536
  return function (dispatch, getState, api) {
51442
- var _getState27 = getState(),
51443
- config = _getState27.config;
51537
+ var _getState28 = getState(),
51538
+ config = _getState28.config;
51444
51539
 
51445
51540
  return api.get(tenantId + '/' + accountId + '/bundle/' + bundlePackGuid, {
51446
51541
  endpoint: config.TRANS_API_URL
@@ -51457,8 +51552,8 @@ module.exports =
51457
51552
  function callGetMapping(tenantId, accountId, mappingGuid) {
51458
51553
  if (mappingGuid) {
51459
51554
  return function (dispatch, getState, api) {
51460
- var _getState28 = getState(),
51461
- config = _getState28.config;
51555
+ var _getState29 = getState(),
51556
+ config = _getState29.config;
51462
51557
 
51463
51558
  return api.get(tenantId + '/' + accountId + '/schemamappings/' + mappingGuid, {
51464
51559
  endpoint: config.TRANS_API_URL
@@ -51479,8 +51574,8 @@ module.exports =
51479
51574
  mode: mode
51480
51575
  });
51481
51576
 
51482
- var _getState29 = getState(),
51483
- config = _getState29.config;
51577
+ var _getState30 = getState(),
51578
+ config = _getState30.config;
51484
51579
 
51485
51580
  return api.post(tenantId + '/' + appId + '/environments/' + envId + '/credentials', {
51486
51581
  endpoint: config.TRANS_API_URL,
@@ -51495,8 +51590,8 @@ module.exports =
51495
51590
 
51496
51591
  function getEnvironments(tenantId, appId) {
51497
51592
  return function (dispatch, getState, api) {
51498
- var _getState30 = getState(),
51499
- config = _getState30.config;
51593
+ var _getState31 = getState(),
51594
+ config = _getState31.config;
51500
51595
 
51501
51596
  return api.get(tenantId + '/' + appId + '/environments', {
51502
51597
  endpoint: config.TRANS_API_URL
@@ -51516,8 +51611,8 @@ module.exports =
51516
51611
 
51517
51612
  function callGetTrigger(transBaseId, envId) {
51518
51613
  return function (dispatch, getState, api) {
51519
- var _getState31 = getState(),
51520
- config = _getState31.config;
51614
+ var _getState32 = getState(),
51615
+ config = _getState32.config;
51521
51616
 
51522
51617
  if (transBaseId) {
51523
51618
  return api.get('gettriggers/' + transBaseId, {
@@ -52000,7 +52095,7 @@ module.exports =
52000
52095
 
52001
52096
  var _react2 = _interopRequireDefault(_react);
52002
52097
 
52003
- var _selectWrapper = __webpack_require__(12);
52098
+ var _selectWrapper = __webpack_require__(13);
52004
52099
 
52005
52100
  var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
52006
52101
 
@@ -53479,7 +53574,7 @@ module.exports =
53479
53574
 
53480
53575
  var _joinVenn2 = _interopRequireDefault(_joinVenn);
53481
53576
 
53482
- var _selectWrapper = __webpack_require__(12);
53577
+ var _selectWrapper = __webpack_require__(13);
53483
53578
 
53484
53579
  var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
53485
53580
 
@@ -54254,7 +54349,7 @@ module.exports =
54254
54349
 
54255
54350
  var _reduxForm = __webpack_require__(2);
54256
54351
 
54257
- var _selectWrapper = __webpack_require__(12);
54352
+ var _selectWrapper = __webpack_require__(13);
54258
54353
 
54259
54354
  var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
54260
54355
 
@@ -54872,7 +54967,7 @@ module.exports =
54872
54967
 
54873
54968
  var _initialize2 = _interopRequireDefault(_initialize);
54874
54969
 
54875
- var _moment = __webpack_require__(24);
54970
+ var _moment = __webpack_require__(11);
54876
54971
 
54877
54972
  var _moment2 = _interopRequireDefault(_moment);
54878
54973
 
@@ -55134,7 +55229,7 @@ module.exports =
55134
55229
 
55135
55230
  var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
55136
55231
 
55137
- var _selectWrapper = __webpack_require__(12);
55232
+ var _selectWrapper = __webpack_require__(13);
55138
55233
 
55139
55234
  var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
55140
55235
 
@@ -55205,6 +55300,17 @@ module.exports =
55205
55300
  actions.generateNewAdapterSecret(tenantId, accountId, envName, mode);
55206
55301
  };
55207
55302
 
55303
+ _this.downloadFileFromAws = function (file) {
55304
+ var _this$props3 = _this.props,
55305
+ tenantId = _this$props3.tenantId,
55306
+ accountId = _this$props3.accountId,
55307
+ tenantKey = _this$props3.tenantKey,
55308
+ accountKey = _this$props3.accountKey,
55309
+ actions = _this$props3.actions;
55310
+
55311
+ return actions.downloadFileFromAws(tenantId, accountId, tenantKey, accountKey, file);
55312
+ };
55313
+
55208
55314
  _this.state = {
55209
55315
  selectedProvider: null,
55210
55316
  sourceEnvChecking: null,
@@ -55291,25 +55397,32 @@ module.exports =
55291
55397
  _this2.setState(_defineProperty({}, mode + 'EnvChecking', false));
55292
55398
  // set meta for File Schema step if needed
55293
55399
  // set defaults of filename and delimiter
55294
- var isFileSchema = metadata && metadata.providerType.toLowerCase() === 'sftp';
55295
- if (isFileSchema) {
55400
+ var isSFTP = metadata && metadata.providerType.toLowerCase() === 'sftp';
55401
+ if (isSFTP) {
55296
55402
  (function () {
55297
55403
  var savedFileSchema = [];
55298
55404
  if (_this2.props.formValues[mode + 'FileSchema']) {
55299
55405
  savedFileSchema = [].concat(_toConsumableArray(formValues[mode + 'FileSchema']));
55300
55406
  }
55301
- change(mode + 'FileSchema', metadata.resources.map(function (r) {
55302
- var existing = savedFileSchema.find(function (rsc) {
55303
- return r.name === rsc.name && r.type === rsc.type;
55304
- });
55305
- if (existing) return existing;
55306
- return Object.assign({}, r, {
55307
- filePattern: r.name,
55308
- delimiter: ','
55309
- });
55310
- }));
55407
+ change(mode + 'FileSchema', {
55408
+ resources: metadata.resources.map(function (r) {
55409
+ var existing = savedFileSchema.find(function (rsc) {
55410
+ return r.name === rsc.name && r.type === rsc.type;
55411
+ });
55412
+ if (existing) return existing;
55413
+ return Object.assign({}, r, {
55414
+ filePattern: r.name,
55415
+ delimiter: ','
55416
+ });
55417
+ })
55418
+ });
55311
55419
  })();
55312
55420
  }
55421
+
55422
+ var isFlat = metadata && metadata.providerType.toLowerCase() === 'flatfile';
55423
+ if (isFlat) {
55424
+ change(mode + 'FileSchema', metadata);
55425
+ }
55313
55426
  //change(`${mode}Credentials`, credentials)
55314
55427
  });
55315
55428
  }
@@ -55578,7 +55691,7 @@ module.exports =
55578
55691
  return _this4.generateNewAdapterSecret(m);
55579
55692
  },
55580
55693
  seeFields: _this4.seeFields.bind(_this4),
55581
- metadata: wizard[m + 'Metadata'],
55694
+ fileSchema: formValues[m + 'FileSchema'],
55582
55695
  check: function check(actualCreds, extraQuery) {
55583
55696
  _this4.check(m, null, actualCreds, null, extraQuery);
55584
55697
  }, change: change,
@@ -55586,6 +55699,7 @@ module.exports =
55586
55699
  setCsvFields: function setCsvFields(meta, contents, providerType) {
55587
55700
  return _this4.setCsvFields(meta, contents, m, providerType);
55588
55701
  },
55702
+ downloadFileFromAws: _this4.downloadFileFromAws,
55589
55703
  clearCsvFields: function clearCsvFields() {
55590
55704
  return _this4.clearCsvFields(m);
55591
55705
  },
@@ -56375,8 +56489,6 @@ module.exports =
56375
56489
 
56376
56490
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
56377
56491
 
56378
- 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); } }
56379
-
56380
56492
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
56381
56493
 
56382
56494
  function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
@@ -56406,8 +56518,8 @@ module.exports =
56406
56518
 
56407
56519
  var providerType = step[step.mode + 'Provider'];
56408
56520
  var fs = formValues[step.mode + 'FileSchema'];
56409
- var fileSchema = [].concat(_toConsumableArray(fs));
56410
- fileSchema.splice(index, 1);
56521
+ var fileSchema = Object.assign({}, fs);
56522
+ fileSchema.resources.splice(index, 1);
56411
56523
  change(step.mode + 'FileSchema', fileSchema);
56412
56524
  actions.removeFileResourceFromMetadata(step.mode, file, providerType);
56413
56525
  }, _temp), _possibleConstructorReturn(_this, _ret);
@@ -56440,13 +56552,13 @@ module.exports =
56440
56552
 
56441
56553
  var fileSchema = formValues[step.mode + 'FileSchema'];
56442
56554
  var filledOut = true;
56443
- if (fileSchema) {
56444
- fileSchema.forEach(function (f) {
56555
+ if (fileSchema && fileSchema.resources) {
56556
+ fileSchema.resources.forEach(function (f) {
56445
56557
  if (!f.delimiter || !f.filePattern) {
56446
56558
  filledOut = false;
56447
56559
  }
56448
56560
  });
56449
- if (fileSchema.length < 1) {
56561
+ if (fileSchema.resources.length < 1) {
56450
56562
  filledOut = false;
56451
56563
  }
56452
56564
  }
@@ -56472,10 +56584,10 @@ module.exports =
56472
56584
  _react2.default.createElement(
56473
56585
  'div',
56474
56586
  { className: 'labelz', style: { fontSize: '14px', marginBottom: 5 } },
56475
- fileSchema && fileSchema.length > 0 ? 'Available Files:' : 'No available files. Please upload files to your SFTP server and click Check Connection in the Environments step.'
56587
+ fileSchema && fileSchema.resources && fileSchema.fileSchema.length > 0 ? 'Available Files:' : 'No available files. Please upload files to your SFTP server and click Check Connection in the Environments step.'
56476
56588
  ),
56477
- fileSchema && fileSchema.length > 0 && _react2.default.createElement(FileTable, {
56478
- files: fileSchema, inputs: inputs, mode: step.mode,
56589
+ fileSchema && fileSchema.resources && fileSchema.fileSchema.length > 0 && _react2.default.createElement(FileTable, {
56590
+ files: fileSchema.resources, inputs: inputs, mode: step.mode,
56479
56591
  removeFile: this.removeFile
56480
56592
  }),
56481
56593
  _react2.default.createElement('br', null),
@@ -59667,7 +59779,7 @@ module.exports =
59667
59779
  , $assign = Object.assign;
59668
59780
 
59669
59781
  // should work with symbols and should have deterministic property order (V8 bug)
59670
- module.exports = !$assign || __webpack_require__(13)(function(){
59782
+ module.exports = !$assign || __webpack_require__(14)(function(){
59671
59783
  var A = {}
59672
59784
  , B = {}
59673
59785
  , S = Symbol()
@@ -59727,7 +59839,7 @@ module.exports =
59727
59839
 
59728
59840
  var $export = __webpack_require__(25);
59729
59841
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
59730
- $export($export.S + $export.F * !__webpack_require__(10), 'Object', {defineProperty: __webpack_require__(20).f});
59842
+ $export($export.S + $export.F * !__webpack_require__(10), 'Object', {defineProperty: __webpack_require__(21).f});
59731
59843
 
59732
59844
  /***/ },
59733
59845
  /* 185 */,
@@ -61154,7 +61266,7 @@ module.exports =
61154
61266
 
61155
61267
  var _react2 = _interopRequireDefault(_react);
61156
61268
 
61157
- var _reactDom = __webpack_require__(11);
61269
+ var _reactDom = __webpack_require__(12);
61158
61270
 
61159
61271
  var _reactDom2 = _interopRequireDefault(_reactDom);
61160
61272
 
@@ -61688,7 +61800,7 @@ module.exports =
61688
61800
 
61689
61801
  var _react2 = _interopRequireDefault(_react);
61690
61802
 
61691
- var _reactDom = __webpack_require__(11);
61803
+ var _reactDom = __webpack_require__(12);
61692
61804
 
61693
61805
  var _reactDom2 = _interopRequireDefault(_reactDom);
61694
61806
 
@@ -62165,7 +62277,7 @@ module.exports =
62165
62277
 
62166
62278
  var _react2 = _interopRequireDefault(_react);
62167
62279
 
62168
- var _moment = __webpack_require__(24);
62280
+ var _moment = __webpack_require__(11);
62169
62281
 
62170
62282
  var _moment2 = _interopRequireDefault(_moment);
62171
62283
 
@@ -62373,7 +62485,7 @@ module.exports =
62373
62485
 
62374
62486
  var _Combobox2 = _interopRequireDefault(_Combobox);
62375
62487
 
62376
- var _moment = __webpack_require__(24);
62488
+ var _moment = __webpack_require__(11);
62377
62489
 
62378
62490
  var _moment2 = _interopRequireDefault(_moment);
62379
62491
 
@@ -62559,7 +62671,7 @@ module.exports =
62559
62671
 
62560
62672
  var _react2 = _interopRequireDefault(_react);
62561
62673
 
62562
- var _reactDom = __webpack_require__(11);
62674
+ var _reactDom = __webpack_require__(12);
62563
62675
 
62564
62676
  var _reactDom2 = _interopRequireDefault(_reactDom);
62565
62677
 
@@ -62728,7 +62840,7 @@ module.exports =
62728
62840
 
62729
62841
  var _placements2 = _interopRequireDefault(_placements);
62730
62842
 
62731
- var _moment = __webpack_require__(24);
62843
+ var _moment = __webpack_require__(11);
62732
62844
 
62733
62845
  var _moment2 = _interopRequireDefault(_moment);
62734
62846
 
@@ -63088,7 +63200,7 @@ module.exports =
63088
63200
 
63089
63201
  var _react2 = _interopRequireDefault(_react);
63090
63202
 
63091
- var _reactDom = __webpack_require__(11);
63203
+ var _reactDom = __webpack_require__(12);
63092
63204
 
63093
63205
  var _reactDom2 = _interopRequireDefault(_reactDom);
63094
63206
 
@@ -63376,7 +63488,7 @@ module.exports =
63376
63488
 
63377
63489
  var _react2 = _interopRequireDefault(_react);
63378
63490
 
63379
- var _reactDom = __webpack_require__(11);
63491
+ var _reactDom = __webpack_require__(12);
63380
63492
 
63381
63493
  var _reactDom2 = _interopRequireDefault(_reactDom);
63382
63494
 
@@ -63942,7 +64054,7 @@ module.exports =
63942
64054
 
63943
64055
  exports["default"] = getContainerRenderMixin;
63944
64056
 
63945
- var _reactDom = __webpack_require__(11);
64057
+ var _reactDom = __webpack_require__(12);
63946
64058
 
63947
64059
  var _reactDom2 = _interopRequireDefault(_reactDom);
63948
64060
 
@@ -64066,7 +64178,7 @@ module.exports =
64066
64178
 
64067
64179
  var _propTypes2 = _interopRequireDefault(_propTypes);
64068
64180
 
64069
- var _reactDom = __webpack_require__(11);
64181
+ var _reactDom = __webpack_require__(12);
64070
64182
 
64071
64183
  var _PropTypes = __webpack_require__(90);
64072
64184