@lingk/sync 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -13
- package/build/css/lingkStyles.css +1 -0
- package/build/lightning.js +126 -101
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js +134 -87
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/main.js +540 -302
- package/build/main.js.map +1 -1
- package/build/reducer.js +25 -17
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -4500,15 +4500,14 @@ module.exports =
|
|
|
4500
4500
|
if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
|
|
4501
4501
|
|
|
4502
4502
|
/***/ },
|
|
4503
|
-
/* 8
|
|
4504
|
-
/* 9 */
|
|
4503
|
+
/* 8 */
|
|
4505
4504
|
/***/ function(module, exports) {
|
|
4506
4505
|
|
|
4507
4506
|
var core = module.exports = {version: '2.4.0'};
|
|
4508
4507
|
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
|
|
4509
4508
|
|
|
4510
4509
|
/***/ },
|
|
4511
|
-
/*
|
|
4510
|
+
/* 9 */
|
|
4512
4511
|
/***/ function(module, exports, __webpack_require__) {
|
|
4513
4512
|
|
|
4514
4513
|
// Thank's IE8 for his funny defineProperty
|
|
@@ -4517,6 +4516,7 @@ module.exports =
|
|
|
4517
4516
|
});
|
|
4518
4517
|
|
|
4519
4518
|
/***/ },
|
|
4519
|
+
/* 10 */,
|
|
4520
4520
|
/* 11 */
|
|
4521
4521
|
/***/ function(module, exports) {
|
|
4522
4522
|
|
|
@@ -4540,7 +4540,7 @@ module.exports =
|
|
|
4540
4540
|
|
|
4541
4541
|
var dP = __webpack_require__(18)
|
|
4542
4542
|
, createDesc = __webpack_require__(32);
|
|
4543
|
-
module.exports = __webpack_require__(
|
|
4543
|
+
module.exports = __webpack_require__(9) ? function(object, key, value){
|
|
4544
4544
|
return dP.f(object, key, createDesc(1, value));
|
|
4545
4545
|
} : function(object, key, value){
|
|
4546
4546
|
object[key] = value;
|
|
@@ -4593,7 +4593,7 @@ module.exports =
|
|
|
4593
4593
|
, toPrimitive = __webpack_require__(48)
|
|
4594
4594
|
, dP = Object.defineProperty;
|
|
4595
4595
|
|
|
4596
|
-
exports.f = __webpack_require__(
|
|
4596
|
+
exports.f = __webpack_require__(9) ? Object.defineProperty : function defineProperty(O, P, Attributes){
|
|
4597
4597
|
anObject(O);
|
|
4598
4598
|
P = toPrimitive(P, true);
|
|
4599
4599
|
anObject(Attributes);
|
|
@@ -4764,7 +4764,7 @@ module.exports =
|
|
|
4764
4764
|
resourceToName: bundleResource.name,
|
|
4765
4765
|
propertyToName: destinationProperty.label,
|
|
4766
4766
|
transformations: m.transformations && m.transformations.length > 0 ? m.transformations : [{ type: 'none' }]
|
|
4767
|
-
}, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }));
|
|
4767
|
+
}, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }, m.isUnique && { isUnique: true }));
|
|
4768
4768
|
}
|
|
4769
4769
|
}); // end wizard.savedMappings.forEach
|
|
4770
4770
|
resourceGroups.push(Object.assign({
|
|
@@ -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'];
|
|
@@ -4865,7 +4870,7 @@ module.exports =
|
|
|
4865
4870
|
/***/ function(module, exports, __webpack_require__) {
|
|
4866
4871
|
|
|
4867
4872
|
var global = __webpack_require__(7)
|
|
4868
|
-
, core = __webpack_require__(
|
|
4873
|
+
, core = __webpack_require__(8)
|
|
4869
4874
|
, ctx = __webpack_require__(43)
|
|
4870
4875
|
, hide = __webpack_require__(13)
|
|
4871
4876
|
, PROTOTYPE = 'prototype';
|
|
@@ -5706,10 +5711,11 @@ module.exports =
|
|
|
5706
5711
|
var FINISH_ENV_CHECK = exports.FINISH_ENV_CHECK = 'FINISH_ENV_CHECK';
|
|
5707
5712
|
var START_PREVIEW = exports.START_PREVIEW = 'START_PREVIEW';
|
|
5708
5713
|
var FINISH_PREVIEW = exports.FINISH_PREVIEW = 'FINISH_PREVIEW';
|
|
5709
|
-
var SET_WIZARD_METADATA = exports.SET_WIZARD_METADATA = 'SET_WIZARD_METADATA';
|
|
5710
5714
|
var START_GET_SCENARIO = exports.START_GET_SCENARIO = 'START_GET_SCENARIO';
|
|
5711
5715
|
var FINISH_GET_SCENARIO = exports.FINISH_GET_SCENARIO = 'FINISH_GET_SCENARIO';
|
|
5712
5716
|
var CLEAR_WIZARD = exports.CLEAR_WIZARD = 'CLEAR_WIZARD';
|
|
5717
|
+
var SET_OAUTH_URL = exports.SET_OAUTH_URL = 'SET_OAUTH_URL';
|
|
5718
|
+
var GETTING_OAUTH_URL = exports.GETTING_OAUTH_URL = 'GETTING_OAUTH_URL';
|
|
5713
5719
|
|
|
5714
5720
|
/***/ },
|
|
5715
5721
|
/* 39 */
|
|
@@ -5931,7 +5937,7 @@ module.exports =
|
|
|
5931
5937
|
/* 44 */
|
|
5932
5938
|
/***/ function(module, exports, __webpack_require__) {
|
|
5933
5939
|
|
|
5934
|
-
module.exports = !__webpack_require__(
|
|
5940
|
+
module.exports = !__webpack_require__(9) && !__webpack_require__(12)(function(){
|
|
5935
5941
|
return Object.defineProperty(__webpack_require__(27)('div'), 'a', {get: function(){ return 7; }}).a != 7;
|
|
5936
5942
|
});
|
|
5937
5943
|
|
|
@@ -6254,12 +6260,31 @@ module.exports =
|
|
|
6254
6260
|
}
|
|
6255
6261
|
}, {
|
|
6256
6262
|
key: 'addDefaultResourceGroup',
|
|
6257
|
-
value: function addDefaultResourceGroup(v,
|
|
6258
|
-
var
|
|
6263
|
+
value: function addDefaultResourceGroup(v, selectIdx, id, section) {
|
|
6264
|
+
var _props = this.props,
|
|
6265
|
+
addGroup = _props.addGroup,
|
|
6266
|
+
resourceGroups = _props.resourceGroups,
|
|
6267
|
+
step = _props.step;
|
|
6259
6268
|
var resourceGroupIndex = this.state.resourceGroupIndex;
|
|
6260
6269
|
|
|
6261
|
-
|
|
6262
|
-
|
|
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
|
+
|
|
6284
|
+
if (!(resourceGroups && resourceGroups.length === 0)) {
|
|
6285
|
+
this.go(false, finalIndex);
|
|
6286
|
+
}
|
|
6287
|
+
addGroup(v, finalIndex, id, section);
|
|
6263
6288
|
}
|
|
6264
6289
|
}, {
|
|
6265
6290
|
key: 'pickEntity',
|
|
@@ -6274,7 +6299,9 @@ module.exports =
|
|
|
6274
6299
|
value: function addDefaultEntity(groupIndex, v, rscIndex, section, rtid) {
|
|
6275
6300
|
var _this3 = this;
|
|
6276
6301
|
|
|
6277
|
-
var
|
|
6302
|
+
var _props2 = this.props,
|
|
6303
|
+
resourceGroups = _props2.resourceGroups,
|
|
6304
|
+
step = _props2.step;
|
|
6278
6305
|
|
|
6279
6306
|
var group = resourceGroups[this.state.resourceGroupIndex];
|
|
6280
6307
|
if (group.resources && group.resources.length > 0) {
|
|
@@ -6284,6 +6311,7 @@ module.exports =
|
|
|
6284
6311
|
_this3.setState({ selectedEntities: sel });
|
|
6285
6312
|
}, 40);
|
|
6286
6313
|
}
|
|
6314
|
+
|
|
6287
6315
|
this.props.addDefaultEntity(groupIndex, v, rscIndex, section, rtid);
|
|
6288
6316
|
}
|
|
6289
6317
|
}, {
|
|
@@ -6339,13 +6367,15 @@ module.exports =
|
|
|
6339
6367
|
value: function render() {
|
|
6340
6368
|
var _this4 = this;
|
|
6341
6369
|
|
|
6342
|
-
var
|
|
6343
|
-
resourceGroups =
|
|
6344
|
-
style =
|
|
6345
|
-
isBundleStep =
|
|
6346
|
-
destinationSchema =
|
|
6347
|
-
inputs =
|
|
6348
|
-
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;
|
|
6349
6379
|
var _state = this.state,
|
|
6350
6380
|
resourceGroupIndex = _state.resourceGroupIndex,
|
|
6351
6381
|
paneToggle = _state.paneToggle,
|
|
@@ -6354,6 +6384,10 @@ module.exports =
|
|
|
6354
6384
|
var Button = inputs.Button;
|
|
6355
6385
|
var Tooltip = inputs.Tooltip;
|
|
6356
6386
|
|
|
6387
|
+
var filteredSourceSchema = bidirectional && sourceSchema.filter(function (r) {
|
|
6388
|
+
return r.method === 'POST' || r.method === 'PUT';
|
|
6389
|
+
});
|
|
6390
|
+
|
|
6357
6391
|
var propsForChild = {
|
|
6358
6392
|
resourceGroups: resourceGroups, leftClicked: leftClicked, inputs: inputs, step: step,
|
|
6359
6393
|
selectedEntities: this.state.selectedEntities,
|
|
@@ -6385,15 +6419,27 @@ module.exports =
|
|
|
6385
6419
|
float: 'right'
|
|
6386
6420
|
};
|
|
6387
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
|
+
|
|
6388
6431
|
return _react2.default.createElement(
|
|
6389
6432
|
'div',
|
|
6390
6433
|
{ style: { position: 'relative' } },
|
|
6391
6434
|
isBundleStep ? _react2.default.createElement(
|
|
6392
6435
|
'div',
|
|
6393
6436
|
{ style: { zIndex: 99 } },
|
|
6394
|
-
_react2.default.createElement(_selectWrapper2.default, { label:
|
|
6437
|
+
_react2.default.createElement(_selectWrapper2.default, { label: "Add Data Target", type: 'brand',
|
|
6395
6438
|
style: { height: 40, width: 160 }, minWidth: 260, fieldPropLabel: 'name',
|
|
6396
|
-
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]
|
|
6397
6443
|
})
|
|
6398
6444
|
) : null,
|
|
6399
6445
|
_react2.default.createElement('br', null),
|
|
@@ -6432,9 +6478,7 @@ module.exports =
|
|
|
6432
6478
|
_react2.default.createElement(
|
|
6433
6479
|
'span',
|
|
6434
6480
|
null,
|
|
6435
|
-
'Target
|
|
6436
|
-
step.destinationProvider,
|
|
6437
|
-
' Object'
|
|
6481
|
+
'Target Object'
|
|
6438
6482
|
),
|
|
6439
6483
|
_react2.default.createElement(
|
|
6440
6484
|
Tooltip,
|
|
@@ -6443,7 +6487,7 @@ module.exports =
|
|
|
6443
6487
|
'p',
|
|
6444
6488
|
null,
|
|
6445
6489
|
'The ',
|
|
6446
|
-
step.destinationProvider,
|
|
6490
|
+
!isReverse ? step.destinationProvider : step.sourceProvider,
|
|
6447
6491
|
' Object to map data into'
|
|
6448
6492
|
)
|
|
6449
6493
|
)
|
|
@@ -6468,21 +6512,25 @@ module.exports =
|
|
|
6468
6512
|
return _react2.default.createElement(
|
|
6469
6513
|
'div',
|
|
6470
6514
|
{ className: 'schema-group-name', key: i },
|
|
6471
|
-
g.name
|
|
6515
|
+
g.provider === step.sourceProvider ? g.name + ' (' + step.sourceProvider + ')' : g.name
|
|
6472
6516
|
);
|
|
6473
6517
|
})
|
|
6474
6518
|
)
|
|
6475
6519
|
),
|
|
6476
6520
|
_react2.default.createElement(
|
|
6477
6521
|
'svg',
|
|
6478
|
-
{ 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' } : {} },
|
|
6479
6524
|
_react2.default.createElement('path', { d: 'M8 5v14l11-7z' })
|
|
6480
6525
|
),
|
|
6481
6526
|
_react2.default.createElement(
|
|
6482
6527
|
'div',
|
|
6483
6528
|
{ className: 'schema-group-dots' },
|
|
6484
6529
|
resourceGroups.map(function (g, i) {
|
|
6485
|
-
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() {
|
|
6486
6534
|
return _this4.clickDot(i);
|
|
6487
6535
|
} });
|
|
6488
6536
|
})
|
|
@@ -19216,9 +19264,11 @@ module.exports =
|
|
|
19216
19264
|
value: true
|
|
19217
19265
|
});
|
|
19218
19266
|
exports.callCheckConnection = callCheckConnection;
|
|
19267
|
+
exports.getOauthUrl = getOauthUrl;
|
|
19219
19268
|
exports.createLingkExternalIds = createLingkExternalIds;
|
|
19220
19269
|
exports.callTest = callTest;
|
|
19221
19270
|
exports.callAddCustomField = callAddCustomField;
|
|
19271
|
+
exports.gotEmptyScenario = gotEmptyScenario;
|
|
19222
19272
|
exports.callGetScenario = callGetScenario;
|
|
19223
19273
|
exports.callPreviewIntegration = callPreviewIntegration;
|
|
19224
19274
|
exports.callPostBundles = callPostBundles;
|
|
@@ -19232,9 +19282,9 @@ module.exports =
|
|
|
19232
19282
|
exports.callDeployTrigger = callDeployTrigger;
|
|
19233
19283
|
exports.callInit = callInit;
|
|
19234
19284
|
exports.callGetPiConfig = callGetPiConfig;
|
|
19285
|
+
exports.tryGetMetadata = tryGetMetadata;
|
|
19235
19286
|
exports.callGetBundles = callGetBundles;
|
|
19236
19287
|
exports.callGetMapping = callGetMapping;
|
|
19237
|
-
exports.tryGetMetadata = tryGetMetadata;
|
|
19238
19288
|
exports.postCredentials = postCredentials;
|
|
19239
19289
|
exports.callGetProviderMetadata = callGetProviderMetadata;
|
|
19240
19290
|
exports.callGetTrigger = callGetTrigger;
|
|
@@ -19259,7 +19309,8 @@ module.exports =
|
|
|
19259
19309
|
function callCheckConnection(tenantId, appId, url, mode, providerType) {
|
|
19260
19310
|
return function (dispatch, getState, api) {
|
|
19261
19311
|
dispatch({
|
|
19262
|
-
type: types.START_ENV_CHECK
|
|
19312
|
+
type: types.START_ENV_CHECK,
|
|
19313
|
+
mode: mode
|
|
19263
19314
|
});
|
|
19264
19315
|
|
|
19265
19316
|
var _getState = getState(),
|
|
@@ -19274,10 +19325,6 @@ module.exports =
|
|
|
19274
19325
|
type: types.FINISH_ENV_CHECK,
|
|
19275
19326
|
data: { res: res, mode: mode, code: '200 OK', providerType: providerType }
|
|
19276
19327
|
});
|
|
19277
|
-
dispatch({
|
|
19278
|
-
type: types.SET_WIZARD_METADATA,
|
|
19279
|
-
data: { res: res, mode: mode, providerType: providerType }
|
|
19280
|
-
});
|
|
19281
19328
|
}).catch(function (err) {
|
|
19282
19329
|
dispatch({
|
|
19283
19330
|
type: types.FINISH_ENV_CHECK,
|
|
@@ -19287,13 +19334,39 @@ module.exports =
|
|
|
19287
19334
|
};
|
|
19288
19335
|
}
|
|
19289
19336
|
|
|
19290
|
-
function
|
|
19337
|
+
function getOauthUrl(tenantId, appId, typeGuid, orgType, mode) {
|
|
19291
19338
|
return function (dispatch, getState, api) {
|
|
19339
|
+
dispatch({
|
|
19340
|
+
type: types.GETTING_OAUTH_URL,
|
|
19341
|
+
bool: true,
|
|
19342
|
+
mode: mode
|
|
19343
|
+
});
|
|
19344
|
+
|
|
19292
19345
|
var _getState2 = getState(),
|
|
19293
19346
|
config = _getState2.config;
|
|
19294
19347
|
|
|
19295
19348
|
var AGENT_API_URL = config.AGENT_API_URL;
|
|
19296
19349
|
|
|
19350
|
+
return api.get(tenantId + '/' + appId + '/oauthurl/' + typeGuid + '/' + orgType, {
|
|
19351
|
+
endpoint: AGENT_API_URL
|
|
19352
|
+
}).then(function (data) {
|
|
19353
|
+
dispatch({
|
|
19354
|
+
type: types.SET_OAUTH_URL,
|
|
19355
|
+
data: data.url
|
|
19356
|
+
});
|
|
19357
|
+
}).catch(function (err) {
|
|
19358
|
+
console.log(err);
|
|
19359
|
+
});
|
|
19360
|
+
};
|
|
19361
|
+
}
|
|
19362
|
+
|
|
19363
|
+
function createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata) {
|
|
19364
|
+
return function (dispatch, getState, api) {
|
|
19365
|
+
var _getState3 = getState(),
|
|
19366
|
+
config = _getState3.config;
|
|
19367
|
+
|
|
19368
|
+
var AGENT_API_URL = config.AGENT_API_URL;
|
|
19369
|
+
|
|
19297
19370
|
|
|
19298
19371
|
var externalIdlessObjects = [];
|
|
19299
19372
|
bundles.forEach(function (b) {
|
|
@@ -19351,8 +19424,8 @@ module.exports =
|
|
|
19351
19424
|
|
|
19352
19425
|
function callAddCustomField(tenantId, appId, objectType, fieldName, completedCallback) {
|
|
19353
19426
|
return function (dispatch, getState, api) {
|
|
19354
|
-
var
|
|
19355
|
-
config =
|
|
19427
|
+
var _getState4 = getState(),
|
|
19428
|
+
config = _getState4.config;
|
|
19356
19429
|
|
|
19357
19430
|
var AGENT_API_URL = config.AGENT_API_URL;
|
|
19358
19431
|
|
|
@@ -19369,6 +19442,22 @@ module.exports =
|
|
|
19369
19442
|
};
|
|
19370
19443
|
}
|
|
19371
19444
|
|
|
19445
|
+
function gotEmptyScenario() {
|
|
19446
|
+
return function (dispatch) {
|
|
19447
|
+
dispatch({
|
|
19448
|
+
type: types.FINISH_GET_SCENARIO
|
|
19449
|
+
});
|
|
19450
|
+
dispatch({
|
|
19451
|
+
type: types.SET_WIZARD_SAVED_BUNDLES,
|
|
19452
|
+
data: { bundles: [] }
|
|
19453
|
+
});
|
|
19454
|
+
dispatch({
|
|
19455
|
+
type: types.SET_WIZARD_SAVED_MAPPING,
|
|
19456
|
+
data: { mappings: [] }
|
|
19457
|
+
});
|
|
19458
|
+
};
|
|
19459
|
+
}
|
|
19460
|
+
|
|
19372
19461
|
function callGetScenario(magicNumber, bundleGuid, mappingGuid, completedCallback) {
|
|
19373
19462
|
return function (dispatch, getState, api) {
|
|
19374
19463
|
dispatch({
|
|
@@ -19394,8 +19483,8 @@ module.exports =
|
|
|
19394
19483
|
type: types.START_PREVIEW
|
|
19395
19484
|
});
|
|
19396
19485
|
|
|
19397
|
-
var
|
|
19398
|
-
config =
|
|
19486
|
+
var _getState5 = getState(),
|
|
19487
|
+
config = _getState5.config;
|
|
19399
19488
|
|
|
19400
19489
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19401
19490
|
|
|
@@ -19414,8 +19503,8 @@ module.exports =
|
|
|
19414
19503
|
|
|
19415
19504
|
function callPostBundles(tenantId, appId, bundles) {
|
|
19416
19505
|
return function (dispatch, getState, api) {
|
|
19417
|
-
var
|
|
19418
|
-
config =
|
|
19506
|
+
var _getState6 = getState(),
|
|
19507
|
+
config = _getState6.config;
|
|
19419
19508
|
|
|
19420
19509
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19421
19510
|
|
|
@@ -19431,8 +19520,8 @@ module.exports =
|
|
|
19431
19520
|
|
|
19432
19521
|
function callPostMapping(tenantId, appId, mappings) {
|
|
19433
19522
|
return function (dispatch, getState, api) {
|
|
19434
|
-
var
|
|
19435
|
-
config =
|
|
19523
|
+
var _getState7 = getState(),
|
|
19524
|
+
config = _getState7.config;
|
|
19436
19525
|
|
|
19437
19526
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19438
19527
|
|
|
@@ -19448,8 +19537,8 @@ module.exports =
|
|
|
19448
19537
|
|
|
19449
19538
|
function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, bundlePackGuid, configuration, title, typeGuid) {
|
|
19450
19539
|
return function (dispatch, getState, api) {
|
|
19451
|
-
var
|
|
19452
|
-
config =
|
|
19540
|
+
var _getState8 = getState(),
|
|
19541
|
+
config = _getState8.config;
|
|
19453
19542
|
|
|
19454
19543
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19455
19544
|
|
|
@@ -19471,8 +19560,8 @@ module.exports =
|
|
|
19471
19560
|
|
|
19472
19561
|
function callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, piGuid, mappingGuid, destinationMetadata) {
|
|
19473
19562
|
return function (dispatch, getState, api) {
|
|
19474
|
-
var
|
|
19475
|
-
config =
|
|
19563
|
+
var _getState9 = getState(),
|
|
19564
|
+
config = _getState9.config;
|
|
19476
19565
|
|
|
19477
19566
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19478
19567
|
|
|
@@ -19519,8 +19608,8 @@ module.exports =
|
|
|
19519
19608
|
|
|
19520
19609
|
function callExecuteTransformer(transId) {
|
|
19521
19610
|
return function (dispatch, getState, api) {
|
|
19522
|
-
var
|
|
19523
|
-
config =
|
|
19611
|
+
var _getState10 = getState(),
|
|
19612
|
+
config = _getState10.config;
|
|
19524
19613
|
|
|
19525
19614
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19526
19615
|
|
|
@@ -19547,8 +19636,8 @@ module.exports =
|
|
|
19547
19636
|
|
|
19548
19637
|
function callLookupLogData(externalExecutionId, index, onFinish, generatedRecipe, piGuid, mapGuid) {
|
|
19549
19638
|
return function (dispatch, getState, api) {
|
|
19550
|
-
var
|
|
19551
|
-
config =
|
|
19639
|
+
var _getState11 = getState(),
|
|
19640
|
+
config = _getState11.config;
|
|
19552
19641
|
|
|
19553
19642
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19554
19643
|
|
|
@@ -19593,8 +19682,8 @@ module.exports =
|
|
|
19593
19682
|
};
|
|
19594
19683
|
}
|
|
19595
19684
|
return function (dispatch, getState, api) {
|
|
19596
|
-
var
|
|
19597
|
-
config =
|
|
19685
|
+
var _getState12 = getState(),
|
|
19686
|
+
config = _getState12.config;
|
|
19598
19687
|
|
|
19599
19688
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19600
19689
|
|
|
@@ -19609,8 +19698,8 @@ module.exports =
|
|
|
19609
19698
|
|
|
19610
19699
|
function callDeployTrigger(generatedRecipe, piGuid, mapGuid, onFinish) {
|
|
19611
19700
|
return function (dispatch, getState, api) {
|
|
19612
|
-
var
|
|
19613
|
-
config =
|
|
19701
|
+
var _getState13 = getState(),
|
|
19702
|
+
config = _getState13.config;
|
|
19614
19703
|
|
|
19615
19704
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19616
19705
|
|
|
@@ -19653,8 +19742,8 @@ module.exports =
|
|
|
19653
19742
|
|
|
19654
19743
|
if (piGuid) {
|
|
19655
19744
|
return function (dispatch, getState, api) {
|
|
19656
|
-
var
|
|
19657
|
-
config =
|
|
19745
|
+
var _getState14 = getState(),
|
|
19746
|
+
config = _getState14.config;
|
|
19658
19747
|
|
|
19659
19748
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19660
19749
|
|
|
@@ -19689,11 +19778,28 @@ module.exports =
|
|
|
19689
19778
|
};
|
|
19690
19779
|
}
|
|
19691
19780
|
|
|
19781
|
+
function tryGetMetadata(tenantId, appId, mode, providerType, urlSuffix, apiUrl, savedEndpoint, isEnvStep) {
|
|
19782
|
+
if (isEnvStep && !savedEndpoint) return function () {
|
|
19783
|
+
return Promise.resolve(null);
|
|
19784
|
+
};
|
|
19785
|
+
if (urlSuffix) {
|
|
19786
|
+
return function (dispatch) {
|
|
19787
|
+
return dispatch(callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType));
|
|
19788
|
+
};
|
|
19789
|
+
} else if (savedEndpoint) {
|
|
19790
|
+
return function (dispatch) {
|
|
19791
|
+
return dispatch(callCheckConnection(tenantId, appId, savedEndpoint, mode, providerType));
|
|
19792
|
+
};
|
|
19793
|
+
} else return function () {
|
|
19794
|
+
return Promise.resolve(null);
|
|
19795
|
+
};
|
|
19796
|
+
}
|
|
19797
|
+
|
|
19692
19798
|
function callGetBundles(tenantId, accountId, bundlePackGuid) {
|
|
19693
19799
|
if (bundlePackGuid) {
|
|
19694
19800
|
return function (dispatch, getState, api) {
|
|
19695
|
-
var
|
|
19696
|
-
config =
|
|
19801
|
+
var _getState15 = getState(),
|
|
19802
|
+
config = _getState15.config;
|
|
19697
19803
|
|
|
19698
19804
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19699
19805
|
|
|
@@ -19714,8 +19820,8 @@ module.exports =
|
|
|
19714
19820
|
function callGetMapping(tenantId, accountId, mappingGuid) {
|
|
19715
19821
|
if (mappingGuid) {
|
|
19716
19822
|
return function (dispatch, getState, api) {
|
|
19717
|
-
var
|
|
19718
|
-
config =
|
|
19823
|
+
var _getState16 = getState(),
|
|
19824
|
+
config = _getState16.config;
|
|
19719
19825
|
|
|
19720
19826
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19721
19827
|
|
|
@@ -19733,27 +19839,10 @@ module.exports =
|
|
|
19733
19839
|
};
|
|
19734
19840
|
}
|
|
19735
19841
|
|
|
19736
|
-
function tryGetMetadata(tenantId, appId, mode, providerType, urlSuffix, apiUrl, savedEndpoint, isEnvStep) {
|
|
19737
|
-
if (isEnvStep && !savedEndpoint) return function () {
|
|
19738
|
-
return Promise.resolve(null);
|
|
19739
|
-
};
|
|
19740
|
-
if (urlSuffix) {
|
|
19741
|
-
return function (dispatch) {
|
|
19742
|
-
return dispatch(callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType));
|
|
19743
|
-
};
|
|
19744
|
-
} else if (savedEndpoint) {
|
|
19745
|
-
return function (dispatch) {
|
|
19746
|
-
return dispatch(callCheckConnection(tenantId, appId, savedEndpoint, mode, providerType));
|
|
19747
|
-
};
|
|
19748
|
-
} else return function () {
|
|
19749
|
-
return Promise.resolve(null);
|
|
19750
|
-
};
|
|
19751
|
-
}
|
|
19752
|
-
|
|
19753
19842
|
function postCredentials(tenantId, appId, providerType, url, credentials) {
|
|
19754
19843
|
return function (dispatch, getState, api) {
|
|
19755
|
-
var
|
|
19756
|
-
config =
|
|
19844
|
+
var _getState17 = getState(),
|
|
19845
|
+
config = _getState17.config;
|
|
19757
19846
|
|
|
19758
19847
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19759
19848
|
|
|
@@ -19773,15 +19862,20 @@ module.exports =
|
|
|
19773
19862
|
|
|
19774
19863
|
function callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType) {
|
|
19775
19864
|
return function (dispatch, getState, api) {
|
|
19776
|
-
|
|
19777
|
-
|
|
19865
|
+
dispatch({
|
|
19866
|
+
type: types.START_ENV_CHECK,
|
|
19867
|
+
mode: mode
|
|
19868
|
+
});
|
|
19869
|
+
|
|
19870
|
+
var _getState18 = getState(),
|
|
19871
|
+
config = _getState18.config;
|
|
19778
19872
|
|
|
19779
19873
|
return api.get(tenantId + '/' + appId + '/' + urlSuffix, {
|
|
19780
19874
|
endpoint: config[apiUrl]
|
|
19781
19875
|
}).then(function (res) {
|
|
19782
19876
|
dispatch({
|
|
19783
|
-
type: types.
|
|
19784
|
-
data: { res: res, mode: mode, providerType: providerType }
|
|
19877
|
+
type: types.FINISH_ENV_CHECK,
|
|
19878
|
+
data: { res: res, mode: mode, code: '200 OK', providerType: providerType }
|
|
19785
19879
|
});
|
|
19786
19880
|
return true;
|
|
19787
19881
|
}).catch(function (err) {
|
|
@@ -19796,8 +19890,8 @@ module.exports =
|
|
|
19796
19890
|
|
|
19797
19891
|
function callGetTrigger(transBaseId) {
|
|
19798
19892
|
return function (dispatch, getState, api) {
|
|
19799
|
-
var
|
|
19800
|
-
config =
|
|
19893
|
+
var _getState19 = getState(),
|
|
19894
|
+
config = _getState19.config;
|
|
19801
19895
|
|
|
19802
19896
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19803
19897
|
|
|
@@ -20137,74 +20231,37 @@ module.exports =
|
|
|
20137
20231
|
removeResourceGroup = _props.removeResourceGroup,
|
|
20138
20232
|
openConnectionModal = _props.openConnectionModal,
|
|
20139
20233
|
clickTableRow = _props.clickTableRow,
|
|
20140
|
-
step = _props.step
|
|
20234
|
+
step = _props.step,
|
|
20235
|
+
mode = _props.mode;
|
|
20236
|
+
|
|
20141
20237
|
|
|
20142
20238
|
if (!(resourceGroups && resourceGroups.length > 0)) return _react2.default.createElement('div', null);
|
|
20143
|
-
|
|
20144
|
-
|
|
20145
|
-
|
|
20146
|
-
|
|
20147
|
-
return
|
|
20148
|
-
}
|
|
20149
|
-
|
|
20150
|
-
|
|
20151
|
-
|
|
20152
|
-
|
|
20153
|
-
|
|
20154
|
-
|
|
20155
|
-
|
|
20156
|
-
|
|
20157
|
-
|
|
20158
|
-
|
|
20159
|
-
<TableHeaderColumn>Target Object</TableHeaderColumn>
|
|
20160
|
-
<TableHeaderColumn></TableHeaderColumn>
|
|
20161
|
-
</TableRow>
|
|
20162
|
-
</TableHeader>
|
|
20163
|
-
<TableBody>
|
|
20164
|
-
{resourceGroups && resourceGroups.map((group, i)=>
|
|
20165
|
-
<TableRow key={i} onClick={()=>clickTableRow(i)}
|
|
20166
|
-
style={{background: i===resourceGroupIndex ? '#f4f6f9' : 'white', cursor:'pointer'}}>
|
|
20167
|
-
<TableRowColumn>
|
|
20168
|
-
{React.Children.count(children) > 0 ?
|
|
20169
|
-
React.cloneElement(
|
|
20170
|
-
childs[0], { group }
|
|
20171
|
-
)
|
|
20172
|
-
: null}
|
|
20173
|
-
</TableRowColumn>
|
|
20174
|
-
<TableRowColumn>
|
|
20175
|
-
{React.Children.count(children) > 1 ?
|
|
20176
|
-
React.cloneElement(
|
|
20177
|
-
childs[1], { group, i, showConnectionModal }
|
|
20178
|
-
)
|
|
20179
|
-
: null}
|
|
20180
|
-
</TableRowColumn>
|
|
20181
|
-
<TableRowColumn truncate={false}>
|
|
20182
|
-
{React.Children.count(children) > 2 ?
|
|
20183
|
-
React.cloneElement(
|
|
20184
|
-
childs[2], { group, i }
|
|
20185
|
-
)
|
|
20186
|
-
: null}
|
|
20187
|
-
</TableRowColumn>
|
|
20188
|
-
<TableRowColumn>
|
|
20189
|
-
{React.Children.count(children) > 3 ?
|
|
20190
|
-
React.cloneElement(
|
|
20191
|
-
childs[3], { group, i, removeResourceGroup, resourceGroups }
|
|
20192
|
-
)
|
|
20193
|
-
: null}
|
|
20194
|
-
</TableRowColumn>
|
|
20195
|
-
</TableRow>
|
|
20196
|
-
)}
|
|
20197
|
-
</TableBody>
|
|
20198
|
-
</Table>
|
|
20199
|
-
<div>
|
|
20200
|
-
</div>
|
|
20201
|
-
</div>
|
|
20202
|
-
)*/
|
|
20239
|
+
|
|
20240
|
+
var isReverse = mode === 'reverse';
|
|
20241
|
+
|
|
20242
|
+
var normalGroup = resourceGroups.filter(function (g) {
|
|
20243
|
+
return step.destinationProvider === g.provider;
|
|
20244
|
+
});
|
|
20245
|
+
var reverseGroup = resourceGroups.filter(function (g) {
|
|
20246
|
+
return step.sourceProvider === g.provider;
|
|
20247
|
+
});
|
|
20248
|
+
|
|
20249
|
+
var groups = isReverse ? reverseGroup : normalGroup;
|
|
20250
|
+
var extraIndex = isReverse ? normalGroup.length : 0;
|
|
20251
|
+
|
|
20252
|
+
if (!(groups && groups.length > 0)) return _react2.default.createElement('div', null);
|
|
20253
|
+
|
|
20254
|
+
var title = mode === 'reverse' ? step.destinationProvider + ' to ' + step.sourceProvider + ' Object Mappings' : step.sourceProvider + ' to ' + step.destinationProvider + ' Object Mappings';
|
|
20203
20255
|
|
|
20204
20256
|
return _react2.default.createElement(
|
|
20205
20257
|
'div',
|
|
20206
20258
|
null,
|
|
20207
20259
|
_react2.default.createElement('br', null),
|
|
20260
|
+
_react2.default.createElement(
|
|
20261
|
+
'div',
|
|
20262
|
+
{ style: { fontSize: '16px' } },
|
|
20263
|
+
title
|
|
20264
|
+
),
|
|
20208
20265
|
_react2.default.createElement(
|
|
20209
20266
|
'div',
|
|
20210
20267
|
{ className: 'bundle-table-header' },
|
|
@@ -20227,7 +20284,7 @@ module.exports =
|
|
|
20227
20284
|
_react2.default.createElement(
|
|
20228
20285
|
'div',
|
|
20229
20286
|
{ className: 'bundle-table-body' },
|
|
20230
|
-
|
|
20287
|
+
groups && groups.map(function (group, i) {
|
|
20231
20288
|
|
|
20232
20289
|
var linked = false;
|
|
20233
20290
|
if (group.customExternalKeys) {
|
|
@@ -20240,7 +20297,7 @@ module.exports =
|
|
|
20240
20297
|
}
|
|
20241
20298
|
}
|
|
20242
20299
|
|
|
20243
|
-
var groupsBeforeThis =
|
|
20300
|
+
var groupsBeforeThis = groups.slice(0, i);
|
|
20244
20301
|
var groupBeforeThisIndex = 0;
|
|
20245
20302
|
groupsBeforeThis.forEach(function (g, idx) {
|
|
20246
20303
|
if (group.resources && group.resources.find(function (r) {
|
|
@@ -20250,7 +20307,7 @@ module.exports =
|
|
|
20250
20307
|
}
|
|
20251
20308
|
});
|
|
20252
20309
|
|
|
20253
|
-
var groupsAfterThis =
|
|
20310
|
+
var groupsAfterThis = groups.slice(i + 1);
|
|
20254
20311
|
var groupsAfterThisContainThisResource = groupsAfterThis && groupsAfterThis.find(function (g) {
|
|
20255
20312
|
return g.resources && g.resources.find(function (r) {
|
|
20256
20313
|
return r.name === group.name;
|
|
@@ -20277,8 +20334,10 @@ module.exports =
|
|
|
20277
20334
|
}, onDrag: _this3.handleDrag, onStop: _this3.handleDragEnd },
|
|
20278
20335
|
_react2.default.createElement(
|
|
20279
20336
|
'div',
|
|
20280
|
-
{ className: 'bundle-table-row', key: i,
|
|
20281
|
-
|
|
20337
|
+
{ className: 'bundle-table-row', key: i,
|
|
20338
|
+
style: { background: i + extraIndex === resourceGroupIndex ? '#f4f6f9' : 'white' },
|
|
20339
|
+
onClick: function onClick() {
|
|
20340
|
+
return clickTableRow(i + extraIndex);
|
|
20282
20341
|
} },
|
|
20283
20342
|
_react2.default.createElement(
|
|
20284
20343
|
'div',
|
|
@@ -20326,7 +20385,7 @@ module.exports =
|
|
|
20326
20385
|
'div',
|
|
20327
20386
|
{ className: 'connect-resource-group', onClick: function onClick(e) {
|
|
20328
20387
|
e.stopPropagation();
|
|
20329
|
-
openConnectionModal(group, i);
|
|
20388
|
+
openConnectionModal(group, i + extraIndex);
|
|
20330
20389
|
}, style: { paddingTop: linked ? 5 : 6 } },
|
|
20331
20390
|
linked ? _react2.default.createElement(
|
|
20332
20391
|
'svg',
|
|
@@ -20346,7 +20405,7 @@ module.exports =
|
|
|
20346
20405
|
'div',
|
|
20347
20406
|
{ className: 'remove-resource-group' + (groupsAfterThisContainThisResource ? '-disabled' : ''),
|
|
20348
20407
|
onClick: function onClick(e) {
|
|
20349
|
-
if (!groupsAfterThisContainThisResource) removeResourceGroup(e, i);
|
|
20408
|
+
if (!groupsAfterThisContainThisResource) removeResourceGroup(e, i + extraIndex);
|
|
20350
20409
|
} },
|
|
20351
20410
|
_react2.default.createElement(
|
|
20352
20411
|
'svg',
|
|
@@ -20357,7 +20416,7 @@ module.exports =
|
|
|
20357
20416
|
_react2.default.createElement(
|
|
20358
20417
|
'strong',
|
|
20359
20418
|
{ style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'block', paddingTop: 8 } },
|
|
20360
|
-
group.name
|
|
20419
|
+
group.provider === step.sourceProvider ? group.name + ' (' + step.sourceProvider + ')' : group.name
|
|
20361
20420
|
)
|
|
20362
20421
|
)
|
|
20363
20422
|
)
|
|
@@ -20610,9 +20669,11 @@ module.exports =
|
|
|
20610
20669
|
),
|
|
20611
20670
|
sourceKeys.map(function (sk, i) {
|
|
20612
20671
|
|
|
20613
|
-
var
|
|
20672
|
+
var targetSchema = bundle.provider === step.sourceProvider ? sourceSchema : destinationSchema;
|
|
20673
|
+
|
|
20674
|
+
var destinationVals = [targetSchema && targetSchema.find(function (defaultRsc) {
|
|
20614
20675
|
return defaultRsc.name === bundle.name;
|
|
20615
|
-
}) &&
|
|
20676
|
+
}) && targetSchema.find(function (defaultRsc) {
|
|
20616
20677
|
return defaultRsc.name === bundle.name;
|
|
20617
20678
|
}).properties.filter(function (p) {
|
|
20618
20679
|
return !p.readOnly;
|
|
@@ -20812,6 +20873,8 @@ module.exports =
|
|
|
20812
20873
|
|
|
20813
20874
|
var _nestedField2 = _interopRequireDefault(_nestedField);
|
|
20814
20875
|
|
|
20876
|
+
var _reduxForm = __webpack_require__(3);
|
|
20877
|
+
|
|
20815
20878
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20816
20879
|
|
|
20817
20880
|
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); } }
|
|
@@ -20844,7 +20907,6 @@ module.exports =
|
|
|
20844
20907
|
_this.changeCustomFieldValue = _this.changeCustomFieldValue.bind(_this);
|
|
20845
20908
|
_this.completedCallback = _this.completedCallback.bind(_this);
|
|
20846
20909
|
_this.goLoading = _this.goLoading.bind(_this);
|
|
20847
|
-
_this.setUnique = _this.setUnique.bind(_this);
|
|
20848
20910
|
return _this;
|
|
20849
20911
|
}
|
|
20850
20912
|
|
|
@@ -20970,11 +21032,6 @@ module.exports =
|
|
|
20970
21032
|
this.props.disableMultiple();
|
|
20971
21033
|
}
|
|
20972
21034
|
}
|
|
20973
|
-
}, {
|
|
20974
|
-
key: 'setUnique',
|
|
20975
|
-
value: function setUnique(v) {
|
|
20976
|
-
console.log(v);
|
|
20977
|
-
}
|
|
20978
21035
|
}, {
|
|
20979
21036
|
key: 'render',
|
|
20980
21037
|
value: function render() {
|
|
@@ -20995,7 +21052,6 @@ module.exports =
|
|
|
20995
21052
|
|
|
20996
21053
|
var Button = inputs.Button;
|
|
20997
21054
|
var Input = inputs.Input;
|
|
20998
|
-
var Checkbox = inputs.Checkbox;
|
|
20999
21055
|
|
|
21000
21056
|
var group = resourceGroups[resourceGroupIndex];
|
|
21001
21057
|
var selectedEntity = selectedEntities[resourceGroupIndex] || { name: '' };
|
|
@@ -21004,8 +21060,12 @@ module.exports =
|
|
|
21004
21060
|
|
|
21005
21061
|
var mappings = {};
|
|
21006
21062
|
var filteredMappings = {};
|
|
21007
|
-
group.mappings && group.mappings.forEach(function (m) {
|
|
21008
|
-
mappings[m.propertyToName] =
|
|
21063
|
+
group.mappings && group.mappings.forEach(function (m, i) {
|
|
21064
|
+
mappings[m.propertyToName] = {
|
|
21065
|
+
propFrom: m.propertyFromName,
|
|
21066
|
+
unique: m.isUnique || false,
|
|
21067
|
+
index: i
|
|
21068
|
+
};
|
|
21009
21069
|
if (m.resourceFromName === selectedEntity.name) {
|
|
21010
21070
|
filteredMappings[m.propertyToName] = m.propertyFromName;
|
|
21011
21071
|
}
|
|
@@ -21144,6 +21204,7 @@ module.exports =
|
|
|
21144
21204
|
)
|
|
21145
21205
|
),
|
|
21146
21206
|
bit.map(function (x, i) {
|
|
21207
|
+
var targetSchema = group.provider === step.sourceProvider ? sourceSchema : destinationSchema;
|
|
21147
21208
|
return _react2.default.createElement(
|
|
21148
21209
|
_CSSTransitionGroup2.default,
|
|
21149
21210
|
{ transitionName: 'fade-' + direction,
|
|
@@ -21157,10 +21218,12 @@ module.exports =
|
|
|
21157
21218
|
customizingGroup === group.name && _react2.default.createElement(
|
|
21158
21219
|
'div',
|
|
21159
21220
|
{ style: { width: 264, marginBottom: 5 } },
|
|
21160
|
-
_react2.default.createElement(Input, { placeholder: 'Add Custom Field',
|
|
21221
|
+
_react2.default.createElement(Input, { placeholder: 'Add Custom Field',
|
|
21222
|
+
inputRef: function inputRef(ref) {
|
|
21161
21223
|
return _this4.customFieldInput = ref;
|
|
21162
21224
|
},
|
|
21163
|
-
onChange: _this4.changeCustomFieldValue,
|
|
21225
|
+
onChange: _this4.changeCustomFieldValue,
|
|
21226
|
+
value: _this4.state.customFieldValue,
|
|
21164
21227
|
symbolPattern: '[a-zA-Z ]', style: { width: 210 } }),
|
|
21165
21228
|
_react2.default.createElement(
|
|
21166
21229
|
Button,
|
|
@@ -21169,7 +21232,9 @@ module.exports =
|
|
|
21169
21232
|
'OK'
|
|
21170
21233
|
)
|
|
21171
21234
|
),
|
|
21172
|
-
!_this4.state.setDuplicateRules &&
|
|
21235
|
+
!_this4.state.setDuplicateRules && targetSchema && targetSchema.find(function (r) {
|
|
21236
|
+
return r.name === group.name;
|
|
21237
|
+
}) && targetSchema.find(function (r) {
|
|
21173
21238
|
return r.name === group.name;
|
|
21174
21239
|
}).properties.filter(function (p) {
|
|
21175
21240
|
return !p.readOnly;
|
|
@@ -21199,10 +21264,11 @@ module.exports =
|
|
|
21199
21264
|
_react2.default.createElement(
|
|
21200
21265
|
'div',
|
|
21201
21266
|
{ style: { paddingLeft: 12 } },
|
|
21202
|
-
_react2.default.createElement(
|
|
21203
|
-
|
|
21204
|
-
|
|
21205
|
-
|
|
21267
|
+
_react2.default.createElement(_reduxForm.Field, { style: { height: 19, margin: 0, color: 'grey' },
|
|
21268
|
+
label: 'Unique Field',
|
|
21269
|
+
component: inputs.rfCheckbox,
|
|
21270
|
+
checked: mappings[mk].unique,
|
|
21271
|
+
name: 'resourceGroups.' + resourceGroupIndex + '.mappings.' + mappings[mk].index + '.isUnique' })
|
|
21206
21272
|
)
|
|
21207
21273
|
);
|
|
21208
21274
|
})
|
|
@@ -21274,7 +21340,7 @@ module.exports =
|
|
|
21274
21340
|
var MapTableMappingRow = exports.MapTableMappingRow = function MapTableMappingRow(props) {
|
|
21275
21341
|
var group = props.group,
|
|
21276
21342
|
i = props.i,
|
|
21277
|
-
|
|
21343
|
+
clearMapping = props.clearMapping;
|
|
21278
21344
|
|
|
21279
21345
|
return _react2.default.createElement(
|
|
21280
21346
|
'div',
|
|
@@ -21307,7 +21373,7 @@ module.exports =
|
|
|
21307
21373
|
'div',
|
|
21308
21374
|
{ className: 'x-clear-mapping',
|
|
21309
21375
|
onClick: function onClick() {
|
|
21310
|
-
|
|
21376
|
+
clearMapping(i, m);
|
|
21311
21377
|
} },
|
|
21312
21378
|
'x'
|
|
21313
21379
|
) : _react2.default.createElement('div', { style: { width: 30, display: 'inline-block' } }),
|
|
@@ -21431,11 +21497,13 @@ module.exports =
|
|
|
21431
21497
|
);
|
|
21432
21498
|
};
|
|
21433
21499
|
|
|
21434
|
-
var MapTableDestinationRow = exports.MapTableDestinationRow = function MapTableDestinationRow(
|
|
21500
|
+
var MapTableDestinationRow = exports.MapTableDestinationRow = function MapTableDestinationRow(_ref) {
|
|
21501
|
+
var group = _ref.group,
|
|
21502
|
+
step = _ref.step;
|
|
21435
21503
|
return _react2.default.createElement(
|
|
21436
21504
|
'strong',
|
|
21437
21505
|
{ style: { fontSize: 16, whiteSpace: 'wrap' } },
|
|
21438
|
-
|
|
21506
|
+
group.provider === step.sourceProvider ? group.name + ' (' + step.sourceProvider + ')' : group.name
|
|
21439
21507
|
);
|
|
21440
21508
|
};
|
|
21441
21509
|
|
|
@@ -21619,9 +21687,11 @@ module.exports =
|
|
|
21619
21687
|
showOverflow = _props3.showOverflow,
|
|
21620
21688
|
step = _props3.step;
|
|
21621
21689
|
|
|
21690
|
+
|
|
21622
21691
|
var Tooltip = inputs.Tooltip;
|
|
21623
21692
|
var Button = inputs.Button;
|
|
21624
21693
|
var group = resourceGroups[resourceGroupIndex];
|
|
21694
|
+
var isReverse = group.provider === step.sourceProvider;
|
|
21625
21695
|
var bit = [true, false];
|
|
21626
21696
|
var direction = leftClicked ? 'right' : 'left';
|
|
21627
21697
|
var groupResourcesLength = group && group.resources ? group.resources.length : 0;
|
|
@@ -21634,6 +21704,12 @@ module.exports =
|
|
|
21634
21704
|
});
|
|
21635
21705
|
});
|
|
21636
21706
|
|
|
21707
|
+
var filteredSourceSchema = sourceSchema.filter(function (rsc) {
|
|
21708
|
+
return resourceGroups.find(function (g, i) {
|
|
21709
|
+
return i < resourceGroupIndex && g.name === rsc.name && group && group.name !== rsc.name ? true : false;
|
|
21710
|
+
});
|
|
21711
|
+
});
|
|
21712
|
+
|
|
21637
21713
|
return _react2.default.createElement(
|
|
21638
21714
|
'div',
|
|
21639
21715
|
{ style: { position: 'relative' } },
|
|
@@ -21644,15 +21720,7 @@ module.exports =
|
|
|
21644
21720
|
_react2.default.createElement(
|
|
21645
21721
|
'p',
|
|
21646
21722
|
null,
|
|
21647
|
-
'Choose one or more '
|
|
21648
|
-
step.sourceProvider,
|
|
21649
|
-
' Objects to map into the ',
|
|
21650
|
-
step.destinationProvider,
|
|
21651
|
-
' Object. If multiple ',
|
|
21652
|
-
step.sourceProvider,
|
|
21653
|
-
' Objects are added to a single ',
|
|
21654
|
-
step.destinationProvider,
|
|
21655
|
-
' Object, the Keys for joining these objects must be configured as well.'
|
|
21723
|
+
'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.'
|
|
21656
21724
|
)
|
|
21657
21725
|
),
|
|
21658
21726
|
_react2.default.createElement(
|
|
@@ -21897,10 +21965,11 @@ module.exports =
|
|
|
21897
21965
|
_react2.default.createElement(_selectWrapper2.default, { label: 'Add Data Source', style: { height: 40 }, onClick: showOverflow,
|
|
21898
21966
|
onSelect: function onSelect(v, i, rtid, section) {
|
|
21899
21967
|
return addDefaultEntity(resourceGroupIndex, v, i, section, rtid);
|
|
21900
|
-
}, type: 'neutral', inputs: inputs
|
|
21901
|
-
selectedValues
|
|
21902
|
-
|
|
21903
|
-
|
|
21968
|
+
}, type: 'neutral', inputs: inputs
|
|
21969
|
+
//selectedValues={resourceGroups && resourceGroups[resourceGroupIndex] &&
|
|
21970
|
+
//resourceGroups[resourceGroupIndex].resources}
|
|
21971
|
+
, values: !isReverse ? [sourceSchema, filteredDestinationSchema] : [destinationSchema, filteredSourceSchema],
|
|
21972
|
+
sectionLabels: !isReverse ? [step.sourceProvider, step.destinationProvider] : [step.destinationProvider, step.sourceProvider],
|
|
21904
21973
|
sectionLabelSuffix: 'Objects', fieldPropLabel: 'name'
|
|
21905
21974
|
})
|
|
21906
21975
|
) : null
|
|
@@ -22576,7 +22645,6 @@ module.exports =
|
|
|
22576
22645
|
formValues = _props3.formValues,
|
|
22577
22646
|
change = _props3.change;
|
|
22578
22647
|
|
|
22579
|
-
|
|
22580
22648
|
var disable = true;
|
|
22581
22649
|
if (step.options && formValues.deployment) {
|
|
22582
22650
|
if (formValues.deployment.type === 'daily') {
|
|
@@ -22754,7 +22822,11 @@ module.exports =
|
|
|
22754
22822
|
|
|
22755
22823
|
var _this = _possibleConstructorReturn(this, (EnvironmentStep.__proto__ || Object.getPrototypeOf(EnvironmentStep)).call(this));
|
|
22756
22824
|
|
|
22825
|
+
_this.state = {
|
|
22826
|
+
oauth: false
|
|
22827
|
+
};
|
|
22757
22828
|
_this.seeFields = _this.seeFields.bind(_this);
|
|
22829
|
+
_this.startOauth = _this.startOauth.bind(_this);
|
|
22758
22830
|
return _this;
|
|
22759
22831
|
}
|
|
22760
22832
|
|
|
@@ -22790,6 +22862,17 @@ module.exports =
|
|
|
22790
22862
|
(0, _loadData2.default)(step, wizard, change, formValues, actions);
|
|
22791
22863
|
}
|
|
22792
22864
|
}
|
|
22865
|
+
}, {
|
|
22866
|
+
key: 'componentWillReceiveProps',
|
|
22867
|
+
value: function componentWillReceiveProps(newProps) {
|
|
22868
|
+
var step = newProps.step;
|
|
22869
|
+
|
|
22870
|
+
if (step.credentials && step.credentials.length === 1 && step.credentials[0] === 'Oauth') {
|
|
22871
|
+
this.setState({ oauth: true });
|
|
22872
|
+
} else {
|
|
22873
|
+
this.setState({ oauth: false });
|
|
22874
|
+
}
|
|
22875
|
+
}
|
|
22793
22876
|
}, {
|
|
22794
22877
|
key: 'check',
|
|
22795
22878
|
value: function check() {
|
|
@@ -22804,17 +22887,26 @@ module.exports =
|
|
|
22804
22887
|
var endpoint = formValues[step.mode + 'Endpoint'];
|
|
22805
22888
|
var credentials = formValues[step.mode + 'Credentials'];
|
|
22806
22889
|
//remove trailing slash if exists
|
|
22807
|
-
if (endpoint[endpoint.length - 1] === '/' && endpoint.length > 8) {
|
|
22890
|
+
if (endpoint && endpoint[endpoint.length - 1] === '/' && endpoint.length > 8) {
|
|
22808
22891
|
endpoint = endpoint.slice(0, -1);
|
|
22809
22892
|
change(step.mode + 'Endpoint', endpoint);
|
|
22810
22893
|
}
|
|
22811
|
-
|
|
22894
|
+
//(tenantId, appId, mode, providerType, urlSuffix, apiUrl, savedEndpoint, isEnvStep)
|
|
22895
|
+
actions.tryGetMetadata(tenantId, accountId, step.mode, step.providerType, step.metadataEndpoint, step.metadataApi, endpoint || '_blank', true).then(function (j) {
|
|
22812
22896
|
if (j && credentials) {
|
|
22813
22897
|
actions.postCredentials(tenantId, accountId, step.providerType, endpoint, credentials);
|
|
22814
22898
|
}
|
|
22815
22899
|
});
|
|
22816
|
-
|
|
22817
|
-
|
|
22900
|
+
}
|
|
22901
|
+
}, {
|
|
22902
|
+
key: 'startOauth',
|
|
22903
|
+
value: function startOauth() {
|
|
22904
|
+
var width = 600;
|
|
22905
|
+
var height = 600;
|
|
22906
|
+
var left = window.screenX + (window.outerWidth - width) / 2;
|
|
22907
|
+
var top = window.screenY + (window.outerHeight - height) / 2.5;
|
|
22908
|
+
var popup = window.open(this.props.wizard.oauthUrl, 'Oauth', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left);
|
|
22909
|
+
popup.focus();
|
|
22818
22910
|
}
|
|
22819
22911
|
}, {
|
|
22820
22912
|
key: 'render',
|
|
@@ -22828,10 +22920,20 @@ module.exports =
|
|
|
22828
22920
|
nav = _props4.nav,
|
|
22829
22921
|
reset = _props4.reset,
|
|
22830
22922
|
wizard = _props4.wizard,
|
|
22831
|
-
formValues = _props4.formValues
|
|
22923
|
+
formValues = _props4.formValues,
|
|
22924
|
+
actions = _props4.actions,
|
|
22925
|
+
tenantId = _props4.tenantId,
|
|
22926
|
+
accountId = _props4.accountId;
|
|
22832
22927
|
|
|
22833
22928
|
var Button = inputs.Button;
|
|
22834
22929
|
var Spinner = inputs.Spinner;
|
|
22930
|
+
|
|
22931
|
+
var envCheckResult = wizard[step.mode + 'CheckResult'];
|
|
22932
|
+
|
|
22933
|
+
var POSTS = wizard[step.mode + 'Metadata'] && wizard[step.mode + 'Metadata'].filter(function (m) {
|
|
22934
|
+
return m.method === 'POST' || m.method === 'PUT';
|
|
22935
|
+
});
|
|
22936
|
+
|
|
22835
22937
|
return _react2.default.createElement(
|
|
22836
22938
|
'form',
|
|
22837
22939
|
{ onKeyPress: function onKeyPress(e) {
|
|
@@ -22853,91 +22955,169 @@ module.exports =
|
|
|
22853
22955
|
step.message
|
|
22854
22956
|
),
|
|
22855
22957
|
_react2.default.createElement('br', null),
|
|
22856
|
-
_react2.default.createElement(
|
|
22958
|
+
this.state.oauth ? _react2.default.createElement(
|
|
22857
22959
|
'div',
|
|
22858
|
-
|
|
22960
|
+
null,
|
|
22859
22961
|
_react2.default.createElement(
|
|
22860
22962
|
'div',
|
|
22861
22963
|
null,
|
|
22964
|
+
'Are you connecting to a Sandbox or Production Org?'
|
|
22965
|
+
),
|
|
22966
|
+
_react2.default.createElement(
|
|
22967
|
+
'div',
|
|
22968
|
+
{ style: { marginTop: 12 } },
|
|
22862
22969
|
_react2.default.createElement(
|
|
22863
|
-
'div',
|
|
22864
|
-
{ style: { display: 'inline-block', width: 300 } },
|
|
22865
|
-
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Endpoint', type: 'text', component: inputs.rfInput, label: 'Lingk Adapter Endpoint' })
|
|
22866
|
-
),
|
|
22867
|
-
!step.credentials ? _react2.default.createElement(
|
|
22868
22970
|
Button,
|
|
22869
|
-
{
|
|
22870
|
-
icon: 'sync',
|
|
22871
|
-
iconAlign: 'left',
|
|
22971
|
+
{ type: 'brand',
|
|
22872
22972
|
onClick: function onClick() {
|
|
22873
|
-
return
|
|
22874
|
-
},
|
|
22875
|
-
style: {
|
|
22876
|
-
marginLeft: 8,
|
|
22877
|
-
marginBottom: 2,
|
|
22878
|
-
height: 30,
|
|
22879
|
-
lineHeight: '10px'
|
|
22973
|
+
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'sandbox', step.mode);
|
|
22880
22974
|
} },
|
|
22881
|
-
'
|
|
22882
|
-
)
|
|
22975
|
+
'Sandbox'
|
|
22976
|
+
),
|
|
22883
22977
|
_react2.default.createElement(
|
|
22978
|
+
Button,
|
|
22979
|
+
{ type: 'brand', style: { margin: '0 12px' },
|
|
22980
|
+
onClick: function onClick() {
|
|
22981
|
+
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'production', step.mode);
|
|
22982
|
+
} },
|
|
22983
|
+
'Production'
|
|
22984
|
+
),
|
|
22985
|
+
wizard.gettingOauthUrl && _react2.default.createElement(Spinner, null),
|
|
22986
|
+
wizard.oauthUrl && _react2.default.createElement(
|
|
22884
22987
|
'div',
|
|
22885
|
-
|
|
22886
|
-
|
|
22887
|
-
|
|
22888
|
-
'
|
|
22988
|
+
null,
|
|
22989
|
+
_react2.default.createElement('br', null),
|
|
22990
|
+
_react2.default.createElement(
|
|
22991
|
+
'div',
|
|
22889
22992
|
null,
|
|
22890
|
-
|
|
22993
|
+
_react2.default.createElement(
|
|
22994
|
+
'strong',
|
|
22995
|
+
null,
|
|
22996
|
+
_react2.default.createElement(
|
|
22997
|
+
'a',
|
|
22998
|
+
{ onClick: this.startOauth },
|
|
22999
|
+
'Click Here'
|
|
23000
|
+
)
|
|
23001
|
+
),
|
|
23002
|
+
' to authorize your ',
|
|
23003
|
+
step[step.mode + 'Provider'],
|
|
23004
|
+
' Org.'
|
|
23005
|
+
),
|
|
23006
|
+
_react2.default.createElement('br', null),
|
|
23007
|
+
_react2.default.createElement('br', null),
|
|
23008
|
+
_react2.default.createElement(
|
|
23009
|
+
'div',
|
|
23010
|
+
null,
|
|
23011
|
+
_react2.default.createElement(
|
|
23012
|
+
'span',
|
|
23013
|
+
null,
|
|
23014
|
+
'After you have completed the ',
|
|
23015
|
+
step[step.mode + 'Provider'],
|
|
23016
|
+
' authorization process: '
|
|
23017
|
+
),
|
|
23018
|
+
_react2.default.createElement(
|
|
23019
|
+
Button,
|
|
23020
|
+
{
|
|
23021
|
+
icon: 'sync',
|
|
23022
|
+
iconAlign: 'left',
|
|
23023
|
+
onClick: function onClick() {
|
|
23024
|
+
return _this2.check();
|
|
23025
|
+
},
|
|
23026
|
+
style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' } },
|
|
23027
|
+
'Test Connection'
|
|
23028
|
+
),
|
|
23029
|
+
_react2.default.createElement(
|
|
23030
|
+
'div',
|
|
23031
|
+
{ style: { display: 'inline-block', marginLeft: 12 } },
|
|
23032
|
+
wizard.envChecking && _react2.default.createElement(Spinner, null),
|
|
23033
|
+
envCheckResult && _react2.default.createElement(
|
|
23034
|
+
'span',
|
|
23035
|
+
null,
|
|
23036
|
+
envCheckResult
|
|
23037
|
+
)
|
|
23038
|
+
)
|
|
22891
23039
|
)
|
|
22892
23040
|
)
|
|
22893
23041
|
)
|
|
22894
|
-
)
|
|
22895
|
-
step.credentials ? _react2.default.createElement(
|
|
23042
|
+
) : _react2.default.createElement(
|
|
22896
23043
|
'div',
|
|
22897
|
-
|
|
22898
|
-
_react2.default.createElement('br', null),
|
|
22899
|
-
_react2.default.createElement(
|
|
22900
|
-
'label',
|
|
22901
|
-
null,
|
|
22902
|
-
step[step.mode + 'Provider'],
|
|
22903
|
-
' Credentials'
|
|
22904
|
-
),
|
|
22905
|
-
_react2.default.createElement('br', null),
|
|
23044
|
+
null,
|
|
22906
23045
|
_react2.default.createElement(
|
|
22907
23046
|
'div',
|
|
22908
|
-
{ style: {
|
|
22909
|
-
|
|
22910
|
-
|
|
23047
|
+
{ style: { marginLeft: 16 } },
|
|
23048
|
+
_react2.default.createElement(
|
|
23049
|
+
'div',
|
|
23050
|
+
null,
|
|
23051
|
+
_react2.default.createElement(
|
|
22911
23052
|
'div',
|
|
22912
|
-
{
|
|
22913
|
-
_react2.default.createElement(_reduxForm.Field, { name: step.mode + '
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
23053
|
+
{ style: { display: 'inline-block', width: 300 } },
|
|
23054
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Endpoint', type: 'text', component: inputs.rfInput, label: 'Lingk Adapter Endpoint' })
|
|
23055
|
+
),
|
|
23056
|
+
!step.credentials ? _react2.default.createElement(
|
|
23057
|
+
Button,
|
|
23058
|
+
{
|
|
23059
|
+
icon: 'sync',
|
|
23060
|
+
iconAlign: 'left',
|
|
23061
|
+
onClick: function onClick() {
|
|
23062
|
+
return _this2.check();
|
|
23063
|
+
},
|
|
23064
|
+
style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' } },
|
|
23065
|
+
'Test Connection'
|
|
23066
|
+
) : null,
|
|
23067
|
+
_react2.default.createElement(
|
|
23068
|
+
'div',
|
|
23069
|
+
{ style: { display: 'inline-block', marginLeft: 12 } },
|
|
23070
|
+
wizard.envChecking && _react2.default.createElement(Spinner, null),
|
|
23071
|
+
envCheckResult && _react2.default.createElement(
|
|
23072
|
+
'span',
|
|
23073
|
+
null,
|
|
23074
|
+
envCheckResult
|
|
23075
|
+
)
|
|
23076
|
+
)
|
|
23077
|
+
)
|
|
22918
23078
|
),
|
|
22919
|
-
_react2.default.createElement(
|
|
22920
|
-
|
|
22921
|
-
{
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
|
|
22926
|
-
|
|
22927
|
-
|
|
22928
|
-
|
|
22929
|
-
|
|
22930
|
-
|
|
22931
|
-
|
|
22932
|
-
style: {
|
|
22933
|
-
|
|
22934
|
-
|
|
22935
|
-
|
|
22936
|
-
|
|
22937
|
-
|
|
22938
|
-
|
|
23079
|
+
step.credentials && _react2.default.createElement(
|
|
23080
|
+
'div',
|
|
23081
|
+
{ style: { marginLeft: 16 } },
|
|
23082
|
+
_react2.default.createElement('br', null),
|
|
23083
|
+
_react2.default.createElement(
|
|
23084
|
+
'label',
|
|
23085
|
+
null,
|
|
23086
|
+
step[step.mode + 'Provider'],
|
|
23087
|
+
' Credentials'
|
|
23088
|
+
),
|
|
23089
|
+
_react2.default.createElement('br', null),
|
|
23090
|
+
_react2.default.createElement(
|
|
23091
|
+
'div',
|
|
23092
|
+
{ style: { display: 'inline-block', marginLeft: 16 } },
|
|
23093
|
+
step.credentials.map(function (cred, index) {
|
|
23094
|
+
return _react2.default.createElement(
|
|
23095
|
+
'div',
|
|
23096
|
+
{ key: index, style: { marginTop: 8 } },
|
|
23097
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Credentials.' + cred.split(' ').join(''),
|
|
23098
|
+
label: step[step.mode + 'Provider'] + ' ' + cred, type: 'text',
|
|
23099
|
+
component: inputs.rfInput })
|
|
23100
|
+
);
|
|
23101
|
+
})
|
|
23102
|
+
),
|
|
23103
|
+
_react2.default.createElement(
|
|
23104
|
+
Button,
|
|
23105
|
+
{
|
|
23106
|
+
icon: 'sync',
|
|
23107
|
+
iconAlign: 'left',
|
|
23108
|
+
onClick: function onClick() {
|
|
23109
|
+
return _this2.check();
|
|
23110
|
+
},
|
|
23111
|
+
type: 'neutral',
|
|
23112
|
+
style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
|
|
23113
|
+
disabled: step.credentials.some(function (c) {
|
|
23114
|
+
var formCreds = formValues[step.mode + 'Credentials'];
|
|
23115
|
+
return !(formCreds && Object.keys(formCreds).includes(c.split(' ').join('')));
|
|
23116
|
+
}) },
|
|
23117
|
+
'Test Connection'
|
|
23118
|
+
)
|
|
22939
23119
|
)
|
|
22940
|
-
)
|
|
23120
|
+
),
|
|
22941
23121
|
wizard[step.mode + 'Metadata'] ? _react2.default.createElement(
|
|
22942
23122
|
'div',
|
|
22943
23123
|
null,
|
|
@@ -22952,7 +23132,9 @@ module.exports =
|
|
|
22952
23132
|
_react2.default.createElement(
|
|
22953
23133
|
'ul',
|
|
22954
23134
|
null,
|
|
22955
|
-
wizard[step.mode + 'Metadata'].
|
|
23135
|
+
wizard[step.mode + 'Metadata'].filter(function (m) {
|
|
23136
|
+
return m.method !== 'POST';
|
|
23137
|
+
}).map(function (rsc, i) {
|
|
22956
23138
|
return _react2.default.createElement(
|
|
22957
23139
|
'li',
|
|
22958
23140
|
{ key: i, style: { paddingLeft: 10 } },
|
|
@@ -22967,8 +23149,42 @@ module.exports =
|
|
|
22967
23149
|
})
|
|
22968
23150
|
)
|
|
22969
23151
|
) : null,
|
|
22970
|
-
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Environment', component: renderError }),
|
|
22971
23152
|
_react2.default.createElement('br', null),
|
|
23153
|
+
wizard[step.mode + 'Metadata'] && step.mode === 'source' && POSTS && POSTS.length > 0 && _react2.default.createElement(
|
|
23154
|
+
'div',
|
|
23155
|
+
null,
|
|
23156
|
+
_react2.default.createElement(_reduxForm.Field, { name: 'bidirectional', component: inputs.rfCheckbox, label: 'Enable writing to source system (Bi-drectional Sync)', checked: formValues.bidirectional || false }),
|
|
23157
|
+
_react2.default.createElement('br', null),
|
|
23158
|
+
_react2.default.createElement('br', null),
|
|
23159
|
+
formValues.bidirectional && _react2.default.createElement(
|
|
23160
|
+
'div',
|
|
23161
|
+
null,
|
|
23162
|
+
_react2.default.createElement(
|
|
23163
|
+
'span',
|
|
23164
|
+
{ className: 'labelz' },
|
|
23165
|
+
'Available ',
|
|
23166
|
+
step[step.mode + 'Provider'],
|
|
23167
|
+
' Data Target Objects:'
|
|
23168
|
+
),
|
|
23169
|
+
_react2.default.createElement(
|
|
23170
|
+
'ul',
|
|
23171
|
+
null,
|
|
23172
|
+
POSTS.map(function (rsc, i) {
|
|
23173
|
+
return _react2.default.createElement(
|
|
23174
|
+
'li',
|
|
23175
|
+
{ key: i, style: { paddingLeft: 10 } },
|
|
23176
|
+
_react2.default.createElement(
|
|
23177
|
+
'a',
|
|
23178
|
+
{ style: { textDecoration: 'none', cursor: 'default' } },
|
|
23179
|
+
rsc.name
|
|
23180
|
+
)
|
|
23181
|
+
);
|
|
23182
|
+
})
|
|
23183
|
+
)
|
|
23184
|
+
)
|
|
23185
|
+
),
|
|
23186
|
+
_react2.default.createElement('br', null),
|
|
23187
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Environment', component: renderError }),
|
|
22972
23188
|
_react2.default.createElement(_navButtons2.default, { nextDisabled: !wizard[step.mode + 'Metadata'], handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
|
|
22973
23189
|
_react2.default.createElement('br', null),
|
|
22974
23190
|
_react2.default.createElement('br', null)
|
|
@@ -23297,8 +23513,18 @@ module.exports =
|
|
|
23297
23513
|
formValues: formValues, change: change, update: this.update, step: step, actions: actions }),
|
|
23298
23514
|
_react2.default.createElement(
|
|
23299
23515
|
MapTable,
|
|
23300
|
-
{ clearOneMapping: this.clearOneMapping, selectMapping: this.selectMapping
|
|
23301
|
-
|
|
23516
|
+
{ clearOneMapping: this.clearOneMapping, selectMapping: this.selectMapping,
|
|
23517
|
+
mode: 'normal', step: step },
|
|
23518
|
+
_react2.default.createElement(Rows.MapTableSourceRow, null),
|
|
23519
|
+
_react2.default.createElement(Rows.MapTableMappingRow, null),
|
|
23520
|
+
_react2.default.createElement(Rows.MapTableTransformRow, null),
|
|
23521
|
+
_react2.default.createElement(Rows.MapTableDestinationRow, null)
|
|
23522
|
+
),
|
|
23523
|
+
_react2.default.createElement(
|
|
23524
|
+
MapTable,
|
|
23525
|
+
{ clearOneMapping: this.clearOneMapping, selectMapping: this.selectMapping,
|
|
23526
|
+
mode: 'reverse', step: step },
|
|
23527
|
+
_react2.default.createElement(Rows.MapTableSourceRow, null),
|
|
23302
23528
|
_react2.default.createElement(Rows.MapTableMappingRow, null),
|
|
23303
23529
|
_react2.default.createElement(Rows.MapTableTransformRow, null),
|
|
23304
23530
|
_react2.default.createElement(Rows.MapTableDestinationRow, null)
|
|
@@ -23804,15 +24030,6 @@ module.exports =
|
|
|
23804
24030
|
value: function componentWillUnmount() {
|
|
23805
24031
|
clearInterval(this.loadingInterval);
|
|
23806
24032
|
}
|
|
23807
|
-
}, {
|
|
23808
|
-
key: 'options',
|
|
23809
|
-
value: function options(ops) {
|
|
23810
|
-
var obj = {};
|
|
23811
|
-
ops.forEach(function (o) {
|
|
23812
|
-
obj[o.name] = o.label;
|
|
23813
|
-
});
|
|
23814
|
-
return obj;
|
|
23815
|
-
}
|
|
23816
24033
|
}, {
|
|
23817
24034
|
key: 'changeScenario',
|
|
23818
24035
|
value: function changeScenario(o) {
|
|
@@ -23823,9 +24040,13 @@ module.exports =
|
|
|
23823
24040
|
|
|
23824
24041
|
change('resourceGroups', null); //clear old data
|
|
23825
24042
|
change('scenario', o.name);
|
|
23826
|
-
|
|
23827
|
-
|
|
23828
|
-
|
|
24043
|
+
if (o.name === 'scratch') {
|
|
24044
|
+
actions.gotEmptyScenario();
|
|
24045
|
+
} else {
|
|
24046
|
+
actions.callGetScenario(step.magicNumber, o.bundleGuid, o.mappingGuid, this.completedCallback);
|
|
24047
|
+
this.setState({ currentlyLoadingScenario: o.name });
|
|
24048
|
+
this.goLoading();
|
|
24049
|
+
}
|
|
23829
24050
|
}
|
|
23830
24051
|
}, {
|
|
23831
24052
|
key: 'render',
|
|
@@ -23844,6 +24065,11 @@ module.exports =
|
|
|
23844
24065
|
var Radio = inputs.Radio;
|
|
23845
24066
|
var scenario = formValues['scenario'];
|
|
23846
24067
|
var Modal = inputs.Modal;
|
|
24068
|
+
var options = [{
|
|
24069
|
+
name: 'scratch',
|
|
24070
|
+
title: 'Start From Scratch',
|
|
24071
|
+
label: 'Get started without any automatic mappings.'
|
|
24072
|
+
}].concat(step.options);
|
|
23847
24073
|
|
|
23848
24074
|
return _react2.default.createElement(
|
|
23849
24075
|
'form',
|
|
@@ -23865,7 +24091,7 @@ module.exports =
|
|
|
23865
24091
|
_react2.default.createElement(
|
|
23866
24092
|
'div',
|
|
23867
24093
|
{ style: { marginLeft: 16 } },
|
|
23868
|
-
|
|
24094
|
+
options.map(function (o, i) {
|
|
23869
24095
|
return _react2.default.createElement(
|
|
23870
24096
|
'div',
|
|
23871
24097
|
{ key: i },
|
|
@@ -24066,17 +24292,19 @@ module.exports =
|
|
|
24066
24292
|
}
|
|
24067
24293
|
}, {
|
|
24068
24294
|
key: 'addGroup',
|
|
24069
|
-
value: function addGroup(v, index, recordTypeId) {
|
|
24295
|
+
value: function addGroup(v, index, recordTypeId, section) {
|
|
24070
24296
|
var _props4 = this.props,
|
|
24071
24297
|
change = _props4.change,
|
|
24072
24298
|
formValues = _props4.formValues;
|
|
24073
24299
|
|
|
24074
24300
|
|
|
24075
24301
|
var resourceGroups = [].concat(_toConsumableArray(formValues['resourceGroups'])) || [];
|
|
24076
|
-
|
|
24302
|
+
|
|
24303
|
+
resourceGroups.splice(index, 0, {
|
|
24077
24304
|
name: v,
|
|
24078
24305
|
resources: null,
|
|
24079
|
-
recordTypeId: recordTypeId
|
|
24306
|
+
recordTypeId: recordTypeId,
|
|
24307
|
+
provider: section
|
|
24080
24308
|
});
|
|
24081
24309
|
|
|
24082
24310
|
change('resourceGroups', resourceGroups);
|
|
@@ -24296,18 +24524,22 @@ module.exports =
|
|
|
24296
24524
|
null,
|
|
24297
24525
|
_react2.default.createElement(
|
|
24298
24526
|
_groupNav2.default,
|
|
24299
|
-
{ isBundleStep: true,
|
|
24527
|
+
{ isBundleStep: true,
|
|
24528
|
+
style: { position: 'relative', width: 585, height: 69, zIndex: 9000 },
|
|
24300
24529
|
resourceGroups: resourceGroups, removeGroup: this.removeGroup,
|
|
24301
24530
|
addGroup: this.addGroup, destinationSchema: destinationSchema,
|
|
24302
24531
|
changeGroupOrder: this.changeGroupOrder, step: step,
|
|
24303
24532
|
inputs: inputs, addDefaultEntity: this.addDefaultEntity,
|
|
24304
|
-
didRemoveEntity: this.removeEntity
|
|
24533
|
+
didRemoveEntity: this.removeEntity,
|
|
24534
|
+
sourceSchema: sourceSchema,
|
|
24535
|
+
bidirectional: formValues.bidirectional },
|
|
24305
24536
|
_react2.default.createElement(_schemaAccordion2.default, { sourceSchema: sourceSchema,
|
|
24306
24537
|
changeEntityOrder: this.changeEntityOrder, step: step,
|
|
24307
24538
|
destinationSchema: destinationSchema,
|
|
24308
24539
|
selectPrimaryKey: this.selectPrimaryKey,
|
|
24309
24540
|
selectJoinKey: this.selectJoinKey }),
|
|
24310
|
-
_react2.default.createElement(_bundleTable2.default, { openConnectionModal: this.openConnectionModal })
|
|
24541
|
+
_react2.default.createElement(_bundleTable2.default, { openConnectionModal: this.openConnectionModal, mode: 'normal' }),
|
|
24542
|
+
_react2.default.createElement(_bundleTable2.default, { openConnectionModal: this.openConnectionModal, mode: 'reverse' })
|
|
24311
24543
|
),
|
|
24312
24544
|
_react2.default.createElement('br', null)
|
|
24313
24545
|
),
|
|
@@ -24425,12 +24657,13 @@ module.exports =
|
|
|
24425
24657
|
expanded = props.expanded,
|
|
24426
24658
|
parents = props.parents;
|
|
24427
24659
|
|
|
24660
|
+
var isMapped = filteredMappings && Object.values(filteredMappings).includes(field.label);
|
|
24428
24661
|
var style = {
|
|
24429
24662
|
paddingLeft: 5,
|
|
24430
24663
|
background: selectedField && selectedField === field.label ? '#dfe0e0' : 'initial',
|
|
24431
|
-
fontWeight: selectedField === field.name ||
|
|
24664
|
+
fontWeight: selectedField === field.name || isMapped ? 'bold' : 'normal'
|
|
24432
24665
|
};
|
|
24433
|
-
if (
|
|
24666
|
+
if (isMapped) {
|
|
24434
24667
|
style['color'] = 'black';
|
|
24435
24668
|
}
|
|
24436
24669
|
|
|
@@ -24790,7 +25023,7 @@ module.exports =
|
|
|
24790
25023
|
resourceToName: destinationResource.type,
|
|
24791
25024
|
propertyToName: destinationProperty.name,
|
|
24792
25025
|
bundleIndex: index
|
|
24793
|
-
}, singleMapping.isExternalKeyMapping && { isExternalKeyMapping: true }, singleMapping.dataSourceIsDestinationEntity && { isDestinationResource: true }, singleMapping.transformations && singleMapping.transformations.length > 0 && !singleMapping.transformations.every(function (t) {
|
|
25026
|
+
}, singleMapping.isExternalKeyMapping && { isExternalKeyMapping: true }, singleMapping.dataSourceIsDestinationEntity && { isDestinationResource: true }, singleMapping.isUnique && { isUnique: true }, singleMapping.transformations && singleMapping.transformations.length > 0 && !singleMapping.transformations.every(function (t) {
|
|
24794
25027
|
return t.type === 'none';
|
|
24795
25028
|
}) && { transformations: singleMapping.transformations }));
|
|
24796
25029
|
}
|
|
@@ -24852,7 +25085,9 @@ module.exports =
|
|
|
24852
25085
|
if (formValues.destinationEndpoint) {
|
|
24853
25086
|
endpoints.destinationEndpoint = formValues.destinationEndpoint;
|
|
24854
25087
|
}
|
|
24855
|
-
var configuration = Object.assign({}, endpoints, formValues['scenario'] && { scenario: formValues['scenario'] }
|
|
25088
|
+
var configuration = Object.assign({}, endpoints, formValues['scenario'] && { scenario: formValues['scenario'] }, {
|
|
25089
|
+
isBidirectional: String(formValues['bidirectional'] === true)
|
|
25090
|
+
});
|
|
24856
25091
|
//----------------------------------
|
|
24857
25092
|
// Post
|
|
24858
25093
|
//----------------------------------
|
|
@@ -24993,6 +25228,7 @@ module.exports =
|
|
|
24993
25228
|
var mappings = selector(state, 'mappings');
|
|
24994
25229
|
var resourceGroups = selector(state, 'resourceGroups');
|
|
24995
25230
|
var scenario = selector(state, 'scenario');
|
|
25231
|
+
var bidirectional = selector(state, 'bidirectional');
|
|
24996
25232
|
return Object.assign({}, state, {
|
|
24997
25233
|
formValues: {
|
|
24998
25234
|
title: title,
|
|
@@ -25003,7 +25239,8 @@ module.exports =
|
|
|
25003
25239
|
deployment: deployment,
|
|
25004
25240
|
mappings: mappings,
|
|
25005
25241
|
resourceGroups: resourceGroups,
|
|
25006
|
-
scenario: scenario
|
|
25242
|
+
scenario: scenario,
|
|
25243
|
+
bidirectional: bidirectional
|
|
25007
25244
|
}
|
|
25008
25245
|
});
|
|
25009
25246
|
})(WizardForm);
|
|
@@ -25145,10 +25382,11 @@ module.exports =
|
|
|
25145
25382
|
}
|
|
25146
25383
|
} else */if (step.type === 'scenario') {
|
|
25147
25384
|
step.options = wizard.scenarios;
|
|
25148
|
-
step.magicNumber =
|
|
25385
|
+
step.magicNumber = '2147483647';
|
|
25149
25386
|
stepList.push(step);
|
|
25150
25387
|
} else if (step.type === 'environment') {
|
|
25151
|
-
|
|
25388
|
+
step.typeGuid = wizard.typeGuid;
|
|
25389
|
+
if (step.mode === 'source' && !wizard.source.skipEnvStep) {
|
|
25152
25390
|
step.message = wizard.source.message;
|
|
25153
25391
|
step.providerType = wizard.source.type;
|
|
25154
25392
|
step.credentials = wizard.source.credentials || null;
|
|
@@ -25156,7 +25394,7 @@ module.exports =
|
|
|
25156
25394
|
step.metadataApi = wizard.source.metadataApi;
|
|
25157
25395
|
step.previewToken = this.props.previewToken;
|
|
25158
25396
|
stepList.push(step);
|
|
25159
|
-
} else if (step.mode === 'destination' && wizard.destination.
|
|
25397
|
+
} else if (step.mode === 'destination' && !wizard.destination.skipEnvStep) {
|
|
25160
25398
|
step.message = wizard.destination.message;
|
|
25161
25399
|
step.providerType = wizard.destination.type;
|
|
25162
25400
|
step.credentials = wizard.destination.credentials || null;
|
|
@@ -25177,7 +25415,7 @@ module.exports =
|
|
|
25177
25415
|
step.dummyData = wizard.dummyData || null
|
|
25178
25416
|
stepList.push(step)*/
|
|
25179
25417
|
} else if (step.type === 'deploy') {
|
|
25180
|
-
step.options =
|
|
25418
|
+
step.options = ['once', 'daily', 'repeating'];
|
|
25181
25419
|
stepList.push(step);
|
|
25182
25420
|
}
|
|
25183
25421
|
}
|
|
@@ -25188,10 +25426,10 @@ module.exports =
|
|
|
25188
25426
|
var metadataEndpoints = {
|
|
25189
25427
|
source: wizard.source.metadataEndpoint || null,
|
|
25190
25428
|
sourceApi: wizard.source.metadataApi || null,
|
|
25191
|
-
sourceEnv: wizard.source.
|
|
25429
|
+
sourceEnv: wizard.source.skipEnvStep ? false : true,
|
|
25192
25430
|
destination: wizard.destination.metadataEndpoint || null,
|
|
25193
25431
|
destinationApi: wizard.destination.metadataApi || null,
|
|
25194
|
-
destinationEnv: wizard.destination.
|
|
25432
|
+
destinationEnv: wizard.destination.skipEnvStep ? false : true
|
|
25195
25433
|
};
|
|
25196
25434
|
this.setState({
|
|
25197
25435
|
steps: stepList,
|
|
@@ -25281,14 +25519,14 @@ module.exports =
|
|
|
25281
25519
|
/***/ function(module, exports, __webpack_require__) {
|
|
25282
25520
|
|
|
25283
25521
|
__webpack_require__(255);
|
|
25284
|
-
module.exports = __webpack_require__(
|
|
25522
|
+
module.exports = __webpack_require__(8).Object.assign;
|
|
25285
25523
|
|
|
25286
25524
|
/***/ },
|
|
25287
25525
|
/* 235 */
|
|
25288
25526
|
/***/ function(module, exports, __webpack_require__) {
|
|
25289
25527
|
|
|
25290
25528
|
__webpack_require__(256);
|
|
25291
|
-
var $Object = __webpack_require__(
|
|
25529
|
+
var $Object = __webpack_require__(8).Object;
|
|
25292
25530
|
module.exports = function defineProperty(it, key, desc){
|
|
25293
25531
|
return $Object.defineProperty(it, key, desc);
|
|
25294
25532
|
};
|
|
@@ -25374,7 +25612,7 @@ module.exports =
|
|
|
25374
25612
|
|
|
25375
25613
|
var $export = __webpack_require__(23);
|
|
25376
25614
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
25377
|
-
$export($export.S + $export.F * !__webpack_require__(
|
|
25615
|
+
$export($export.S + $export.F * !__webpack_require__(9), 'Object', {defineProperty: __webpack_require__(18).f});
|
|
25378
25616
|
|
|
25379
25617
|
/***/ },
|
|
25380
25618
|
/* 257 */,
|