@lingk/sync 0.1.2 → 0.1.3
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 +96 -93
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js +126 -83
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/main.js +334 -178
- package/build/main.js.map +1 -1
- package/build/reducer.js +18 -10
- 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({
|
|
@@ -4865,7 +4865,7 @@ module.exports =
|
|
|
4865
4865
|
/***/ function(module, exports, __webpack_require__) {
|
|
4866
4866
|
|
|
4867
4867
|
var global = __webpack_require__(7)
|
|
4868
|
-
, core = __webpack_require__(
|
|
4868
|
+
, core = __webpack_require__(8)
|
|
4869
4869
|
, ctx = __webpack_require__(43)
|
|
4870
4870
|
, hide = __webpack_require__(13)
|
|
4871
4871
|
, PROTOTYPE = 'prototype';
|
|
@@ -5706,10 +5706,11 @@ module.exports =
|
|
|
5706
5706
|
var FINISH_ENV_CHECK = exports.FINISH_ENV_CHECK = 'FINISH_ENV_CHECK';
|
|
5707
5707
|
var START_PREVIEW = exports.START_PREVIEW = 'START_PREVIEW';
|
|
5708
5708
|
var FINISH_PREVIEW = exports.FINISH_PREVIEW = 'FINISH_PREVIEW';
|
|
5709
|
-
var SET_WIZARD_METADATA = exports.SET_WIZARD_METADATA = 'SET_WIZARD_METADATA';
|
|
5710
5709
|
var START_GET_SCENARIO = exports.START_GET_SCENARIO = 'START_GET_SCENARIO';
|
|
5711
5710
|
var FINISH_GET_SCENARIO = exports.FINISH_GET_SCENARIO = 'FINISH_GET_SCENARIO';
|
|
5712
5711
|
var CLEAR_WIZARD = exports.CLEAR_WIZARD = 'CLEAR_WIZARD';
|
|
5712
|
+
var SET_OAUTH_URL = exports.SET_OAUTH_URL = 'SET_OAUTH_URL';
|
|
5713
|
+
var GETTING_OAUTH_URL = exports.GETTING_OAUTH_URL = 'GETTING_OAUTH_URL';
|
|
5713
5714
|
|
|
5714
5715
|
/***/ },
|
|
5715
5716
|
/* 39 */
|
|
@@ -5931,7 +5932,7 @@ module.exports =
|
|
|
5931
5932
|
/* 44 */
|
|
5932
5933
|
/***/ function(module, exports, __webpack_require__) {
|
|
5933
5934
|
|
|
5934
|
-
module.exports = !__webpack_require__(
|
|
5935
|
+
module.exports = !__webpack_require__(9) && !__webpack_require__(12)(function(){
|
|
5935
5936
|
return Object.defineProperty(__webpack_require__(27)('div'), 'a', {get: function(){ return 7; }}).a != 7;
|
|
5936
5937
|
});
|
|
5937
5938
|
|
|
@@ -6255,10 +6256,14 @@ module.exports =
|
|
|
6255
6256
|
}, {
|
|
6256
6257
|
key: 'addDefaultResourceGroup',
|
|
6257
6258
|
value: function addDefaultResourceGroup(v, i, id) {
|
|
6258
|
-
var
|
|
6259
|
+
var _props = this.props,
|
|
6260
|
+
addGroup = _props.addGroup,
|
|
6261
|
+
resourceGroups = _props.resourceGroups;
|
|
6259
6262
|
var resourceGroupIndex = this.state.resourceGroupIndex;
|
|
6260
6263
|
|
|
6261
|
-
|
|
6264
|
+
if (!(resourceGroups && resourceGroups.length === 0)) {
|
|
6265
|
+
this.go(false, resourceGroupIndex + 1);
|
|
6266
|
+
}
|
|
6262
6267
|
addGroup(v, resourceGroupIndex, id);
|
|
6263
6268
|
}
|
|
6264
6269
|
}, {
|
|
@@ -6339,13 +6344,13 @@ module.exports =
|
|
|
6339
6344
|
value: function render() {
|
|
6340
6345
|
var _this4 = this;
|
|
6341
6346
|
|
|
6342
|
-
var
|
|
6343
|
-
resourceGroups =
|
|
6344
|
-
style =
|
|
6345
|
-
isBundleStep =
|
|
6346
|
-
destinationSchema =
|
|
6347
|
-
inputs =
|
|
6348
|
-
step =
|
|
6347
|
+
var _props2 = this.props,
|
|
6348
|
+
resourceGroups = _props2.resourceGroups,
|
|
6349
|
+
style = _props2.style,
|
|
6350
|
+
isBundleStep = _props2.isBundleStep,
|
|
6351
|
+
destinationSchema = _props2.destinationSchema,
|
|
6352
|
+
inputs = _props2.inputs,
|
|
6353
|
+
step = _props2.step;
|
|
6349
6354
|
var _state = this.state,
|
|
6350
6355
|
resourceGroupIndex = _state.resourceGroupIndex,
|
|
6351
6356
|
paneToggle = _state.paneToggle,
|
|
@@ -19216,9 +19221,11 @@ module.exports =
|
|
|
19216
19221
|
value: true
|
|
19217
19222
|
});
|
|
19218
19223
|
exports.callCheckConnection = callCheckConnection;
|
|
19224
|
+
exports.getOauthUrl = getOauthUrl;
|
|
19219
19225
|
exports.createLingkExternalIds = createLingkExternalIds;
|
|
19220
19226
|
exports.callTest = callTest;
|
|
19221
19227
|
exports.callAddCustomField = callAddCustomField;
|
|
19228
|
+
exports.gotEmptyScenario = gotEmptyScenario;
|
|
19222
19229
|
exports.callGetScenario = callGetScenario;
|
|
19223
19230
|
exports.callPreviewIntegration = callPreviewIntegration;
|
|
19224
19231
|
exports.callPostBundles = callPostBundles;
|
|
@@ -19232,9 +19239,9 @@ module.exports =
|
|
|
19232
19239
|
exports.callDeployTrigger = callDeployTrigger;
|
|
19233
19240
|
exports.callInit = callInit;
|
|
19234
19241
|
exports.callGetPiConfig = callGetPiConfig;
|
|
19242
|
+
exports.tryGetMetadata = tryGetMetadata;
|
|
19235
19243
|
exports.callGetBundles = callGetBundles;
|
|
19236
19244
|
exports.callGetMapping = callGetMapping;
|
|
19237
|
-
exports.tryGetMetadata = tryGetMetadata;
|
|
19238
19245
|
exports.postCredentials = postCredentials;
|
|
19239
19246
|
exports.callGetProviderMetadata = callGetProviderMetadata;
|
|
19240
19247
|
exports.callGetTrigger = callGetTrigger;
|
|
@@ -19259,7 +19266,8 @@ module.exports =
|
|
|
19259
19266
|
function callCheckConnection(tenantId, appId, url, mode, providerType) {
|
|
19260
19267
|
return function (dispatch, getState, api) {
|
|
19261
19268
|
dispatch({
|
|
19262
|
-
type: types.START_ENV_CHECK
|
|
19269
|
+
type: types.START_ENV_CHECK,
|
|
19270
|
+
mode: mode
|
|
19263
19271
|
});
|
|
19264
19272
|
|
|
19265
19273
|
var _getState = getState(),
|
|
@@ -19274,10 +19282,6 @@ module.exports =
|
|
|
19274
19282
|
type: types.FINISH_ENV_CHECK,
|
|
19275
19283
|
data: { res: res, mode: mode, code: '200 OK', providerType: providerType }
|
|
19276
19284
|
});
|
|
19277
|
-
dispatch({
|
|
19278
|
-
type: types.SET_WIZARD_METADATA,
|
|
19279
|
-
data: { res: res, mode: mode, providerType: providerType }
|
|
19280
|
-
});
|
|
19281
19285
|
}).catch(function (err) {
|
|
19282
19286
|
dispatch({
|
|
19283
19287
|
type: types.FINISH_ENV_CHECK,
|
|
@@ -19287,13 +19291,38 @@ module.exports =
|
|
|
19287
19291
|
};
|
|
19288
19292
|
}
|
|
19289
19293
|
|
|
19290
|
-
function
|
|
19294
|
+
function getOauthUrl(tenantId, appId, typeGuid, orgType) {
|
|
19291
19295
|
return function (dispatch, getState, api) {
|
|
19296
|
+
dispatch({
|
|
19297
|
+
type: types.GETTING_OAUTH_URL,
|
|
19298
|
+
bool: true
|
|
19299
|
+
});
|
|
19300
|
+
|
|
19292
19301
|
var _getState2 = getState(),
|
|
19293
19302
|
config = _getState2.config;
|
|
19294
19303
|
|
|
19295
19304
|
var AGENT_API_URL = config.AGENT_API_URL;
|
|
19296
19305
|
|
|
19306
|
+
return api.get(tenantId + '/' + appId + '/oauthurl/' + typeGuid + '/' + orgType, {
|
|
19307
|
+
endpoint: AGENT_API_URL
|
|
19308
|
+
}).then(function (data) {
|
|
19309
|
+
dispatch({
|
|
19310
|
+
type: types.SET_OAUTH_URL,
|
|
19311
|
+
data: data.url
|
|
19312
|
+
});
|
|
19313
|
+
}).catch(function (err) {
|
|
19314
|
+
console.log(err);
|
|
19315
|
+
});
|
|
19316
|
+
};
|
|
19317
|
+
}
|
|
19318
|
+
|
|
19319
|
+
function createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata) {
|
|
19320
|
+
return function (dispatch, getState, api) {
|
|
19321
|
+
var _getState3 = getState(),
|
|
19322
|
+
config = _getState3.config;
|
|
19323
|
+
|
|
19324
|
+
var AGENT_API_URL = config.AGENT_API_URL;
|
|
19325
|
+
|
|
19297
19326
|
|
|
19298
19327
|
var externalIdlessObjects = [];
|
|
19299
19328
|
bundles.forEach(function (b) {
|
|
@@ -19351,8 +19380,8 @@ module.exports =
|
|
|
19351
19380
|
|
|
19352
19381
|
function callAddCustomField(tenantId, appId, objectType, fieldName, completedCallback) {
|
|
19353
19382
|
return function (dispatch, getState, api) {
|
|
19354
|
-
var
|
|
19355
|
-
config =
|
|
19383
|
+
var _getState4 = getState(),
|
|
19384
|
+
config = _getState4.config;
|
|
19356
19385
|
|
|
19357
19386
|
var AGENT_API_URL = config.AGENT_API_URL;
|
|
19358
19387
|
|
|
@@ -19369,6 +19398,22 @@ module.exports =
|
|
|
19369
19398
|
};
|
|
19370
19399
|
}
|
|
19371
19400
|
|
|
19401
|
+
function gotEmptyScenario() {
|
|
19402
|
+
return function (dispatch) {
|
|
19403
|
+
dispatch({
|
|
19404
|
+
type: types.FINISH_GET_SCENARIO
|
|
19405
|
+
});
|
|
19406
|
+
dispatch({
|
|
19407
|
+
type: types.SET_WIZARD_SAVED_BUNDLES,
|
|
19408
|
+
data: { bundles: [] }
|
|
19409
|
+
});
|
|
19410
|
+
dispatch({
|
|
19411
|
+
type: types.SET_WIZARD_SAVED_MAPPING,
|
|
19412
|
+
data: { mappings: [] }
|
|
19413
|
+
});
|
|
19414
|
+
};
|
|
19415
|
+
}
|
|
19416
|
+
|
|
19372
19417
|
function callGetScenario(magicNumber, bundleGuid, mappingGuid, completedCallback) {
|
|
19373
19418
|
return function (dispatch, getState, api) {
|
|
19374
19419
|
dispatch({
|
|
@@ -19394,8 +19439,8 @@ module.exports =
|
|
|
19394
19439
|
type: types.START_PREVIEW
|
|
19395
19440
|
});
|
|
19396
19441
|
|
|
19397
|
-
var
|
|
19398
|
-
config =
|
|
19442
|
+
var _getState5 = getState(),
|
|
19443
|
+
config = _getState5.config;
|
|
19399
19444
|
|
|
19400
19445
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19401
19446
|
|
|
@@ -19414,8 +19459,8 @@ module.exports =
|
|
|
19414
19459
|
|
|
19415
19460
|
function callPostBundles(tenantId, appId, bundles) {
|
|
19416
19461
|
return function (dispatch, getState, api) {
|
|
19417
|
-
var
|
|
19418
|
-
config =
|
|
19462
|
+
var _getState6 = getState(),
|
|
19463
|
+
config = _getState6.config;
|
|
19419
19464
|
|
|
19420
19465
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19421
19466
|
|
|
@@ -19431,8 +19476,8 @@ module.exports =
|
|
|
19431
19476
|
|
|
19432
19477
|
function callPostMapping(tenantId, appId, mappings) {
|
|
19433
19478
|
return function (dispatch, getState, api) {
|
|
19434
|
-
var
|
|
19435
|
-
config =
|
|
19479
|
+
var _getState7 = getState(),
|
|
19480
|
+
config = _getState7.config;
|
|
19436
19481
|
|
|
19437
19482
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19438
19483
|
|
|
@@ -19448,8 +19493,8 @@ module.exports =
|
|
|
19448
19493
|
|
|
19449
19494
|
function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, bundlePackGuid, configuration, title, typeGuid) {
|
|
19450
19495
|
return function (dispatch, getState, api) {
|
|
19451
|
-
var
|
|
19452
|
-
config =
|
|
19496
|
+
var _getState8 = getState(),
|
|
19497
|
+
config = _getState8.config;
|
|
19453
19498
|
|
|
19454
19499
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19455
19500
|
|
|
@@ -19471,8 +19516,8 @@ module.exports =
|
|
|
19471
19516
|
|
|
19472
19517
|
function callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, piGuid, mappingGuid, destinationMetadata) {
|
|
19473
19518
|
return function (dispatch, getState, api) {
|
|
19474
|
-
var
|
|
19475
|
-
config =
|
|
19519
|
+
var _getState9 = getState(),
|
|
19520
|
+
config = _getState9.config;
|
|
19476
19521
|
|
|
19477
19522
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19478
19523
|
|
|
@@ -19519,8 +19564,8 @@ module.exports =
|
|
|
19519
19564
|
|
|
19520
19565
|
function callExecuteTransformer(transId) {
|
|
19521
19566
|
return function (dispatch, getState, api) {
|
|
19522
|
-
var
|
|
19523
|
-
config =
|
|
19567
|
+
var _getState10 = getState(),
|
|
19568
|
+
config = _getState10.config;
|
|
19524
19569
|
|
|
19525
19570
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19526
19571
|
|
|
@@ -19547,8 +19592,8 @@ module.exports =
|
|
|
19547
19592
|
|
|
19548
19593
|
function callLookupLogData(externalExecutionId, index, onFinish, generatedRecipe, piGuid, mapGuid) {
|
|
19549
19594
|
return function (dispatch, getState, api) {
|
|
19550
|
-
var
|
|
19551
|
-
config =
|
|
19595
|
+
var _getState11 = getState(),
|
|
19596
|
+
config = _getState11.config;
|
|
19552
19597
|
|
|
19553
19598
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19554
19599
|
|
|
@@ -19593,8 +19638,8 @@ module.exports =
|
|
|
19593
19638
|
};
|
|
19594
19639
|
}
|
|
19595
19640
|
return function (dispatch, getState, api) {
|
|
19596
|
-
var
|
|
19597
|
-
config =
|
|
19641
|
+
var _getState12 = getState(),
|
|
19642
|
+
config = _getState12.config;
|
|
19598
19643
|
|
|
19599
19644
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19600
19645
|
|
|
@@ -19609,8 +19654,8 @@ module.exports =
|
|
|
19609
19654
|
|
|
19610
19655
|
function callDeployTrigger(generatedRecipe, piGuid, mapGuid, onFinish) {
|
|
19611
19656
|
return function (dispatch, getState, api) {
|
|
19612
|
-
var
|
|
19613
|
-
config =
|
|
19657
|
+
var _getState13 = getState(),
|
|
19658
|
+
config = _getState13.config;
|
|
19614
19659
|
|
|
19615
19660
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19616
19661
|
|
|
@@ -19653,8 +19698,8 @@ module.exports =
|
|
|
19653
19698
|
|
|
19654
19699
|
if (piGuid) {
|
|
19655
19700
|
return function (dispatch, getState, api) {
|
|
19656
|
-
var
|
|
19657
|
-
config =
|
|
19701
|
+
var _getState14 = getState(),
|
|
19702
|
+
config = _getState14.config;
|
|
19658
19703
|
|
|
19659
19704
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19660
19705
|
|
|
@@ -19689,11 +19734,28 @@ module.exports =
|
|
|
19689
19734
|
};
|
|
19690
19735
|
}
|
|
19691
19736
|
|
|
19737
|
+
function tryGetMetadata(tenantId, appId, mode, providerType, urlSuffix, apiUrl, savedEndpoint, isEnvStep) {
|
|
19738
|
+
if (isEnvStep && !savedEndpoint) return function () {
|
|
19739
|
+
return Promise.resolve(null);
|
|
19740
|
+
};
|
|
19741
|
+
if (urlSuffix) {
|
|
19742
|
+
return function (dispatch) {
|
|
19743
|
+
return dispatch(callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType));
|
|
19744
|
+
};
|
|
19745
|
+
} else if (savedEndpoint) {
|
|
19746
|
+
return function (dispatch) {
|
|
19747
|
+
return dispatch(callCheckConnection(tenantId, appId, savedEndpoint, mode, providerType));
|
|
19748
|
+
};
|
|
19749
|
+
} else return function () {
|
|
19750
|
+
return Promise.resolve(null);
|
|
19751
|
+
};
|
|
19752
|
+
}
|
|
19753
|
+
|
|
19692
19754
|
function callGetBundles(tenantId, accountId, bundlePackGuid) {
|
|
19693
19755
|
if (bundlePackGuid) {
|
|
19694
19756
|
return function (dispatch, getState, api) {
|
|
19695
|
-
var
|
|
19696
|
-
config =
|
|
19757
|
+
var _getState15 = getState(),
|
|
19758
|
+
config = _getState15.config;
|
|
19697
19759
|
|
|
19698
19760
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19699
19761
|
|
|
@@ -19714,8 +19776,8 @@ module.exports =
|
|
|
19714
19776
|
function callGetMapping(tenantId, accountId, mappingGuid) {
|
|
19715
19777
|
if (mappingGuid) {
|
|
19716
19778
|
return function (dispatch, getState, api) {
|
|
19717
|
-
var
|
|
19718
|
-
config =
|
|
19779
|
+
var _getState16 = getState(),
|
|
19780
|
+
config = _getState16.config;
|
|
19719
19781
|
|
|
19720
19782
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19721
19783
|
|
|
@@ -19733,27 +19795,10 @@ module.exports =
|
|
|
19733
19795
|
};
|
|
19734
19796
|
}
|
|
19735
19797
|
|
|
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
19798
|
function postCredentials(tenantId, appId, providerType, url, credentials) {
|
|
19754
19799
|
return function (dispatch, getState, api) {
|
|
19755
|
-
var
|
|
19756
|
-
config =
|
|
19800
|
+
var _getState17 = getState(),
|
|
19801
|
+
config = _getState17.config;
|
|
19757
19802
|
|
|
19758
19803
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19759
19804
|
|
|
@@ -19773,15 +19818,20 @@ module.exports =
|
|
|
19773
19818
|
|
|
19774
19819
|
function callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType) {
|
|
19775
19820
|
return function (dispatch, getState, api) {
|
|
19776
|
-
|
|
19777
|
-
|
|
19821
|
+
dispatch({
|
|
19822
|
+
type: types.START_ENV_CHECK,
|
|
19823
|
+
mode: mode
|
|
19824
|
+
});
|
|
19825
|
+
|
|
19826
|
+
var _getState18 = getState(),
|
|
19827
|
+
config = _getState18.config;
|
|
19778
19828
|
|
|
19779
19829
|
return api.get(tenantId + '/' + appId + '/' + urlSuffix, {
|
|
19780
19830
|
endpoint: config[apiUrl]
|
|
19781
19831
|
}).then(function (res) {
|
|
19782
19832
|
dispatch({
|
|
19783
|
-
type: types.
|
|
19784
|
-
data: { res: res, mode: mode, providerType: providerType }
|
|
19833
|
+
type: types.FINISH_ENV_CHECK,
|
|
19834
|
+
data: { res: res, mode: mode, code: '200 OK', providerType: providerType }
|
|
19785
19835
|
});
|
|
19786
19836
|
return true;
|
|
19787
19837
|
}).catch(function (err) {
|
|
@@ -19796,8 +19846,8 @@ module.exports =
|
|
|
19796
19846
|
|
|
19797
19847
|
function callGetTrigger(transBaseId) {
|
|
19798
19848
|
return function (dispatch, getState, api) {
|
|
19799
|
-
var
|
|
19800
|
-
config =
|
|
19849
|
+
var _getState19 = getState(),
|
|
19850
|
+
config = _getState19.config;
|
|
19801
19851
|
|
|
19802
19852
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
19803
19853
|
|
|
@@ -20812,6 +20862,8 @@ module.exports =
|
|
|
20812
20862
|
|
|
20813
20863
|
var _nestedField2 = _interopRequireDefault(_nestedField);
|
|
20814
20864
|
|
|
20865
|
+
var _reduxForm = __webpack_require__(3);
|
|
20866
|
+
|
|
20815
20867
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20816
20868
|
|
|
20817
20869
|
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 +20896,6 @@ module.exports =
|
|
|
20844
20896
|
_this.changeCustomFieldValue = _this.changeCustomFieldValue.bind(_this);
|
|
20845
20897
|
_this.completedCallback = _this.completedCallback.bind(_this);
|
|
20846
20898
|
_this.goLoading = _this.goLoading.bind(_this);
|
|
20847
|
-
_this.setUnique = _this.setUnique.bind(_this);
|
|
20848
20899
|
return _this;
|
|
20849
20900
|
}
|
|
20850
20901
|
|
|
@@ -20970,11 +21021,6 @@ module.exports =
|
|
|
20970
21021
|
this.props.disableMultiple();
|
|
20971
21022
|
}
|
|
20972
21023
|
}
|
|
20973
|
-
}, {
|
|
20974
|
-
key: 'setUnique',
|
|
20975
|
-
value: function setUnique(v) {
|
|
20976
|
-
console.log(v);
|
|
20977
|
-
}
|
|
20978
21024
|
}, {
|
|
20979
21025
|
key: 'render',
|
|
20980
21026
|
value: function render() {
|
|
@@ -20995,7 +21041,6 @@ module.exports =
|
|
|
20995
21041
|
|
|
20996
21042
|
var Button = inputs.Button;
|
|
20997
21043
|
var Input = inputs.Input;
|
|
20998
|
-
var Checkbox = inputs.Checkbox;
|
|
20999
21044
|
|
|
21000
21045
|
var group = resourceGroups[resourceGroupIndex];
|
|
21001
21046
|
var selectedEntity = selectedEntities[resourceGroupIndex] || { name: '' };
|
|
@@ -21004,8 +21049,12 @@ module.exports =
|
|
|
21004
21049
|
|
|
21005
21050
|
var mappings = {};
|
|
21006
21051
|
var filteredMappings = {};
|
|
21007
|
-
group.mappings && group.mappings.forEach(function (m) {
|
|
21008
|
-
mappings[m.propertyToName] =
|
|
21052
|
+
group.mappings && group.mappings.forEach(function (m, i) {
|
|
21053
|
+
mappings[m.propertyToName] = {
|
|
21054
|
+
propFrom: m.propertyFromName,
|
|
21055
|
+
unique: m.isUnique || false,
|
|
21056
|
+
index: i
|
|
21057
|
+
};
|
|
21009
21058
|
if (m.resourceFromName === selectedEntity.name) {
|
|
21010
21059
|
filteredMappings[m.propertyToName] = m.propertyFromName;
|
|
21011
21060
|
}
|
|
@@ -21199,10 +21248,10 @@ module.exports =
|
|
|
21199
21248
|
_react2.default.createElement(
|
|
21200
21249
|
'div',
|
|
21201
21250
|
{ style: { paddingLeft: 12 } },
|
|
21202
|
-
_react2.default.createElement(
|
|
21203
|
-
|
|
21204
|
-
|
|
21205
|
-
|
|
21251
|
+
_react2.default.createElement(_reduxForm.Field, { style: { height: 19, margin: 0 }, label: 'Unique Field',
|
|
21252
|
+
component: inputs.rfCheckbox,
|
|
21253
|
+
checked: mappings[mk].unique,
|
|
21254
|
+
name: 'resourceGroups.' + resourceGroupIndex + '.mappings.' + mappings[mk].index + '.isUnique' })
|
|
21206
21255
|
)
|
|
21207
21256
|
);
|
|
21208
21257
|
})
|
|
@@ -22754,7 +22803,11 @@ module.exports =
|
|
|
22754
22803
|
|
|
22755
22804
|
var _this = _possibleConstructorReturn(this, (EnvironmentStep.__proto__ || Object.getPrototypeOf(EnvironmentStep)).call(this));
|
|
22756
22805
|
|
|
22806
|
+
_this.state = {
|
|
22807
|
+
oauth: false
|
|
22808
|
+
};
|
|
22757
22809
|
_this.seeFields = _this.seeFields.bind(_this);
|
|
22810
|
+
_this.startOauth = _this.startOauth.bind(_this);
|
|
22758
22811
|
return _this;
|
|
22759
22812
|
}
|
|
22760
22813
|
|
|
@@ -22790,6 +22843,17 @@ module.exports =
|
|
|
22790
22843
|
(0, _loadData2.default)(step, wizard, change, formValues, actions);
|
|
22791
22844
|
}
|
|
22792
22845
|
}
|
|
22846
|
+
}, {
|
|
22847
|
+
key: 'componentWillReceiveProps',
|
|
22848
|
+
value: function componentWillReceiveProps(newProps) {
|
|
22849
|
+
var step = newProps.step;
|
|
22850
|
+
|
|
22851
|
+
if (step.credentials && step.credentials.length === 1 && step.credentials[0] === 'Oauth') {
|
|
22852
|
+
this.setState({ oauth: true });
|
|
22853
|
+
} else {
|
|
22854
|
+
this.setState({ oauth: false });
|
|
22855
|
+
}
|
|
22856
|
+
}
|
|
22793
22857
|
}, {
|
|
22794
22858
|
key: 'check',
|
|
22795
22859
|
value: function check() {
|
|
@@ -22804,17 +22868,26 @@ module.exports =
|
|
|
22804
22868
|
var endpoint = formValues[step.mode + 'Endpoint'];
|
|
22805
22869
|
var credentials = formValues[step.mode + 'Credentials'];
|
|
22806
22870
|
//remove trailing slash if exists
|
|
22807
|
-
if (endpoint[endpoint.length - 1] === '/' && endpoint.length > 8) {
|
|
22871
|
+
if (endpoint && endpoint[endpoint.length - 1] === '/' && endpoint.length > 8) {
|
|
22808
22872
|
endpoint = endpoint.slice(0, -1);
|
|
22809
22873
|
change(step.mode + 'Endpoint', endpoint);
|
|
22810
22874
|
}
|
|
22811
|
-
|
|
22875
|
+
//(tenantId, appId, mode, providerType, urlSuffix, apiUrl, savedEndpoint, isEnvStep)
|
|
22876
|
+
actions.tryGetMetadata(tenantId, accountId, step.mode, step.providerType, step.metadataEndpoint, step.metadataApi, endpoint || '_blank', true).then(function (j) {
|
|
22812
22877
|
if (j && credentials) {
|
|
22813
22878
|
actions.postCredentials(tenantId, accountId, step.providerType, endpoint, credentials);
|
|
22814
22879
|
}
|
|
22815
22880
|
});
|
|
22816
|
-
|
|
22817
|
-
|
|
22881
|
+
}
|
|
22882
|
+
}, {
|
|
22883
|
+
key: 'startOauth',
|
|
22884
|
+
value: function startOauth() {
|
|
22885
|
+
var width = 600;
|
|
22886
|
+
var height = 600;
|
|
22887
|
+
var left = window.screenX + (window.outerWidth - width) / 2;
|
|
22888
|
+
var top = window.screenY + (window.outerHeight - height) / 2.5;
|
|
22889
|
+
var popup = window.open(this.props.wizard.oauthUrl, 'Oauth', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left);
|
|
22890
|
+
popup.focus();
|
|
22818
22891
|
}
|
|
22819
22892
|
}, {
|
|
22820
22893
|
key: 'render',
|
|
@@ -22828,7 +22901,10 @@ module.exports =
|
|
|
22828
22901
|
nav = _props4.nav,
|
|
22829
22902
|
reset = _props4.reset,
|
|
22830
22903
|
wizard = _props4.wizard,
|
|
22831
|
-
formValues = _props4.formValues
|
|
22904
|
+
formValues = _props4.formValues,
|
|
22905
|
+
actions = _props4.actions,
|
|
22906
|
+
tenantId = _props4.tenantId,
|
|
22907
|
+
accountId = _props4.accountId;
|
|
22832
22908
|
|
|
22833
22909
|
var Button = inputs.Button;
|
|
22834
22910
|
var Spinner = inputs.Spinner;
|
|
@@ -22853,91 +22929,169 @@ module.exports =
|
|
|
22853
22929
|
step.message
|
|
22854
22930
|
),
|
|
22855
22931
|
_react2.default.createElement('br', null),
|
|
22856
|
-
_react2.default.createElement(
|
|
22932
|
+
this.state.oauth ? _react2.default.createElement(
|
|
22857
22933
|
'div',
|
|
22858
|
-
|
|
22934
|
+
null,
|
|
22859
22935
|
_react2.default.createElement(
|
|
22860
22936
|
'div',
|
|
22861
22937
|
null,
|
|
22938
|
+
'Are you connecting to a Sandbox or Production Org?'
|
|
22939
|
+
),
|
|
22940
|
+
_react2.default.createElement(
|
|
22941
|
+
'div',
|
|
22942
|
+
{ style: { marginTop: 12 } },
|
|
22862
22943
|
_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
22944
|
Button,
|
|
22869
|
-
{
|
|
22870
|
-
icon: 'sync',
|
|
22871
|
-
iconAlign: 'left',
|
|
22945
|
+
{ type: 'brand',
|
|
22872
22946
|
onClick: function onClick() {
|
|
22873
|
-
return
|
|
22874
|
-
},
|
|
22875
|
-
style: {
|
|
22876
|
-
marginLeft: 8,
|
|
22877
|
-
marginBottom: 2,
|
|
22878
|
-
height: 30,
|
|
22879
|
-
lineHeight: '10px'
|
|
22947
|
+
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'sandbox');
|
|
22880
22948
|
} },
|
|
22881
|
-
'
|
|
22882
|
-
)
|
|
22949
|
+
'Sandbox'
|
|
22950
|
+
),
|
|
22883
22951
|
_react2.default.createElement(
|
|
22952
|
+
Button,
|
|
22953
|
+
{ type: 'brand', style: { margin: '0 12px' },
|
|
22954
|
+
onClick: function onClick() {
|
|
22955
|
+
return actions.getOauthUrl(tenantId, accountId, step.typeGuid, 'production');
|
|
22956
|
+
} },
|
|
22957
|
+
'Production'
|
|
22958
|
+
),
|
|
22959
|
+
wizard.gettingOauthUrl && _react2.default.createElement(Spinner, null),
|
|
22960
|
+
wizard.oauthUrl && _react2.default.createElement(
|
|
22884
22961
|
'div',
|
|
22885
|
-
|
|
22886
|
-
|
|
22887
|
-
|
|
22888
|
-
'
|
|
22962
|
+
null,
|
|
22963
|
+
_react2.default.createElement('br', null),
|
|
22964
|
+
_react2.default.createElement(
|
|
22965
|
+
'div',
|
|
22889
22966
|
null,
|
|
22890
|
-
|
|
22967
|
+
_react2.default.createElement(
|
|
22968
|
+
'strong',
|
|
22969
|
+
null,
|
|
22970
|
+
_react2.default.createElement(
|
|
22971
|
+
'a',
|
|
22972
|
+
{ onClick: this.startOauth },
|
|
22973
|
+
'Click Here'
|
|
22974
|
+
)
|
|
22975
|
+
),
|
|
22976
|
+
' to authorize your ',
|
|
22977
|
+
step[step.mode + 'Provider'],
|
|
22978
|
+
' Org.'
|
|
22979
|
+
),
|
|
22980
|
+
_react2.default.createElement('br', null),
|
|
22981
|
+
_react2.default.createElement('br', null),
|
|
22982
|
+
_react2.default.createElement(
|
|
22983
|
+
'div',
|
|
22984
|
+
null,
|
|
22985
|
+
_react2.default.createElement(
|
|
22986
|
+
'span',
|
|
22987
|
+
null,
|
|
22988
|
+
'After you have completed the ',
|
|
22989
|
+
step[step.mode + 'Provider'],
|
|
22990
|
+
' authorization process: '
|
|
22991
|
+
),
|
|
22992
|
+
_react2.default.createElement(
|
|
22993
|
+
Button,
|
|
22994
|
+
{
|
|
22995
|
+
icon: 'sync',
|
|
22996
|
+
iconAlign: 'left',
|
|
22997
|
+
onClick: function onClick() {
|
|
22998
|
+
return _this2.check();
|
|
22999
|
+
},
|
|
23000
|
+
style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' } },
|
|
23001
|
+
'Test Connection'
|
|
23002
|
+
),
|
|
23003
|
+
_react2.default.createElement(
|
|
23004
|
+
'div',
|
|
23005
|
+
{ style: { display: 'inline-block', marginLeft: 12 } },
|
|
23006
|
+
wizard.envChecking && _react2.default.createElement(Spinner, null),
|
|
23007
|
+
wizard.envCheckResult && _react2.default.createElement(
|
|
23008
|
+
'span',
|
|
23009
|
+
null,
|
|
23010
|
+
wizard.envCheckResult
|
|
23011
|
+
)
|
|
23012
|
+
)
|
|
22891
23013
|
)
|
|
22892
23014
|
)
|
|
22893
23015
|
)
|
|
22894
|
-
)
|
|
22895
|
-
step.credentials ? _react2.default.createElement(
|
|
23016
|
+
) : _react2.default.createElement(
|
|
22896
23017
|
'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),
|
|
23018
|
+
null,
|
|
22906
23019
|
_react2.default.createElement(
|
|
22907
23020
|
'div',
|
|
22908
|
-
{ style: {
|
|
22909
|
-
|
|
22910
|
-
|
|
23021
|
+
{ style: { marginLeft: 16 } },
|
|
23022
|
+
_react2.default.createElement(
|
|
23023
|
+
'div',
|
|
23024
|
+
null,
|
|
23025
|
+
_react2.default.createElement(
|
|
22911
23026
|
'div',
|
|
22912
|
-
{
|
|
22913
|
-
_react2.default.createElement(_reduxForm.Field, { name: step.mode + '
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
23027
|
+
{ style: { display: 'inline-block', width: 300 } },
|
|
23028
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Endpoint', type: 'text', component: inputs.rfInput, label: 'Lingk Adapter Endpoint' })
|
|
23029
|
+
),
|
|
23030
|
+
!step.credentials ? _react2.default.createElement(
|
|
23031
|
+
Button,
|
|
23032
|
+
{
|
|
23033
|
+
icon: 'sync',
|
|
23034
|
+
iconAlign: 'left',
|
|
23035
|
+
onClick: function onClick() {
|
|
23036
|
+
return _this2.check();
|
|
23037
|
+
},
|
|
23038
|
+
style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' } },
|
|
23039
|
+
'Test Connection'
|
|
23040
|
+
) : null,
|
|
23041
|
+
_react2.default.createElement(
|
|
23042
|
+
'div',
|
|
23043
|
+
{ style: { display: 'inline-block', marginLeft: 12 } },
|
|
23044
|
+
wizard.envChecking && _react2.default.createElement(Spinner, null),
|
|
23045
|
+
wizard.envCheckResult && _react2.default.createElement(
|
|
23046
|
+
'span',
|
|
23047
|
+
null,
|
|
23048
|
+
wizard.envCheckResult
|
|
23049
|
+
)
|
|
23050
|
+
)
|
|
23051
|
+
)
|
|
22918
23052
|
),
|
|
22919
|
-
_react2.default.createElement(
|
|
22920
|
-
|
|
22921
|
-
{
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
|
|
22926
|
-
|
|
22927
|
-
|
|
22928
|
-
|
|
22929
|
-
|
|
22930
|
-
|
|
22931
|
-
|
|
22932
|
-
style: {
|
|
22933
|
-
|
|
22934
|
-
|
|
22935
|
-
|
|
22936
|
-
|
|
22937
|
-
|
|
22938
|
-
|
|
23053
|
+
step.credentials && _react2.default.createElement(
|
|
23054
|
+
'div',
|
|
23055
|
+
{ style: { marginLeft: 16 } },
|
|
23056
|
+
_react2.default.createElement('br', null),
|
|
23057
|
+
_react2.default.createElement(
|
|
23058
|
+
'label',
|
|
23059
|
+
null,
|
|
23060
|
+
step[step.mode + 'Provider'],
|
|
23061
|
+
' Credentials'
|
|
23062
|
+
),
|
|
23063
|
+
_react2.default.createElement('br', null),
|
|
23064
|
+
_react2.default.createElement(
|
|
23065
|
+
'div',
|
|
23066
|
+
{ style: { display: 'inline-block', marginLeft: 16 } },
|
|
23067
|
+
step.credentials.map(function (cred, index) {
|
|
23068
|
+
return _react2.default.createElement(
|
|
23069
|
+
'div',
|
|
23070
|
+
{ key: index, style: { marginTop: 8 } },
|
|
23071
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Credentials.' + cred.split(' ').join(''),
|
|
23072
|
+
label: step[step.mode + 'Provider'] + ' ' + cred, type: 'text',
|
|
23073
|
+
component: inputs.rfInput })
|
|
23074
|
+
);
|
|
23075
|
+
})
|
|
23076
|
+
),
|
|
23077
|
+
_react2.default.createElement(
|
|
23078
|
+
Button,
|
|
23079
|
+
{
|
|
23080
|
+
icon: 'sync',
|
|
23081
|
+
iconAlign: 'left',
|
|
23082
|
+
onClick: function onClick() {
|
|
23083
|
+
return _this2.check();
|
|
23084
|
+
},
|
|
23085
|
+
type: 'neutral',
|
|
23086
|
+
style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
|
|
23087
|
+
disabled: step.credentials.some(function (c) {
|
|
23088
|
+
var formCreds = formValues[step.mode + 'Credentials'];
|
|
23089
|
+
return !(formCreds && Object.keys(formCreds).includes(c.split(' ').join('')));
|
|
23090
|
+
}) },
|
|
23091
|
+
'Test Connection'
|
|
23092
|
+
)
|
|
22939
23093
|
)
|
|
22940
|
-
)
|
|
23094
|
+
),
|
|
22941
23095
|
wizard[step.mode + 'Metadata'] ? _react2.default.createElement(
|
|
22942
23096
|
'div',
|
|
22943
23097
|
null,
|
|
@@ -23804,15 +23958,6 @@ module.exports =
|
|
|
23804
23958
|
value: function componentWillUnmount() {
|
|
23805
23959
|
clearInterval(this.loadingInterval);
|
|
23806
23960
|
}
|
|
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
23961
|
}, {
|
|
23817
23962
|
key: 'changeScenario',
|
|
23818
23963
|
value: function changeScenario(o) {
|
|
@@ -23823,9 +23968,13 @@ module.exports =
|
|
|
23823
23968
|
|
|
23824
23969
|
change('resourceGroups', null); //clear old data
|
|
23825
23970
|
change('scenario', o.name);
|
|
23826
|
-
|
|
23827
|
-
|
|
23828
|
-
|
|
23971
|
+
if (o.name === 'scratch') {
|
|
23972
|
+
actions.gotEmptyScenario();
|
|
23973
|
+
} else {
|
|
23974
|
+
actions.callGetScenario(step.magicNumber, o.bundleGuid, o.mappingGuid, this.completedCallback);
|
|
23975
|
+
this.setState({ currentlyLoadingScenario: o.name });
|
|
23976
|
+
this.goLoading();
|
|
23977
|
+
}
|
|
23829
23978
|
}
|
|
23830
23979
|
}, {
|
|
23831
23980
|
key: 'render',
|
|
@@ -23844,6 +23993,11 @@ module.exports =
|
|
|
23844
23993
|
var Radio = inputs.Radio;
|
|
23845
23994
|
var scenario = formValues['scenario'];
|
|
23846
23995
|
var Modal = inputs.Modal;
|
|
23996
|
+
var options = [{
|
|
23997
|
+
name: 'scratch',
|
|
23998
|
+
title: 'Start From Scratch',
|
|
23999
|
+
label: 'Get started without any automatic mappings.'
|
|
24000
|
+
}].concat(step.options);
|
|
23847
24001
|
|
|
23848
24002
|
return _react2.default.createElement(
|
|
23849
24003
|
'form',
|
|
@@ -23865,7 +24019,7 @@ module.exports =
|
|
|
23865
24019
|
_react2.default.createElement(
|
|
23866
24020
|
'div',
|
|
23867
24021
|
{ style: { marginLeft: 16 } },
|
|
23868
|
-
|
|
24022
|
+
options.map(function (o, i) {
|
|
23869
24023
|
return _react2.default.createElement(
|
|
23870
24024
|
'div',
|
|
23871
24025
|
{ key: i },
|
|
@@ -24425,12 +24579,13 @@ module.exports =
|
|
|
24425
24579
|
expanded = props.expanded,
|
|
24426
24580
|
parents = props.parents;
|
|
24427
24581
|
|
|
24582
|
+
var isMapped = filteredMappings && Object.values(filteredMappings).includes(field.label);
|
|
24428
24583
|
var style = {
|
|
24429
24584
|
paddingLeft: 5,
|
|
24430
24585
|
background: selectedField && selectedField === field.label ? '#dfe0e0' : 'initial',
|
|
24431
|
-
fontWeight: selectedField === field.name ||
|
|
24586
|
+
fontWeight: selectedField === field.name || isMapped ? 'bold' : 'normal'
|
|
24432
24587
|
};
|
|
24433
|
-
if (
|
|
24588
|
+
if (isMapped) {
|
|
24434
24589
|
style['color'] = 'black';
|
|
24435
24590
|
}
|
|
24436
24591
|
|
|
@@ -24790,7 +24945,7 @@ module.exports =
|
|
|
24790
24945
|
resourceToName: destinationResource.type,
|
|
24791
24946
|
propertyToName: destinationProperty.name,
|
|
24792
24947
|
bundleIndex: index
|
|
24793
|
-
}, singleMapping.isExternalKeyMapping && { isExternalKeyMapping: true }, singleMapping.dataSourceIsDestinationEntity && { isDestinationResource: true }, singleMapping.transformations && singleMapping.transformations.length > 0 && !singleMapping.transformations.every(function (t) {
|
|
24948
|
+
}, singleMapping.isExternalKeyMapping && { isExternalKeyMapping: true }, singleMapping.dataSourceIsDestinationEntity && { isDestinationResource: true }, singleMapping.isUnique && { isUnique: true }, singleMapping.transformations && singleMapping.transformations.length > 0 && !singleMapping.transformations.every(function (t) {
|
|
24794
24949
|
return t.type === 'none';
|
|
24795
24950
|
}) && { transformations: singleMapping.transformations }));
|
|
24796
24951
|
}
|
|
@@ -25148,6 +25303,7 @@ module.exports =
|
|
|
25148
25303
|
step.magicNumber = wizard.magicDefaultNumber;
|
|
25149
25304
|
stepList.push(step);
|
|
25150
25305
|
} else if (step.type === 'environment') {
|
|
25306
|
+
step.typeGuid = wizard.typeGuid;
|
|
25151
25307
|
if (step.mode === 'source' && wizard.source.env) {
|
|
25152
25308
|
step.message = wizard.source.message;
|
|
25153
25309
|
step.providerType = wizard.source.type;
|
|
@@ -25281,14 +25437,14 @@ module.exports =
|
|
|
25281
25437
|
/***/ function(module, exports, __webpack_require__) {
|
|
25282
25438
|
|
|
25283
25439
|
__webpack_require__(255);
|
|
25284
|
-
module.exports = __webpack_require__(
|
|
25440
|
+
module.exports = __webpack_require__(8).Object.assign;
|
|
25285
25441
|
|
|
25286
25442
|
/***/ },
|
|
25287
25443
|
/* 235 */
|
|
25288
25444
|
/***/ function(module, exports, __webpack_require__) {
|
|
25289
25445
|
|
|
25290
25446
|
__webpack_require__(256);
|
|
25291
|
-
var $Object = __webpack_require__(
|
|
25447
|
+
var $Object = __webpack_require__(8).Object;
|
|
25292
25448
|
module.exports = function defineProperty(it, key, desc){
|
|
25293
25449
|
return $Object.defineProperty(it, key, desc);
|
|
25294
25450
|
};
|
|
@@ -25374,7 +25530,7 @@ module.exports =
|
|
|
25374
25530
|
|
|
25375
25531
|
var $export = __webpack_require__(23);
|
|
25376
25532
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
25377
|
-
$export($export.S + $export.F * !__webpack_require__(
|
|
25533
|
+
$export($export.S + $export.F * !__webpack_require__(9), 'Object', {defineProperty: __webpack_require__(18).f});
|
|
25378
25534
|
|
|
25379
25535
|
/***/ },
|
|
25380
25536
|
/* 257 */,
|