@lingk/sync 0.0.48 → 0.0.50
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/lightning.js +3 -2
- package/build/lightning.js.map +1 -1
- package/build/lingk.js +2 -2
- package/build/lingk.js.map +1 -1
- package/build/main.js +266 -184
- package/build/main.js.map +1 -1
- package/build/reducer.js +2 -2
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -45,7 +45,7 @@ module.exports =
|
|
|
45
45
|
/* 0 */
|
|
46
46
|
/***/ function(module, exports, __webpack_require__) {
|
|
47
47
|
|
|
48
|
-
module.exports = __webpack_require__(
|
|
48
|
+
module.exports = __webpack_require__(63);
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
/***/ },
|
|
@@ -160,27 +160,6 @@ module.exports =
|
|
|
160
160
|
|
|
161
161
|
'use strict';
|
|
162
162
|
|
|
163
|
-
Object.defineProperty(exports, "__esModule", {
|
|
164
|
-
value: true
|
|
165
|
-
});
|
|
166
|
-
var SET_WIZARD_SAVED_MAPPING = exports.SET_WIZARD_SAVED_MAPPING = 'SET_WIZARD_SAVED_MAPPING';
|
|
167
|
-
var SET_WIZARD_SAVED_CONFIGURATION = exports.SET_WIZARD_SAVED_CONFIGURATION = 'SET_WIZARD_SAVED_CONFIGURATION';
|
|
168
|
-
var SET_WIZARD_SAVED_BUNDLES = exports.SET_WIZARD_SAVED_BUNDLES = 'SET_WIZARD_SAVED_BUNDLES';
|
|
169
|
-
var SET_WIZARD_TRIGGER = exports.SET_WIZARD_TRIGGER = 'SET_WIZARD_TRIGGER';
|
|
170
|
-
var SET_WIZARD_LOADED = exports.SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';
|
|
171
|
-
var SET_WIZARD_DATA_LOADED = exports.SET_WIZARD_DATA_LOADED = 'SET_WIZARD_DATA_LOADED';
|
|
172
|
-
var START_ENV_CHECK = exports.START_ENV_CHECK = 'START_ENV_CHECK';
|
|
173
|
-
var FINISH_ENV_CHECK = exports.FINISH_ENV_CHECK = 'FINISH_ENV_CHECK';
|
|
174
|
-
var START_PREVIEW = exports.START_PREVIEW = 'START_PREVIEW';
|
|
175
|
-
var FINISH_PREVIEW = exports.FINISH_PREVIEW = 'FINISH_PREVIEW';
|
|
176
|
-
var SET_WIZARD_METADATA = exports.SET_WIZARD_METADATA = 'SET_WIZARD_METADATA';
|
|
177
|
-
|
|
178
|
-
/***/ },
|
|
179
|
-
/* 7 */
|
|
180
|
-
/***/ function(module, exports) {
|
|
181
|
-
|
|
182
|
-
'use strict';
|
|
183
|
-
|
|
184
163
|
Object.defineProperty(exports, "__esModule", {
|
|
185
164
|
value: true
|
|
186
165
|
});
|
|
@@ -188,26 +167,46 @@ module.exports =
|
|
|
188
167
|
|
|
189
168
|
var defaults = {
|
|
190
169
|
sourceEndpoint: 'https://',
|
|
191
|
-
|
|
170
|
+
destinationEndpoint: 'https://',
|
|
192
171
|
filter: 'all',
|
|
193
172
|
phase: 'initial'
|
|
194
173
|
};
|
|
195
174
|
|
|
175
|
+
console.log(wizard.savedConfiguration);
|
|
176
|
+
|
|
196
177
|
if (!formValues['resourceGroups']) {
|
|
197
178
|
|
|
198
179
|
if (wizard.savedBundles && wizard.savedBundles.bundles) {
|
|
199
180
|
var resourceGroups = wizard.savedBundles.bundles.map(function (bundle, index) {
|
|
181
|
+
var bundleResource = wizard.destinationMetadata.find(function (rsc) {
|
|
182
|
+
return rsc.type === bundle.name;
|
|
183
|
+
});
|
|
184
|
+
var bundleProperty = bundleResource.properties.find(function (prop) {
|
|
185
|
+
return prop.name === bundle.destinationKey;
|
|
186
|
+
});
|
|
200
187
|
return {
|
|
201
|
-
name:
|
|
188
|
+
name: bundleResource.name,
|
|
189
|
+
destinationKey: bundleProperty.label,
|
|
190
|
+
provider: bundle.provider.charAt(0).toUpperCase() + bundle.provider.slice(1),
|
|
202
191
|
resources: bundle.resources && bundle.resources.map(function (rsc) {
|
|
192
|
+
var resourceProvider = rsc.provider.charAt(0).toUpperCase() + rsc.provider.slice(1).replace('Reader', '');
|
|
193
|
+
var dataSourceMetadata = resourceProvider === step.destinationProvider ? wizard.destinationMetadata : wizard.sourceMetadata;
|
|
194
|
+
var rscResource = dataSourceMetadata.find(function (r) {
|
|
195
|
+
return r.type === rsc.resourceName;
|
|
196
|
+
});
|
|
197
|
+
var rscProperty = rscResource.properties.find(function (prop) {
|
|
198
|
+
return prop.name === rsc.primaryKeyName;
|
|
199
|
+
});
|
|
203
200
|
return {
|
|
204
|
-
name:
|
|
205
|
-
externalKey:
|
|
201
|
+
name: rscResource.name,
|
|
202
|
+
externalKey: rscProperty.label,
|
|
203
|
+
provider: resourceProvider
|
|
206
204
|
};
|
|
207
205
|
}),
|
|
208
206
|
mappings: wizard.savedMapping && wizard.savedMapping.mappings && wizard.sourceMetadata && wizard.destinationMetadata && wizard.savedMapping.mappings.filter(function (map) {
|
|
209
207
|
return map.bundleIndex === index;
|
|
210
208
|
}).map(function (m) {
|
|
209
|
+
// HERE GET CORRECT SOURCE METADATA
|
|
211
210
|
var sourceResource = wizard.sourceMetadata.find(function (rsc) {
|
|
212
211
|
return rsc.type === m.resourceFromName;
|
|
213
212
|
});
|
|
@@ -231,42 +230,68 @@ module.exports =
|
|
|
231
230
|
});
|
|
232
231
|
change('resourceGroups', formValues['resourceGroups'] || resourceGroups);
|
|
233
232
|
}
|
|
233
|
+
} // end if (!formValues['resourceGroups'])
|
|
234
234
|
|
|
235
|
-
var modes = ['source', 'destination'];
|
|
236
|
-
modes.forEach(function (mode) {
|
|
237
|
-
var endpoint = defaults[mode + 'Endpoint'];
|
|
238
|
-
if (wizard.savedConfiguration && wizard.savedConfiguration[mode + 'Endpoint'] && !formValues[mode + 'Endpoint']) {
|
|
239
|
-
endpoint = wizard.savedConfiguration[mode + 'Endpoint'];
|
|
240
|
-
}
|
|
241
|
-
if (step.mode === mode && !step.metadataEndpoint) {
|
|
242
|
-
change(mode + 'Endpoint', formValues[mode + 'Endpoint'] || endpoint);
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
235
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
change('deployment', formValues['deployment'] || deployment);
|
|
256
|
-
}
|
|
236
|
+
if (wizard.savedConfiguration && wizard.savedConfiguration['defaultDataset'] && !formValues['defaultDataset']) {
|
|
237
|
+
change('defaultDataset', wizard.savedConfiguration['defaultDataset']);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
var modes = ['source', 'destination'];
|
|
241
|
+
modes.forEach(function (mode) {
|
|
242
|
+
var endpoint = defaults[mode + 'Endpoint'];
|
|
243
|
+
if (wizard.savedConfiguration && wizard.savedConfiguration[mode + 'Endpoint'] && !formValues[mode + 'Endpoint']) {
|
|
244
|
+
endpoint = wizard.savedConfiguration[mode + 'Endpoint'];
|
|
257
245
|
}
|
|
258
|
-
|
|
246
|
+
if (step.mode === mode && !step.metadataEndpoint) {
|
|
247
|
+
change(mode + 'Endpoint', formValues[mode + 'Endpoint'] || endpoint);
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
if (wizard.savedTrigger) {
|
|
252
|
+
if (wizard.savedTrigger.IsRecurring === true) {
|
|
253
|
+
var scheds = wizard.savedTrigger.Schedule.split(' ');
|
|
254
|
+
var deployment = {
|
|
255
|
+
type: 'scheduled',
|
|
256
|
+
minutes: scheds[0] || 0,
|
|
257
|
+
hours: scheds[1] || 0,
|
|
258
|
+
days: scheds[2] || 0
|
|
259
|
+
};
|
|
260
|
+
change('deployment', formValues['deployment'] || deployment);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
259
263
|
|
|
260
264
|
actions.setWizardDataLoaded(true);
|
|
261
265
|
}
|
|
262
266
|
|
|
263
267
|
exports.default = loadData;
|
|
264
268
|
|
|
269
|
+
/***/ },
|
|
270
|
+
/* 7 */
|
|
271
|
+
/***/ function(module, exports) {
|
|
272
|
+
|
|
273
|
+
'use strict';
|
|
274
|
+
|
|
275
|
+
Object.defineProperty(exports, "__esModule", {
|
|
276
|
+
value: true
|
|
277
|
+
});
|
|
278
|
+
var SET_WIZARD_SAVED_MAPPING = exports.SET_WIZARD_SAVED_MAPPING = 'SET_WIZARD_SAVED_MAPPING';
|
|
279
|
+
var SET_WIZARD_SAVED_CONFIGURATION = exports.SET_WIZARD_SAVED_CONFIGURATION = 'SET_WIZARD_SAVED_CONFIGURATION';
|
|
280
|
+
var SET_WIZARD_SAVED_BUNDLES = exports.SET_WIZARD_SAVED_BUNDLES = 'SET_WIZARD_SAVED_BUNDLES';
|
|
281
|
+
var SET_WIZARD_TRIGGER = exports.SET_WIZARD_TRIGGER = 'SET_WIZARD_TRIGGER';
|
|
282
|
+
var SET_WIZARD_LOADED = exports.SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';
|
|
283
|
+
var SET_WIZARD_DATA_LOADED = exports.SET_WIZARD_DATA_LOADED = 'SET_WIZARD_DATA_LOADED';
|
|
284
|
+
var START_ENV_CHECK = exports.START_ENV_CHECK = 'START_ENV_CHECK';
|
|
285
|
+
var FINISH_ENV_CHECK = exports.FINISH_ENV_CHECK = 'FINISH_ENV_CHECK';
|
|
286
|
+
var START_PREVIEW = exports.START_PREVIEW = 'START_PREVIEW';
|
|
287
|
+
var FINISH_PREVIEW = exports.FINISH_PREVIEW = 'FINISH_PREVIEW';
|
|
288
|
+
var SET_WIZARD_METADATA = exports.SET_WIZARD_METADATA = 'SET_WIZARD_METADATA';
|
|
289
|
+
|
|
265
290
|
/***/ },
|
|
266
291
|
/* 8 */
|
|
267
292
|
/***/ function(module, exports, __webpack_require__) {
|
|
268
293
|
|
|
269
|
-
|
|
294
|
+
'use strict';
|
|
270
295
|
|
|
271
296
|
Object.defineProperty(exports, "__esModule", {
|
|
272
297
|
value: true
|
|
@@ -297,7 +322,7 @@ module.exports =
|
|
|
297
322
|
var _this = _possibleConstructorReturn(this, (GroupNav.__proto__ || Object.getPrototypeOf(GroupNav)).call(this));
|
|
298
323
|
|
|
299
324
|
_this.state = {
|
|
300
|
-
selectedEntities: [],
|
|
325
|
+
selectedEntities: [{ name: '' }],
|
|
301
326
|
resourceGroupIndex: 0,
|
|
302
327
|
paneToggle: false,
|
|
303
328
|
leftClicked: false,
|
|
@@ -321,19 +346,19 @@ module.exports =
|
|
|
321
346
|
}
|
|
322
347
|
|
|
323
348
|
_createClass(GroupNav, [{
|
|
324
|
-
key:
|
|
349
|
+
key: 'componentDidMount',
|
|
325
350
|
value: function componentDidMount() {
|
|
326
351
|
document.addEventListener("keydown", this.keyDown, false);
|
|
327
352
|
document.addEventListener("keyup", this.keyUp, false);
|
|
328
353
|
}
|
|
329
354
|
}, {
|
|
330
|
-
key:
|
|
355
|
+
key: 'componentWillUnmount',
|
|
331
356
|
value: function componentWillUnmount() {
|
|
332
357
|
document.removeEventListener("keydown", this.keyDown, false);
|
|
333
358
|
document.removeEventListener("keyup", this.keyUp, false);
|
|
334
359
|
}
|
|
335
360
|
}, {
|
|
336
|
-
key:
|
|
361
|
+
key: 'keyDown',
|
|
337
362
|
value: function keyDown(e) {
|
|
338
363
|
switch (e.keyCode) {
|
|
339
364
|
case 16:
|
|
@@ -344,7 +369,7 @@ module.exports =
|
|
|
344
369
|
}
|
|
345
370
|
}
|
|
346
371
|
}, {
|
|
347
|
-
key:
|
|
372
|
+
key: 'keyUp',
|
|
348
373
|
value: function keyUp(e) {
|
|
349
374
|
switch (e.keyCode) {
|
|
350
375
|
case 16:
|
|
@@ -361,17 +386,17 @@ module.exports =
|
|
|
361
386
|
}
|
|
362
387
|
}
|
|
363
388
|
}, {
|
|
364
|
-
key:
|
|
389
|
+
key: 'showOverflow',
|
|
365
390
|
value: function showOverflow() {
|
|
366
391
|
this.setState({ overflowHidden: false });
|
|
367
392
|
}
|
|
368
393
|
}, {
|
|
369
|
-
key:
|
|
394
|
+
key: 'disableMultiple',
|
|
370
395
|
value: function disableMultiple() {
|
|
371
396
|
this.setState({ multiple: false });
|
|
372
397
|
}
|
|
373
398
|
}, {
|
|
374
|
-
key:
|
|
399
|
+
key: 'go',
|
|
375
400
|
value: function go(leftClicked, resourceGroupIndex) {
|
|
376
401
|
var _this2 = this;
|
|
377
402
|
|
|
@@ -387,7 +412,7 @@ module.exports =
|
|
|
387
412
|
}, 250);
|
|
388
413
|
}
|
|
389
414
|
}, {
|
|
390
|
-
key:
|
|
415
|
+
key: 'removeResourceGroup',
|
|
391
416
|
value: function removeResourceGroup(i) {
|
|
392
417
|
this.props.removeGroup(i);
|
|
393
418
|
var isFirst = i === 0;
|
|
@@ -396,7 +421,7 @@ module.exports =
|
|
|
396
421
|
}
|
|
397
422
|
}
|
|
398
423
|
}, {
|
|
399
|
-
key:
|
|
424
|
+
key: 'addDefaultResourceGroup',
|
|
400
425
|
value: function addDefaultResourceGroup(v, i, id) {
|
|
401
426
|
var _props = this.props,
|
|
402
427
|
resourceGroups = _props.resourceGroups,
|
|
@@ -406,15 +431,15 @@ module.exports =
|
|
|
406
431
|
addGroup(v, id);
|
|
407
432
|
}
|
|
408
433
|
}, {
|
|
409
|
-
key:
|
|
434
|
+
key: 'pickEntity',
|
|
410
435
|
value: function pickEntity(v) {
|
|
411
436
|
var sel = [].concat(_toConsumableArray(this.state.selectedEntities));
|
|
412
437
|
var i = this.state.resourceGroupIndex;
|
|
413
|
-
sel[i] = sel[i] === v ? '' : v;
|
|
438
|
+
sel[i] = sel[i] && sel[i].name === v.name ? { name: '' } : v;
|
|
414
439
|
this.setState({ selectedEntities: sel });
|
|
415
440
|
}
|
|
416
441
|
}, {
|
|
417
|
-
key:
|
|
442
|
+
key: 'increment',
|
|
418
443
|
value: function increment() {
|
|
419
444
|
var resourceGroups = this.props.resourceGroups;
|
|
420
445
|
|
|
@@ -423,21 +448,21 @@ module.exports =
|
|
|
423
448
|
}
|
|
424
449
|
}
|
|
425
450
|
}, {
|
|
426
|
-
key:
|
|
451
|
+
key: 'decrement',
|
|
427
452
|
value: function decrement() {
|
|
428
453
|
if (this.state.resourceGroupIndex > 0 && !this.state.justClicked) {
|
|
429
454
|
this.go(true, this.state.resourceGroupIndex - 1);
|
|
430
455
|
}
|
|
431
456
|
}
|
|
432
457
|
}, {
|
|
433
|
-
key:
|
|
458
|
+
key: 'clickDot',
|
|
434
459
|
value: function clickDot(i) {
|
|
435
460
|
if (i !== this.state.resourceGroupIndex && !this.state.justClicked) {
|
|
436
461
|
this.go(i < this.state.resourceGroupIndex, i);
|
|
437
462
|
}
|
|
438
463
|
}
|
|
439
464
|
}, {
|
|
440
|
-
key:
|
|
465
|
+
key: 'changeGroupOrderFromBundleTable',
|
|
441
466
|
value: function changeGroupOrderFromBundleTable(iStart, iEnd) {
|
|
442
467
|
if (iEnd !== this.state.resourceGroupIndex) {
|
|
443
468
|
this.go(iEnd < this.state.resourceGroupIndex, iEnd);
|
|
@@ -445,7 +470,7 @@ module.exports =
|
|
|
445
470
|
this.props.changeGroupOrder(iStart, iEnd);
|
|
446
471
|
}
|
|
447
472
|
}, {
|
|
448
|
-
key:
|
|
473
|
+
key: 'render',
|
|
449
474
|
value: function render() {
|
|
450
475
|
var _this3 = this;
|
|
451
476
|
|
|
@@ -494,19 +519,19 @@ module.exports =
|
|
|
494
519
|
};
|
|
495
520
|
|
|
496
521
|
return _react2.default.createElement(
|
|
497
|
-
|
|
522
|
+
'div',
|
|
498
523
|
null,
|
|
499
|
-
_react2.default.createElement(
|
|
524
|
+
_react2.default.createElement('br', null),
|
|
500
525
|
_react2.default.createElement(
|
|
501
|
-
|
|
526
|
+
'div',
|
|
502
527
|
{ style: style },
|
|
503
|
-
!isBundleStep ? _react2.default.createElement(
|
|
504
|
-
|
|
528
|
+
!isBundleStep && false ? _react2.default.createElement(
|
|
529
|
+
'div',
|
|
505
530
|
{ style: { position: 'absolute', right: 0, top: -6 } },
|
|
506
531
|
_react2.default.createElement(
|
|
507
|
-
|
|
508
|
-
{ className:
|
|
509
|
-
|
|
532
|
+
'div',
|
|
533
|
+
{ className: 'labelz' },
|
|
534
|
+
'Relationship Types:'
|
|
510
535
|
),
|
|
511
536
|
_react2.default.createElement(
|
|
512
537
|
Button,
|
|
@@ -514,84 +539,84 @@ module.exports =
|
|
|
514
539
|
onClick: function onClick() {
|
|
515
540
|
return _this3.setState({ multiple: !_this3.state.multiple });
|
|
516
541
|
} },
|
|
517
|
-
|
|
542
|
+
'Multiple'
|
|
518
543
|
),
|
|
519
|
-
_react2.default.createElement(
|
|
544
|
+
_react2.default.createElement('br', null),
|
|
520
545
|
_react2.default.createElement(
|
|
521
546
|
Button,
|
|
522
|
-
{ type:
|
|
523
|
-
|
|
547
|
+
{ type: 'neutral', style: smallButtonStyle, onClick: this.topone },
|
|
548
|
+
'Top One'
|
|
524
549
|
)
|
|
525
550
|
) : null,
|
|
526
551
|
_react2.default.createElement(
|
|
527
|
-
|
|
552
|
+
'div',
|
|
528
553
|
null,
|
|
529
554
|
_react2.default.createElement(
|
|
530
|
-
|
|
531
|
-
{ style: { marginLeft: 120 }, className:
|
|
555
|
+
'div',
|
|
556
|
+
{ style: { marginLeft: 120 }, className: 'labelz' },
|
|
532
557
|
_react2.default.createElement(
|
|
533
|
-
|
|
558
|
+
'span',
|
|
534
559
|
null,
|
|
535
|
-
|
|
560
|
+
'Destination: ',
|
|
536
561
|
step.destinationProvider,
|
|
537
|
-
|
|
562
|
+
' Object'
|
|
538
563
|
),
|
|
539
564
|
_react2.default.createElement(
|
|
540
565
|
Tooltip,
|
|
541
|
-
{ nubbin:
|
|
566
|
+
{ nubbin: 'left-top', popStyle: { width: 146 } },
|
|
542
567
|
_react2.default.createElement(
|
|
543
|
-
|
|
568
|
+
'p',
|
|
544
569
|
null,
|
|
545
|
-
|
|
570
|
+
'The ',
|
|
546
571
|
step.destinationProvider,
|
|
547
|
-
|
|
572
|
+
' Object to map data into'
|
|
548
573
|
)
|
|
549
574
|
)
|
|
550
575
|
),
|
|
551
576
|
_react2.default.createElement(
|
|
552
|
-
|
|
553
|
-
{ className:
|
|
554
|
-
_react2.default.createElement(
|
|
577
|
+
'svg',
|
|
578
|
+
{ className: 'schema-group-arrow schema-group-arrow-back', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', onClick: this.decrement, style: resourceGroupIndex === 0 ? { fill: '#CCCCCC', cursor: 'default' } : {} },
|
|
579
|
+
_react2.default.createElement('path', { d: 'M8 5v14l11-7z' })
|
|
555
580
|
),
|
|
556
581
|
_react2.default.createElement(
|
|
557
|
-
|
|
558
|
-
{ className:
|
|
582
|
+
'div',
|
|
583
|
+
{ className: 'schema-groups' },
|
|
559
584
|
_react2.default.createElement(
|
|
560
|
-
|
|
561
|
-
{ className:
|
|
585
|
+
'div',
|
|
586
|
+
{ className: 'schema-groups-slider', style: {
|
|
562
587
|
width: 340 * resourceGroups.length,
|
|
563
|
-
transform:
|
|
564
|
-
WebkitTransform:
|
|
588
|
+
transform: 'translate(-' + 340 * resourceGroupIndex + 'px)',
|
|
589
|
+
WebkitTransform: 'translate(-' + 340 * resourceGroupIndex + 'px)'
|
|
565
590
|
} },
|
|
566
591
|
resourceGroups.map(function (g, i) {
|
|
567
592
|
return _react2.default.createElement(
|
|
568
|
-
|
|
569
|
-
{ className:
|
|
593
|
+
'div',
|
|
594
|
+
{ className: 'schema-group-name', key: i },
|
|
570
595
|
g.name
|
|
571
596
|
);
|
|
572
597
|
})
|
|
573
598
|
)
|
|
574
599
|
),
|
|
575
600
|
_react2.default.createElement(
|
|
576
|
-
|
|
577
|
-
{ className:
|
|
578
|
-
_react2.default.createElement(
|
|
601
|
+
'svg',
|
|
602
|
+
{ className: 'schema-group-arrow schema-group-arrow-forward', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', onClick: this.increment, style: resourceGroupIndex === resourceGroups.length - 1 ? { fill: '#CCCCCC', cursor: 'default' } : {} },
|
|
603
|
+
_react2.default.createElement('path', { d: 'M8 5v14l11-7z' })
|
|
579
604
|
),
|
|
580
605
|
_react2.default.createElement(
|
|
581
|
-
|
|
582
|
-
{ className:
|
|
606
|
+
'div',
|
|
607
|
+
{ className: 'schema-group-dots' },
|
|
583
608
|
resourceGroups.map(function (g, i) {
|
|
584
|
-
return _react2.default.createElement(
|
|
609
|
+
return _react2.default.createElement('div', { className: 'schema-group-dot', key: i, style: resourceGroupIndex !== i ? { background: "#CFCFCF" } : {}, onClick: function onClick() {
|
|
585
610
|
return _this3.clickDot(i);
|
|
586
611
|
} });
|
|
587
612
|
})
|
|
588
613
|
)
|
|
589
614
|
),
|
|
590
615
|
isBundleStep ? _react2.default.createElement(
|
|
591
|
-
|
|
616
|
+
'div',
|
|
592
617
|
{ style: { position: 'absolute', right: 0, top: -2, zIndex: 99 } },
|
|
593
|
-
_react2.default.createElement(Select, { label:
|
|
594
|
-
onSelect: this.addDefaultResourceGroup, values: destinationSchema, title:
|
|
618
|
+
_react2.default.createElement(Select, { label: '+', type: 'brand', style: { height: 40 }, menuAlign: 'right', extraClass: true,
|
|
619
|
+
onSelect: this.addDefaultResourceGroup, values: destinationSchema, title: 'Add Destination',
|
|
595
620
|
minWidth: 260
|
|
596
621
|
})
|
|
597
622
|
) : null
|
|
@@ -684,7 +709,7 @@ module.exports =
|
|
|
684
709
|
exports.setWizardLoaded = setWizardLoaded;
|
|
685
710
|
exports.setWizardDataLoaded = setWizardDataLoaded;
|
|
686
711
|
|
|
687
|
-
var _types = __webpack_require__(
|
|
712
|
+
var _types = __webpack_require__(7);
|
|
688
713
|
|
|
689
714
|
var types = _interopRequireWildcard(_types);
|
|
690
715
|
|
|
@@ -2407,6 +2432,10 @@ module.exports =
|
|
|
2407
2432
|
|
|
2408
2433
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
2409
2434
|
|
|
2435
|
+
var _loadData = __webpack_require__(6);
|
|
2436
|
+
|
|
2437
|
+
var _loadData2 = _interopRequireDefault(_loadData);
|
|
2438
|
+
|
|
2410
2439
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2411
2440
|
|
|
2412
2441
|
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); } }
|
|
@@ -2427,9 +2456,11 @@ module.exports =
|
|
|
2427
2456
|
|
|
2428
2457
|
_this.defaultResourceMapping = [{
|
|
2429
2458
|
name: 'Contact',
|
|
2459
|
+
destinationKey: 'Account ID',
|
|
2460
|
+
provider: 'Salesforce',
|
|
2430
2461
|
resources: [{
|
|
2431
2462
|
name: 'Applicant',
|
|
2432
|
-
externalKey:
|
|
2463
|
+
externalKey: 'ExternalId',
|
|
2433
2464
|
provider: 'Banner'
|
|
2434
2465
|
}]
|
|
2435
2466
|
}];
|
|
@@ -2442,11 +2473,14 @@ module.exports =
|
|
|
2442
2473
|
key: 'componentDidMount',
|
|
2443
2474
|
value: function componentDidMount() {
|
|
2444
2475
|
var _props = this.props,
|
|
2476
|
+
step = _props.step,
|
|
2477
|
+
wizard = _props.wizard,
|
|
2445
2478
|
change = _props.change,
|
|
2446
|
-
formValues = _props.formValues
|
|
2479
|
+
formValues = _props.formValues,
|
|
2480
|
+
actions = _props.actions;
|
|
2447
2481
|
|
|
2448
|
-
if (
|
|
2449
|
-
|
|
2482
|
+
if (!wizard.dataLoaded) {
|
|
2483
|
+
(0, _loadData2.default)(step, wizard, change, formValues, actions);
|
|
2450
2484
|
}
|
|
2451
2485
|
}
|
|
2452
2486
|
}, {
|
|
@@ -2465,7 +2499,9 @@ module.exports =
|
|
|
2465
2499
|
}, {
|
|
2466
2500
|
key: 'select',
|
|
2467
2501
|
value: function select(v) {
|
|
2468
|
-
this.
|
|
2502
|
+
if (v !== this.props.formValues['defaultDataset']) {
|
|
2503
|
+
this.loadDefault();
|
|
2504
|
+
}
|
|
2469
2505
|
}
|
|
2470
2506
|
}, {
|
|
2471
2507
|
key: 'loadDefault',
|
|
@@ -2703,6 +2739,8 @@ module.exports =
|
|
|
2703
2739
|
|
|
2704
2740
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
2705
2741
|
|
|
2742
|
+
var _templateObject = _taggedTemplateLiteral(['', ''], ['', '']);
|
|
2743
|
+
|
|
2706
2744
|
var _react = __webpack_require__(1);
|
|
2707
2745
|
|
|
2708
2746
|
var _react2 = _interopRequireDefault(_react);
|
|
@@ -2717,12 +2755,18 @@ module.exports =
|
|
|
2717
2755
|
|
|
2718
2756
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
2719
2757
|
|
|
2720
|
-
var _loadData = __webpack_require__(
|
|
2758
|
+
var _loadData = __webpack_require__(6);
|
|
2721
2759
|
|
|
2722
2760
|
var _loadData2 = _interopRequireDefault(_loadData);
|
|
2723
2761
|
|
|
2762
|
+
var _previewTabContent = __webpack_require__(59);
|
|
2763
|
+
|
|
2764
|
+
var _previewTabContent2 = _interopRequireDefault(_previewTabContent);
|
|
2765
|
+
|
|
2724
2766
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2725
2767
|
|
|
2768
|
+
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
2769
|
+
|
|
2726
2770
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2727
2771
|
|
|
2728
2772
|
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; }
|
|
@@ -2752,10 +2796,22 @@ module.exports =
|
|
|
2752
2796
|
function EnvironmentStep() {
|
|
2753
2797
|
_classCallCheck(this, EnvironmentStep);
|
|
2754
2798
|
|
|
2755
|
-
|
|
2799
|
+
var _this = _possibleConstructorReturn(this, (EnvironmentStep.__proto__ || Object.getPrototypeOf(EnvironmentStep)).call(this));
|
|
2800
|
+
|
|
2801
|
+
_this.seeFields = _this.seeFields.bind(_this);
|
|
2802
|
+
return _this;
|
|
2756
2803
|
}
|
|
2757
2804
|
|
|
2758
2805
|
_createClass(EnvironmentStep, [{
|
|
2806
|
+
key: 'seeFields',
|
|
2807
|
+
value: function seeFields() {
|
|
2808
|
+
/*var x=window.open();
|
|
2809
|
+
x.document.open('','_blank');
|
|
2810
|
+
x.document.write(previewTabContent);
|
|
2811
|
+
x.document.close();
|
|
2812
|
+
x.focus()*/
|
|
2813
|
+
}
|
|
2814
|
+
}, {
|
|
2759
2815
|
key: 'componentDidMount',
|
|
2760
2816
|
value: function componentDidMount() {
|
|
2761
2817
|
var _props = this.props,
|
|
@@ -2814,7 +2870,7 @@ module.exports =
|
|
|
2814
2870
|
{ style: { fontSize: 20, display: 'inline-block' } },
|
|
2815
2871
|
step.mode.charAt(0).toUpperCase() + step.mode.slice(1),
|
|
2816
2872
|
': Define ',
|
|
2817
|
-
step.
|
|
2873
|
+
step[step.mode + 'Provider'],
|
|
2818
2874
|
' Environment'
|
|
2819
2875
|
),
|
|
2820
2876
|
_react2.default.createElement('br', null),
|
|
@@ -2871,7 +2927,7 @@ module.exports =
|
|
|
2871
2927
|
_react2.default.createElement(
|
|
2872
2928
|
'label',
|
|
2873
2929
|
null,
|
|
2874
|
-
step.
|
|
2930
|
+
step[step.mode + 'Provider'],
|
|
2875
2931
|
' Credentials'
|
|
2876
2932
|
),
|
|
2877
2933
|
_react2.default.createElement('br', null),
|
|
@@ -2882,7 +2938,7 @@ module.exports =
|
|
|
2882
2938
|
return _react2.default.createElement(
|
|
2883
2939
|
'div',
|
|
2884
2940
|
{ key: index, style: { marginTop: 8 } },
|
|
2885
|
-
_react2.default.createElement(_reduxForm.Field, { name: '' + step.mode + cred.name, label: step.
|
|
2941
|
+
_react2.default.createElement(_reduxForm.Field, { name: '' + step.mode + cred.name, label: step[step.mode + 'Provider'](_templateObject, cred.name), type: 'text', component: inputs.rfInput })
|
|
2886
2942
|
);
|
|
2887
2943
|
})
|
|
2888
2944
|
),
|
|
@@ -2903,9 +2959,36 @@ module.exports =
|
|
|
2903
2959
|
'Test Connection'
|
|
2904
2960
|
)
|
|
2905
2961
|
) : null,
|
|
2962
|
+
wizard[step.mode + 'Metadata'] ? _react2.default.createElement(
|
|
2963
|
+
'div',
|
|
2964
|
+
null,
|
|
2965
|
+
_react2.default.createElement('br', null),
|
|
2966
|
+
_react2.default.createElement(
|
|
2967
|
+
'span',
|
|
2968
|
+
{ className: 'labelz' },
|
|
2969
|
+
'Available ',
|
|
2970
|
+
step[step.mode + 'Provider'],
|
|
2971
|
+
' Data Objects:'
|
|
2972
|
+
),
|
|
2973
|
+
_react2.default.createElement(
|
|
2974
|
+
'ul',
|
|
2975
|
+
null,
|
|
2976
|
+
wizard[step.mode + 'Metadata'].map(function (rsc, i) {
|
|
2977
|
+
return _react2.default.createElement(
|
|
2978
|
+
'li',
|
|
2979
|
+
{ key: i, style: { paddingLeft: 10 } },
|
|
2980
|
+
_react2.default.createElement(
|
|
2981
|
+
'a',
|
|
2982
|
+
{ onClick: _this2.seeFields, style: { cursor: 'default', textDecoration: 'none' } },
|
|
2983
|
+
rsc.name
|
|
2984
|
+
)
|
|
2985
|
+
);
|
|
2986
|
+
})
|
|
2987
|
+
)
|
|
2988
|
+
) : null,
|
|
2906
2989
|
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Environment', component: renderError }),
|
|
2907
2990
|
_react2.default.createElement('br', null),
|
|
2908
|
-
_react2.default.createElement(_navButtons2.default, { nextDisabled: !wizard.
|
|
2991
|
+
_react2.default.createElement(_navButtons2.default, { nextDisabled: !wizard[step.mode + 'Metadata'], handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
|
|
2909
2992
|
_react2.default.createElement('br', null),
|
|
2910
2993
|
_react2.default.createElement('br', null)
|
|
2911
2994
|
);
|
|
@@ -3054,7 +3137,7 @@ module.exports =
|
|
|
3054
3137
|
|
|
3055
3138
|
var _mapAccordion2 = _interopRequireDefault(_mapAccordion);
|
|
3056
3139
|
|
|
3057
|
-
var _loadData = __webpack_require__(
|
|
3140
|
+
var _loadData = __webpack_require__(6);
|
|
3058
3141
|
|
|
3059
3142
|
var _loadData2 = _interopRequireDefault(_loadData);
|
|
3060
3143
|
|
|
@@ -3062,7 +3145,7 @@ module.exports =
|
|
|
3062
3145
|
|
|
3063
3146
|
var _groupNav2 = _interopRequireDefault(_groupNav);
|
|
3064
3147
|
|
|
3065
|
-
var _transformModal = __webpack_require__(
|
|
3148
|
+
var _transformModal = __webpack_require__(61);
|
|
3066
3149
|
|
|
3067
3150
|
var _transformModal2 = _interopRequireDefault(_transformModal);
|
|
3068
3151
|
|
|
@@ -3187,7 +3270,6 @@ module.exports =
|
|
|
3187
3270
|
wizard = _props3.wizard;
|
|
3188
3271
|
|
|
3189
3272
|
var MapTable = inputs.MapTable;
|
|
3190
|
-
var Tooltip = inputs.Tooltip;
|
|
3191
3273
|
var sourceSchema = wizard['sourceMetadata'] ? wizard['sourceMetadata'] : null;
|
|
3192
3274
|
|
|
3193
3275
|
var destinationSchema = wizard['destinationMetadata'] ? wizard['destinationMetadata'] : null;
|
|
@@ -3641,11 +3723,11 @@ module.exports =
|
|
|
3641
3723
|
|
|
3642
3724
|
var _navButtons2 = _interopRequireDefault(_navButtons);
|
|
3643
3725
|
|
|
3644
|
-
var _schemaAccordion = __webpack_require__(
|
|
3726
|
+
var _schemaAccordion = __webpack_require__(60);
|
|
3645
3727
|
|
|
3646
3728
|
var _schemaAccordion2 = _interopRequireDefault(_schemaAccordion);
|
|
3647
3729
|
|
|
3648
|
-
var _loadData = __webpack_require__(
|
|
3730
|
+
var _loadData = __webpack_require__(6);
|
|
3649
3731
|
|
|
3650
3732
|
var _loadData2 = _interopRequireDefault(_loadData);
|
|
3651
3733
|
|
|
@@ -3849,14 +3931,14 @@ module.exports =
|
|
|
3849
3931
|
_react2.default.createElement(
|
|
3850
3932
|
'div',
|
|
3851
3933
|
{ style: { fontSize: 20, display: 'inline-block' } },
|
|
3852
|
-
'Build
|
|
3934
|
+
'Build Sync Operations'
|
|
3853
3935
|
),
|
|
3854
3936
|
_react2.default.createElement('br', null),
|
|
3855
3937
|
_react2.default.createElement('br', null),
|
|
3856
3938
|
_react2.default.createElement(
|
|
3857
3939
|
'p',
|
|
3858
3940
|
null,
|
|
3859
|
-
'Build
|
|
3941
|
+
'Build Sync Operations by mapping one or many data sources to a single Salesforce destination object.'
|
|
3860
3942
|
),
|
|
3861
3943
|
_react2.default.createElement('br', null),
|
|
3862
3944
|
resourceGroups && resourceGroups.length > 0 ? _react2.default.createElement(
|
|
@@ -3882,10 +3964,9 @@ module.exports =
|
|
|
3882
3964
|
) : null,
|
|
3883
3965
|
_react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs,
|
|
3884
3966
|
nextDisabled: !(resourceGroups && resourceGroups.length > 0) || !resourceGroups.every(function (g) {
|
|
3885
|
-
return g.resources
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
}) })
|
|
3967
|
+
return g.resources;
|
|
3968
|
+
}) //&& g.destinationKey && g.resources.every(rsc=>rsc.externalKey))
|
|
3969
|
+
})
|
|
3889
3970
|
);
|
|
3890
3971
|
}
|
|
3891
3972
|
}]);
|
|
@@ -4083,15 +4164,18 @@ module.exports =
|
|
|
4083
4164
|
if (this.state.selectedField) {
|
|
4084
4165
|
var resourceGroups = [].concat(_toConsumableArray(formValues['resourceGroups']));
|
|
4085
4166
|
var rscGroup = resourceGroups[resourceGroupIndex];
|
|
4167
|
+
|
|
4168
|
+
//cant map multiple to same destination field
|
|
4086
4169
|
rscGroup.mappings = rscGroup.mappings && rscGroup.mappings.filter(function (m) {
|
|
4087
4170
|
return m.propertyToName !== field;
|
|
4088
4171
|
}) || [];
|
|
4089
4172
|
rscGroup.mappings.push({
|
|
4090
|
-
resourceFromName: selectedEntity,
|
|
4173
|
+
resourceFromName: selectedEntity.name,
|
|
4091
4174
|
resourceToName: group,
|
|
4092
4175
|
propertyFromName: this.state.selectedField,
|
|
4093
4176
|
propertyToName: field,
|
|
4094
|
-
transformations: [{ type: 'none' }]
|
|
4177
|
+
transformations: [{ type: 'none' }],
|
|
4178
|
+
dataSourceIsDestinationEntity: selectedEntity.isDestinationEntity
|
|
4095
4179
|
});
|
|
4096
4180
|
change('resourceGroups', resourceGroups);
|
|
4097
4181
|
this.setState({ selectedField: null });
|
|
@@ -4117,7 +4201,7 @@ module.exports =
|
|
|
4117
4201
|
|
|
4118
4202
|
|
|
4119
4203
|
var group = resourceGroups[resourceGroupIndex];
|
|
4120
|
-
var selectedEntity = selectedEntities[resourceGroupIndex];
|
|
4204
|
+
var selectedEntity = selectedEntities[resourceGroupIndex] || { name: '' };
|
|
4121
4205
|
var bit = [true, false];
|
|
4122
4206
|
var direction = leftClicked ? 'right' : 'left';
|
|
4123
4207
|
|
|
@@ -4125,7 +4209,7 @@ module.exports =
|
|
|
4125
4209
|
var filteredMappings = {};
|
|
4126
4210
|
group.mappings && group.mappings.forEach(function (m) {
|
|
4127
4211
|
mappings[m.propertyToName] = m.propertyFromName;
|
|
4128
|
-
if (m.resourceFromName === selectedEntity) {
|
|
4212
|
+
if (m.resourceFromName === selectedEntity.name) {
|
|
4129
4213
|
filteredMappings[m.propertyToName] = m.propertyFromName;
|
|
4130
4214
|
}
|
|
4131
4215
|
});
|
|
@@ -4169,19 +4253,19 @@ module.exports =
|
|
|
4169
4253
|
style: { height: 35 },
|
|
4170
4254
|
onClick: function onClick() {
|
|
4171
4255
|
_this2.scrollToTop(_this2['scroller-' + ii], 18, i * 43 + 6);
|
|
4172
|
-
_this2.pickEntity(rsc.name);
|
|
4256
|
+
_this2.pickEntity({ name: rsc.name, isDestinationEntity: rsc.provider === step.destinationProvider });
|
|
4173
4257
|
}
|
|
4174
4258
|
},
|
|
4175
4259
|
_react2.default.createElement(
|
|
4176
4260
|
'span',
|
|
4177
4261
|
null,
|
|
4178
|
-
rsc.name
|
|
4262
|
+
rsc.provider === step.destinationProvider ? rsc.name + (' (' + step.destinationProvider + ')') : rsc.name
|
|
4179
4263
|
),
|
|
4180
4264
|
_react2.default.createElement(
|
|
4181
4265
|
'svg',
|
|
4182
4266
|
{ xmlns: 'http://www.w3.org/2000/svg', fill: '#FFFFFF', width: '18', height: '18', viewBox: '0 0 18 18',
|
|
4183
4267
|
style: { float: 'right',
|
|
4184
|
-
transform: selectedEntity === rsc.name ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
4268
|
+
transform: selectedEntity.name === rsc.name ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
4185
4269
|
} },
|
|
4186
4270
|
_react2.default.createElement('path', { d: 'M5 8l4 4 4-4z' })
|
|
4187
4271
|
)
|
|
@@ -4190,7 +4274,7 @@ module.exports =
|
|
|
4190
4274
|
'div',
|
|
4191
4275
|
{ className: 'accordion-panel-collapse',
|
|
4192
4276
|
style: {
|
|
4193
|
-
height: schema && selectedEntity === rsc.name ? schema.filter(function (r) {
|
|
4277
|
+
height: schema && selectedEntity.name === rsc.name ? schema.filter(function (r) {
|
|
4194
4278
|
return r.name === rsc.name;
|
|
4195
4279
|
})[0].properties.length * 18 + 19 : 0,
|
|
4196
4280
|
padding: '0 6px'
|
|
@@ -4462,6 +4546,17 @@ module.exports =
|
|
|
4462
4546
|
|
|
4463
4547
|
/***/ },
|
|
4464
4548
|
/* 59 */
|
|
4549
|
+
/***/ function(module, exports) {
|
|
4550
|
+
|
|
4551
|
+
"use strict";
|
|
4552
|
+
|
|
4553
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4554
|
+
value: true
|
|
4555
|
+
});
|
|
4556
|
+
exports.default = "\n<div id=\"content\">\n hi\n</div>\n<script>\n\n fetch('http://localhost:8084/v1/15/10114/previewintegration?url=https://adapter.lingkapps.com:3000/api/applicants', {\n headers: new Headers({\n 'Authorization': 'Bearer ' + window.localStorage.getItem('userToken')\n })\n })\n .then((r) => r.json())\n .then(res=>{\n document.getElementById(\"content\").innerHTML = res\n })\n\n</script>\n";
|
|
4557
|
+
|
|
4558
|
+
/***/ },
|
|
4559
|
+
/* 60 */
|
|
4465
4560
|
/***/ function(module, exports, __webpack_require__) {
|
|
4466
4561
|
|
|
4467
4562
|
'use strict';
|
|
@@ -4480,7 +4575,7 @@ module.exports =
|
|
|
4480
4575
|
|
|
4481
4576
|
var _reactAddonsCssTransitionGroup2 = _interopRequireDefault(_reactAddonsCssTransitionGroup);
|
|
4482
4577
|
|
|
4483
|
-
var _reactDraggable = __webpack_require__(
|
|
4578
|
+
var _reactDraggable = __webpack_require__(67);
|
|
4484
4579
|
|
|
4485
4580
|
var _reactDraggable2 = _interopRequireDefault(_reactDraggable);
|
|
4486
4581
|
|
|
@@ -4723,8 +4818,8 @@ module.exports =
|
|
|
4723
4818
|
_react2.default.createElement(
|
|
4724
4819
|
'div',
|
|
4725
4820
|
{ style: { verticalAlign: 'top', float: 'right', marginRight: 8 } },
|
|
4726
|
-
|
|
4727
|
-
defaultLabel: '
|
|
4821
|
+
_react2.default.createElement(_reduxForm.Field, { component: inputs.rfSelect, type: 'input', menuAlign: 'right',
|
|
4822
|
+
defaultLabel: 'Choose Join Key', colorType: 'brand',
|
|
4728
4823
|
selectedValue: group.resources[i].externalKey, onClick: showOverflow,
|
|
4729
4824
|
values: rsc.provider === step.destinationProvider ? destinationSchema && destinationSchema.find(function (defaultRsc) {
|
|
4730
4825
|
return defaultRsc.name === rsc.name;
|
|
@@ -4736,7 +4831,7 @@ module.exports =
|
|
|
4736
4831
|
return defaultRsc.name === rsc.name;
|
|
4737
4832
|
}).properties,
|
|
4738
4833
|
name: 'resourceGroups.' + resourceGroupIndex + '.resources.' + i + '.externalKey'
|
|
4739
|
-
})
|
|
4834
|
+
})
|
|
4740
4835
|
)
|
|
4741
4836
|
)
|
|
4742
4837
|
);
|
|
@@ -4767,7 +4862,7 @@ module.exports =
|
|
|
4767
4862
|
exports.default = SchemaAccordion;
|
|
4768
4863
|
|
|
4769
4864
|
/***/ },
|
|
4770
|
-
/*
|
|
4865
|
+
/* 61 */
|
|
4771
4866
|
/***/ function(module, exports, __webpack_require__) {
|
|
4772
4867
|
|
|
4773
4868
|
'use strict';
|
|
@@ -4968,7 +5063,7 @@ module.exports =
|
|
|
4968
5063
|
exports.default = TransformModal;
|
|
4969
5064
|
|
|
4970
5065
|
/***/ },
|
|
4971
|
-
/*
|
|
5066
|
+
/* 62 */
|
|
4972
5067
|
/***/ function(module, exports, __webpack_require__) {
|
|
4973
5068
|
|
|
4974
5069
|
'use strict';
|
|
@@ -5108,8 +5203,6 @@ module.exports =
|
|
|
5108
5203
|
//resources: Type is the real value, Name is the displayed value
|
|
5109
5204
|
//properties: Name is the real value, Label is the displayed value
|
|
5110
5205
|
|
|
5111
|
-
/* instead of finding the values from metadata, keep metadata types/names in the RF state */
|
|
5112
|
-
|
|
5113
5206
|
var bundles = [].concat(_toConsumableArray(formValues['resourceGroups'])) || [];
|
|
5114
5207
|
var mappings = [];
|
|
5115
5208
|
bundles.forEach(function (group, index) {
|
|
@@ -5117,13 +5210,17 @@ module.exports =
|
|
|
5117
5210
|
return rsc.name === group.name;
|
|
5118
5211
|
}) : group;
|
|
5119
5212
|
group.name = destinationResource.type;
|
|
5213
|
+
group.destinationKey = destinationResource && destinationResource.properties && destinationResource.properties.find(function (prop) {
|
|
5214
|
+
return prop.label === group.destinationKey;
|
|
5215
|
+
}).name;
|
|
5120
5216
|
|
|
5121
5217
|
if (group.mappings) {
|
|
5122
5218
|
group.mappings.forEach(function (singleMapping) {
|
|
5123
|
-
var
|
|
5219
|
+
var dataSourceMetadata = singleMapping.dataSourceIsDestinationEntity ? _this2.props.wizard.destinationMetadata : _this2.props.wizard.sourceMetadata;
|
|
5220
|
+
var sourceResource = dataSourceMetadata.find(function (rsc) {
|
|
5124
5221
|
return rsc.name === singleMapping.resourceFromName;
|
|
5125
5222
|
});
|
|
5126
|
-
endpoints['
|
|
5223
|
+
endpoints['url_' + sourceResource.name] = formValues.sourceEndpoint + '/api/' + sourceResource.endpointSuffix.toLowerCase().split(' ').join('');
|
|
5127
5224
|
var sourceProperty = sourceResource && sourceResource.properties && sourceResource.properties.find(function (prop) {
|
|
5128
5225
|
return prop.label === singleMapping.propertyFromName;
|
|
5129
5226
|
});
|
|
@@ -5152,7 +5249,8 @@ module.exports =
|
|
|
5152
5249
|
|
|
5153
5250
|
if (group.resources) {
|
|
5154
5251
|
group.resources = group.resources.map(function (rsc) {
|
|
5155
|
-
var
|
|
5252
|
+
var dataSourceMetadata = rsc.provider === _this2.props.providers['destination'] ? _this2.props.wizard.destinationMetadata : _this2.props.wizard.sourceMetadata;
|
|
5253
|
+
var sourceResource = dataSourceMetadata.find(function (metaRsc) {
|
|
5156
5254
|
return metaRsc.name === rsc.name;
|
|
5157
5255
|
});
|
|
5158
5256
|
if (sourceResource) {
|
|
@@ -5182,17 +5280,7 @@ module.exports =
|
|
|
5182
5280
|
if (formValues.destinationEndpoint) {
|
|
5183
5281
|
endpoints.destinationEndpoint = formValues.destinationEndpoint;
|
|
5184
5282
|
}
|
|
5185
|
-
var configuration = Object.assign({}, endpoints, {
|
|
5186
|
-
//providerType_source: this.props.providers['source'].toLowerCase(),
|
|
5187
|
-
providerType_destination: this.props.providers['destination'].toLowerCase(),
|
|
5188
|
-
"providerType_source": "lingkreader",
|
|
5189
|
-
//"providerType_destination": "salesforce",
|
|
5190
|
-
"environment": "dev",
|
|
5191
|
-
//currentPage: this.state.currentPage ? JSON.stringify(this.state.currentPage) :
|
|
5192
|
-
//(this.props.wizard.savedConfiguration && this.props.wizard.savedConfiguration.currentPage),
|
|
5193
|
-
"apiKey": "5664bb4478fae2000100004aae5d222c6c2742717cebc5abf69f0f9e",
|
|
5194
|
-
"apiSecret": "YThjODc4MjQ2MzEwNDgzMjYwY2RiYmY5Yzg4NzBhMmI="
|
|
5195
|
-
});
|
|
5283
|
+
var configuration = Object.assign({}, endpoints, formValues['defaultDataset'] && { defaultDataset: formValues['defaultDataset'] });
|
|
5196
5284
|
//----------------------------------
|
|
5197
5285
|
// Post
|
|
5198
5286
|
//----------------------------------
|
|
@@ -5340,7 +5428,7 @@ module.exports =
|
|
|
5340
5428
|
exports.default = WizardForm;
|
|
5341
5429
|
|
|
5342
5430
|
/***/ },
|
|
5343
|
-
/*
|
|
5431
|
+
/* 63 */
|
|
5344
5432
|
/***/ function(module, exports, __webpack_require__) {
|
|
5345
5433
|
|
|
5346
5434
|
'use strict';
|
|
@@ -5355,7 +5443,7 @@ module.exports =
|
|
|
5355
5443
|
|
|
5356
5444
|
var _react2 = _interopRequireDefault(_react);
|
|
5357
5445
|
|
|
5358
|
-
var _redux = __webpack_require__(
|
|
5446
|
+
var _redux = __webpack_require__(69);
|
|
5359
5447
|
|
|
5360
5448
|
var _reactRedux = __webpack_require__(11);
|
|
5361
5449
|
|
|
@@ -5363,9 +5451,9 @@ module.exports =
|
|
|
5363
5451
|
|
|
5364
5452
|
var wizardActions = _interopRequireWildcard(_wizard);
|
|
5365
5453
|
|
|
5366
|
-
__webpack_require__(
|
|
5454
|
+
__webpack_require__(64);
|
|
5367
5455
|
|
|
5368
|
-
var _wizardForm = __webpack_require__(
|
|
5456
|
+
var _wizardForm = __webpack_require__(62);
|
|
5369
5457
|
|
|
5370
5458
|
var _wizardForm2 = _interopRequireDefault(_wizardForm);
|
|
5371
5459
|
|
|
@@ -5467,17 +5555,17 @@ module.exports =
|
|
|
5467
5555
|
}, {
|
|
5468
5556
|
type: 'custom',
|
|
5469
5557
|
mode: 'destination'
|
|
5558
|
+
}, {
|
|
5559
|
+
type: 'environment',
|
|
5560
|
+
title: 'Destination Environment',
|
|
5561
|
+
mode: 'destination'
|
|
5470
5562
|
}, {
|
|
5471
5563
|
type: 'schema',
|
|
5472
|
-
title: 'Build
|
|
5564
|
+
title: 'Build Sync Operations',
|
|
5473
5565
|
mode: 'source'
|
|
5474
5566
|
}, {
|
|
5475
5567
|
type: 'filter',
|
|
5476
5568
|
title: 'Source Filter'
|
|
5477
|
-
}, {
|
|
5478
|
-
type: 'environment',
|
|
5479
|
-
title: 'Destination Environment',
|
|
5480
|
-
mode: 'destination'
|
|
5481
5569
|
}, {
|
|
5482
5570
|
type: 'map',
|
|
5483
5571
|
title: 'Field Mapping'
|
|
@@ -5501,6 +5589,8 @@ module.exports =
|
|
|
5501
5589
|
|
|
5502
5590
|
for (var i = 0; i < this.allSteps.length; i++) {
|
|
5503
5591
|
var step = this.allSteps[i];
|
|
5592
|
+
step.sourceProvider = wizard.source.name;
|
|
5593
|
+
step.destinationProvider = wizard.destination.name;
|
|
5504
5594
|
if (step.type === 'name' && wizard.nameStep) {
|
|
5505
5595
|
step.name = wizard.title;
|
|
5506
5596
|
stepList.push(step);
|
|
@@ -5516,21 +5606,15 @@ module.exports =
|
|
|
5516
5606
|
}
|
|
5517
5607
|
} else if (step.type === 'environment') {
|
|
5518
5608
|
if (step.mode === 'source' && wizard.source.env) {
|
|
5519
|
-
step.provider = wizard.source.name;
|
|
5520
5609
|
step.providerType = wizard.source.type;
|
|
5521
5610
|
step.credentials = providerData.providerTypes[wizard.source.type].credentials || null;
|
|
5522
|
-
step.credentials = providerData.providerTypes[wizard.source.type].metadataEndpoint || null;
|
|
5523
5611
|
stepList.push(step);
|
|
5524
5612
|
} else if (step.mode === 'destination' && wizard.destination.env) {
|
|
5525
|
-
step.provider = wizard.destinationProvider;
|
|
5526
5613
|
step.providerType = wizard.destination.type;
|
|
5527
5614
|
step.credentials = providerData.providerTypes[wizard.destination.type].credentials || null;
|
|
5528
|
-
step.credentials = providerData.providerTypes[wizard.source.type].metadataEndpoint || null;
|
|
5529
5615
|
stepList.push(step);
|
|
5530
5616
|
}
|
|
5531
5617
|
} else if (step.type === 'schema') {
|
|
5532
|
-
step.sourceProvider = wizard.source.name;
|
|
5533
|
-
step.destinationProvider = wizard.destination.name;
|
|
5534
5618
|
step.customizable = wizard.source.customizable;
|
|
5535
5619
|
step.defaultSchema = wizard.source.defaultSchema || null; //remove this
|
|
5536
5620
|
stepList.push(step);
|
|
@@ -5538,8 +5622,6 @@ module.exports =
|
|
|
5538
5622
|
step.provider = wizard.source.name;
|
|
5539
5623
|
stepList.push(step);
|
|
5540
5624
|
} else if (step.type === 'map') {
|
|
5541
|
-
step.sourceProvider = wizard.source.name;
|
|
5542
|
-
step.destinationProvider = wizard.destination.name;
|
|
5543
5625
|
step.autoMapData = wizard.autoMapData || null;
|
|
5544
5626
|
step.defaultSchema = wizard.source.defaultSchema || null; //remove this
|
|
5545
5627
|
stepList.push(step);
|
|
@@ -5608,20 +5690,20 @@ module.exports =
|
|
|
5608
5690
|
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(LingkSync);
|
|
5609
5691
|
|
|
5610
5692
|
/***/ },
|
|
5611
|
-
/*
|
|
5693
|
+
/* 64 */
|
|
5612
5694
|
/***/ function(module, exports) {
|
|
5613
5695
|
|
|
5614
5696
|
// removed by extract-text-webpack-plugin
|
|
5615
5697
|
|
|
5616
5698
|
/***/ },
|
|
5617
|
-
/* 64 */,
|
|
5618
5699
|
/* 65 */,
|
|
5619
|
-
/* 66
|
|
5700
|
+
/* 66 */,
|
|
5701
|
+
/* 67 */
|
|
5620
5702
|
/***/ function(module, exports, __webpack_require__) {
|
|
5621
5703
|
|
|
5622
5704
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
5623
5705
|
if(true)
|
|
5624
|
-
module.exports = factory(__webpack_require__(1), __webpack_require__(
|
|
5706
|
+
module.exports = factory(__webpack_require__(1), __webpack_require__(68));
|
|
5625
5707
|
else if(typeof define === 'function' && define.amd)
|
|
5626
5708
|
define(["react", "react-dom"], factory);
|
|
5627
5709
|
else if(typeof exports === 'object')
|
|
@@ -7228,13 +7310,13 @@ module.exports =
|
|
|
7228
7310
|
//# sourceMappingURL=react-draggable.js.map
|
|
7229
7311
|
|
|
7230
7312
|
/***/ },
|
|
7231
|
-
/*
|
|
7313
|
+
/* 68 */
|
|
7232
7314
|
/***/ function(module, exports) {
|
|
7233
7315
|
|
|
7234
7316
|
module.exports = require("react-dom");
|
|
7235
7317
|
|
|
7236
7318
|
/***/ },
|
|
7237
|
-
/*
|
|
7319
|
+
/* 69 */
|
|
7238
7320
|
/***/ function(module, exports) {
|
|
7239
7321
|
|
|
7240
7322
|
module.exports = require("redux");
|