@lingk/sync 1.0.90 → 1.0.92

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap 1c6a6a75940a0403cc45?11a7*******","webpack:///./src/lib/wizard/stepTypes/utils/saveData.js?b963"],"names":["saveData","resourceGroups","sP","tP","sM","tM","isReverse","sourceProvider","targetProvider","sourceMetadata","targetMetadata","bundles","mappings","forEach","group","index","destinationResource","find","rsc","name","type","resourceLabel","provider","toLowerCase","customExternalKeys","lingkSourceKey","sourceKeys","sourceKeysObjects","lingkSourceKeyObject","sourceKeysParents","lingkSourceKeyParents","destinationKeys","destinationKeysParents","dk","i","nestedDestinationKey","findNestedProp","property","push","JSON","stringify","parentsArray","sk","sourceKeyResourceProvider","resources","r","dataSourceMetadata","sourceResource","metaRsc","nestedSourceKey","singleMapping","dataSourceIsDestinationEntity","resourceFromName","nestedSourceProp","propertyFromName","propertyFromParents","nestedDestinationProp","propertyToName","propertyToParents","transformations","length","trans","splice","s","args","split","transConcatSourceResourceProvider","transConcatSourceMetadata","transConcatSourceResource","nestedFields","field","pop","transSourceApiNames","p","concat","resourceFromNameAndProvider","resourceFromLabel","propertyFromLabel","__property","resourceToName","resourceToLabel","propertyToLabel","bundleIndex","isExternalKeyMapping","isDestinationResource","isUnique","every","t","map","rscIndex","nestedJoinKey","joinKeyName","joinKeyResource","joinKeyIsParameter","joinKeyParents","nestedPrimaryKey","primaryKeyResource","primaryResourceProvider","primaryKeyIsParameter","parentNameAndProvider","primaryResourceProviderLast_Index","lastIndexOf","substr","primaryResourceName","primaryDataSourceMetadata","primarySourceResource","primaryKeyName","primaryKeyParents","resourceName","resourceNameAndProvider","joinType","parameterFilters","filter","pf","val","level","prop","parents","nestedRsc","tempParentsArray","properties","label","pk","pkProp","object","theProp"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,u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OxG,IAA7B;AACAmG,uBAAYK,OAAOC,MAAnB;AACH;AACF,QAPD;AAQAnF,sBAAe8E,gBAAf;AACA,WAAGD,UAAUE,UAAV,IAAwBF,UAAUE,UAAV,CAAqBvG,IAArB,CAA0B;AAAA,gBAAKwD,EAAEgD,KAAF,KAAUL,IAAf;AAAA,QAA1B,CAA3B,EAA0E;AACtE,aAAMS,UAAUP,UAAUE,UAAV,CAAqBvG,IAArB,CAA0B;AAAA,kBAAKwD,EAAEgD,KAAF,KAAUL,IAAf;AAAA,UAA1B,CAAhB;AACA/E,oBAAWwF,QAAQ1G,IAAnB;AACA2D,sBAAa+C,QAAQJ,KAArB;AACH;AAhB4B;AAiB9B,IAjBD,MAiBO;AACL,SAAGL,SAAO,mBAAV,EAA+B;AAC7B/E,kBAAS,sBAAT;AACAyC,oBAAasC,IAAb;AACD,MAHD,MAGO;AACL,WAAMS,UAAUT,QAAQlG,GAAR,IAAeA,IAAIsG,UAAnB,IAAiCtG,IAAIsG,UAAJ,CAAevG,IAAf,CAAoB;AAAA,gBAAKwD,EAAEgD,KAAF,KAAUL,IAAf;AAAA,QAApB,CAAjD;AACA/E,kBAAWwF,QAAQ1G,IAAnB;AACA2D,oBAAa+C,QAAQJ,KAArB;AACD;AACF;AACD,UAAO,EAACpF,kBAAD,EAAUI,0BAAV,EAAuBqC,sBAAvB,EAAP;AACD;;mBAEc9E,Q","file":"saveData.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 1c6a6a75940a0403cc45","/**************************\n\nSaves data from the Redux-Form and converts it to apiNames, which are used \nto generate the recipe and are stored in our DB.\n\nRuns when user click \"submit\"\n\nIf a new dropdown with fields is added to the UI, it must be added to this function as well\n\nsP = sourceProvider\ntM = targetMetadata\n**************************/\n\nfunction saveData(resourceGroups, sP, tP, sM, tM, isReverse){\n\n // switch providers and metadatas if the wizard is reverse\n let sourceProvider = sP\n let targetProvider = tP\n let sourceMetadata = sM\n let targetMetadata = tM\n if(isReverse){\n sourceProvider = tP\n targetProvider = sP\n sourceMetadata = tM\n targetMetadata = sM\n }\n\n const bundles = resourceGroups || []\n let mappings = []\n\n bundles && bundles.forEach((group, index)=>{\n\n // first get target resource\n const destinationResource = targetMetadata ? \n targetMetadata.find(rsc => rsc.name===group.name) : \n group\n group.name = destinationResource.type\n group.resourceLabel = destinationResource.name\n group.provider = targetProvider.toLowerCase()\n /*if(destinationResource.recordTypeId){\n group.recordTypeId = destinationResource.recordTypeId\n }*/\n\n // destination Keys (for de-duplication in the Connect modal)\n if(!group.customExternalKeys && group.lingkSourceKey){\n group.sourceKeys=[group.lingkSourceKey]\n group.sourceKeysObjects=[group.lingkSourceKeyObject]\n group.sourceKeysParents=[group.lingkSourceKeyParents]\n group.destinationKeys=['Lingk_External_Id__c']\n } else {\n const destinationKeys = []\n const destinationKeysParents = []\n if(group.destinationKeys){\n group.destinationKeys.forEach((dk,i)=>{\n /*if(destinationResource && destinationResource.properties && \n destinationResource.properties.find(prop => prop.label===dk)){\n destinationKeys.push(\n destinationResource.properties.find(prop => prop.label===dk).name\n )\n }*/\n const nestedDestinationKey = findNestedProp(\n dk, group.destinationKeysParents && group.destinationKeysParents[i], destinationResource\n )\n if(nestedDestinationKey.property){\n destinationKeys.push(nestedDestinationKey.property)\n destinationKeysParents.push(JSON.stringify(nestedDestinationKey.parentsArray))\n }\n })\n }\n group.destinationKeys = destinationKeys\n group.destinationKeysParents = destinationKeysParents\n }\n\n // get resource + name of sourceKeys\n const sourceKeys = []\n const sourceKeysObjects = []\n const sourceKeysParents = []\n group.sourceKeys && group.sourceKeys.forEach((sk,i)=>{\n const sourceKeyResourceProvider = group.resources.find(r => r.name===group.sourceKeysObjects[i]).provider\n const dataSourceMetadata = sourceKeyResourceProvider.toLowerCase()===\n targetProvider.toLowerCase() ? targetMetadata : sourceMetadata\n const sourceResource = dataSourceMetadata.find(metaRsc => metaRsc.name===group.sourceKeysObjects[i])\n \n if(sourceResource){\n const nestedSourceKey = findNestedProp(\n sk, group.sourceKeysParents && group.sourceKeysParents[i], sourceResource\n )\n if(nestedSourceKey.property){\n sourceKeys.push(nestedSourceKey.property)\n sourceKeysParents.push(JSON.stringify(nestedSourceKey.parentsArray))\n sourceKeysObjects.push(sourceResource.type)\n }\n }\n })\n group.sourceKeys = sourceKeys\n group.sourceKeysObjects = sourceKeysObjects\n group.sourceKeysParents = sourceKeysParents\n\n\n\n // MAPPINGS\n if(group.mappings){\n group.mappings.forEach((singleMapping)=>{\n // get mapping source resource (check both metadatas)\n let dataSourceMetadata = singleMapping.dataSourceIsDestinationEntity ?\n targetMetadata : sourceMetadata\n if(isReverse){\n dataSourceMetadata = singleMapping.dataSourceIsDestinationEntity ?\n sourceMetadata : targetMetadata\n }\n const sourceResource = dataSourceMetadata.find(rsc => rsc.name===singleMapping.resourceFromName)\n // get mapping source property\n const nestedSourceProp = findNestedProp(\n singleMapping.propertyFromName, singleMapping.propertyFromParents, sourceResource\n )\n\n //get mapping destination property\n const nestedDestinationProp = findNestedProp(\n singleMapping.propertyToName, singleMapping.propertyToParents, destinationResource\n )\n\n //dont save transformation that are just \"none\"\n if(singleMapping.transformations && singleMapping.transformations.length > 0){\n singleMapping.transformations.forEach((trans, index)=>{\n if(trans.type==='none'){\n singleMapping.transformations.splice(index,1)\n }\n if(trans.type==='concat'){\n const s = trans.args[1].split('->')\n \n const transConcatSourceResourceProvider = group.resources.find(r => \n r.name===s[0]).provider.toLowerCase()\n const transConcatSourceMetadata = transConcatSourceResourceProvider===\n targetProvider.toLowerCase() ? targetMetadata : sourceMetadata\n const transConcatSourceResource = transConcatSourceMetadata.find(rsc => \n rsc.name===s[0])\n\n const nestedFields = s[1].split('.')\n const field = nestedFields[nestedFields.length-1]\n nestedFields.pop()\n const transSourceApiNames = findNestedProp(\n field, nestedFields, transConcatSourceResource\n )\n var r = `${transConcatSourceResourceProvider}->${transConcatSourceResource.type}->`\n transSourceApiNames.parentsArray.forEach(p=>r+=`${p}.`)\n r += transSourceApiNames.property\n trans.args[1] = r\n }\n })\n }\n\n if(sourceResource && nestedSourceProp.property && \n destinationResource && nestedDestinationProp.property) {\n mappings = mappings.concat({ // add to mappings obj\n resourceFromNameAndProvider: singleMapping.dataSourceIsDestinationEntity ?\n `${sourceResource.type}_${targetProvider.toLowerCase()}` : \n `${sourceResource.type}_${sourceProvider.toLowerCase()}`,\n resourceFromName: sourceResource.type,\n resourceFromLabel: sourceResource.name,\n propertyFromName: nestedSourceProp.property,\n propertyFromLabel: nestedSourceProp.__property,\n ...(nestedSourceProp.parentsArray && nestedSourceProp.parentsArray.length>0) && \n {propertyFromParents: nestedSourceProp.parentsArray},\n resourceToName: destinationResource.type,\n resourceToLabel: destinationResource.name,\n propertyToName: nestedDestinationProp.property,\n propertyToLabel: nestedDestinationProp.__property,\n ...(nestedDestinationProp.parentsArray && \n nestedDestinationProp.parentsArray.length>0) && \n {propertyToParents: nestedDestinationProp.parentsArray},\n bundleIndex: index,\n ...singleMapping.isExternalKeyMapping && {isExternalKeyMapping: true},\n ...singleMapping.dataSourceIsDestinationEntity && {isDestinationResource: true},\n ...singleMapping.isUnique && {isUnique: true},\n ...singleMapping.transformations && singleMapping.transformations.length > 0 &&\n !singleMapping.transformations.every(t=>t.type==='none') &&\n {transformations: singleMapping.transformations}\n })\n }\n })\n delete group.mappings // remove the mapping obj from a resourceGroup\n if (group.lingkSourceKey) delete group.lingkSourceKey\n if (group.lingkSourceKeyObject) delete group.lingkSourceKeyObject\n if (group.lingkSourceKeyParents) {\n delete group.lingkSourceKeyParents\n delete group.destinationKeysParents\n }\n }\n\n // BUNDLES\n if(group.resources){\n group.resources = group.resources.map((rsc, rscIndex)=>{\n //get resource source (check both metadatas)\n const dataSourceMetadata = rsc.provider.toLowerCase()===targetProvider.toLowerCase() ? targetMetadata : sourceMetadata\n const sourceResource = dataSourceMetadata.find(metaRsc => metaRsc.name===rsc.name)\n // via parameter, dont change because its already \"type\"\n let nestedJoinKey = {property: rsc.joinKeyName}\n let joinKeyResource = rsc.joinKeyResource\n let joinKeyIsParameter = false\n if(sourceResource && rsc.joinKeyResource){\n // is from a same resource (not via parameters)\n if(sourceResource.name===rsc.joinKeyResource) {\n nestedJoinKey = findNestedProp(\n rsc.joinKeyName, rsc.joinKeyParents, sourceResource\n )\n joinKeyResource = sourceResource.type\n } else {\n joinKeyIsParameter = true\n }\n }\n\n //make endpoint\n /*const suffix = sourceResource && sourceResource.endpointSuffix\n if(suffix){\n endpoints[`url_${sourceResource.type}_${sourceProvider}`] = \n `${sourceEndpoint}${suffix[0]==='/'?'':'/'}${suffix}`\n }*/\n\n //get first resource in bundle (for primaryKeyName)\n let nestedPrimaryKey = {}\n let primaryKeyResource = null\n let primaryResourceProvider = null\n let primaryKeyIsParameter = false\n if(rsc.parentNameAndProvider){\n const primaryResourceProviderLast_Index = rsc.parentNameAndProvider.lastIndexOf('_')\n primaryResourceProvider = rsc.parentNameAndProvider\n .substr(primaryResourceProviderLast_Index+1, rsc.parentNameAndProvider.length)\n const primaryResourceName = rsc.parentNameAndProvider\n .substr(0, primaryResourceProviderLast_Index)\n const primaryDataSourceMetadata = primaryResourceProvider.toLowerCase()===\n targetProvider.toLowerCase() ? targetMetadata : sourceMetadata\n const primarySourceResource = primaryDataSourceMetadata.find(metaRsc => metaRsc.name===rsc.primaryKeyResource)\n\n if(primarySourceResource){\n if(primaryResourceName===rsc.primaryKeyResource){\n nestedPrimaryKey = findNestedProp(\n rsc.primaryKeyName, rsc.primaryKeyParents, primarySourceResource\n )\n primaryKeyResource = primarySourceResource.type\n } else {\n // is from a different resource (parameter)\n primaryKeyIsParameter = true\n nestedPrimaryKey = {property: rsc.primaryKeyName}\n primaryKeyResource = rsc.primaryKeyResource\n }\n }\n }\n\n if(sourceResource){\n return {\n resourceName: sourceResource.type,\n resourceLabel: sourceResource.name,\n resourceNameAndProvider: sourceResource.type + '_' + rsc.provider.toLowerCase(),\n joinKeyName: nestedJoinKey.property,\n joinKeyResource,\n joinKeyParents: nestedJoinKey.parentsArray && nestedJoinKey.parentsArray.length>0 ? \n nestedJoinKey.parentsArray : [],\n joinKeyIsParameter,\n primaryKeyName: nestedPrimaryKey.property,\n primaryKeyResource,\n primaryKeyParents : nestedPrimaryKey.parentsArray && nestedPrimaryKey.parentsArray.length>0 ? nestedPrimaryKey.parentsArray : [],\n primaryKeyIsParameter,\n provider: rsc.provider.toLowerCase() + 'Reader',\n joinType: rsc.joinType,\n parameterFilters: rsc.parameterFilters ? rsc.parameterFilters.filter(pf=>pf.val) : [],\n level: rsc.level || (rscIndex===0 ? 0 : 1),\n // THIS ONE IS ACTUALLY PARENT LABEL AND PROVIDER!\n // So we know what Account to join to (if they have the same Name)\n parentNameAndProvider: rsc.parentNameAndProvider\n }\n } else return null\n })\n }\n \n })//end for each bundle\n return {bundles, mappings}\n}\n\nfunction findNestedProp(prop, parents, rsc) {\n let property = ''\n let __property = ''\n let parentsArray = []\n if(parents && parents.length>0){\n let nestedRsc = rsc\n const tempParentsArray = []\n parents.forEach(pk=>{\n if(nestedRsc.properties && \n nestedRsc.properties.find(p => p.label===pk)){\n const pkProp = nestedRsc.properties.find(p => p.label===pk)\n tempParentsArray.push(pkProp.name)\n nestedRsc = pkProp.object\n }\n })\n parentsArray = tempParentsArray\n if(nestedRsc.properties && nestedRsc.properties.find(p => p.label===prop)){\n const theProp = nestedRsc.properties.find(p => p.label===prop)\n property = theProp.name\n __property = theProp.label\n }\n } else {\n if(prop==='Lingk External Id') {\n property='Lingk_External_Id__c'\n __property = prop\n } else {\n const theProp = prop && rsc && rsc.properties && rsc.properties.find(p => p.label===prop)\n property = theProp.name\n __property = theProp.label\n }\n }\n return {property,parentsArray,__property}\n}\n\nexport default saveData\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/wizard/stepTypes/utils/saveData.js"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap a232b6fa7b29e3ac9d8c?db50*******","webpack:///./src/lib/wizard/stepTypes/utils/saveData.js?b963"],"names":["saveData","resourceGroups","sP","tP","sM","tM","isReverse","sourceProvider","targetProvider","sourceMetadata","targetMetadata","bundles","mappings","forEach","group","index","destinationResource","find","rsc","name","type","resourceLabel","provider","toLowerCase","customExternalKeys","lingkSourceKey","sourceKeys","sourceKeysObjects","lingkSourceKeyObject","sourceKeysParents","lingkSourceKeyParents","destinationKeys","destinationKeysParents","dk","i","nestedDestinationKey","findNestedProp","property","push","JSON","stringify","parentsArray","sk","sourceKeyResourceProvider","resources","r","dataSourceMetadata","sourceResource","metaRsc","nestedSourceKey","singleMapping","dataSourceIsDestinationEntity","resourceFromName","nestedSourceProp","propertyFromName","propertyFromParents","nestedDestinationProp","propertyToName","propertyToParents","transformations","length","trans","splice","s","args","split","transConcatSourceResourceProvider","transConcatSourceMetadata","transConcatSourceResource","nestedFields","field","pop","transSourceApiNames","p","concat","resourceFromNameAndProvider","resourceFromLabel","propertyFromLabel","__property","resourceToName","resourceToLabel","propertyToLabel","bundleIndex","isExternalKeyMapping","isDestinationResource","isUnique","every","t","map","rscIndex","nestedJoinKey","joinKeyName","joinKeyResource","joinKeyIsParameter","joinKeyParents","nestedPrimaryKey","primaryKeyResource","primaryResourceProvider","primaryKeyIsParameter","parentNameAndProvider","primaryResourceProviderLast_Index","lastIndexOf","substr","primaryResourceName","primaryDataSourceMetadata","primarySourceResource","primaryKeyName","primaryKeyParents","resourceName","resourceNameAndProvider","joinType","parameterFilters","filter","pf","val","level","prop","parents","nestedRsc","tempParentsArray","properties","label","pk","pkProp","object","theProp"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;ACtCA;;;;;;;;;;;;;AAaA,UAASA,QAAT,CAAkBC,cAAlB,EAAkCC,EAAlC,EAAsCC,EAAtC,EAA0CC,EAA1C,EAA8CC,EAA9C,EAAkDC,SAAlD,EAA4D;;AAE1D;AACA,OAAIC,iBAAiBL,EAArB;AACA,OAAIM,iBAAiBL,EAArB;AACA,OAAIM,iBAAiBL,EAArB;AACA,OAAIM,iBAAiBL,EAArB;AACA,OAAGC,SAAH,EAAa;AACXC,sBAAiBJ,EAAjB;AACAK,sBAAiBN,EAAjB;AACAO,sBAAiBJ,EAAjB;AACAK,sBAAiBN,EAAjB;AACD;;AAED,OAAMO,UAAUV,kBAAkB,EAAlC;AACA,OAAIW,WAAW,EAAf;;AAEAD,cAAWA,QAAQE,OAAR,CAAgB,UAACC,KAAD,EAAQC,KAAR,EAAgB;;AAEzC;AACA,SAAMC,sBAAsBN,iBACpBA,eAAeO,IAAf,CAAoB;AAAA,cAAOC,IAAIC,IAAJ,KAAWL,MAAMK,IAAxB;AAAA,MAApB,CADoB,GAEpBL,KAFR;AAGAA,WAAMK,IAAN,GAAaH,oBAAoBI,IAAjC;AACAN,WAAMO,aAAN,GAAsBL,oBAAoBG,IAA1C;AACAL,WAAMQ,QAAN,GAAiBd,eAAee,WAAf,EAAj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R,CAAgB,cAAI;AAClB,aAAGyG,UAAUE,UAAV,IACDF,UAAUE,UAAV,CAAqBvG,IAArB,CAA0B;AAAA,kBAAKwD,EAAEgD,KAAF,KAAUC,EAAf;AAAA,UAA1B,CADF,EAC+C;AAC3C,eAAMC,SAASL,UAAUE,UAAV,CAAqBvG,IAArB,CAA0B;AAAA,oBAAKwD,EAAEgD,KAAF,KAAUC,EAAf;AAAA,YAA1B,CAAf;AACAH,4BAAiBjF,IAAjB,CAAsBqF,OAAOxG,IAA7B;AACAmG,uBAAYK,OAAOC,MAAnB;AACH;AACF,QAPD;AAQAnF,sBAAe8E,gBAAf;AACA,WAAGD,UAAUE,UAAV,IAAwBF,UAAUE,UAAV,CAAqBvG,IAArB,CAA0B;AAAA,gBAAKwD,EAAEgD,KAAF,KAAUL,IAAf;AAAA,QAA1B,CAA3B,EAA0E;AACtE,aAAMS,UAAUP,UAAUE,UAAV,CAAqBvG,IAArB,CAA0B;AAAA,kBAAKwD,EAAEgD,KAAF,KAAUL,IAAf;AAAA,UAA1B,CAAhB;AACA/E,oBAAWwF,QAAQ1G,IAAnB;AACA2D,sBAAa+C,QAAQJ,KAArB;AACH;AAhB4B;AAiB9B,IAjBD,MAiBO;AACL,SAAGL,SAAO,mBAAV,EAA+B;AAC7B/E,kBAAS,sBAAT;AACAyC,oBAAasC,IAAb;AACD,MAHD,MAGO;AACL,WAAMS,UAAUT,QAAQlG,GAAR,IAAeA,IAAIsG,UAAnB,IAAiCtG,IAAIsG,UAAJ,CAAevG,IAAf,CAAoB;AAAA,gBAAKwD,EAAEgD,KAAF,KAAUL,IAAf;AAAA,QAApB,CAAjD;AACA/E,kBAAWwF,QAAQ1G,IAAnB;AACA2D,oBAAa+C,QAAQJ,KAArB;AACD;AACF;AACD,UAAO,EAACpF,kBAAD,EAAUI,0BAAV,EAAuBqC,sBAAvB,EAAP;AACD;;mBAEc9E,Q","file":"saveData.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap a232b6fa7b29e3ac9d8c","/**************************\n\nSaves data from the Redux-Form and converts it to apiNames, which are used \nto generate the recipe and are stored in our DB.\n\nRuns when user click \"submit\"\n\nIf a new dropdown with fields is added to the UI, it must be added to this function as well\n\nsP = sourceProvider\ntM = targetMetadata\n**************************/\n\nfunction saveData(resourceGroups, sP, tP, sM, tM, isReverse){\n\n // switch providers and metadatas if the wizard is reverse\n let sourceProvider = sP\n let targetProvider = tP\n let sourceMetadata = sM\n let targetMetadata = tM\n if(isReverse){\n sourceProvider = tP\n targetProvider = sP\n sourceMetadata = tM\n targetMetadata = sM\n }\n\n const bundles = resourceGroups || []\n let mappings = []\n\n bundles && bundles.forEach((group, index)=>{\n\n // first get target resource\n const destinationResource = targetMetadata ? \n targetMetadata.find(rsc => rsc.name===group.name) : \n group\n group.name = destinationResource.type\n group.resourceLabel = destinationResource.name\n group.provider = targetProvider.toLowerCase()\n /*if(destinationResource.recordTypeId){\n group.recordTypeId = destinationResource.recordTypeId\n }*/\n\n // destination Keys (for de-duplication in the Connect modal)\n if(!group.customExternalKeys && group.lingkSourceKey){\n group.sourceKeys=[group.lingkSourceKey]\n group.sourceKeysObjects=[group.lingkSourceKeyObject]\n group.sourceKeysParents=[group.lingkSourceKeyParents]\n group.destinationKeys=['Lingk_External_Id__c']\n } else {\n const destinationKeys = []\n const destinationKeysParents = []\n if(group.destinationKeys){\n group.destinationKeys.forEach((dk,i)=>{\n /*if(destinationResource && destinationResource.properties && \n destinationResource.properties.find(prop => prop.label===dk)){\n destinationKeys.push(\n destinationResource.properties.find(prop => prop.label===dk).name\n )\n }*/\n const nestedDestinationKey = findNestedProp(\n dk, group.destinationKeysParents && group.destinationKeysParents[i], destinationResource\n )\n if(nestedDestinationKey.property){\n destinationKeys.push(nestedDestinationKey.property)\n destinationKeysParents.push(JSON.stringify(nestedDestinationKey.parentsArray))\n }\n })\n }\n group.destinationKeys = destinationKeys\n group.destinationKeysParents = destinationKeysParents\n }\n\n // get resource + name of sourceKeys\n const sourceKeys = []\n const sourceKeysObjects = []\n const sourceKeysParents = []\n group.sourceKeys && group.sourceKeys.forEach((sk,i)=>{\n const sourceKeyResourceProvider = group.resources.find(r => r.name===group.sourceKeysObjects[i]).provider\n const dataSourceMetadata = sourceKeyResourceProvider.toLowerCase()===\n targetProvider.toLowerCase() ? targetMetadata : sourceMetadata\n const sourceResource = dataSourceMetadata.find(metaRsc => metaRsc.name===group.sourceKeysObjects[i])\n \n if(sourceResource){\n const nestedSourceKey = findNestedProp(\n sk, group.sourceKeysParents && group.sourceKeysParents[i], sourceResource\n )\n if(nestedSourceKey.property){\n sourceKeys.push(nestedSourceKey.property)\n sourceKeysParents.push(JSON.stringify(nestedSourceKey.parentsArray))\n sourceKeysObjects.push(sourceResource.type)\n }\n }\n })\n group.sourceKeys = sourceKeys\n group.sourceKeysObjects = sourceKeysObjects\n group.sourceKeysParents = sourceKeysParents\n\n\n\n // MAPPINGS\n if(group.mappings){\n group.mappings.forEach((singleMapping)=>{\n // get mapping source resource (check both metadatas)\n let dataSourceMetadata = singleMapping.dataSourceIsDestinationEntity ?\n targetMetadata : sourceMetadata\n if(isReverse){\n dataSourceMetadata = singleMapping.dataSourceIsDestinationEntity ?\n sourceMetadata : targetMetadata\n }\n const sourceResource = dataSourceMetadata.find(rsc => rsc.name===singleMapping.resourceFromName)\n // get mapping source property\n const nestedSourceProp = findNestedProp(\n singleMapping.propertyFromName, singleMapping.propertyFromParents, sourceResource\n )\n\n //get mapping destination property\n const nestedDestinationProp = findNestedProp(\n singleMapping.propertyToName, singleMapping.propertyToParents, destinationResource\n )\n\n //dont save transformation that are just \"none\"\n if(singleMapping.transformations && singleMapping.transformations.length > 0){\n singleMapping.transformations.forEach((trans, index)=>{\n if(trans.type==='none'){\n singleMapping.transformations.splice(index,1)\n }\n if(trans.type==='concat'){\n const s = trans.args[1].split('->')\n \n const transConcatSourceResourceProvider = group.resources.find(r => \n r.name===s[0]).provider.toLowerCase()\n const transConcatSourceMetadata = transConcatSourceResourceProvider===\n targetProvider.toLowerCase() ? targetMetadata : sourceMetadata\n const transConcatSourceResource = transConcatSourceMetadata.find(rsc => \n rsc.name===s[0])\n\n const nestedFields = s[1].split('.')\n const field = nestedFields[nestedFields.length-1]\n nestedFields.pop()\n const transSourceApiNames = findNestedProp(\n field, nestedFields, transConcatSourceResource\n )\n var r = `${transConcatSourceResourceProvider}->${transConcatSourceResource.type}->`\n transSourceApiNames.parentsArray.forEach(p=>r+=`${p}.`)\n r += transSourceApiNames.property\n trans.args[1] = r\n }\n })\n }\n\n if(sourceResource && nestedSourceProp.property && \n destinationResource && nestedDestinationProp.property) {\n mappings = mappings.concat({ // add to mappings obj\n resourceFromNameAndProvider: singleMapping.dataSourceIsDestinationEntity ?\n `${sourceResource.type}_${targetProvider.toLowerCase()}` : \n `${sourceResource.type}_${sourceProvider.toLowerCase()}`,\n resourceFromName: sourceResource.type,\n resourceFromLabel: sourceResource.name,\n propertyFromName: nestedSourceProp.property,\n propertyFromLabel: nestedSourceProp.__property,\n ...(nestedSourceProp.parentsArray && nestedSourceProp.parentsArray.length>0) && \n {propertyFromParents: nestedSourceProp.parentsArray},\n resourceToName: destinationResource.type,\n resourceToLabel: destinationResource.name,\n propertyToName: nestedDestinationProp.property,\n propertyToLabel: nestedDestinationProp.__property,\n ...(nestedDestinationProp.parentsArray && \n nestedDestinationProp.parentsArray.length>0) && \n {propertyToParents: nestedDestinationProp.parentsArray},\n bundleIndex: index,\n ...singleMapping.isExternalKeyMapping && {isExternalKeyMapping: true},\n ...singleMapping.dataSourceIsDestinationEntity && {isDestinationResource: true},\n ...singleMapping.isUnique && {isUnique: true},\n ...singleMapping.transformations && singleMapping.transformations.length > 0 &&\n !singleMapping.transformations.every(t=>t.type==='none') &&\n {transformations: singleMapping.transformations}\n })\n }\n })\n delete group.mappings // remove the mapping obj from a resourceGroup\n if (group.lingkSourceKey) delete group.lingkSourceKey\n if (group.lingkSourceKeyObject) delete group.lingkSourceKeyObject\n if (group.lingkSourceKeyParents) {\n delete group.lingkSourceKeyParents\n delete group.destinationKeysParents\n }\n }\n\n // BUNDLES\n if(group.resources){\n group.resources = group.resources.map((rsc, rscIndex)=>{\n //get resource source (check both metadatas)\n const dataSourceMetadata = rsc.provider.toLowerCase()===targetProvider.toLowerCase() ? targetMetadata : sourceMetadata\n const sourceResource = dataSourceMetadata.find(metaRsc => metaRsc.name===rsc.name)\n // via parameter, dont change because its already \"type\"\n let nestedJoinKey = {property: rsc.joinKeyName}\n let joinKeyResource = rsc.joinKeyResource\n let joinKeyIsParameter = false\n if(sourceResource && rsc.joinKeyResource){\n // is from a same resource (not via parameters)\n if(sourceResource.name===rsc.joinKeyResource) {\n nestedJoinKey = findNestedProp(\n rsc.joinKeyName, rsc.joinKeyParents, sourceResource\n )\n joinKeyResource = sourceResource.type\n } else {\n joinKeyIsParameter = true\n }\n }\n\n //make endpoint\n /*const suffix = sourceResource && sourceResource.endpointSuffix\n if(suffix){\n endpoints[`url_${sourceResource.type}_${sourceProvider}`] = \n `${sourceEndpoint}${suffix[0]==='/'?'':'/'}${suffix}`\n }*/\n\n //get first resource in bundle (for primaryKeyName)\n let nestedPrimaryKey = {}\n let primaryKeyResource = null\n let primaryResourceProvider = null\n let primaryKeyIsParameter = false\n if(rsc.parentNameAndProvider){\n const primaryResourceProviderLast_Index = rsc.parentNameAndProvider.lastIndexOf('_')\n primaryResourceProvider = rsc.parentNameAndProvider\n .substr(primaryResourceProviderLast_Index+1, rsc.parentNameAndProvider.length)\n const primaryResourceName = rsc.parentNameAndProvider\n .substr(0, primaryResourceProviderLast_Index)\n const primaryDataSourceMetadata = primaryResourceProvider.toLowerCase()===\n targetProvider.toLowerCase() ? targetMetadata : sourceMetadata\n const primarySourceResource = primaryDataSourceMetadata.find(metaRsc => metaRsc.name===rsc.primaryKeyResource)\n\n if(primarySourceResource){\n if(primaryResourceName===rsc.primaryKeyResource){\n nestedPrimaryKey = findNestedProp(\n rsc.primaryKeyName, rsc.primaryKeyParents, primarySourceResource\n )\n primaryKeyResource = primarySourceResource.type\n } else {\n // is from a different resource (parameter)\n primaryKeyIsParameter = true\n nestedPrimaryKey = {property: rsc.primaryKeyName}\n primaryKeyResource = rsc.primaryKeyResource\n }\n }\n }\n\n if(sourceResource){\n return {\n resourceName: sourceResource.type,\n resourceLabel: sourceResource.name,\n resourceNameAndProvider: sourceResource.type + '_' + rsc.provider.toLowerCase(),\n joinKeyName: nestedJoinKey.property,\n joinKeyResource,\n joinKeyParents: nestedJoinKey.parentsArray && nestedJoinKey.parentsArray.length>0 ? \n nestedJoinKey.parentsArray : [],\n joinKeyIsParameter,\n primaryKeyName: nestedPrimaryKey.property,\n primaryKeyResource,\n primaryKeyParents : nestedPrimaryKey.parentsArray && nestedPrimaryKey.parentsArray.length>0 ? nestedPrimaryKey.parentsArray : [],\n primaryKeyIsParameter,\n provider: rsc.provider.toLowerCase() + 'Reader',\n joinType: rsc.joinType,\n parameterFilters: rsc.parameterFilters ? rsc.parameterFilters.filter(pf=>pf.val) : [],\n level: rsc.level || (rscIndex===0 ? 0 : 1),\n // THIS ONE IS ACTUALLY PARENT LABEL AND PROVIDER!\n // So we know what Account to join to (if they have the same Name)\n parentNameAndProvider: rsc.parentNameAndProvider\n }\n } else return null\n })\n }\n \n })//end for each bundle\n return {bundles, mappings}\n}\n\nfunction findNestedProp(prop, parents, rsc) {\n let property = ''\n let __property = ''\n let parentsArray = []\n if(parents && parents.length>0){\n let nestedRsc = rsc\n const tempParentsArray = []\n parents.forEach(pk=>{\n if(nestedRsc.properties && \n nestedRsc.properties.find(p => p.label===pk)){\n const pkProp = nestedRsc.properties.find(p => p.label===pk)\n tempParentsArray.push(pkProp.name)\n nestedRsc = pkProp.object\n }\n })\n parentsArray = tempParentsArray\n if(nestedRsc.properties && nestedRsc.properties.find(p => p.label===prop)){\n const theProp = nestedRsc.properties.find(p => p.label===prop)\n property = theProp.name\n __property = theProp.label\n }\n } else {\n if(prop==='Lingk External Id') {\n property='Lingk_External_Id__c'\n __property = prop\n } else {\n const theProp = prop && rsc && rsc.properties && rsc.properties.find(p => p.label===prop)\n property = theProp.name\n __property = theProp.label\n }\n }\n return {property,parentsArray,__property}\n}\n\nexport default saveData\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/wizard/stepTypes/utils/saveData.js"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingk/sync",
3
- "version": "1.0.90",
3
+ "version": "1.0.92",
4
4
  "author": "Evan Feenstra",
5
5
  "repository": {
6
6
  "type": "git",