@lingk/sync 0.1.3 → 0.1.5
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 +32 -10
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js +8 -4
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/main.js +242 -272
- package/build/main.js.map +1 -1
- package/build/reducer.js +13 -13
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -4785,8 +4785,13 @@ module.exports =
|
|
|
4785
4785
|
} // end if (!formValues['resourceGroups'])
|
|
4786
4786
|
|
|
4787
4787
|
|
|
4788
|
-
if (wizard.savedConfiguration
|
|
4789
|
-
|
|
4788
|
+
if (wizard.savedConfiguration) {
|
|
4789
|
+
if (wizard.savedConfiguration['scenario'] && !formValues['scenario']) {
|
|
4790
|
+
change('scenario', wizard.savedConfiguration['scenario']);
|
|
4791
|
+
}
|
|
4792
|
+
if (wizard.savedConfiguration['isBidirectional'] && typeof formValues['bidirectional'] === 'undefined') {
|
|
4793
|
+
change('bidirectional', wizard.savedConfiguration['isBidirectional'] === 'true');
|
|
4794
|
+
}
|
|
4790
4795
|
}
|
|
4791
4796
|
|
|
4792
4797
|
var modes = ['source', 'destination'];
|
|
@@ -6255,16 +6260,31 @@ module.exports =
|
|
|
6255
6260
|
}
|
|
6256
6261
|
}, {
|
|
6257
6262
|
key: 'addDefaultResourceGroup',
|
|
6258
|
-
value: function addDefaultResourceGroup(v,
|
|
6263
|
+
value: function addDefaultResourceGroup(v, selectIdx, id, section) {
|
|
6259
6264
|
var _props = this.props,
|
|
6260
6265
|
addGroup = _props.addGroup,
|
|
6261
|
-
resourceGroups = _props.resourceGroups
|
|
6266
|
+
resourceGroups = _props.resourceGroups,
|
|
6267
|
+
step = _props.step;
|
|
6262
6268
|
var resourceGroupIndex = this.state.resourceGroupIndex;
|
|
6263
6269
|
|
|
6270
|
+
|
|
6271
|
+
var isReverse = section === step.sourceProvider;
|
|
6272
|
+
var firstReverseIndex = 0;
|
|
6273
|
+
for (var i = 0; i < resourceGroups.length; i++) {
|
|
6274
|
+
firstReverseIndex = i;
|
|
6275
|
+
if (resourceGroups[i].provider === step.sourceProvider) break;
|
|
6276
|
+
}
|
|
6277
|
+
var finalIndex = resourceGroupIndex + 1;
|
|
6278
|
+
if (!isReverse) {
|
|
6279
|
+
if (resourceGroupIndex > firstReverseIndex) finalIndex = firstReverseIndex + 1;
|
|
6280
|
+
} else {
|
|
6281
|
+
if (resourceGroupIndex < firstReverseIndex) finalIndex = resourceGroups.length;
|
|
6282
|
+
}
|
|
6283
|
+
|
|
6264
6284
|
if (!(resourceGroups && resourceGroups.length === 0)) {
|
|
6265
|
-
this.go(false,
|
|
6285
|
+
this.go(false, finalIndex);
|
|
6266
6286
|
}
|
|
6267
|
-
addGroup(v,
|
|
6287
|
+
addGroup(v, finalIndex, id, section);
|
|
6268
6288
|
}
|
|
6269
6289
|
}, {
|
|
6270
6290
|
key: 'pickEntity',
|
|
@@ -6279,7 +6299,9 @@ module.exports =
|
|
|
6279
6299
|
value: function addDefaultEntity(groupIndex, v, rscIndex, section, rtid) {
|
|
6280
6300
|
var _this3 = this;
|
|
6281
6301
|
|
|
6282
|
-
var
|
|
6302
|
+
var _props2 = this.props,
|
|
6303
|
+
resourceGroups = _props2.resourceGroups,
|
|
6304
|
+
step = _props2.step;
|
|
6283
6305
|
|
|
6284
6306
|
var group = resourceGroups[this.state.resourceGroupIndex];
|
|
6285
6307
|
if (group.resources && group.resources.length > 0) {
|
|
@@ -6289,6 +6311,7 @@ module.exports =
|
|
|
6289
6311
|
_this3.setState({ selectedEntities: sel });
|
|
6290
6312
|
}, 40);
|
|
6291
6313
|
}
|
|
6314
|
+
|
|
6292
6315
|
this.props.addDefaultEntity(groupIndex, v, rscIndex, section, rtid);
|
|
6293
6316
|
}
|
|
6294
6317
|
}, {
|
|
@@ -6344,13 +6367,15 @@ module.exports =
|
|
|
6344
6367
|
value: function render() {
|
|
6345
6368
|
var _this4 = this;
|
|
6346
6369
|
|
|
6347
|
-
var
|
|
6348
|
-
resourceGroups =
|
|
6349
|
-
style =
|
|
6350
|
-
isBundleStep =
|
|
6351
|
-
destinationSchema =
|
|
6352
|
-
inputs =
|
|
6353
|
-
step =
|
|
6370
|
+
var _props3 = this.props,
|
|
6371
|
+
resourceGroups = _props3.resourceGroups,
|
|
6372
|
+
style = _props3.style,
|
|
6373
|
+
isBundleStep = _props3.isBundleStep,
|
|
6374
|
+
destinationSchema = _props3.destinationSchema,
|
|
6375
|
+
inputs = _props3.inputs,
|
|
6376
|
+
step = _props3.step,
|
|
6377
|
+
sourceSchema = _props3.sourceSchema,
|
|
6378
|
+
bidirectional = _props3.bidirectional;
|
|
6354
6379
|
var _state = this.state,
|
|
6355
6380
|
resourceGroupIndex = _state.resourceGroupIndex,
|
|
6356
6381
|
paneToggle = _state.paneToggle,
|
|
@@ -6359,6 +6384,10 @@ module.exports =
|
|
|
6359
6384
|
var Button = inputs.Button;
|
|
6360
6385
|
var Tooltip = inputs.Tooltip;
|
|
6361
6386
|
|
|
6387
|
+
var filteredSourceSchema = bidirectional && sourceSchema.filter(function (r) {
|
|
6388
|
+
return r.method === 'POST' || r.method === 'PUT';
|
|
6389
|
+
});
|
|
6390
|
+
|
|
6362
6391
|
var propsForChild = {
|
|
6363
6392
|
resourceGroups: resourceGroups, leftClicked: leftClicked, inputs: inputs, step: step,
|
|
6364
6393
|
selectedEntities: this.state.selectedEntities,
|
|
@@ -6390,15 +6419,27 @@ module.exports =
|
|
|
6390
6419
|
float: 'right'
|
|
6391
6420
|
};
|
|
6392
6421
|
|
|
6422
|
+
var firstReverseIndex = 0;
|
|
6423
|
+
for (var i = 0; i < resourceGroups.length; i++) {
|
|
6424
|
+
firstReverseIndex = i;
|
|
6425
|
+
if (resourceGroups[i].provider === step.sourceProvider) break;
|
|
6426
|
+
}
|
|
6427
|
+
|
|
6428
|
+
var group = resourceGroups[resourceGroupIndex];
|
|
6429
|
+
var isReverse = group.provider === step.sourceProvider;
|
|
6430
|
+
|
|
6393
6431
|
return _react2.default.createElement(
|
|
6394
6432
|
'div',
|
|
6395
6433
|
{ style: { position: 'relative' } },
|
|
6396
6434
|
isBundleStep ? _react2.default.createElement(
|
|
6397
6435
|
'div',
|
|
6398
6436
|
{ style: { zIndex: 99 } },
|
|
6399
|
-
_react2.default.createElement(_selectWrapper2.default, { label:
|
|
6437
|
+
_react2.default.createElement(_selectWrapper2.default, { label: "Add Data Target", type: 'brand',
|
|
6400
6438
|
style: { height: 40, width: 160 }, minWidth: 260, fieldPropLabel: 'name',
|
|
6401
|
-
onSelect: this.addDefaultResourceGroup,
|
|
6439
|
+
onSelect: this.addDefaultResourceGroup,
|
|
6440
|
+
values: [destinationSchema, filteredSourceSchema],
|
|
6441
|
+
title: 'Available Target Objects', inputs: inputs, sectionLabelSuffix: 'Objects',
|
|
6442
|
+
sectionLabels: [step.destinationProvider, step.sourceProvider]
|
|
6402
6443
|
})
|
|
6403
6444
|
) : null,
|
|
6404
6445
|
_react2.default.createElement('br', null),
|
|
@@ -6437,9 +6478,7 @@ module.exports =
|
|
|
6437
6478
|
_react2.default.createElement(
|
|
6438
6479
|
'span',
|
|
6439
6480
|
null,
|
|
6440
|
-
'Target
|
|
6441
|
-
step.destinationProvider,
|
|
6442
|
-
' Object'
|
|
6481
|
+
'Target Object'
|
|
6443
6482
|
),
|
|
6444
6483
|
_react2.default.createElement(
|
|
6445
6484
|
Tooltip,
|
|
@@ -6448,7 +6487,7 @@ module.exports =
|
|
|
6448
6487
|
'p',
|
|
6449
6488
|
null,
|
|
6450
6489
|
'The ',
|
|
6451
|
-
step.destinationProvider,
|
|
6490
|
+
!isReverse ? step.destinationProvider : step.sourceProvider,
|
|
6452
6491
|
' Object to map data into'
|
|
6453
6492
|
)
|
|
6454
6493
|
)
|
|
@@ -6473,21 +6512,25 @@ module.exports =
|
|
|
6473
6512
|
return _react2.default.createElement(
|
|
6474
6513
|
'div',
|
|
6475
6514
|
{ className: 'schema-group-name', key: i },
|
|
6476
|
-
g.name
|
|
6515
|
+
g.provider === step.sourceProvider ? g.name + ' (' + step.sourceProvider + ')' : g.name
|
|
6477
6516
|
);
|
|
6478
6517
|
})
|
|
6479
6518
|
)
|
|
6480
6519
|
),
|
|
6481
6520
|
_react2.default.createElement(
|
|
6482
6521
|
'svg',
|
|
6483
|
-
{ className: 'schema-group-arrow schema-group-arrow-forward', viewBox: '0 0 24 24', onClick: this.increment,
|
|
6522
|
+
{ className: 'schema-group-arrow schema-group-arrow-forward', viewBox: '0 0 24 24', onClick: this.increment,
|
|
6523
|
+
style: resourceGroupIndex === resourceGroups.length - 1 ? { fill: '#CCCCCC', cursor: 'default' } : {} },
|
|
6484
6524
|
_react2.default.createElement('path', { d: 'M8 5v14l11-7z' })
|
|
6485
6525
|
),
|
|
6486
6526
|
_react2.default.createElement(
|
|
6487
6527
|
'div',
|
|
6488
6528
|
{ className: 'schema-group-dots' },
|
|
6489
6529
|
resourceGroups.map(function (g, i) {
|
|
6490
|
-
return _react2.default.createElement('div', { className: 'schema-group-dot', key: i, style:
|
|
6530
|
+
return _react2.default.createElement('div', { className: 'schema-group-dot', key: i, style: {
|
|
6531
|
+
background: resourceGroupIndex !== i ? '#CFCFCF' : '#0070d2',
|
|
6532
|
+
marginLeft: i === firstReverseIndex ? 12 : 2
|
|
6533
|
+
}, onClick: function onClick() {
|
|
6491
6534
|
return _this4.clickDot(i);
|
|
6492
6535
|
} });
|
|
6493
6536
|
})
|
|
@@ -19273,10 +19316,8 @@ module.exports =
|
|
|
19273
19316
|
var _getState = getState(),
|
|
19274
19317
|
config = _getState.config;
|
|
19275
19318
|
|
|
19276
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19277
|
-
|
|
19278
19319
|
return api.get(tenantId + '/' + appId + '/testconnection?url=' + url, {
|
|
19279
|
-
endpoint: TRANS_API_URL
|
|
19320
|
+
endpoint: config.TRANS_API_URL
|
|
19280
19321
|
}).then(function (res) {
|
|
19281
19322
|
dispatch({
|
|
19282
19323
|
type: types.FINISH_ENV_CHECK,
|
|
@@ -19291,20 +19332,19 @@ module.exports =
|
|
|
19291
19332
|
};
|
|
19292
19333
|
}
|
|
19293
19334
|
|
|
19294
|
-
function getOauthUrl(tenantId, appId, typeGuid, orgType) {
|
|
19335
|
+
function getOauthUrl(tenantId, appId, typeGuid, orgType, mode) {
|
|
19295
19336
|
return function (dispatch, getState, api) {
|
|
19296
19337
|
dispatch({
|
|
19297
19338
|
type: types.GETTING_OAUTH_URL,
|
|
19298
|
-
bool: true
|
|
19339
|
+
bool: true,
|
|
19340
|
+
mode: mode
|
|
19299
19341
|
});
|
|
19300
19342
|
|
|
19301
19343
|
var _getState2 = getState(),
|
|
19302
19344
|
config = _getState2.config;
|
|
19303
19345
|
|
|
19304
|
-
var AGENT_API_URL = config.AGENT_API_URL;
|
|
19305
|
-
|
|
19306
19346
|
return api.get(tenantId + '/' + appId + '/oauthurl/' + typeGuid + '/' + orgType, {
|
|
19307
|
-
endpoint:
|
|
19347
|
+
endpoint: config.SF_AGENT_API_URL
|
|
19308
19348
|
}).then(function (data) {
|
|
19309
19349
|
dispatch({
|
|
19310
19350
|
type: types.SET_OAUTH_URL,
|
|
@@ -19321,9 +19361,6 @@ module.exports =
|
|
|
19321
19361
|
var _getState3 = getState(),
|
|
19322
19362
|
config = _getState3.config;
|
|
19323
19363
|
|
|
19324
|
-
var AGENT_API_URL = config.AGENT_API_URL;
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
19364
|
var externalIdlessObjects = [];
|
|
19328
19365
|
bundles.forEach(function (b) {
|
|
19329
19366
|
/*if(!b.customExternalKeys ||
|
|
@@ -19351,7 +19388,7 @@ module.exports =
|
|
|
19351
19388
|
if (externalIdlessObjects.length > 0) {
|
|
19352
19389
|
console.log('Adding Lingk External Id field to: ', externalIdlessObjects);
|
|
19353
19390
|
return api.post(tenantId + '/' + appId + '/salesforceschema/field', {
|
|
19354
|
-
endpoint:
|
|
19391
|
+
endpoint: config.SF_AGENT_API_URL,
|
|
19355
19392
|
data: externalIdlessObjects.map(function (o) {
|
|
19356
19393
|
return {
|
|
19357
19394
|
type: o,
|
|
@@ -19383,10 +19420,8 @@ module.exports =
|
|
|
19383
19420
|
var _getState4 = getState(),
|
|
19384
19421
|
config = _getState4.config;
|
|
19385
19422
|
|
|
19386
|
-
var AGENT_API_URL = config.AGENT_API_URL;
|
|
19387
|
-
|
|
19388
19423
|
return api.post(tenantId + '/' + appId + '/salesforceschema/field', {
|
|
19389
|
-
endpoint:
|
|
19424
|
+
endpoint: config.SF_AGENT_API_URL,
|
|
19390
19425
|
data: [{
|
|
19391
19426
|
type: objectType,
|
|
19392
19427
|
field: fieldName
|
|
@@ -19442,10 +19477,8 @@ module.exports =
|
|
|
19442
19477
|
var _getState5 = getState(),
|
|
19443
19478
|
config = _getState5.config;
|
|
19444
19479
|
|
|
19445
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19446
|
-
|
|
19447
19480
|
return api.get(tenantId + '/' + appId + '/previewintegration?url=' + url, {
|
|
19448
|
-
endpoint: TRANS_API_URL
|
|
19481
|
+
endpoint: config.TRANS_API_URL
|
|
19449
19482
|
}).then(function (res) {
|
|
19450
19483
|
dispatch({
|
|
19451
19484
|
type: types.FINISH_PREVIEW,
|
|
@@ -19462,11 +19495,9 @@ module.exports =
|
|
|
19462
19495
|
var _getState6 = getState(),
|
|
19463
19496
|
config = _getState6.config;
|
|
19464
19497
|
|
|
19465
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19466
|
-
|
|
19467
19498
|
var data = { bundles: bundles };
|
|
19468
19499
|
return api.post(tenantId + '/' + appId + '/bundle', {
|
|
19469
|
-
endpoint: TRANS_API_URL,
|
|
19500
|
+
endpoint: config.TRANS_API_URL,
|
|
19470
19501
|
data: data
|
|
19471
19502
|
}).then(function (res) {
|
|
19472
19503
|
return res;
|
|
@@ -19479,11 +19510,9 @@ module.exports =
|
|
|
19479
19510
|
var _getState7 = getState(),
|
|
19480
19511
|
config = _getState7.config;
|
|
19481
19512
|
|
|
19482
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19483
|
-
|
|
19484
19513
|
var data = { mappings: mappings };
|
|
19485
19514
|
return api.post(tenantId + '/' + appId + '/schemamappings', {
|
|
19486
|
-
endpoint: TRANS_API_URL,
|
|
19515
|
+
endpoint: config.TRANS_API_URL,
|
|
19487
19516
|
data: data
|
|
19488
19517
|
}).then(function (res) {
|
|
19489
19518
|
return res;
|
|
@@ -19496,8 +19525,6 @@ module.exports =
|
|
|
19496
19525
|
var _getState8 = getState(),
|
|
19497
19526
|
config = _getState8.config;
|
|
19498
19527
|
|
|
19499
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19500
|
-
|
|
19501
19528
|
var data = {
|
|
19502
19529
|
schemaMappingGuid: schemaMappingGuid,
|
|
19503
19530
|
bundlePackGuid: bundlePackGuid,
|
|
@@ -19506,7 +19533,7 @@ module.exports =
|
|
|
19506
19533
|
configuration: configuration
|
|
19507
19534
|
};
|
|
19508
19535
|
return api.post(tenantId + '/' + appId + '/productizedintegrations', {
|
|
19509
|
-
endpoint: TRANS_API_URL,
|
|
19536
|
+
endpoint: config.TRANS_API_URL,
|
|
19510
19537
|
data: data
|
|
19511
19538
|
}).then(function (pi) {
|
|
19512
19539
|
return pi;
|
|
@@ -19519,10 +19546,8 @@ module.exports =
|
|
|
19519
19546
|
var _getState9 = getState(),
|
|
19520
19547
|
config = _getState9.config;
|
|
19521
19548
|
|
|
19522
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19523
|
-
|
|
19524
19549
|
return api.post(tenantId + '/' + appId + '/productizedintegrations/' + piGuid + '/generate', {
|
|
19525
|
-
endpoint: TRANS_API_URL,
|
|
19550
|
+
endpoint: config.TRANS_API_URL,
|
|
19526
19551
|
data: {
|
|
19527
19552
|
"integrationTypeId": typeId,
|
|
19528
19553
|
"name": title,
|
|
@@ -19567,9 +19592,6 @@ module.exports =
|
|
|
19567
19592
|
var _getState10 = getState(),
|
|
19568
19593
|
config = _getState10.config;
|
|
19569
19594
|
|
|
19570
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19571
|
-
|
|
19572
|
-
|
|
19573
19595
|
var query = '';
|
|
19574
19596
|
var d = new Date();
|
|
19575
19597
|
var seconds = d.getTime() / 1000;
|
|
@@ -19583,7 +19605,7 @@ module.exports =
|
|
|
19583
19605
|
console.log('executing generated recipe', transId);
|
|
19584
19606
|
|
|
19585
19607
|
return api.get('execute/' + transId + '?' + query, {
|
|
19586
|
-
endpoint: TRANS_API_URL
|
|
19608
|
+
endpoint: config.TRANS_API_URL
|
|
19587
19609
|
}).then(function (data) {
|
|
19588
19610
|
return { done: data, externalExecutionId: externalExecutionId };
|
|
19589
19611
|
});
|
|
@@ -19595,10 +19617,8 @@ module.exports =
|
|
|
19595
19617
|
var _getState11 = getState(),
|
|
19596
19618
|
config = _getState11.config;
|
|
19597
19619
|
|
|
19598
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19599
|
-
|
|
19600
19620
|
return api.get('logs/transformers/externalExecutionId/' + externalExecutionId, {
|
|
19601
|
-
endpoint: TRANS_API_URL
|
|
19621
|
+
endpoint: config.TRANS_API_URL
|
|
19602
19622
|
}).then(function (data) {
|
|
19603
19623
|
console.log('LOG DATA', data);
|
|
19604
19624
|
if (!(data[0] && data[0].completed)) {
|
|
@@ -19641,10 +19661,8 @@ module.exports =
|
|
|
19641
19661
|
var _getState12 = getState(),
|
|
19642
19662
|
config = _getState12.config;
|
|
19643
19663
|
|
|
19644
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19645
|
-
|
|
19646
19664
|
return api.post('createtrigger', {
|
|
19647
|
-
endpoint: TRANS_API_URL,
|
|
19665
|
+
endpoint: config.TRANS_API_URL,
|
|
19648
19666
|
data: triggerData
|
|
19649
19667
|
}).then(function () {
|
|
19650
19668
|
dispatch(callDeployTrigger(generatedRecipe, piGuid, mapGuid, onFinish));
|
|
@@ -19657,10 +19675,8 @@ module.exports =
|
|
|
19657
19675
|
var _getState13 = getState(),
|
|
19658
19676
|
config = _getState13.config;
|
|
19659
19677
|
|
|
19660
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19661
|
-
|
|
19662
19678
|
return api.put('transformer/deploy/' + generatedRecipe.Id, {
|
|
19663
|
-
endpoint: TRANS_API_URL,
|
|
19679
|
+
endpoint: config.TRANS_API_URL,
|
|
19664
19680
|
data: { deployed: true }
|
|
19665
19681
|
}).then(function () {
|
|
19666
19682
|
if (onFinish) {
|
|
@@ -19701,10 +19717,8 @@ module.exports =
|
|
|
19701
19717
|
var _getState14 = getState(),
|
|
19702
19718
|
config = _getState14.config;
|
|
19703
19719
|
|
|
19704
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19705
|
-
|
|
19706
19720
|
return api.get(tenantId + '/' + accountId + '/productizedintegrations', {
|
|
19707
|
-
endpoint: TRANS_API_URL
|
|
19721
|
+
endpoint: config.TRANS_API_URL
|
|
19708
19722
|
}).then(function (data) {
|
|
19709
19723
|
var PI = data.find(function (pi) {
|
|
19710
19724
|
return pi.ProductizedIntegrationGuid === piGuid;
|
|
@@ -19757,10 +19771,8 @@ module.exports =
|
|
|
19757
19771
|
var _getState15 = getState(),
|
|
19758
19772
|
config = _getState15.config;
|
|
19759
19773
|
|
|
19760
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19761
|
-
|
|
19762
19774
|
return api.get(tenantId + '/' + accountId + '/bundle/' + bundlePackGuid, {
|
|
19763
|
-
endpoint: TRANS_API_URL
|
|
19775
|
+
endpoint: config.TRANS_API_URL
|
|
19764
19776
|
}).then(function (data) {
|
|
19765
19777
|
dispatch({
|
|
19766
19778
|
type: types.SET_WIZARD_SAVED_BUNDLES,
|
|
@@ -19779,10 +19791,8 @@ module.exports =
|
|
|
19779
19791
|
var _getState16 = getState(),
|
|
19780
19792
|
config = _getState16.config;
|
|
19781
19793
|
|
|
19782
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19783
|
-
|
|
19784
19794
|
return api.get(tenantId + '/' + accountId + '/schemamappings/' + mappingGuid, {
|
|
19785
|
-
endpoint: TRANS_API_URL
|
|
19795
|
+
endpoint: config.TRANS_API_URL
|
|
19786
19796
|
}).then(function (data) {
|
|
19787
19797
|
dispatch({
|
|
19788
19798
|
type: types.SET_WIZARD_SAVED_MAPPING,
|
|
@@ -19800,10 +19810,8 @@ module.exports =
|
|
|
19800
19810
|
var _getState17 = getState(),
|
|
19801
19811
|
config = _getState17.config;
|
|
19802
19812
|
|
|
19803
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19804
|
-
|
|
19805
19813
|
return api.post(tenantId + '/' + appId + '/credentials', {
|
|
19806
|
-
endpoint: TRANS_API_URL,
|
|
19814
|
+
endpoint: config.TRANS_API_URL,
|
|
19807
19815
|
data: {
|
|
19808
19816
|
credentialType: providerType,
|
|
19809
19817
|
credentialsJson: {
|
|
@@ -19849,10 +19857,8 @@ module.exports =
|
|
|
19849
19857
|
var _getState19 = getState(),
|
|
19850
19858
|
config = _getState19.config;
|
|
19851
19859
|
|
|
19852
|
-
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19853
|
-
|
|
19854
19860
|
return api.get('gettrigger/' + transBaseId, {
|
|
19855
|
-
endpoint: TRANS_API_URL
|
|
19861
|
+
endpoint: config.TRANS_API_URL
|
|
19856
19862
|
}).then(function (data) {
|
|
19857
19863
|
dispatch({
|
|
19858
19864
|
type: types.SET_WIZARD_TRIGGER,
|
|
@@ -19884,80 +19890,6 @@ module.exports =
|
|
|
19884
19890
|
});
|
|
19885
19891
|
};
|
|
19886
19892
|
}
|
|
19887
|
-
|
|
19888
|
-
/*export function callGetTransformersAfterGeneration(appId) {
|
|
19889
|
-
return (dispatch, getState, api) => {
|
|
19890
|
-
const { config } = getState();
|
|
19891
|
-
const { TRANS_API_URL } = config;
|
|
19892
|
-
return api.get(`transformers/${appId}`, {
|
|
19893
|
-
endpoint: TRANS_API_URL,
|
|
19894
|
-
})
|
|
19895
|
-
.then((data) => {
|
|
19896
|
-
|
|
19897
|
-
});
|
|
19898
|
-
};
|
|
19899
|
-
}*/
|
|
19900
|
-
|
|
19901
|
-
/*export function callPostSchema(tenantId, appId, data) {
|
|
19902
|
-
return (dispatch, getState, api) => {
|
|
19903
|
-
const { config } = getState();
|
|
19904
|
-
const { TRANS_API_URL } = config;
|
|
19905
|
-
return api.post(`${tenantId}/${appId}/schemas`, {
|
|
19906
|
-
endpoint: TRANS_API_URL,
|
|
19907
|
-
data,
|
|
19908
|
-
})
|
|
19909
|
-
.then(res => res.schemaGuid)
|
|
19910
|
-
};
|
|
19911
|
-
}*/
|
|
19912
|
-
|
|
19913
|
-
/*export function callGetSchemas(tenantId, accountId, schemaFromGuid, schemaToGuid) {
|
|
19914
|
-
return (dispatch, getState, api) => {
|
|
19915
|
-
const { config } = getState();
|
|
19916
|
-
const { TRANS_API_URL } = config;
|
|
19917
|
-
return api.get(`${tenantId}/${accountId}/schemas`, {
|
|
19918
|
-
endpoint: TRANS_API_URL,
|
|
19919
|
-
})
|
|
19920
|
-
.then((data) => {
|
|
19921
|
-
const schemas = {
|
|
19922
|
-
'sourceSchema': data.filter(s => s.schemaGuid===schemaFromGuid)[0] || null,
|
|
19923
|
-
'destinationSchema': data.filter(s => s.schemaGuid===schemaToGuid)[0] || null,
|
|
19924
|
-
}
|
|
19925
|
-
dispatch({
|
|
19926
|
-
type: types.SET_WIZARD_SAVED_SCHEMAS,
|
|
19927
|
-
data: schemas,
|
|
19928
|
-
})
|
|
19929
|
-
dispatch({
|
|
19930
|
-
type: types.SET_WIZARD_LOADED,
|
|
19931
|
-
bool: true
|
|
19932
|
-
})
|
|
19933
|
-
});
|
|
19934
|
-
};
|
|
19935
|
-
}*/
|
|
19936
|
-
|
|
19937
|
-
/*export function callGetSchemasForProvider(tenantId, appId, providerType) {
|
|
19938
|
-
return (dispatch, getState, api) => {
|
|
19939
|
-
const { config } = getState();
|
|
19940
|
-
const { TRANS_API_URL } = config;
|
|
19941
|
-
return api.get(`${tenantId}/${appId}/schemas/${providerType}`, {
|
|
19942
|
-
endpoint: TRANS_API_URL,
|
|
19943
|
-
})
|
|
19944
|
-
.then((data) => {
|
|
19945
|
-
dispatch({
|
|
19946
|
-
type: types.SET_WIZARD_SAVED_SCHEMAS,
|
|
19947
|
-
data
|
|
19948
|
-
});
|
|
19949
|
-
});
|
|
19950
|
-
};
|
|
19951
|
-
}
|
|
19952
|
-
|
|
19953
|
-
export function clearSavedSchemas() {
|
|
19954
|
-
return (dispatch) => {
|
|
19955
|
-
dispatch({
|
|
19956
|
-
type: types.SET_WIZARD_SAVED_SCHEMAS,
|
|
19957
|
-
data: []
|
|
19958
|
-
});
|
|
19959
|
-
}
|
|
19960
|
-
}*/
|
|
19961
19893
|
|
|
19962
19894
|
/***/ },
|
|
19963
19895
|
/* 206 */
|
|
@@ -20187,74 +20119,37 @@ module.exports =
|
|
|
20187
20119
|
removeResourceGroup = _props.removeResourceGroup,
|
|
20188
20120
|
openConnectionModal = _props.openConnectionModal,
|
|
20189
20121
|
clickTableRow = _props.clickTableRow,
|
|
20190
|
-
step = _props.step
|
|
20122
|
+
step = _props.step,
|
|
20123
|
+
mode = _props.mode;
|
|
20124
|
+
|
|
20191
20125
|
|
|
20192
20126
|
if (!(resourceGroups && resourceGroups.length > 0)) return _react2.default.createElement('div', null);
|
|
20193
|
-
|
|
20194
|
-
|
|
20195
|
-
|
|
20196
|
-
|
|
20197
|
-
return
|
|
20198
|
-
}
|
|
20199
|
-
|
|
20200
|
-
|
|
20201
|
-
|
|
20202
|
-
|
|
20203
|
-
|
|
20204
|
-
|
|
20205
|
-
|
|
20206
|
-
|
|
20207
|
-
|
|
20208
|
-
|
|
20209
|
-
<TableHeaderColumn>Target Object</TableHeaderColumn>
|
|
20210
|
-
<TableHeaderColumn></TableHeaderColumn>
|
|
20211
|
-
</TableRow>
|
|
20212
|
-
</TableHeader>
|
|
20213
|
-
<TableBody>
|
|
20214
|
-
{resourceGroups && resourceGroups.map((group, i)=>
|
|
20215
|
-
<TableRow key={i} onClick={()=>clickTableRow(i)}
|
|
20216
|
-
style={{background: i===resourceGroupIndex ? '#f4f6f9' : 'white', cursor:'pointer'}}>
|
|
20217
|
-
<TableRowColumn>
|
|
20218
|
-
{React.Children.count(children) > 0 ?
|
|
20219
|
-
React.cloneElement(
|
|
20220
|
-
childs[0], { group }
|
|
20221
|
-
)
|
|
20222
|
-
: null}
|
|
20223
|
-
</TableRowColumn>
|
|
20224
|
-
<TableRowColumn>
|
|
20225
|
-
{React.Children.count(children) > 1 ?
|
|
20226
|
-
React.cloneElement(
|
|
20227
|
-
childs[1], { group, i, showConnectionModal }
|
|
20228
|
-
)
|
|
20229
|
-
: null}
|
|
20230
|
-
</TableRowColumn>
|
|
20231
|
-
<TableRowColumn truncate={false}>
|
|
20232
|
-
{React.Children.count(children) > 2 ?
|
|
20233
|
-
React.cloneElement(
|
|
20234
|
-
childs[2], { group, i }
|
|
20235
|
-
)
|
|
20236
|
-
: null}
|
|
20237
|
-
</TableRowColumn>
|
|
20238
|
-
<TableRowColumn>
|
|
20239
|
-
{React.Children.count(children) > 3 ?
|
|
20240
|
-
React.cloneElement(
|
|
20241
|
-
childs[3], { group, i, removeResourceGroup, resourceGroups }
|
|
20242
|
-
)
|
|
20243
|
-
: null}
|
|
20244
|
-
</TableRowColumn>
|
|
20245
|
-
</TableRow>
|
|
20246
|
-
)}
|
|
20247
|
-
</TableBody>
|
|
20248
|
-
</Table>
|
|
20249
|
-
<div>
|
|
20250
|
-
</div>
|
|
20251
|
-
</div>
|
|
20252
|
-
)*/
|
|
20127
|
+
|
|
20128
|
+
var isReverse = mode === 'reverse';
|
|
20129
|
+
|
|
20130
|
+
var normalGroup = resourceGroups.filter(function (g) {
|
|
20131
|
+
return step.destinationProvider === g.provider;
|
|
20132
|
+
});
|
|
20133
|
+
var reverseGroup = resourceGroups.filter(function (g) {
|
|
20134
|
+
return step.sourceProvider === g.provider;
|
|
20135
|
+
});
|
|
20136
|
+
|
|
20137
|
+
var groups = isReverse ? reverseGroup : normalGroup;
|
|
20138
|
+
var extraIndex = isReverse ? normalGroup.length : 0;
|
|
20139
|
+
|
|
20140
|
+
if (!(groups && groups.length > 0)) return _react2.default.createElement('div', null);
|
|
20141
|
+
|
|
20142
|
+
var title = mode === 'reverse' ? step.destinationProvider + ' to ' + step.sourceProvider + ' Object Mappings' : step.sourceProvider + ' to ' + step.destinationProvider + ' Object Mappings';
|
|
20253
20143
|
|
|
20254
20144
|
return _react2.default.createElement(
|
|
20255
20145
|
'div',
|
|
20256
20146
|
null,
|
|
20257
20147
|
_react2.default.createElement('br', null),
|
|
20148
|
+
_react2.default.createElement(
|
|
20149
|
+
'div',
|
|
20150
|
+
{ style: { fontSize: '16px' } },
|
|
20151
|
+
title
|
|
20152
|
+
),
|
|
20258
20153
|
_react2.default.createElement(
|
|
20259
20154
|
'div',
|
|
20260
20155
|
{ className: 'bundle-table-header' },
|
|
@@ -20277,7 +20172,7 @@ module.exports =
|
|
|
20277
20172
|
_react2.default.createElement(
|
|
20278
20173
|
'div',
|
|
20279
20174
|
{ className: 'bundle-table-body' },
|
|
20280
|
-
|
|
20175
|
+
groups && groups.map(function (group, i) {
|
|
20281
20176
|
|
|
20282
20177
|
var linked = false;
|
|
20283
20178
|
if (group.customExternalKeys) {
|
|
@@ -20290,7 +20185,7 @@ module.exports =
|
|
|
20290
20185
|
}
|
|
20291
20186
|
}
|
|
20292
20187
|
|
|
20293
|
-
var groupsBeforeThis =
|
|
20188
|
+
var groupsBeforeThis = groups.slice(0, i);
|
|
20294
20189
|
var groupBeforeThisIndex = 0;
|
|
20295
20190
|
groupsBeforeThis.forEach(function (g, idx) {
|
|
20296
20191
|
if (group.resources && group.resources.find(function (r) {
|
|
@@ -20300,7 +20195,7 @@ module.exports =
|
|
|
20300
20195
|
}
|
|
20301
20196
|
});
|
|
20302
20197
|
|
|
20303
|
-
var groupsAfterThis =
|
|
20198
|
+
var groupsAfterThis = groups.slice(i + 1);
|
|
20304
20199
|
var groupsAfterThisContainThisResource = groupsAfterThis && groupsAfterThis.find(function (g) {
|
|
20305
20200
|
return g.resources && g.resources.find(function (r) {
|
|
20306
20201
|
return r.name === group.name;
|
|
@@ -20327,8 +20222,10 @@ module.exports =
|
|
|
20327
20222
|
}, onDrag: _this3.handleDrag, onStop: _this3.handleDragEnd },
|
|
20328
20223
|
_react2.default.createElement(
|
|
20329
20224
|
'div',
|
|
20330
|
-
{ className: 'bundle-table-row', key: i,
|
|
20331
|
-
|
|
20225
|
+
{ className: 'bundle-table-row', key: i,
|
|
20226
|
+
style: { background: i + extraIndex === resourceGroupIndex ? '#f4f6f9' : 'white' },
|
|
20227
|
+
onClick: function onClick() {
|
|
20228
|
+
return clickTableRow(i + extraIndex);
|
|
20332
20229
|
} },
|
|
20333
20230
|
_react2.default.createElement(
|
|
20334
20231
|
'div',
|
|
@@ -20376,7 +20273,7 @@ module.exports =
|
|
|
20376
20273
|
'div',
|
|
20377
20274
|
{ className: 'connect-resource-group', onClick: function onClick(e) {
|
|
20378
20275
|
e.stopPropagation();
|
|
20379
|
-
openConnectionModal(group, i);
|
|
20276
|
+
openConnectionModal(group, i + extraIndex);
|
|
20380
20277
|
}, style: { paddingTop: linked ? 5 : 6 } },
|
|
20381
20278
|
linked ? _react2.default.createElement(
|
|
20382
20279
|
'svg',
|
|
@@ -20396,7 +20293,7 @@ module.exports =
|
|
|
20396
20293
|
'div',
|
|
20397
20294
|
{ className: 'remove-resource-group' + (groupsAfterThisContainThisResource ? '-disabled' : ''),
|
|
20398
20295
|
onClick: function onClick(e) {
|
|
20399
|
-
if (!groupsAfterThisContainThisResource) removeResourceGroup(e, i);
|
|
20296
|
+
if (!groupsAfterThisContainThisResource) removeResourceGroup(e, i + extraIndex);
|
|
20400
20297
|
} },
|
|
20401
20298
|
_react2.default.createElement(
|
|
20402
20299
|
'svg',
|
|
@@ -20407,7 +20304,7 @@ module.exports =
|
|
|
20407
20304
|
_react2.default.createElement(
|
|
20408
20305
|
'strong',
|
|
20409
20306
|
{ style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'block', paddingTop: 8 } },
|
|
20410
|
-
group.name
|
|
20307
|
+
group.provider === step.sourceProvider ? group.name + ' (' + step.sourceProvider + ')' : group.name
|
|
20411
20308
|
)
|
|
20412
20309
|
)
|
|
20413
20310
|
)
|
|
@@ -20660,9 +20557,11 @@ module.exports =
|
|
|
20660
20557
|
),
|
|
20661
20558
|
sourceKeys.map(function (sk, i) {
|
|
20662
20559
|
|
|
20663
|
-
var
|
|
20560
|
+
var targetSchema = bundle.provider === step.sourceProvider ? sourceSchema : destinationSchema;
|
|
20561
|
+
|
|
20562
|
+
var destinationVals = [targetSchema && targetSchema.find(function (defaultRsc) {
|
|
20664
20563
|
return defaultRsc.name === bundle.name;
|
|
20665
|
-
}) &&
|
|
20564
|
+
}) && targetSchema.find(function (defaultRsc) {
|
|
20666
20565
|
return defaultRsc.name === bundle.name;
|
|
20667
20566
|
}).properties.filter(function (p) {
|
|
20668
20567
|
return !p.readOnly;
|
|
@@ -21193,6 +21092,7 @@ module.exports =
|
|
|
21193
21092
|
)
|
|
21194
21093
|
),
|
|
21195
21094
|
bit.map(function (x, i) {
|
|
21095
|
+
var targetSchema = group.provider === step.sourceProvider ? sourceSchema : destinationSchema;
|
|
21196
21096
|
return _react2.default.createElement(
|
|
21197
21097
|
_CSSTransitionGroup2.default,
|
|
21198
21098
|
{ transitionName: 'fade-' + direction,
|
|
@@ -21206,10 +21106,12 @@ module.exports =
|
|
|
21206
21106
|
customizingGroup === group.name && _react2.default.createElement(
|
|
21207
21107
|
'div',
|
|
21208
21108
|
{ style: { width: 264, marginBottom: 5 } },
|
|
21209
|
-
_react2.default.createElement(Input, { placeholder: 'Add Custom Field',
|
|
21109
|
+
_react2.default.createElement(Input, { placeholder: 'Add Custom Field',
|
|
21110
|
+
inputRef: function inputRef(ref) {
|
|
21210
21111
|
return _this4.customFieldInput = ref;
|
|
21211
21112
|
},
|
|
21212
|
-
onChange: _this4.changeCustomFieldValue,
|
|
21113
|
+
onChange: _this4.changeCustomFieldValue,
|
|
21114
|
+
value: _this4.state.customFieldValue,
|
|
21213
21115
|
symbolPattern: '[a-zA-Z ]', style: { width: 210 } }),
|
|
21214
21116
|
_react2.default.createElement(
|
|
21215
21117
|
Button,
|
|
@@ -21218,7 +21120,9 @@ module.exports =
|
|
|
21218
21120
|
'OK'
|
|
21219
21121
|
)
|
|
21220
21122
|
),
|
|
21221
|
-
!_this4.state.setDuplicateRules &&
|
|
21123
|
+
!_this4.state.setDuplicateRules && targetSchema && targetSchema.find(function (r) {
|
|
21124
|
+
return r.name === group.name;
|
|
21125
|
+
}) && targetSchema.find(function (r) {
|
|
21222
21126
|
return r.name === group.name;
|
|
21223
21127
|
}).properties.filter(function (p) {
|
|
21224
21128
|
return !p.readOnly;
|
|
@@ -21248,7 +21152,8 @@ module.exports =
|
|
|
21248
21152
|
_react2.default.createElement(
|
|
21249
21153
|
'div',
|
|
21250
21154
|
{ style: { paddingLeft: 12 } },
|
|
21251
|
-
_react2.default.createElement(_reduxForm.Field, { style: { height: 19, margin: 0
|
|
21155
|
+
_react2.default.createElement(_reduxForm.Field, { style: { height: 19, margin: 0, color: 'grey' },
|
|
21156
|
+
label: 'Unique Field',
|
|
21252
21157
|
component: inputs.rfCheckbox,
|
|
21253
21158
|
checked: mappings[mk].unique,
|
|
21254
21159
|
name: 'resourceGroups.' + resourceGroupIndex + '.mappings.' + mappings[mk].index + '.isUnique' })
|
|
@@ -21323,7 +21228,7 @@ module.exports =
|
|
|
21323
21228
|
var MapTableMappingRow = exports.MapTableMappingRow = function MapTableMappingRow(props) {
|
|
21324
21229
|
var group = props.group,
|
|
21325
21230
|
i = props.i,
|
|
21326
|
-
|
|
21231
|
+
clearMapping = props.clearMapping;
|
|
21327
21232
|
|
|
21328
21233
|
return _react2.default.createElement(
|
|
21329
21234
|
'div',
|
|
@@ -21356,7 +21261,7 @@ module.exports =
|
|
|
21356
21261
|
'div',
|
|
21357
21262
|
{ className: 'x-clear-mapping',
|
|
21358
21263
|
onClick: function onClick() {
|
|
21359
|
-
|
|
21264
|
+
clearMapping(i, m);
|
|
21360
21265
|
} },
|
|
21361
21266
|
'x'
|
|
21362
21267
|
) : _react2.default.createElement('div', { style: { width: 30, display: 'inline-block' } }),
|
|
@@ -21480,11 +21385,13 @@ module.exports =
|
|
|
21480
21385
|
);
|
|
21481
21386
|
};
|
|
21482
21387
|
|
|
21483
|
-
var MapTableDestinationRow = exports.MapTableDestinationRow = function MapTableDestinationRow(
|
|
21388
|
+
var MapTableDestinationRow = exports.MapTableDestinationRow = function MapTableDestinationRow(_ref) {
|
|
21389
|
+
var group = _ref.group,
|
|
21390
|
+
step = _ref.step;
|
|
21484
21391
|
return _react2.default.createElement(
|
|
21485
21392
|
'strong',
|
|
21486
21393
|
{ style: { fontSize: 16, whiteSpace: 'wrap' } },
|
|
21487
|
-
|
|
21394
|
+
group.provider === step.sourceProvider ? group.name + ' (' + step.sourceProvider + ')' : group.name
|
|
21488
21395
|
);
|
|
21489
21396
|
};
|
|
21490
21397
|
|
|
@@ -21668,9 +21575,11 @@ module.exports =
|
|
|
21668
21575
|
showOverflow = _props3.showOverflow,
|
|
21669
21576
|
step = _props3.step;
|
|
21670
21577
|
|
|
21578
|
+
|
|
21671
21579
|
var Tooltip = inputs.Tooltip;
|
|
21672
21580
|
var Button = inputs.Button;
|
|
21673
21581
|
var group = resourceGroups[resourceGroupIndex];
|
|
21582
|
+
var isReverse = group.provider === step.sourceProvider;
|
|
21674
21583
|
var bit = [true, false];
|
|
21675
21584
|
var direction = leftClicked ? 'right' : 'left';
|
|
21676
21585
|
var groupResourcesLength = group && group.resources ? group.resources.length : 0;
|
|
@@ -21683,6 +21592,12 @@ module.exports =
|
|
|
21683
21592
|
});
|
|
21684
21593
|
});
|
|
21685
21594
|
|
|
21595
|
+
var filteredSourceSchema = sourceSchema.filter(function (rsc) {
|
|
21596
|
+
return resourceGroups.find(function (g, i) {
|
|
21597
|
+
return i < resourceGroupIndex && g.name === rsc.name && group && group.name !== rsc.name ? true : false;
|
|
21598
|
+
});
|
|
21599
|
+
});
|
|
21600
|
+
|
|
21686
21601
|
return _react2.default.createElement(
|
|
21687
21602
|
'div',
|
|
21688
21603
|
{ style: { position: 'relative' } },
|
|
@@ -21693,15 +21608,7 @@ module.exports =
|
|
|
21693
21608
|
_react2.default.createElement(
|
|
21694
21609
|
'p',
|
|
21695
21610
|
null,
|
|
21696
|
-
'Choose one or more '
|
|
21697
|
-
step.sourceProvider,
|
|
21698
|
-
' Objects to map into the ',
|
|
21699
|
-
step.destinationProvider,
|
|
21700
|
-
' Object. If multiple ',
|
|
21701
|
-
step.sourceProvider,
|
|
21702
|
-
' Objects are added to a single ',
|
|
21703
|
-
step.destinationProvider,
|
|
21704
|
-
' Object, the Keys for joining these objects must be configured as well.'
|
|
21611
|
+
'Choose one or more Source Objects to map into the Target Object. If multiple Source Objects are added to a single Target Object, the Keys for joining these objects must be configured as well.'
|
|
21705
21612
|
)
|
|
21706
21613
|
),
|
|
21707
21614
|
_react2.default.createElement(
|
|
@@ -21946,10 +21853,11 @@ module.exports =
|
|
|
21946
21853
|
_react2.default.createElement(_selectWrapper2.default, { label: 'Add Data Source', style: { height: 40 }, onClick: showOverflow,
|
|
21947
21854
|
onSelect: function onSelect(v, i, rtid, section) {
|
|
21948
21855
|
return addDefaultEntity(resourceGroupIndex, v, i, section, rtid);
|
|
21949
|
-
}, type: 'neutral', inputs: inputs
|
|
21950
|
-
selectedValues
|
|
21951
|
-
|
|
21952
|
-
|
|
21856
|
+
}, type: 'neutral', inputs: inputs
|
|
21857
|
+
//selectedValues={resourceGroups && resourceGroups[resourceGroupIndex] &&
|
|
21858
|
+
//resourceGroups[resourceGroupIndex].resources}
|
|
21859
|
+
, values: !isReverse ? [sourceSchema, filteredDestinationSchema] : [destinationSchema, filteredSourceSchema],
|
|
21860
|
+
sectionLabels: !isReverse ? [step.sourceProvider, step.destinationProvider] : [step.destinationProvider, step.sourceProvider],
|
|
21953
21861
|
sectionLabelSuffix: 'Objects', fieldPropLabel: 'name'
|
|
21954
21862
|
})
|
|
21955
21863
|
) : null
|
|
@@ -22625,7 +22533,6 @@ module.exports =
|
|
|
22625
22533
|
formValues = _props3.formValues,
|
|
22626
22534
|
change = _props3.change;
|
|
22627
22535
|
|
|
22628
|
-
|
|
22629
22536
|
var disable = true;
|
|
22630
22537
|
if (step.options && formValues.deployment) {
|
|
22631
22538
|
if (formValues.deployment.type === 'daily') {
|
|
@@ -22908,6 +22815,13 @@ module.exports =
|
|
|
22908
22815
|
|
|
22909
22816
|
var Button = inputs.Button;
|
|
22910
22817
|
var Spinner = inputs.Spinner;
|
|
22818
|
+
|
|
22819
|
+
var envCheckResult = wizard[step.mode + 'CheckResult'];
|
|
22820
|
+
|
|
22821
|
+
var POSTS = wizard[step.mode + 'Metadata'] && wizard[step.mode + 'Metadata'].filter(function (m) {
|
|
22822
|
+
return m.method === 'POST' || m.method === 'PUT';
|
|
22823
|
+
});
|
|
22824
|
+
|
|
22911
22825
|
return _react2.default.createElement(
|
|
22912
22826
|
'form',
|
|
22913
22827
|
{ onKeyPress: function onKeyPress(e) {
|
|
@@ -22944,7 +22858,7 @@ module.exports =
|
|
|
22944
22858
|
Button,
|
|
22945
22859
|
{ type: 'brand',
|
|
22946
22860
|
onClick: function onClick() {
|
|
22947
|
-
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'sandbox');
|
|
22861
|
+
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'sandbox', step.mode);
|
|
22948
22862
|
} },
|
|
22949
22863
|
'Sandbox'
|
|
22950
22864
|
),
|
|
@@ -22952,7 +22866,7 @@ module.exports =
|
|
|
22952
22866
|
Button,
|
|
22953
22867
|
{ type: 'brand', style: { margin: '0 12px' },
|
|
22954
22868
|
onClick: function onClick() {
|
|
22955
|
-
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'production');
|
|
22869
|
+
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'production', step.mode);
|
|
22956
22870
|
} },
|
|
22957
22871
|
'Production'
|
|
22958
22872
|
),
|
|
@@ -23004,10 +22918,10 @@ module.exports =
|
|
|
23004
22918
|
'div',
|
|
23005
22919
|
{ style: { display: 'inline-block', marginLeft: 12 } },
|
|
23006
22920
|
wizard.envChecking && _react2.default.createElement(Spinner, null),
|
|
23007
|
-
|
|
22921
|
+
envCheckResult && _react2.default.createElement(
|
|
23008
22922
|
'span',
|
|
23009
22923
|
null,
|
|
23010
|
-
|
|
22924
|
+
envCheckResult
|
|
23011
22925
|
)
|
|
23012
22926
|
)
|
|
23013
22927
|
)
|
|
@@ -23042,10 +22956,10 @@ module.exports =
|
|
|
23042
22956
|
'div',
|
|
23043
22957
|
{ style: { display: 'inline-block', marginLeft: 12 } },
|
|
23044
22958
|
wizard.envChecking && _react2.default.createElement(Spinner, null),
|
|
23045
|
-
|
|
22959
|
+
envCheckResult && _react2.default.createElement(
|
|
23046
22960
|
'span',
|
|
23047
22961
|
null,
|
|
23048
|
-
|
|
22962
|
+
envCheckResult
|
|
23049
22963
|
)
|
|
23050
22964
|
)
|
|
23051
22965
|
)
|
|
@@ -23106,7 +23020,9 @@ module.exports =
|
|
|
23106
23020
|
_react2.default.createElement(
|
|
23107
23021
|
'ul',
|
|
23108
23022
|
null,
|
|
23109
|
-
wizard[step.mode + 'Metadata'].
|
|
23023
|
+
wizard[step.mode + 'Metadata'].filter(function (m) {
|
|
23024
|
+
return m.method !== 'POST';
|
|
23025
|
+
}).map(function (rsc, i) {
|
|
23110
23026
|
return _react2.default.createElement(
|
|
23111
23027
|
'li',
|
|
23112
23028
|
{ key: i, style: { paddingLeft: 10 } },
|
|
@@ -23121,8 +23037,42 @@ module.exports =
|
|
|
23121
23037
|
})
|
|
23122
23038
|
)
|
|
23123
23039
|
) : null,
|
|
23124
|
-
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Environment', component: renderError }),
|
|
23125
23040
|
_react2.default.createElement('br', null),
|
|
23041
|
+
wizard[step.mode + 'Metadata'] && step.mode === 'source' && POSTS && POSTS.length > 0 && _react2.default.createElement(
|
|
23042
|
+
'div',
|
|
23043
|
+
null,
|
|
23044
|
+
_react2.default.createElement(_reduxForm.Field, { name: 'bidirectional', component: inputs.rfCheckbox, label: 'Enable writing to source system (Bi-drectional Sync)', checked: formValues.bidirectional || false }),
|
|
23045
|
+
_react2.default.createElement('br', null),
|
|
23046
|
+
_react2.default.createElement('br', null),
|
|
23047
|
+
formValues.bidirectional && _react2.default.createElement(
|
|
23048
|
+
'div',
|
|
23049
|
+
null,
|
|
23050
|
+
_react2.default.createElement(
|
|
23051
|
+
'span',
|
|
23052
|
+
{ className: 'labelz' },
|
|
23053
|
+
'Available ',
|
|
23054
|
+
step[step.mode + 'Provider'],
|
|
23055
|
+
' Data Target Objects:'
|
|
23056
|
+
),
|
|
23057
|
+
_react2.default.createElement(
|
|
23058
|
+
'ul',
|
|
23059
|
+
null,
|
|
23060
|
+
POSTS.map(function (rsc, i) {
|
|
23061
|
+
return _react2.default.createElement(
|
|
23062
|
+
'li',
|
|
23063
|
+
{ key: i, style: { paddingLeft: 10 } },
|
|
23064
|
+
_react2.default.createElement(
|
|
23065
|
+
'a',
|
|
23066
|
+
{ style: { textDecoration: 'none', cursor: 'default' } },
|
|
23067
|
+
rsc.name
|
|
23068
|
+
)
|
|
23069
|
+
);
|
|
23070
|
+
})
|
|
23071
|
+
)
|
|
23072
|
+
)
|
|
23073
|
+
),
|
|
23074
|
+
_react2.default.createElement('br', null),
|
|
23075
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Environment', component: renderError }),
|
|
23126
23076
|
_react2.default.createElement(_navButtons2.default, { nextDisabled: !wizard[step.mode + 'Metadata'], handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
|
|
23127
23077
|
_react2.default.createElement('br', null),
|
|
23128
23078
|
_react2.default.createElement('br', null)
|
|
@@ -23451,8 +23401,18 @@ module.exports =
|
|
|
23451
23401
|
formValues: formValues, change: change, update: this.update, step: step, actions: actions }),
|
|
23452
23402
|
_react2.default.createElement(
|
|
23453
23403
|
MapTable,
|
|
23454
|
-
{ clearOneMapping: this.clearOneMapping, selectMapping: this.selectMapping
|
|
23455
|
-
|
|
23404
|
+
{ clearOneMapping: this.clearOneMapping, selectMapping: this.selectMapping,
|
|
23405
|
+
mode: 'normal', step: step },
|
|
23406
|
+
_react2.default.createElement(Rows.MapTableSourceRow, null),
|
|
23407
|
+
_react2.default.createElement(Rows.MapTableMappingRow, null),
|
|
23408
|
+
_react2.default.createElement(Rows.MapTableTransformRow, null),
|
|
23409
|
+
_react2.default.createElement(Rows.MapTableDestinationRow, null)
|
|
23410
|
+
),
|
|
23411
|
+
_react2.default.createElement(
|
|
23412
|
+
MapTable,
|
|
23413
|
+
{ clearOneMapping: this.clearOneMapping, selectMapping: this.selectMapping,
|
|
23414
|
+
mode: 'reverse', step: step },
|
|
23415
|
+
_react2.default.createElement(Rows.MapTableSourceRow, null),
|
|
23456
23416
|
_react2.default.createElement(Rows.MapTableMappingRow, null),
|
|
23457
23417
|
_react2.default.createElement(Rows.MapTableTransformRow, null),
|
|
23458
23418
|
_react2.default.createElement(Rows.MapTableDestinationRow, null)
|
|
@@ -24220,17 +24180,19 @@ module.exports =
|
|
|
24220
24180
|
}
|
|
24221
24181
|
}, {
|
|
24222
24182
|
key: 'addGroup',
|
|
24223
|
-
value: function addGroup(v, index, recordTypeId) {
|
|
24183
|
+
value: function addGroup(v, index, recordTypeId, section) {
|
|
24224
24184
|
var _props4 = this.props,
|
|
24225
24185
|
change = _props4.change,
|
|
24226
24186
|
formValues = _props4.formValues;
|
|
24227
24187
|
|
|
24228
24188
|
|
|
24229
24189
|
var resourceGroups = [].concat(_toConsumableArray(formValues['resourceGroups'])) || [];
|
|
24230
|
-
|
|
24190
|
+
|
|
24191
|
+
resourceGroups.splice(index, 0, {
|
|
24231
24192
|
name: v,
|
|
24232
24193
|
resources: null,
|
|
24233
|
-
recordTypeId: recordTypeId
|
|
24194
|
+
recordTypeId: recordTypeId,
|
|
24195
|
+
provider: section
|
|
24234
24196
|
});
|
|
24235
24197
|
|
|
24236
24198
|
change('resourceGroups', resourceGroups);
|
|
@@ -24450,18 +24412,22 @@ module.exports =
|
|
|
24450
24412
|
null,
|
|
24451
24413
|
_react2.default.createElement(
|
|
24452
24414
|
_groupNav2.default,
|
|
24453
|
-
{ isBundleStep: true,
|
|
24415
|
+
{ isBundleStep: true,
|
|
24416
|
+
style: { position: 'relative', width: 585, height: 69, zIndex: 9000 },
|
|
24454
24417
|
resourceGroups: resourceGroups, removeGroup: this.removeGroup,
|
|
24455
24418
|
addGroup: this.addGroup, destinationSchema: destinationSchema,
|
|
24456
24419
|
changeGroupOrder: this.changeGroupOrder, step: step,
|
|
24457
24420
|
inputs: inputs, addDefaultEntity: this.addDefaultEntity,
|
|
24458
|
-
didRemoveEntity: this.removeEntity
|
|
24421
|
+
didRemoveEntity: this.removeEntity,
|
|
24422
|
+
sourceSchema: sourceSchema,
|
|
24423
|
+
bidirectional: formValues.bidirectional },
|
|
24459
24424
|
_react2.default.createElement(_schemaAccordion2.default, { sourceSchema: sourceSchema,
|
|
24460
24425
|
changeEntityOrder: this.changeEntityOrder, step: step,
|
|
24461
24426
|
destinationSchema: destinationSchema,
|
|
24462
24427
|
selectPrimaryKey: this.selectPrimaryKey,
|
|
24463
24428
|
selectJoinKey: this.selectJoinKey }),
|
|
24464
|
-
_react2.default.createElement(_bundleTable2.default, { openConnectionModal: this.openConnectionModal })
|
|
24429
|
+
_react2.default.createElement(_bundleTable2.default, { openConnectionModal: this.openConnectionModal, mode: 'normal' }),
|
|
24430
|
+
_react2.default.createElement(_bundleTable2.default, { openConnectionModal: this.openConnectionModal, mode: 'reverse' })
|
|
24465
24431
|
),
|
|
24466
24432
|
_react2.default.createElement('br', null)
|
|
24467
24433
|
),
|
|
@@ -25007,7 +24973,9 @@ module.exports =
|
|
|
25007
24973
|
if (formValues.destinationEndpoint) {
|
|
25008
24974
|
endpoints.destinationEndpoint = formValues.destinationEndpoint;
|
|
25009
24975
|
}
|
|
25010
|
-
var configuration = Object.assign({}, endpoints, formValues['scenario'] && { scenario: formValues['scenario'] }
|
|
24976
|
+
var configuration = Object.assign({}, endpoints, formValues['scenario'] && { scenario: formValues['scenario'] }, {
|
|
24977
|
+
isBidirectional: String(formValues['bidirectional'] === true)
|
|
24978
|
+
});
|
|
25011
24979
|
//----------------------------------
|
|
25012
24980
|
// Post
|
|
25013
24981
|
//----------------------------------
|
|
@@ -25148,6 +25116,7 @@ module.exports =
|
|
|
25148
25116
|
var mappings = selector(state, 'mappings');
|
|
25149
25117
|
var resourceGroups = selector(state, 'resourceGroups');
|
|
25150
25118
|
var scenario = selector(state, 'scenario');
|
|
25119
|
+
var bidirectional = selector(state, 'bidirectional');
|
|
25151
25120
|
return Object.assign({}, state, {
|
|
25152
25121
|
formValues: {
|
|
25153
25122
|
title: title,
|
|
@@ -25158,7 +25127,8 @@ module.exports =
|
|
|
25158
25127
|
deployment: deployment,
|
|
25159
25128
|
mappings: mappings,
|
|
25160
25129
|
resourceGroups: resourceGroups,
|
|
25161
|
-
scenario: scenario
|
|
25130
|
+
scenario: scenario,
|
|
25131
|
+
bidirectional: bidirectional
|
|
25162
25132
|
}
|
|
25163
25133
|
});
|
|
25164
25134
|
})(WizardForm);
|
|
@@ -25300,11 +25270,11 @@ module.exports =
|
|
|
25300
25270
|
}
|
|
25301
25271
|
} else */if (step.type === 'scenario') {
|
|
25302
25272
|
step.options = wizard.scenarios;
|
|
25303
|
-
step.magicNumber =
|
|
25273
|
+
step.magicNumber = '2147483647';
|
|
25304
25274
|
stepList.push(step);
|
|
25305
25275
|
} else if (step.type === 'environment') {
|
|
25306
25276
|
step.typeGuid = wizard.typeGuid;
|
|
25307
|
-
if (step.mode === 'source' && wizard.source.
|
|
25277
|
+
if (step.mode === 'source' && !wizard.source.skipEnvStep) {
|
|
25308
25278
|
step.message = wizard.source.message;
|
|
25309
25279
|
step.providerType = wizard.source.type;
|
|
25310
25280
|
step.credentials = wizard.source.credentials || null;
|
|
@@ -25312,7 +25282,7 @@ module.exports =
|
|
|
25312
25282
|
step.metadataApi = wizard.source.metadataApi;
|
|
25313
25283
|
step.previewToken = this.props.previewToken;
|
|
25314
25284
|
stepList.push(step);
|
|
25315
|
-
} else if (step.mode === 'destination' && wizard.destination.
|
|
25285
|
+
} else if (step.mode === 'destination' && !wizard.destination.skipEnvStep) {
|
|
25316
25286
|
step.message = wizard.destination.message;
|
|
25317
25287
|
step.providerType = wizard.destination.type;
|
|
25318
25288
|
step.credentials = wizard.destination.credentials || null;
|
|
@@ -25333,7 +25303,7 @@ module.exports =
|
|
|
25333
25303
|
step.dummyData = wizard.dummyData || null
|
|
25334
25304
|
stepList.push(step)*/
|
|
25335
25305
|
} else if (step.type === 'deploy') {
|
|
25336
|
-
step.options =
|
|
25306
|
+
step.options = ['once', 'daily', 'repeating'];
|
|
25337
25307
|
stepList.push(step);
|
|
25338
25308
|
}
|
|
25339
25309
|
}
|
|
@@ -25344,10 +25314,10 @@ module.exports =
|
|
|
25344
25314
|
var metadataEndpoints = {
|
|
25345
25315
|
source: wizard.source.metadataEndpoint || null,
|
|
25346
25316
|
sourceApi: wizard.source.metadataApi || null,
|
|
25347
|
-
sourceEnv: wizard.source.
|
|
25317
|
+
sourceEnv: wizard.source.skipEnvStep ? false : true,
|
|
25348
25318
|
destination: wizard.destination.metadataEndpoint || null,
|
|
25349
25319
|
destinationApi: wizard.destination.metadataApi || null,
|
|
25350
|
-
destinationEnv: wizard.destination.
|
|
25320
|
+
destinationEnv: wizard.destination.skipEnvStep ? false : true
|
|
25351
25321
|
};
|
|
25352
25322
|
this.setState({
|
|
25353
25323
|
steps: stepList,
|