@lingk/sync 1.1.5 → 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/README.md +2 -3
- package/build/credentialSections.js +38 -16
- package/build/credentialSections.js.map +1 -1
- package/build/lightning.js +48 -48
- 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 +127 -101
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js +2 -2
- 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
package/build/main.js
CHANGED
|
@@ -215,7 +215,7 @@ module.exports =
|
|
|
215
215
|
value: true
|
|
216
216
|
});
|
|
217
217
|
|
|
218
|
-
var _moment = __webpack_require__(
|
|
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__(
|
|
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("
|
|
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
|
-
/*
|
|
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
|
-
/*
|
|
604
|
+
/* 15 */
|
|
599
605
|
/***/ function(module, exports, __webpack_require__) {
|
|
600
606
|
|
|
601
|
-
var dP = __webpack_require__(
|
|
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
|
-
/*
|
|
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
|
-
/*
|
|
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
|
-
/*
|
|
2421
|
+
/* 18 */
|
|
2416
2422
|
/***/ function(module, exports, __webpack_require__) {
|
|
2417
2423
|
|
|
2418
|
-
var isObject = __webpack_require__(
|
|
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
|
-
/*
|
|
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
|
-
/*
|
|
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
|
-
/*
|
|
2450
|
+
/* 21 */
|
|
2445
2451
|
/***/ function(module, exports, __webpack_require__) {
|
|
2446
2452
|
|
|
2447
|
-
var anObject = __webpack_require__(
|
|
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
|
-
/*
|
|
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
|
-
/*
|
|
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__(
|
|
2487
|
+
, defined = __webpack_require__(19);
|
|
2482
2488
|
module.exports = function(it){
|
|
2483
2489
|
return IObject(defined(it));
|
|
2484
2490
|
};
|
|
2485
2491
|
|
|
2486
2492
|
/***/ },
|
|
2487
|
-
/*
|
|
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__(
|
|
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__(
|
|
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__(
|
|
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__(
|
|
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
|
|
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.
|
|
5688
|
+
reader.readAsArrayBuffer(file); // read as binary string???
|
|
5678
5689
|
} else {
|
|
5679
5690
|
reader.readAsText(file);
|
|
5680
5691
|
}
|
|
@@ -5730,9 +5741,10 @@ module.exports =
|
|
|
5730
5741
|
uploading = _state.uploading,
|
|
5731
5742
|
dropError = _state.dropError;
|
|
5732
5743
|
var _props = this.props,
|
|
5733
|
-
|
|
5744
|
+
fileSchema = _props.fileSchema,
|
|
5734
5745
|
inputs = _props.inputs;
|
|
5735
5746
|
|
|
5747
|
+
var files = fileSchema && fileSchema.resources;
|
|
5736
5748
|
var Button = inputs.Button;
|
|
5737
5749
|
var Spinner = inputs.Spinner;
|
|
5738
5750
|
var hasFile = meta && meta.length > 0;
|
|
@@ -5803,7 +5815,7 @@ module.exports =
|
|
|
5803
5815
|
})
|
|
5804
5816
|
)
|
|
5805
5817
|
),
|
|
5806
|
-
!uploading && !hasFile &&
|
|
5818
|
+
!uploading && !hasFile && files && files.length > 0 && _react2.default.createElement(
|
|
5807
5819
|
'div',
|
|
5808
5820
|
{ style: {
|
|
5809
5821
|
marginLeft: 20, display: 'inline-block', marginTop: 13, verticalAlign: 'top'
|
|
@@ -5814,18 +5826,23 @@ module.exports =
|
|
|
5814
5826
|
_react2.default.createElement(
|
|
5815
5827
|
'strong',
|
|
5816
5828
|
{ style: { marginRight: 5 } },
|
|
5817
|
-
|
|
5829
|
+
files && files.length
|
|
5830
|
+
),
|
|
5831
|
+
_react2.default.createElement(
|
|
5832
|
+
'strong',
|
|
5833
|
+
null,
|
|
5834
|
+
'file' + (files.length === 1 ? '' : 's') + ' uploaded on '
|
|
5818
5835
|
),
|
|
5819
5836
|
_react2.default.createElement(
|
|
5820
5837
|
'strong',
|
|
5821
5838
|
null,
|
|
5822
|
-
|
|
5839
|
+
(0, _moment2.default)(fileSchema.uploadedTime).format('MMM Do Y, h:mm a')
|
|
5823
5840
|
)
|
|
5824
5841
|
),
|
|
5825
5842
|
_react2.default.createElement(
|
|
5826
5843
|
'ul',
|
|
5827
5844
|
{ style: { padding: 0 } },
|
|
5828
|
-
|
|
5845
|
+
files.map(function (f, i) {
|
|
5829
5846
|
return _react2.default.createElement(
|
|
5830
5847
|
'li',
|
|
5831
5848
|
{ key: i, style: { listStyle: 'none' } },
|
|
@@ -6155,7 +6172,7 @@ module.exports =
|
|
|
6155
6172
|
wizard = _props.wizard,
|
|
6156
6173
|
adapterSecret = _props.adapterSecret,
|
|
6157
6174
|
checkOauthCreds = _props.checkOauthCreds,
|
|
6158
|
-
|
|
6175
|
+
fileSchema = _props.fileSchema,
|
|
6159
6176
|
getOauthUrl = _props.getOauthUrl,
|
|
6160
6177
|
generateNewAdapterSecret = _props.generateNewAdapterSecret,
|
|
6161
6178
|
setCsvFields = _props.setCsvFields,
|
|
@@ -6214,7 +6231,7 @@ module.exports =
|
|
|
6214
6231
|
checkOauthCreds: checkOauthCreds, envCheckResult: envCheckResult,
|
|
6215
6232
|
checking: checking, inputs: inputs, formValues: formValues,
|
|
6216
6233
|
isWiz: _react2.default.Children.count(this.props.children) > 0
|
|
6217
|
-
}) : isFlatFile ? _react2.default.createElement(_flatfile2.default, { wizard: wizard, onCheck: check,
|
|
6234
|
+
}) : isFlatFile ? _react2.default.createElement(_flatfile2.default, { wizard: wizard, onCheck: check, fileSchema: fileSchema,
|
|
6218
6235
|
checking: checking, setCsvFields: setCsvFields,
|
|
6219
6236
|
providerType: providerType, inputs: inputs,
|
|
6220
6237
|
accountKey: accountKey, tenantKey: tenantKey,
|
|
@@ -7202,7 +7219,7 @@ module.exports =
|
|
|
7202
7219
|
|
|
7203
7220
|
// false -> Array#indexOf
|
|
7204
7221
|
// true -> Array#includes
|
|
7205
|
-
var toIObject = __webpack_require__(
|
|
7222
|
+
var toIObject = __webpack_require__(23)
|
|
7206
7223
|
, toLength = __webpack_require__(62)
|
|
7207
7224
|
, toIndex = __webpack_require__(61);
|
|
7208
7225
|
module.exports = function(IS_INCLUDES){
|
|
@@ -7251,7 +7268,7 @@ module.exports =
|
|
|
7251
7268
|
/* 59 */
|
|
7252
7269
|
/***/ function(module, exports, __webpack_require__) {
|
|
7253
7270
|
|
|
7254
|
-
module.exports = !__webpack_require__(10) && !__webpack_require__(
|
|
7271
|
+
module.exports = !__webpack_require__(10) && !__webpack_require__(14)(function(){
|
|
7255
7272
|
return Object.defineProperty(__webpack_require__(33)('div'), 'a', {get: function(){ return 7; }}).a != 7;
|
|
7256
7273
|
});
|
|
7257
7274
|
|
|
@@ -7259,8 +7276,8 @@ module.exports =
|
|
|
7259
7276
|
/* 60 */
|
|
7260
7277
|
/***/ function(module, exports, __webpack_require__) {
|
|
7261
7278
|
|
|
7262
|
-
var has = __webpack_require__(
|
|
7263
|
-
, toIObject = __webpack_require__(
|
|
7279
|
+
var has = __webpack_require__(20)
|
|
7280
|
+
, toIObject = __webpack_require__(23)
|
|
7264
7281
|
, arrayIndexOf = __webpack_require__(57)(false)
|
|
7265
7282
|
, IE_PROTO = __webpack_require__(26)('IE_PROTO');
|
|
7266
7283
|
|
|
@@ -7281,7 +7298,7 @@ module.exports =
|
|
|
7281
7298
|
/* 61 */
|
|
7282
7299
|
/***/ function(module, exports, __webpack_require__) {
|
|
7283
7300
|
|
|
7284
|
-
var toInteger = __webpack_require__(
|
|
7301
|
+
var toInteger = __webpack_require__(22)
|
|
7285
7302
|
, max = Math.max
|
|
7286
7303
|
, min = Math.min;
|
|
7287
7304
|
module.exports = function(index, length){
|
|
@@ -7294,7 +7311,7 @@ module.exports =
|
|
|
7294
7311
|
/***/ function(module, exports, __webpack_require__) {
|
|
7295
7312
|
|
|
7296
7313
|
// 7.1.15 ToLength
|
|
7297
|
-
var toInteger = __webpack_require__(
|
|
7314
|
+
var toInteger = __webpack_require__(22)
|
|
7298
7315
|
, min = Math.min;
|
|
7299
7316
|
module.exports = function(it){
|
|
7300
7317
|
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
|
@@ -7305,7 +7322,7 @@ module.exports =
|
|
|
7305
7322
|
/***/ function(module, exports, __webpack_require__) {
|
|
7306
7323
|
|
|
7307
7324
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
7308
|
-
var isObject = __webpack_require__(
|
|
7325
|
+
var isObject = __webpack_require__(16);
|
|
7309
7326
|
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
|
7310
7327
|
// and the second argument - flag - preferred type is a string
|
|
7311
7328
|
module.exports = function(it, S){
|
|
@@ -27268,7 +27285,7 @@ module.exports =
|
|
|
27268
27285
|
(9)
|
|
27269
27286
|
}));
|
|
27270
27287
|
|
|
27271
|
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(
|
|
27288
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17).Buffer, (function() { return this; }())))
|
|
27272
27289
|
|
|
27273
27290
|
/***/ },
|
|
27274
27291
|
/* 73 */
|
|
@@ -47523,7 +47540,7 @@ module.exports =
|
|
|
47523
47540
|
/*exported XLS, ODS */
|
|
47524
47541
|
var XLS = XLSX, ODS = XLSX;
|
|
47525
47542
|
|
|
47526
|
-
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(
|
|
47543
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(17).Buffer, __webpack_require__(70)))
|
|
47527
47544
|
|
|
47528
47545
|
/***/ },
|
|
47529
47546
|
/* 74 */
|
|
@@ -47557,7 +47574,7 @@ module.exports =
|
|
|
47557
47574
|
|
|
47558
47575
|
var _react2 = _interopRequireDefault(_react);
|
|
47559
47576
|
|
|
47560
|
-
var _selectWrapper = __webpack_require__(
|
|
47577
|
+
var _selectWrapper = __webpack_require__(13);
|
|
47561
47578
|
|
|
47562
47579
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
47563
47580
|
|
|
@@ -48237,7 +48254,7 @@ module.exports =
|
|
|
48237
48254
|
|
|
48238
48255
|
var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
|
|
48239
48256
|
|
|
48240
|
-
var _reactDom = __webpack_require__(
|
|
48257
|
+
var _reactDom = __webpack_require__(12);
|
|
48241
48258
|
|
|
48242
48259
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
48243
48260
|
|
|
@@ -48258,7 +48275,7 @@ module.exports =
|
|
|
48258
48275
|
|
|
48259
48276
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
48260
48277
|
if(true)
|
|
48261
|
-
module.exports = factory(__webpack_require__(1), __webpack_require__(
|
|
48278
|
+
module.exports = factory(__webpack_require__(1), __webpack_require__(12));
|
|
48262
48279
|
else if(typeof define === 'function' && define.amd)
|
|
48263
48280
|
define(["react", "react-dom"], factory);
|
|
48264
48281
|
else if(typeof exports === 'object')
|
|
@@ -50425,7 +50442,7 @@ module.exports =
|
|
|
50425
50442
|
|
|
50426
50443
|
var types = _interopRequireWildcard(_types);
|
|
50427
50444
|
|
|
50428
|
-
var _moment = __webpack_require__(
|
|
50445
|
+
var _moment = __webpack_require__(11);
|
|
50429
50446
|
|
|
50430
50447
|
var _moment2 = _interopRequireDefault(_moment);
|
|
50431
50448
|
|
|
@@ -50620,7 +50637,7 @@ module.exports =
|
|
|
50620
50637
|
var _getState3 = getState(),
|
|
50621
50638
|
config = _getState3.config;
|
|
50622
50639
|
|
|
50623
|
-
return api.post(tenantId + '/' + appId + '/uploadpolicy', {
|
|
50640
|
+
return api.post(tenantId + '/' + appId + '/' + envId + '/uploadpolicy', {
|
|
50624
50641
|
endpoint: config.TRANS_API_URL,
|
|
50625
50642
|
data: { name: 'flatfile', resources: metadata, providerType: providerType, isSource: isSource }
|
|
50626
50643
|
}).then(function (data) {
|
|
@@ -50718,7 +50735,6 @@ module.exports =
|
|
|
50718
50735
|
var _getState5 = getState(),
|
|
50719
50736
|
config = _getState5.config;
|
|
50720
50737
|
|
|
50721
|
-
console.log(file);
|
|
50722
50738
|
return api.get(tenantId + '/' + appId + '/downloadpolicy/' + file.fileHash, {
|
|
50723
50739
|
endpoint: config.TRANS_API_URL
|
|
50724
50740
|
}).then(function (d) {
|
|
@@ -50728,19 +50744,24 @@ module.exports =
|
|
|
50728
50744
|
});
|
|
50729
50745
|
}).then(function (f) {
|
|
50730
50746
|
var extension = file.name.substr(file.name.lastIndexOf('.') + 1, file.name.length);
|
|
50731
|
-
console.log(extension);
|
|
50732
50747
|
var mime = 'data:text/plain;charset=utf-8,'; // csv
|
|
50748
|
+
var data = f.data;
|
|
50733
50749
|
if (extension === 'json') {
|
|
50750
|
+
console.log('json!!!!');
|
|
50734
50751
|
mime = 'data:text/json;charset=utf-8,';
|
|
50752
|
+
data = encodeURIComponent(JSON.stringify(f.data));
|
|
50735
50753
|
} else if (extension === 'xls') {
|
|
50736
|
-
mime = 'application/vnd.ms-excel;';
|
|
50754
|
+
mime = 'data:application/vnd.ms-excel;charset=utf-8,';
|
|
50755
|
+
data = encodeURIComponent(f.data);
|
|
50737
50756
|
} else if (extension === 'xlsx') {
|
|
50738
|
-
mime = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;';
|
|
50757
|
+
mime = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8,';
|
|
50758
|
+
data = encodeURIComponent(f.data);
|
|
50739
50759
|
}
|
|
50760
|
+
console.log(data);
|
|
50740
50761
|
// NEED TO DOWNLOAD DEPENDING ON TYPE, JSON VS XLS
|
|
50741
50762
|
var element = document.createElement('a');
|
|
50742
|
-
element.setAttribute('href', mime +
|
|
50743
|
-
element.setAttribute('download',
|
|
50763
|
+
element.setAttribute('href', mime + data);
|
|
50764
|
+
element.setAttribute('download', 'hi.xlsx');
|
|
50744
50765
|
element.style.display = 'none';
|
|
50745
50766
|
document.body.appendChild(element);
|
|
50746
50767
|
element.click();
|
|
@@ -51085,13 +51106,13 @@ module.exports =
|
|
|
51085
51106
|
};
|
|
51086
51107
|
}
|
|
51087
51108
|
|
|
51088
|
-
function trySaveFileSchema(tenantId, appId, schema) {
|
|
51109
|
+
function trySaveFileSchema(tenantId, appId, envId, schema) {
|
|
51089
51110
|
return function (dispatch, getState, api) {
|
|
51090
51111
|
var _getState18 = getState(),
|
|
51091
51112
|
config = _getState18.config;
|
|
51092
51113
|
|
|
51093
51114
|
if (schema && schema.resources) {
|
|
51094
|
-
return api.post(tenantId + '/' + appId + '/fileschema', {
|
|
51115
|
+
return api.post(tenantId + '/' + appId + '/' + envId + '/fileschema', {
|
|
51095
51116
|
endpoint: config.TRANS_API_URL,
|
|
51096
51117
|
data: schema
|
|
51097
51118
|
});
|
|
@@ -51129,7 +51150,7 @@ module.exports =
|
|
|
51129
51150
|
|
|
51130
51151
|
return function (dispatch) {
|
|
51131
51152
|
var map = {};
|
|
51132
|
-
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)),
|
|
51133
51154
|
// IF REVERSE USE CORRECT METADATA
|
|
51134
51155
|
dispatch(createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata, envName))]).then(function (r) {
|
|
51135
51156
|
map = r[1];
|
|
@@ -52074,7 +52095,7 @@ module.exports =
|
|
|
52074
52095
|
|
|
52075
52096
|
var _react2 = _interopRequireDefault(_react);
|
|
52076
52097
|
|
|
52077
|
-
var _selectWrapper = __webpack_require__(
|
|
52098
|
+
var _selectWrapper = __webpack_require__(13);
|
|
52078
52099
|
|
|
52079
52100
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
52080
52101
|
|
|
@@ -53553,7 +53574,7 @@ module.exports =
|
|
|
53553
53574
|
|
|
53554
53575
|
var _joinVenn2 = _interopRequireDefault(_joinVenn);
|
|
53555
53576
|
|
|
53556
|
-
var _selectWrapper = __webpack_require__(
|
|
53577
|
+
var _selectWrapper = __webpack_require__(13);
|
|
53557
53578
|
|
|
53558
53579
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
53559
53580
|
|
|
@@ -54328,7 +54349,7 @@ module.exports =
|
|
|
54328
54349
|
|
|
54329
54350
|
var _reduxForm = __webpack_require__(2);
|
|
54330
54351
|
|
|
54331
|
-
var _selectWrapper = __webpack_require__(
|
|
54352
|
+
var _selectWrapper = __webpack_require__(13);
|
|
54332
54353
|
|
|
54333
54354
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
54334
54355
|
|
|
@@ -54946,7 +54967,7 @@ module.exports =
|
|
|
54946
54967
|
|
|
54947
54968
|
var _initialize2 = _interopRequireDefault(_initialize);
|
|
54948
54969
|
|
|
54949
|
-
var _moment = __webpack_require__(
|
|
54970
|
+
var _moment = __webpack_require__(11);
|
|
54950
54971
|
|
|
54951
54972
|
var _moment2 = _interopRequireDefault(_moment);
|
|
54952
54973
|
|
|
@@ -55208,7 +55229,7 @@ module.exports =
|
|
|
55208
55229
|
|
|
55209
55230
|
var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
|
|
55210
55231
|
|
|
55211
|
-
var _selectWrapper = __webpack_require__(
|
|
55232
|
+
var _selectWrapper = __webpack_require__(13);
|
|
55212
55233
|
|
|
55213
55234
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
55214
55235
|
|
|
@@ -55376,25 +55397,32 @@ module.exports =
|
|
|
55376
55397
|
_this2.setState(_defineProperty({}, mode + 'EnvChecking', false));
|
|
55377
55398
|
// set meta for File Schema step if needed
|
|
55378
55399
|
// set defaults of filename and delimiter
|
|
55379
|
-
var
|
|
55380
|
-
if (
|
|
55400
|
+
var isSFTP = metadata && metadata.providerType.toLowerCase() === 'sftp';
|
|
55401
|
+
if (isSFTP) {
|
|
55381
55402
|
(function () {
|
|
55382
55403
|
var savedFileSchema = [];
|
|
55383
55404
|
if (_this2.props.formValues[mode + 'FileSchema']) {
|
|
55384
55405
|
savedFileSchema = [].concat(_toConsumableArray(formValues[mode + 'FileSchema']));
|
|
55385
55406
|
}
|
|
55386
|
-
change(mode + 'FileSchema',
|
|
55387
|
-
|
|
55388
|
-
|
|
55389
|
-
|
|
55390
|
-
|
|
55391
|
-
|
|
55392
|
-
|
|
55393
|
-
|
|
55394
|
-
|
|
55395
|
-
|
|
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
|
+
});
|
|
55396
55419
|
})();
|
|
55397
55420
|
}
|
|
55421
|
+
|
|
55422
|
+
var isFlat = metadata && metadata.providerType.toLowerCase() === 'flatfile';
|
|
55423
|
+
if (isFlat) {
|
|
55424
|
+
change(mode + 'FileSchema', metadata);
|
|
55425
|
+
}
|
|
55398
55426
|
//change(`${mode}Credentials`, credentials)
|
|
55399
55427
|
});
|
|
55400
55428
|
}
|
|
@@ -55663,7 +55691,7 @@ module.exports =
|
|
|
55663
55691
|
return _this4.generateNewAdapterSecret(m);
|
|
55664
55692
|
},
|
|
55665
55693
|
seeFields: _this4.seeFields.bind(_this4),
|
|
55666
|
-
|
|
55694
|
+
fileSchema: formValues[m + 'FileSchema'],
|
|
55667
55695
|
check: function check(actualCreds, extraQuery) {
|
|
55668
55696
|
_this4.check(m, null, actualCreds, null, extraQuery);
|
|
55669
55697
|
}, change: change,
|
|
@@ -56461,8 +56489,6 @@ module.exports =
|
|
|
56461
56489
|
|
|
56462
56490
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
56463
56491
|
|
|
56464
|
-
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); } }
|
|
56465
|
-
|
|
56466
56492
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
56467
56493
|
|
|
56468
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; }
|
|
@@ -56492,8 +56518,8 @@ module.exports =
|
|
|
56492
56518
|
|
|
56493
56519
|
var providerType = step[step.mode + 'Provider'];
|
|
56494
56520
|
var fs = formValues[step.mode + 'FileSchema'];
|
|
56495
|
-
var fileSchema =
|
|
56496
|
-
fileSchema.splice(index, 1);
|
|
56521
|
+
var fileSchema = Object.assign({}, fs);
|
|
56522
|
+
fileSchema.resources.splice(index, 1);
|
|
56497
56523
|
change(step.mode + 'FileSchema', fileSchema);
|
|
56498
56524
|
actions.removeFileResourceFromMetadata(step.mode, file, providerType);
|
|
56499
56525
|
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
@@ -56526,13 +56552,13 @@ module.exports =
|
|
|
56526
56552
|
|
|
56527
56553
|
var fileSchema = formValues[step.mode + 'FileSchema'];
|
|
56528
56554
|
var filledOut = true;
|
|
56529
|
-
if (fileSchema) {
|
|
56530
|
-
fileSchema.forEach(function (f) {
|
|
56555
|
+
if (fileSchema && fileSchema.resources) {
|
|
56556
|
+
fileSchema.resources.forEach(function (f) {
|
|
56531
56557
|
if (!f.delimiter || !f.filePattern) {
|
|
56532
56558
|
filledOut = false;
|
|
56533
56559
|
}
|
|
56534
56560
|
});
|
|
56535
|
-
if (fileSchema.length < 1) {
|
|
56561
|
+
if (fileSchema.resources.length < 1) {
|
|
56536
56562
|
filledOut = false;
|
|
56537
56563
|
}
|
|
56538
56564
|
}
|
|
@@ -56558,10 +56584,10 @@ module.exports =
|
|
|
56558
56584
|
_react2.default.createElement(
|
|
56559
56585
|
'div',
|
|
56560
56586
|
{ className: 'labelz', style: { fontSize: '14px', marginBottom: 5 } },
|
|
56561
|
-
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.'
|
|
56562
56588
|
),
|
|
56563
|
-
fileSchema && fileSchema.length > 0 && _react2.default.createElement(FileTable, {
|
|
56564
|
-
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,
|
|
56565
56591
|
removeFile: this.removeFile
|
|
56566
56592
|
}),
|
|
56567
56593
|
_react2.default.createElement('br', null),
|
|
@@ -59753,7 +59779,7 @@ module.exports =
|
|
|
59753
59779
|
, $assign = Object.assign;
|
|
59754
59780
|
|
|
59755
59781
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
59756
|
-
module.exports = !$assign || __webpack_require__(
|
|
59782
|
+
module.exports = !$assign || __webpack_require__(14)(function(){
|
|
59757
59783
|
var A = {}
|
|
59758
59784
|
, B = {}
|
|
59759
59785
|
, S = Symbol()
|
|
@@ -59813,7 +59839,7 @@ module.exports =
|
|
|
59813
59839
|
|
|
59814
59840
|
var $export = __webpack_require__(25);
|
|
59815
59841
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
59816
|
-
$export($export.S + $export.F * !__webpack_require__(10), 'Object', {defineProperty: __webpack_require__(
|
|
59842
|
+
$export($export.S + $export.F * !__webpack_require__(10), 'Object', {defineProperty: __webpack_require__(21).f});
|
|
59817
59843
|
|
|
59818
59844
|
/***/ },
|
|
59819
59845
|
/* 185 */,
|
|
@@ -61240,7 +61266,7 @@ module.exports =
|
|
|
61240
61266
|
|
|
61241
61267
|
var _react2 = _interopRequireDefault(_react);
|
|
61242
61268
|
|
|
61243
|
-
var _reactDom = __webpack_require__(
|
|
61269
|
+
var _reactDom = __webpack_require__(12);
|
|
61244
61270
|
|
|
61245
61271
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
61246
61272
|
|
|
@@ -61774,7 +61800,7 @@ module.exports =
|
|
|
61774
61800
|
|
|
61775
61801
|
var _react2 = _interopRequireDefault(_react);
|
|
61776
61802
|
|
|
61777
|
-
var _reactDom = __webpack_require__(
|
|
61803
|
+
var _reactDom = __webpack_require__(12);
|
|
61778
61804
|
|
|
61779
61805
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
61780
61806
|
|
|
@@ -62251,7 +62277,7 @@ module.exports =
|
|
|
62251
62277
|
|
|
62252
62278
|
var _react2 = _interopRequireDefault(_react);
|
|
62253
62279
|
|
|
62254
|
-
var _moment = __webpack_require__(
|
|
62280
|
+
var _moment = __webpack_require__(11);
|
|
62255
62281
|
|
|
62256
62282
|
var _moment2 = _interopRequireDefault(_moment);
|
|
62257
62283
|
|
|
@@ -62459,7 +62485,7 @@ module.exports =
|
|
|
62459
62485
|
|
|
62460
62486
|
var _Combobox2 = _interopRequireDefault(_Combobox);
|
|
62461
62487
|
|
|
62462
|
-
var _moment = __webpack_require__(
|
|
62488
|
+
var _moment = __webpack_require__(11);
|
|
62463
62489
|
|
|
62464
62490
|
var _moment2 = _interopRequireDefault(_moment);
|
|
62465
62491
|
|
|
@@ -62645,7 +62671,7 @@ module.exports =
|
|
|
62645
62671
|
|
|
62646
62672
|
var _react2 = _interopRequireDefault(_react);
|
|
62647
62673
|
|
|
62648
|
-
var _reactDom = __webpack_require__(
|
|
62674
|
+
var _reactDom = __webpack_require__(12);
|
|
62649
62675
|
|
|
62650
62676
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
62651
62677
|
|
|
@@ -62814,7 +62840,7 @@ module.exports =
|
|
|
62814
62840
|
|
|
62815
62841
|
var _placements2 = _interopRequireDefault(_placements);
|
|
62816
62842
|
|
|
62817
|
-
var _moment = __webpack_require__(
|
|
62843
|
+
var _moment = __webpack_require__(11);
|
|
62818
62844
|
|
|
62819
62845
|
var _moment2 = _interopRequireDefault(_moment);
|
|
62820
62846
|
|
|
@@ -63174,7 +63200,7 @@ module.exports =
|
|
|
63174
63200
|
|
|
63175
63201
|
var _react2 = _interopRequireDefault(_react);
|
|
63176
63202
|
|
|
63177
|
-
var _reactDom = __webpack_require__(
|
|
63203
|
+
var _reactDom = __webpack_require__(12);
|
|
63178
63204
|
|
|
63179
63205
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
63180
63206
|
|
|
@@ -63462,7 +63488,7 @@ module.exports =
|
|
|
63462
63488
|
|
|
63463
63489
|
var _react2 = _interopRequireDefault(_react);
|
|
63464
63490
|
|
|
63465
|
-
var _reactDom = __webpack_require__(
|
|
63491
|
+
var _reactDom = __webpack_require__(12);
|
|
63466
63492
|
|
|
63467
63493
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
63468
63494
|
|
|
@@ -64028,7 +64054,7 @@ module.exports =
|
|
|
64028
64054
|
|
|
64029
64055
|
exports["default"] = getContainerRenderMixin;
|
|
64030
64056
|
|
|
64031
|
-
var _reactDom = __webpack_require__(
|
|
64057
|
+
var _reactDom = __webpack_require__(12);
|
|
64032
64058
|
|
|
64033
64059
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
64034
64060
|
|
|
@@ -64152,7 +64178,7 @@ module.exports =
|
|
|
64152
64178
|
|
|
64153
64179
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
64154
64180
|
|
|
64155
|
-
var _reactDom = __webpack_require__(
|
|
64181
|
+
var _reactDom = __webpack_require__(12);
|
|
64156
64182
|
|
|
64157
64183
|
var _PropTypes = __webpack_require__(90);
|
|
64158
64184
|
|