@lingk/sync 1.1.5 → 1.1.7
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 +136 -103
- 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) {
|
|
@@ -50632,6 +50649,7 @@ module.exports =
|
|
|
50632
50649
|
type: types.FINISH_WIZARD_ENV_CHECK,
|
|
50633
50650
|
data: { metadata: { resources: metadata }, mode: mode, code: '200 OK', providerType: providerType }
|
|
50634
50651
|
});
|
|
50652
|
+
return metadata;
|
|
50635
50653
|
});
|
|
50636
50654
|
}).catch(function (err) {
|
|
50637
50655
|
console.log(err);
|
|
@@ -50718,7 +50736,6 @@ module.exports =
|
|
|
50718
50736
|
var _getState5 = getState(),
|
|
50719
50737
|
config = _getState5.config;
|
|
50720
50738
|
|
|
50721
|
-
console.log(file);
|
|
50722
50739
|
return api.get(tenantId + '/' + appId + '/downloadpolicy/' + file.fileHash, {
|
|
50723
50740
|
endpoint: config.TRANS_API_URL
|
|
50724
50741
|
}).then(function (d) {
|
|
@@ -50728,19 +50745,24 @@ module.exports =
|
|
|
50728
50745
|
});
|
|
50729
50746
|
}).then(function (f) {
|
|
50730
50747
|
var extension = file.name.substr(file.name.lastIndexOf('.') + 1, file.name.length);
|
|
50731
|
-
console.log(extension);
|
|
50732
50748
|
var mime = 'data:text/plain;charset=utf-8,'; // csv
|
|
50749
|
+
var data = f.data;
|
|
50733
50750
|
if (extension === 'json') {
|
|
50751
|
+
console.log('json!!!!');
|
|
50734
50752
|
mime = 'data:text/json;charset=utf-8,';
|
|
50753
|
+
data = encodeURIComponent(JSON.stringify(f.data));
|
|
50735
50754
|
} else if (extension === 'xls') {
|
|
50736
|
-
mime = 'application/vnd.ms-excel;';
|
|
50755
|
+
mime = 'data:application/vnd.ms-excel;charset=utf-8,';
|
|
50756
|
+
data = encodeURIComponent(f.data);
|
|
50737
50757
|
} else if (extension === 'xlsx') {
|
|
50738
|
-
mime = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;';
|
|
50758
|
+
mime = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8,';
|
|
50759
|
+
data = encodeURIComponent(f.data);
|
|
50739
50760
|
}
|
|
50761
|
+
console.log(data);
|
|
50740
50762
|
// NEED TO DOWNLOAD DEPENDING ON TYPE, JSON VS XLS
|
|
50741
50763
|
var element = document.createElement('a');
|
|
50742
|
-
element.setAttribute('href', mime +
|
|
50743
|
-
element.setAttribute('download',
|
|
50764
|
+
element.setAttribute('href', mime + data);
|
|
50765
|
+
element.setAttribute('download', 'hi.xlsx');
|
|
50744
50766
|
element.style.display = 'none';
|
|
50745
50767
|
document.body.appendChild(element);
|
|
50746
50768
|
element.click();
|
|
@@ -51085,13 +51107,13 @@ module.exports =
|
|
|
51085
51107
|
};
|
|
51086
51108
|
}
|
|
51087
51109
|
|
|
51088
|
-
function trySaveFileSchema(tenantId, appId, schema) {
|
|
51110
|
+
function trySaveFileSchema(tenantId, appId, envId, schema) {
|
|
51089
51111
|
return function (dispatch, getState, api) {
|
|
51090
51112
|
var _getState18 = getState(),
|
|
51091
51113
|
config = _getState18.config;
|
|
51092
51114
|
|
|
51093
51115
|
if (schema && schema.resources) {
|
|
51094
|
-
return api.post(tenantId + '/' + appId + '/fileschema', {
|
|
51116
|
+
return api.post(tenantId + '/' + appId + '/' + envId + '/fileschema', {
|
|
51095
51117
|
endpoint: config.TRANS_API_URL,
|
|
51096
51118
|
data: schema
|
|
51097
51119
|
});
|
|
@@ -51129,7 +51151,7 @@ module.exports =
|
|
|
51129
51151
|
|
|
51130
51152
|
return function (dispatch) {
|
|
51131
51153
|
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)),
|
|
51154
|
+
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
51155
|
// IF REVERSE USE CORRECT METADATA
|
|
51134
51156
|
dispatch(createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata, envName))]).then(function (r) {
|
|
51135
51157
|
map = r[1];
|
|
@@ -52074,7 +52096,7 @@ module.exports =
|
|
|
52074
52096
|
|
|
52075
52097
|
var _react2 = _interopRequireDefault(_react);
|
|
52076
52098
|
|
|
52077
|
-
var _selectWrapper = __webpack_require__(
|
|
52099
|
+
var _selectWrapper = __webpack_require__(13);
|
|
52078
52100
|
|
|
52079
52101
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
52080
52102
|
|
|
@@ -53553,7 +53575,7 @@ module.exports =
|
|
|
53553
53575
|
|
|
53554
53576
|
var _joinVenn2 = _interopRequireDefault(_joinVenn);
|
|
53555
53577
|
|
|
53556
|
-
var _selectWrapper = __webpack_require__(
|
|
53578
|
+
var _selectWrapper = __webpack_require__(13);
|
|
53557
53579
|
|
|
53558
53580
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
53559
53581
|
|
|
@@ -54328,7 +54350,7 @@ module.exports =
|
|
|
54328
54350
|
|
|
54329
54351
|
var _reduxForm = __webpack_require__(2);
|
|
54330
54352
|
|
|
54331
|
-
var _selectWrapper = __webpack_require__(
|
|
54353
|
+
var _selectWrapper = __webpack_require__(13);
|
|
54332
54354
|
|
|
54333
54355
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
54334
54356
|
|
|
@@ -54946,7 +54968,7 @@ module.exports =
|
|
|
54946
54968
|
|
|
54947
54969
|
var _initialize2 = _interopRequireDefault(_initialize);
|
|
54948
54970
|
|
|
54949
|
-
var _moment = __webpack_require__(
|
|
54971
|
+
var _moment = __webpack_require__(11);
|
|
54950
54972
|
|
|
54951
54973
|
var _moment2 = _interopRequireDefault(_moment);
|
|
54952
54974
|
|
|
@@ -55208,7 +55230,7 @@ module.exports =
|
|
|
55208
55230
|
|
|
55209
55231
|
var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
|
|
55210
55232
|
|
|
55211
|
-
var _selectWrapper = __webpack_require__(
|
|
55233
|
+
var _selectWrapper = __webpack_require__(13);
|
|
55212
55234
|
|
|
55213
55235
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
55214
55236
|
|
|
@@ -55376,25 +55398,32 @@ module.exports =
|
|
|
55376
55398
|
_this2.setState(_defineProperty({}, mode + 'EnvChecking', false));
|
|
55377
55399
|
// set meta for File Schema step if needed
|
|
55378
55400
|
// set defaults of filename and delimiter
|
|
55379
|
-
var
|
|
55380
|
-
if (
|
|
55401
|
+
var isSFTP = metadata && metadata.providerType.toLowerCase() === 'sftp';
|
|
55402
|
+
if (isSFTP) {
|
|
55381
55403
|
(function () {
|
|
55382
55404
|
var savedFileSchema = [];
|
|
55383
55405
|
if (_this2.props.formValues[mode + 'FileSchema']) {
|
|
55384
55406
|
savedFileSchema = [].concat(_toConsumableArray(formValues[mode + 'FileSchema']));
|
|
55385
55407
|
}
|
|
55386
|
-
change(mode + 'FileSchema',
|
|
55387
|
-
|
|
55388
|
-
|
|
55389
|
-
|
|
55390
|
-
|
|
55391
|
-
|
|
55392
|
-
|
|
55393
|
-
|
|
55394
|
-
|
|
55395
|
-
|
|
55408
|
+
change(mode + 'FileSchema', {
|
|
55409
|
+
resources: metadata.resources.map(function (r) {
|
|
55410
|
+
var existing = savedFileSchema.find(function (rsc) {
|
|
55411
|
+
return r.name === rsc.name && r.type === rsc.type;
|
|
55412
|
+
});
|
|
55413
|
+
if (existing) return existing;
|
|
55414
|
+
return Object.assign({}, r, {
|
|
55415
|
+
filePattern: r.name,
|
|
55416
|
+
delimiter: ','
|
|
55417
|
+
});
|
|
55418
|
+
})
|
|
55419
|
+
});
|
|
55396
55420
|
})();
|
|
55397
55421
|
}
|
|
55422
|
+
|
|
55423
|
+
var isFlat = metadata && metadata.providerType.toLowerCase() === 'flatfile';
|
|
55424
|
+
if (isFlat) {
|
|
55425
|
+
change(mode + 'FileSchema', metadata);
|
|
55426
|
+
}
|
|
55398
55427
|
//change(`${mode}Credentials`, credentials)
|
|
55399
55428
|
});
|
|
55400
55429
|
}
|
|
@@ -55499,11 +55528,17 @@ module.exports =
|
|
|
55499
55528
|
accountKey = _props7.accountKey,
|
|
55500
55529
|
wizard = _props7.wizard,
|
|
55501
55530
|
actions = _props7.actions,
|
|
55502
|
-
formValues = _props7.formValues
|
|
55531
|
+
formValues = _props7.formValues,
|
|
55532
|
+
change = _props7.change;
|
|
55503
55533
|
|
|
55504
55534
|
var meta = wizard[mode + 'Metadata'] || [];
|
|
55505
55535
|
meta = meta.concat(metadata);
|
|
55506
|
-
return actions.setCsvFields(tenantId, accountId, tenantKey, accountKey, meta, contents, mode, providerType, mode === 'source', formValues['environmentId'])
|
|
55536
|
+
return actions.setCsvFields(tenantId, accountId, tenantKey, accountKey, meta, contents, mode, providerType, mode === 'source', formValues['environmentId']).then(function () {
|
|
55537
|
+
change(mode + 'FileSchema', {
|
|
55538
|
+
uploadedTime: new Date().getTime(),
|
|
55539
|
+
resources: metadata
|
|
55540
|
+
});
|
|
55541
|
+
});
|
|
55507
55542
|
}
|
|
55508
55543
|
}, {
|
|
55509
55544
|
key: 'clearCsvFields',
|
|
@@ -55663,7 +55698,7 @@ module.exports =
|
|
|
55663
55698
|
return _this4.generateNewAdapterSecret(m);
|
|
55664
55699
|
},
|
|
55665
55700
|
seeFields: _this4.seeFields.bind(_this4),
|
|
55666
|
-
|
|
55701
|
+
fileSchema: formValues[m + 'FileSchema'],
|
|
55667
55702
|
check: function check(actualCreds, extraQuery) {
|
|
55668
55703
|
_this4.check(m, null, actualCreds, null, extraQuery);
|
|
55669
55704
|
}, change: change,
|
|
@@ -56461,8 +56496,6 @@ module.exports =
|
|
|
56461
56496
|
|
|
56462
56497
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
56463
56498
|
|
|
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
56499
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
56467
56500
|
|
|
56468
56501
|
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 +56525,8 @@ module.exports =
|
|
|
56492
56525
|
|
|
56493
56526
|
var providerType = step[step.mode + 'Provider'];
|
|
56494
56527
|
var fs = formValues[step.mode + 'FileSchema'];
|
|
56495
|
-
var fileSchema =
|
|
56496
|
-
fileSchema.splice(index, 1);
|
|
56528
|
+
var fileSchema = Object.assign({}, fs);
|
|
56529
|
+
fileSchema.resources.splice(index, 1);
|
|
56497
56530
|
change(step.mode + 'FileSchema', fileSchema);
|
|
56498
56531
|
actions.removeFileResourceFromMetadata(step.mode, file, providerType);
|
|
56499
56532
|
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
@@ -56526,13 +56559,13 @@ module.exports =
|
|
|
56526
56559
|
|
|
56527
56560
|
var fileSchema = formValues[step.mode + 'FileSchema'];
|
|
56528
56561
|
var filledOut = true;
|
|
56529
|
-
if (fileSchema) {
|
|
56530
|
-
fileSchema.forEach(function (f) {
|
|
56562
|
+
if (fileSchema && fileSchema.resources) {
|
|
56563
|
+
fileSchema.resources.forEach(function (f) {
|
|
56531
56564
|
if (!f.delimiter || !f.filePattern) {
|
|
56532
56565
|
filledOut = false;
|
|
56533
56566
|
}
|
|
56534
56567
|
});
|
|
56535
|
-
if (fileSchema.length < 1) {
|
|
56568
|
+
if (fileSchema.resources.length < 1) {
|
|
56536
56569
|
filledOut = false;
|
|
56537
56570
|
}
|
|
56538
56571
|
}
|
|
@@ -56558,10 +56591,10 @@ module.exports =
|
|
|
56558
56591
|
_react2.default.createElement(
|
|
56559
56592
|
'div',
|
|
56560
56593
|
{ 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.'
|
|
56594
|
+
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
56595
|
),
|
|
56563
|
-
fileSchema && fileSchema.length > 0 && _react2.default.createElement(FileTable, {
|
|
56564
|
-
files: fileSchema, inputs: inputs, mode: step.mode,
|
|
56596
|
+
fileSchema && fileSchema.resources && fileSchema.fileSchema.length > 0 && _react2.default.createElement(FileTable, {
|
|
56597
|
+
files: fileSchema.resources, inputs: inputs, mode: step.mode,
|
|
56565
56598
|
removeFile: this.removeFile
|
|
56566
56599
|
}),
|
|
56567
56600
|
_react2.default.createElement('br', null),
|
|
@@ -59753,7 +59786,7 @@ module.exports =
|
|
|
59753
59786
|
, $assign = Object.assign;
|
|
59754
59787
|
|
|
59755
59788
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
59756
|
-
module.exports = !$assign || __webpack_require__(
|
|
59789
|
+
module.exports = !$assign || __webpack_require__(14)(function(){
|
|
59757
59790
|
var A = {}
|
|
59758
59791
|
, B = {}
|
|
59759
59792
|
, S = Symbol()
|
|
@@ -59813,7 +59846,7 @@ module.exports =
|
|
|
59813
59846
|
|
|
59814
59847
|
var $export = __webpack_require__(25);
|
|
59815
59848
|
// 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__(
|
|
59849
|
+
$export($export.S + $export.F * !__webpack_require__(10), 'Object', {defineProperty: __webpack_require__(21).f});
|
|
59817
59850
|
|
|
59818
59851
|
/***/ },
|
|
59819
59852
|
/* 185 */,
|
|
@@ -61240,7 +61273,7 @@ module.exports =
|
|
|
61240
61273
|
|
|
61241
61274
|
var _react2 = _interopRequireDefault(_react);
|
|
61242
61275
|
|
|
61243
|
-
var _reactDom = __webpack_require__(
|
|
61276
|
+
var _reactDom = __webpack_require__(12);
|
|
61244
61277
|
|
|
61245
61278
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
61246
61279
|
|
|
@@ -61774,7 +61807,7 @@ module.exports =
|
|
|
61774
61807
|
|
|
61775
61808
|
var _react2 = _interopRequireDefault(_react);
|
|
61776
61809
|
|
|
61777
|
-
var _reactDom = __webpack_require__(
|
|
61810
|
+
var _reactDom = __webpack_require__(12);
|
|
61778
61811
|
|
|
61779
61812
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
61780
61813
|
|
|
@@ -62251,7 +62284,7 @@ module.exports =
|
|
|
62251
62284
|
|
|
62252
62285
|
var _react2 = _interopRequireDefault(_react);
|
|
62253
62286
|
|
|
62254
|
-
var _moment = __webpack_require__(
|
|
62287
|
+
var _moment = __webpack_require__(11);
|
|
62255
62288
|
|
|
62256
62289
|
var _moment2 = _interopRequireDefault(_moment);
|
|
62257
62290
|
|
|
@@ -62459,7 +62492,7 @@ module.exports =
|
|
|
62459
62492
|
|
|
62460
62493
|
var _Combobox2 = _interopRequireDefault(_Combobox);
|
|
62461
62494
|
|
|
62462
|
-
var _moment = __webpack_require__(
|
|
62495
|
+
var _moment = __webpack_require__(11);
|
|
62463
62496
|
|
|
62464
62497
|
var _moment2 = _interopRequireDefault(_moment);
|
|
62465
62498
|
|
|
@@ -62645,7 +62678,7 @@ module.exports =
|
|
|
62645
62678
|
|
|
62646
62679
|
var _react2 = _interopRequireDefault(_react);
|
|
62647
62680
|
|
|
62648
|
-
var _reactDom = __webpack_require__(
|
|
62681
|
+
var _reactDom = __webpack_require__(12);
|
|
62649
62682
|
|
|
62650
62683
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
62651
62684
|
|
|
@@ -62814,7 +62847,7 @@ module.exports =
|
|
|
62814
62847
|
|
|
62815
62848
|
var _placements2 = _interopRequireDefault(_placements);
|
|
62816
62849
|
|
|
62817
|
-
var _moment = __webpack_require__(
|
|
62850
|
+
var _moment = __webpack_require__(11);
|
|
62818
62851
|
|
|
62819
62852
|
var _moment2 = _interopRequireDefault(_moment);
|
|
62820
62853
|
|
|
@@ -63174,7 +63207,7 @@ module.exports =
|
|
|
63174
63207
|
|
|
63175
63208
|
var _react2 = _interopRequireDefault(_react);
|
|
63176
63209
|
|
|
63177
|
-
var _reactDom = __webpack_require__(
|
|
63210
|
+
var _reactDom = __webpack_require__(12);
|
|
63178
63211
|
|
|
63179
63212
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
63180
63213
|
|
|
@@ -63462,7 +63495,7 @@ module.exports =
|
|
|
63462
63495
|
|
|
63463
63496
|
var _react2 = _interopRequireDefault(_react);
|
|
63464
63497
|
|
|
63465
|
-
var _reactDom = __webpack_require__(
|
|
63498
|
+
var _reactDom = __webpack_require__(12);
|
|
63466
63499
|
|
|
63467
63500
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
63468
63501
|
|
|
@@ -64028,7 +64061,7 @@ module.exports =
|
|
|
64028
64061
|
|
|
64029
64062
|
exports["default"] = getContainerRenderMixin;
|
|
64030
64063
|
|
|
64031
|
-
var _reactDom = __webpack_require__(
|
|
64064
|
+
var _reactDom = __webpack_require__(12);
|
|
64032
64065
|
|
|
64033
64066
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
64034
64067
|
|
|
@@ -64152,7 +64185,7 @@ module.exports =
|
|
|
64152
64185
|
|
|
64153
64186
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
64154
64187
|
|
|
64155
|
-
var _reactDom = __webpack_require__(
|
|
64188
|
+
var _reactDom = __webpack_require__(12);
|
|
64156
64189
|
|
|
64157
64190
|
var _PropTypes = __webpack_require__(90);
|
|
64158
64191
|
|