@lingk/sync 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lightning.js +32 -22
- package/build/lightning.js.map +1 -1
- package/build/lingk.js +32 -22
- package/build/lingk.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/lightning.js
CHANGED
|
@@ -237,8 +237,10 @@ module.exports =
|
|
|
237
237
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
238
238
|
|
|
239
239
|
var axios = __webpack_require__(26);
|
|
240
|
-
function testAjax() {
|
|
240
|
+
function testAjax(typeGuid, accountId, tenantId) {
|
|
241
241
|
return function (dispatch, getState, api) {
|
|
242
|
+
console.log(typeGuid, accountId, tenantId);
|
|
243
|
+
|
|
242
244
|
var _getState = getState(),
|
|
243
245
|
config = _getState.config;
|
|
244
246
|
|
|
@@ -406,7 +408,7 @@ module.exports =
|
|
|
406
408
|
};
|
|
407
409
|
}
|
|
408
410
|
|
|
409
|
-
function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title) {
|
|
411
|
+
function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title, typeGuid) {
|
|
410
412
|
return function (dispatch, getState, api) {
|
|
411
413
|
var _getState8 = getState(),
|
|
412
414
|
config = _getState8.config;
|
|
@@ -415,7 +417,7 @@ module.exports =
|
|
|
415
417
|
|
|
416
418
|
var data = {
|
|
417
419
|
schemaMappingGuid: schemaMappingGuid,
|
|
418
|
-
integrationTypeGuid:
|
|
420
|
+
integrationTypeGuid: typeGuid,
|
|
419
421
|
name: title,
|
|
420
422
|
configuration: configuration
|
|
421
423
|
};
|
|
@@ -462,11 +464,11 @@ module.exports =
|
|
|
462
464
|
};
|
|
463
465
|
}
|
|
464
466
|
|
|
465
|
-
function submitWizardData(tenantId, appId, sourceSchema, destinationSchema, mapping, configuration, title) {
|
|
467
|
+
function submitWizardData(tenantId, appId, sourceSchema, destinationSchema, mapping, configuration, title, typeGuid) {
|
|
466
468
|
return function (dispatch) {
|
|
467
469
|
return Promise.all([dispatch(callPostSchema(tenantId, appId, sourceSchema)), dispatch(callPostSchema(tenantId, appId, destinationSchema))]).then(function (guids) {
|
|
468
470
|
return dispatch(callPostMapping(tenantId, appId, guids[0], guids[1], mapping)).then(function (res) {
|
|
469
|
-
dispatch(callPostProductizedIntegration(tenantId, appId, res.schemaMappingGuid, configuration, title)).then(function (pi) {
|
|
471
|
+
dispatch(callPostProductizedIntegration(tenantId, appId, res.schemaMappingGuid, configuration, title, typeGuid)).then(function (pi) {
|
|
470
472
|
dispatch(callGenerateIntegration(tenantId, appId, pi.productizedIntegrationGuid));
|
|
471
473
|
});
|
|
472
474
|
});
|
|
@@ -3141,7 +3143,7 @@ module.exports =
|
|
|
3141
3143
|
_react2.default.createElement('br', null),
|
|
3142
3144
|
_react2.default.createElement(
|
|
3143
3145
|
Button,
|
|
3144
|
-
{ type: 'brand',
|
|
3146
|
+
{ type: 'brand', onClick: this.preview },
|
|
3145
3147
|
'Preview Integration'
|
|
3146
3148
|
),
|
|
3147
3149
|
this.state.previewing ? _react2.default.createElement(
|
|
@@ -3957,11 +3959,19 @@ module.exports =
|
|
|
3957
3959
|
//----------------------------------
|
|
3958
3960
|
// Post
|
|
3959
3961
|
//----------------------------------
|
|
3962
|
+
var _props = this.props,
|
|
3963
|
+
actions = _props.actions,
|
|
3964
|
+
redux = _props.redux,
|
|
3965
|
+
onFinish = _props.onFinish,
|
|
3966
|
+
typeGuid = _props.typeGuid,
|
|
3967
|
+
accountId = _props.accountId,
|
|
3968
|
+
tenantId = _props.tenantId;
|
|
3969
|
+
|
|
3960
3970
|
var appId = values.existingAccount; // need to add "new account" here as well
|
|
3961
3971
|
if (parseInt(1, 10) === 6) {
|
|
3962
|
-
|
|
3972
|
+
actions.submitWizardData(redux.main.tenantInfo.TenantId, appId, schemas.source, schemas.destination, mapping, configuration, config.title, typeGuid);
|
|
3963
3973
|
}
|
|
3964
|
-
|
|
3974
|
+
onFinish();
|
|
3965
3975
|
}
|
|
3966
3976
|
}, {
|
|
3967
3977
|
key: 'nextPage',
|
|
@@ -3989,12 +3999,12 @@ module.exports =
|
|
|
3989
3999
|
var _this3 = this;
|
|
3990
4000
|
|
|
3991
4001
|
var currentPage = this.state.currentPage;
|
|
3992
|
-
var
|
|
3993
|
-
steps =
|
|
3994
|
-
actions =
|
|
3995
|
-
wizard =
|
|
3996
|
-
formValues =
|
|
3997
|
-
inputs =
|
|
4002
|
+
var _props2 = this.props,
|
|
4003
|
+
steps = _props2.steps,
|
|
4004
|
+
actions = _props2.actions,
|
|
4005
|
+
wizard = _props2.wizard,
|
|
4006
|
+
formValues = _props2.formValues,
|
|
4007
|
+
inputs = _props2.inputs;
|
|
3998
4008
|
var Sidebar = inputs.Sidebar;
|
|
3999
4009
|
|
|
4000
4010
|
return _react2.default.createElement(
|
|
@@ -4116,13 +4126,13 @@ module.exports =
|
|
|
4116
4126
|
|
|
4117
4127
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
4118
4128
|
|
|
4119
|
-
var
|
|
4120
|
-
_inherits(
|
|
4129
|
+
var LingkSync = function (_Component) {
|
|
4130
|
+
_inherits(LingkSync, _Component);
|
|
4121
4131
|
|
|
4122
|
-
function
|
|
4123
|
-
_classCallCheck(this,
|
|
4132
|
+
function LingkSync() {
|
|
4133
|
+
_classCallCheck(this, LingkSync);
|
|
4124
4134
|
|
|
4125
|
-
var _this = _possibleConstructorReturn(this, (
|
|
4135
|
+
var _this = _possibleConstructorReturn(this, (LingkSync.__proto__ || Object.getPrototypeOf(LingkSync)).call(this));
|
|
4126
4136
|
|
|
4127
4137
|
_this.state = {
|
|
4128
4138
|
steps: null,
|
|
@@ -4176,7 +4186,7 @@ module.exports =
|
|
|
4176
4186
|
return _this;
|
|
4177
4187
|
}
|
|
4178
4188
|
|
|
4179
|
-
_createClass(
|
|
4189
|
+
_createClass(LingkSync, [{
|
|
4180
4190
|
key: 'componentDidMount',
|
|
4181
4191
|
value: function componentDidMount() {
|
|
4182
4192
|
var wizard = example.wizards[1];
|
|
@@ -4261,7 +4271,7 @@ module.exports =
|
|
|
4261
4271
|
}
|
|
4262
4272
|
}]);
|
|
4263
4273
|
|
|
4264
|
-
return
|
|
4274
|
+
return LingkSync;
|
|
4265
4275
|
}(_react.Component);
|
|
4266
4276
|
|
|
4267
4277
|
function mapStateToProps(state, props) {
|
|
@@ -4276,7 +4286,7 @@ module.exports =
|
|
|
4276
4286
|
};
|
|
4277
4287
|
}
|
|
4278
4288
|
|
|
4279
|
-
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(
|
|
4289
|
+
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(LingkSync);
|
|
4280
4290
|
|
|
4281
4291
|
/***/ },
|
|
4282
4292
|
/* 25 */
|