@lingk/sync 0.0.81 → 0.0.82
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.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/main.js +26 -23
- package/build/main.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -17166,7 +17166,7 @@ module.exports =
|
|
|
17166
17166
|
};
|
|
17167
17167
|
}
|
|
17168
17168
|
|
|
17169
|
-
function callGenerateRecipe(tenantId, appId, typeGuid, title, piGuid, mappingGuid, destinationMetadata) {
|
|
17169
|
+
function callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, piGuid, mappingGuid, destinationMetadata) {
|
|
17170
17170
|
return function (dispatch, getState, api) {
|
|
17171
17171
|
var _getState7 = getState(),
|
|
17172
17172
|
config = _getState7.config;
|
|
@@ -17176,7 +17176,7 @@ module.exports =
|
|
|
17176
17176
|
return api.post(tenantId + '/' + appId + '/productizedintegrations/' + piGuid + '/generate', {
|
|
17177
17177
|
endpoint: TRANS_API_URL,
|
|
17178
17178
|
data: {
|
|
17179
|
-
"integrationTypeId":
|
|
17179
|
+
"integrationTypeId": typeId,
|
|
17180
17180
|
"name": title,
|
|
17181
17181
|
"integrationTypeGuid": typeGuid,
|
|
17182
17182
|
"schemaMappingGuid": mappingGuid,
|
|
@@ -17188,7 +17188,7 @@ module.exports =
|
|
|
17188
17188
|
};
|
|
17189
17189
|
}
|
|
17190
17190
|
|
|
17191
|
-
function submitWizardData(tenantId, appId, bundles, mappings, configuration, title, deployment, typeGuid, onGenerate, onFinish, destinationMetadata) {
|
|
17191
|
+
function submitWizardData(tenantId, appId, bundles, mappings, configuration, title, deployment, typeId, typeGuid, onGenerate, onFinish, destinationMetadata) {
|
|
17192
17192
|
return function (dispatch) {
|
|
17193
17193
|
|
|
17194
17194
|
/*dispatch(createLingkExternalIds(bundles, destinationMetadata))
|
|
@@ -17203,7 +17203,7 @@ module.exports =
|
|
|
17203
17203
|
return dispatch(callPostProductizedIntegration(tenantId, appId, map.schemaMappingGuid, r[0].bundlePackGuid, configuration, title, typeGuid));
|
|
17204
17204
|
}).then(function (pi) {
|
|
17205
17205
|
if (map.mappings && map.mappings.length > 0 && deployment) {
|
|
17206
|
-
dispatch(callGenerateRecipe(tenantId, appId, typeGuid, title, pi.productizedIntegrationGuid, map.schemaMappingGuid, destinationMetadata)).then(function (generatedRecipe) {
|
|
17206
|
+
dispatch(callGenerateRecipe(tenantId, appId, typeId, typeGuid, title, pi.productizedIntegrationGuid, map.schemaMappingGuid, destinationMetadata)).then(function (generatedRecipe) {
|
|
17207
17207
|
onGenerate();
|
|
17208
17208
|
if (deployment) {
|
|
17209
17209
|
if (deployment.type === 'once') {
|
|
@@ -21818,12 +21818,13 @@ module.exports =
|
|
|
21818
21818
|
onGenerate = _props2.onGenerate,
|
|
21819
21819
|
onFinish = _props2.onFinish,
|
|
21820
21820
|
onSubmit = _props2.onSubmit,
|
|
21821
|
+
typeId = _props2.typeId,
|
|
21821
21822
|
typeGuid = _props2.typeGuid,
|
|
21822
21823
|
accountId = _props2.accountId,
|
|
21823
21824
|
tenantId = _props2.tenantId;
|
|
21824
21825
|
|
|
21825
21826
|
if (true) {
|
|
21826
|
-
actions.submitWizardData(tenantId, accountId, bundles, mappings, configuration, formValues.title || 'Banner for Salesforce', formValues.deployment || null, typeGuid, onGenerate, onFinish, this.props.wizard.destinationMetadata || []);
|
|
21827
|
+
actions.submitWizardData(tenantId, accountId, bundles, mappings, configuration, formValues.title || 'Banner for Salesforce', formValues.deployment || null, typeId, typeGuid, onGenerate, onFinish, this.props.wizard.destinationMetadata || []);
|
|
21827
21828
|
onSubmit({ complete: formValues.hasOwnProperty('deployment') });
|
|
21828
21829
|
}
|
|
21829
21830
|
actions.setWizardLoaded(false); // so wizard reloads config on 'restart'
|
|
@@ -22082,20 +22083,20 @@ module.exports =
|
|
|
22082
22083
|
var step = this.allSteps[i];
|
|
22083
22084
|
step.sourceProvider = wizard.source.name;
|
|
22084
22085
|
step.destinationProvider = wizard.destination.name;
|
|
22085
|
-
if (step.type === 'name' && wizard.nameStep) {
|
|
22086
|
-
step.name = wizard.title
|
|
22087
|
-
stepList.push(step)
|
|
22088
|
-
|
|
22089
|
-
|
|
22090
|
-
|
|
22091
|
-
|
|
22092
|
-
|
|
22093
|
-
|
|
22094
|
-
|
|
22095
|
-
|
|
22096
|
-
|
|
22097
|
-
|
|
22098
|
-
} else if (step.type === 'scenario') {
|
|
22086
|
+
/*if (step.type === 'name' && wizard.nameStep) {
|
|
22087
|
+
step.name = wizard.title
|
|
22088
|
+
stepList.push(step)
|
|
22089
|
+
} else if (step.type === 'phase' && wizard.phaseStep) {
|
|
22090
|
+
stepList.push(step)
|
|
22091
|
+
} else if (step.type === 'custom') {
|
|
22092
|
+
const customStep = providerData.providerTypes[wizard.destination.type].customStep
|
|
22093
|
+
if (customStep && wizard[step.mode].customStep) {
|
|
22094
|
+
step.type = customStep.type
|
|
22095
|
+
step.title = customStep.title
|
|
22096
|
+
step.options = customStep.options
|
|
22097
|
+
stepList.push(step)
|
|
22098
|
+
}
|
|
22099
|
+
} else */if (step.type === 'scenario') {
|
|
22099
22100
|
step.options = wizard.scenarios;
|
|
22100
22101
|
step.magicNumber = wizard.magicDefaultNumber;
|
|
22101
22102
|
stepList.push(step);
|
|
@@ -22119,9 +22120,9 @@ module.exports =
|
|
|
22119
22120
|
} else if (step.type === 'map') {
|
|
22120
22121
|
step.customizable = wizard.destination.customizable;
|
|
22121
22122
|
stepList.push(step);
|
|
22122
|
-
|
|
22123
|
-
|
|
22124
|
-
|
|
22123
|
+
/*} else if (step.type === 'preview') {
|
|
22124
|
+
step.dummyData = wizard.dummyData || null
|
|
22125
|
+
stepList.push(step)*/
|
|
22125
22126
|
} else if (step.type === 'deploy') {
|
|
22126
22127
|
step.options = wizard.deployment;
|
|
22127
22128
|
stepList.push(step);
|
|
@@ -22160,7 +22161,9 @@ module.exports =
|
|
|
22160
22161
|
_react2.default.createElement(_wizardForm2.default, Object.assign({
|
|
22161
22162
|
steps: steps,
|
|
22162
22163
|
providers: providers,
|
|
22163
|
-
metadataEndpoints: metadataEndpoints
|
|
22164
|
+
metadataEndpoints: metadataEndpoints,
|
|
22165
|
+
typdId: this.props.wizardConfig.typeId,
|
|
22166
|
+
typeGuid: this.props.wizardConfig.typeGuid
|
|
22164
22167
|
}, this.props))
|
|
22165
22168
|
);
|
|
22166
22169
|
}
|