@lingk/sync 0.0.40 → 0.0.42
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/css/lightning.css +5 -0
- package/build/css/main.css +22 -22
- package/build/lightning.js +206 -491
- package/build/lightning.js.map +1 -1
- package/build/lingk.js +5 -5
- package/build/lingk.js.map +1 -1
- package/build/main.js +608 -164
- package/build/main.js.map +1 -1
- package/build/reducer.js +26 -6
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/reducer.js
CHANGED
|
@@ -46,7 +46,7 @@ module.exports =
|
|
|
46
46
|
/***/ 0:
|
|
47
47
|
/***/ function(module, exports, __webpack_require__) {
|
|
48
48
|
|
|
49
|
-
module.exports = __webpack_require__(
|
|
49
|
+
module.exports = __webpack_require__(14);
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
/***/ },
|
|
@@ -72,7 +72,7 @@ module.exports =
|
|
|
72
72
|
|
|
73
73
|
/***/ },
|
|
74
74
|
|
|
75
|
-
/***/
|
|
75
|
+
/***/ 13:
|
|
76
76
|
/***/ function(module, exports) {
|
|
77
77
|
|
|
78
78
|
'use strict';
|
|
@@ -87,12 +87,32 @@ module.exports =
|
|
|
87
87
|
|
|
88
88
|
case 'Banner':
|
|
89
89
|
if (res) {
|
|
90
|
-
meta = res
|
|
90
|
+
meta = res;
|
|
91
91
|
}
|
|
92
92
|
break;
|
|
93
93
|
|
|
94
94
|
case 'Salesforce':
|
|
95
|
-
|
|
95
|
+
var resources = [];
|
|
96
|
+
res.resources.forEach(function (rsc) {
|
|
97
|
+
if (rsc.metadata && rsc.metadata.recordTypes && rsc.metadata.recordTypes.length > 0) {
|
|
98
|
+
rsc.metadata.recordTypes.forEach(function (recordType) {
|
|
99
|
+
if (recordType.isActive) {
|
|
100
|
+
var metadataResource = res.resources.find(function (r) {
|
|
101
|
+
return r.type === recordType.sobjectType;
|
|
102
|
+
});
|
|
103
|
+
metadataResource && resources.push({
|
|
104
|
+
name: metadataResource.name + ' - ' + recordType.name,
|
|
105
|
+
type: metadataResource.name,
|
|
106
|
+
recordTypeId: recordType.id,
|
|
107
|
+
properties: metadataResource.properties
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
} else {
|
|
112
|
+
resources.push(rsc);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
meta = resources;
|
|
96
116
|
break;
|
|
97
117
|
|
|
98
118
|
default:
|
|
@@ -103,7 +123,7 @@ module.exports =
|
|
|
103
123
|
|
|
104
124
|
/***/ },
|
|
105
125
|
|
|
106
|
-
/***/
|
|
126
|
+
/***/ 14:
|
|
107
127
|
/***/ function(module, exports, __webpack_require__) {
|
|
108
128
|
|
|
109
129
|
'use strict';
|
|
@@ -117,7 +137,7 @@ module.exports =
|
|
|
117
137
|
|
|
118
138
|
var types = _interopRequireWildcard(_types);
|
|
119
139
|
|
|
120
|
-
var _metadataFunctions = __webpack_require__(
|
|
140
|
+
var _metadataFunctions = __webpack_require__(13);
|
|
121
141
|
|
|
122
142
|
var util = _interopRequireWildcard(_metadataFunctions);
|
|
123
143
|
|
package/build/reducer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap 1f1c98f0a1dd65c6e24b?7098**","webpack:///./src/lib/wizard/actions/types.js?caa0","webpack:///./src/lib/reducer/metadataFunctions.js","webpack:///./src/lib/reducer/wizard.js"],"names":["SET_WIZARD_SAVED_MAPPING","SET_WIZARD_SAVED_CONFIGURATION","SET_WIZARD_SAVED_BUNDLES","SET_WIZARD_LOADED","SET_WIZARD_DATA_LOADED","START_ENV_CHECK","FINISH_ENV_CHECK","START_PREVIEW","FINISH_PREVIEW","SET_WIZARD_METADATA","metadataFunctions","res","providerType","meta","resources","forEach","rsc","metadata","recordTypes","length","recordType","isActive","metadataResource","find","r","type","sobjectType","push","name","recordTypeId","id","properties","wizardReducer","types","util","initialState","savedBundles","savedMapping","savedConfiguration","loaded","dataLoaded","envChecking","envCheckResult","previewing","previewData","sourceMetadata","destinationMetadata","state","action","data","bool","adapterSchema","code","mode","schema"],"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;;;;;;;;;;;;;;;;;;;;;ACtCO,KAAMA,8DAA2B,0BAAjC;AACA,KAAMC,0EAAiC,gCAAvC;AACA,KAAMC,8DAA2B,0BAAjC;AACA,KAAMC,gDAAoB,mBAA1B;AACA,KAAMC,0DAAyB,wBAA/B;AACA,KAAMC,4CAAkB,iBAAxB;AACA,KAAMC,8CAAmB,kBAAzB;AACA,KAAMC,wCAAgB,eAAtB;AACA,KAAMC,0CAAiB,gBAAvB;AACA,KAAMC,oDAAsB,qBAA5B,C;;;;;;;;;;;;SCTSC,iB,GAAAA,iB;AAAT,UAASA,iBAAT,CAA2BC,GAA3B,EAAgCC,YAAhC,EAA6C;AAClD,OAAIC,OAAO,IAAX;AACA,WAAQD,YAAR;;AAEE,UAAK,QAAL;AACE,WAAGD,GAAH,EAAO;AACLE,gBAAOF,GAAP;AACD;AACD;;AAEF,UAAK,YAAL;AACE,WAAIG,YAAY,EAAhB;AACAH,WAAIG,SAAJ,CAAcC,OAAd,CAAsB,UAACC,GAAD,EAAO;AAC3B,aAAGA,IAAIC,QAAJ,IAAgBD,IAAIC,QAAJ,CAAaC,WAA7B,IAA4CF,IAAIC,QAAJ,CAAaC,WAAb,CAAyBC,MAAzB,GAAkC,CAAjF,EAAoF;AAClFH,eAAIC,QAAJ,CAAaC,WAAb,CAAyBH,OAAzB,CAAiC,UAACK,UAAD,EAAc;AAC7C,iBAAGA,WAAWC,QAAd,EAAuB;AACrB,mBAAMC,mBAAmBX,IAAIG,SAAJ,CAA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FjB;AAIF,UAAKjB,MAAM7B,sBAAX;AACE,gCACK2C,KADL;AAEEP,qBAAYQ,OAAOE;AAFrB;AAIF,UAAKjB,MAAM5B,eAAX;AACE,gCACK0C,KADL;AAEEN,sBAAY,IAFd;AAGEC,yBAAe;AAHjB;AAKF,UAAKT,MAAM3B,gBAAX;AACE,WAAM6C,gBAAgBjB,KAAKxB,iBAAL,CAAuBsC,OAAOC,IAAP,CAAYtC,GAAnC,EAAwCqC,OAAOC,IAAP,CAAYrC,YAApD,CAAtB;AACA,gCACKmC,KADL;AAEEN,sBAAY,KAFd;AAGEC,yBAAeM,OAAOC,IAAP,CAAYG;AAH7B,UAIMJ,OAAOC,IAAP,CAAYI,IAJlB,eAIkCF,aAJlC;AAMF,UAAKlB,MAAMxB,mBAAX;AACE,WAAM6C,SAASpB,KAAKxB,iBAAL,CAAuBsC,OAAOC,IAAP,CAAYtC,GAAnC,EAAwCqC,OAAOC,IAAP,CAAYrC,YAApD,CAAf;AACA,gCACKmC,KADL,sBAEMC,OAAOC,IAAP,CAAYI,IAFlB,eAEkCC,MAFlC;AAIF,UAAKrB,MAAM1B,aAAX;AACE,gCACKwC,KADL;AAEEJ,qBAAW,IAFb;AAGEC,sBAAY;AAHd;AAKF,UAAKX,MAAMzB,cAAX;AACE,gCACKuC,KADL;AAEEJ,qBAAW,KAFb;AAGEC,sBAAYI,OAAOC;AAHrB;;AAMF;AAAS,cAAOF,KAAP;AA3DX;AA6DD,G","file":"reducer.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 1f1c98f0a1dd65c6e24b","export const SET_WIZARD_SAVED_MAPPING = 'SET_WIZARD_SAVED_MAPPING';\nexport const SET_WIZARD_SAVED_CONFIGURATION = 'SET_WIZARD_SAVED_CONFIGURATION';\nexport const SET_WIZARD_SAVED_BUNDLES = 'SET_WIZARD_SAVED_BUNDLES';\nexport const SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';\nexport const SET_WIZARD_DATA_LOADED = 'SET_WIZARD_DATA_LOADED';\nexport const START_ENV_CHECK = 'START_ENV_CHECK';\nexport const FINISH_ENV_CHECK = 'FINISH_ENV_CHECK';\nexport const START_PREVIEW = 'START_PREVIEW';\nexport const FINISH_PREVIEW = 'FINISH_PREVIEW';\nexport const SET_WIZARD_METADATA = 'SET_WIZARD_METADATA';\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/wizard/actions/types.js","export function metadataFunctions(res, providerType){\n var meta = null\n switch (providerType) {\n\n case 'Banner':\n if(res){\n meta = res\n }\n break;\n\n case 'Salesforce':\n var resources = []\n res.resources.forEach((rsc)=>{\n if(rsc.metadata && rsc.metadata.recordTypes && rsc.metadata.recordTypes.length > 0) {\n rsc.metadata.recordTypes.forEach((recordType)=>{\n if(recordType.isActive){\n const metadataResource = res.resources.find(r=>r.type===recordType.sobjectType)\n metadataResource && resources.push({\n name: metadataResource.name + ' - ' + recordType.name,\n type: metadataResource.name,\n recordTypeId: recordType.id,\n properties: metadataResource.properties\n })\n }\n })\n } else {\n resources.push(rsc)\n }\n })\n meta = resources\n break;\n\n default:\n break;\n }\n return meta\n}\n\n\n// WEBPACK FOOTER //\n// ./src/lib/reducer/metadataFunctions.js","import * as types from '../wizard/actions/types';\nimport * as util from './metadataFunctions'\n\nconst initialState = {\n savedBundles: null,\n savedMapping: null,\n savedConfiguration: null,\n loaded:false, // saved config data has been loaded from backend\n dataLoaded:false, // loaded data entered into redux-form\n envChecking:false,\n envCheckResult:null,\n previewing:false,\n previewData:null,\n sourceMetadata:null,\n destinationMetadata:null,\n};\n\nexport default function wizardReducer(state = initialState, action = {}) {\n switch (action.type) {\n case types.SET_WIZARD_SAVED_BUNDLES:\n return {\n ...state,\n savedBundles: action.data\n }\n case types.SET_WIZARD_SAVED_MAPPING:\n return {\n ...state,\n savedMapping: action.data\n }\n case types.SET_WIZARD_SAVED_CONFIGURATION:\n return {\n ...state,\n savedConfiguration: action.data\n }\n case types.SET_WIZARD_LOADED:\n return {\n ...state,\n loaded: action.bool\n };\n case types.SET_WIZARD_DATA_LOADED:\n return {\n ...state,\n dataLoaded: action.bool\n };\n case types.START_ENV_CHECK:\n return {\n ...state,\n envChecking:true,\n envCheckResult:null\n }\n case types.FINISH_ENV_CHECK:\n const adapterSchema = util.metadataFunctions(action.data.res, action.data.providerType)\n return {\n ...state,\n envChecking:false,\n envCheckResult:action.data.code,\n [`${action.data.mode}Metadata`]:adapterSchema,\n }\n case types.SET_WIZARD_METADATA:\n const schema = util.metadataFunctions(action.data.res, action.data.providerType)\n return {\n ...state,\n [`${action.data.mode}Metadata`]:schema,\n }\n case types.START_PREVIEW:\n return {\n ...state,\n previewing:true,\n previewData:null\n }\n case types.FINISH_PREVIEW:\n return {\n ...state,\n previewing:false,\n previewData:action.data,\n }\n\n default: return state;\n }\n};\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/reducer/wizard.js"],"sourceRoot":""}
|