11'use strict' ;
22
3- module . exports = {
3+ const scriptTypeMap = {
4+ BankConnectivityPlugin : {
5+ entryPoints : [
6+ 'getRequiredConfigurationFields' ,
7+ 'downloadPreviousDayBankStatementFile' ,
8+ ] ,
9+ } ,
410 BundleInstallationScript : {
511 entryPoints : [
612 'afterInstall' ,
@@ -26,12 +32,29 @@ module.exports = {
2632 'localizationContextExit' ,
2733 ] ,
2834 } ,
35+ DatasetBuilderPlugin : {
36+ entryPoints : [ 'createDataset' ] ,
37+ } ,
38+ FiConnectivityPlugin : {
39+ entryPoints : [ 'getConfigurationIFrameUrl' , 'getAccounts' , 'getTransactionData' ] ,
40+ } ,
41+ FiParserPlugin : {
42+ entryPoints : [
43+ 'parseData' ,
44+ 'getStandardTransactionCodes' ,
45+ 'getExpenseCodes' ,
46+ 'getConfigurationPageUrl' ,
47+ ] ,
48+ } ,
2949 MapReduceScript : {
3050 entryPoints : [ 'getInputData' , 'map' , 'reduce' , 'summarize' ] ,
3151 } ,
3252 MassUpdateScript : {
3353 entryPoints : [ 'each' ] ,
3454 } ,
55+ PluginTypeImpl : {
56+ entryPoints : [ ] ,
57+ } ,
3558 Portlet : {
3659 entryPoints : [ 'render' ] ,
3760 } ,
@@ -50,33 +73,19 @@ module.exports = {
5073 UserEventScript : {
5174 entryPoints : [ 'afterSubmit' , 'beforeLoad' , 'beforeSubmit' ] ,
5275 } ,
53- WorkflowActionScript : {
54- entryPoints : [ 'onAction' ] ,
55- } ,
56- bankConnectivityPlugin : {
57- entryPoints : [
58- 'getRequiredConfigurationFields' ,
59- 'downloadPreviousDayBankStatementFile' ,
60- ] ,
61- } ,
62- datasetbuilderplugin : {
63- entryPoints : [ 'createDataset' ] ,
64- } ,
65- fiConnectivityPlugin : {
66- entryPoints : [ 'getConfigurationIFrameUrl' , 'getAccounts' , 'getTransactionData' ] ,
67- } ,
68- fiParserPlugin : {
69- entryPoints : [
70- 'parseData' ,
71- 'getStandardTransactionCodes' ,
72- 'getExpenseCodes' ,
73- 'getConfigurationPageUrl' ,
74- ] ,
75- } ,
76- workbookbuilderplugin : {
76+ WorkbookBbuilderPlugin : {
7777 entryPoints : [ 'createWorkbook' ] ,
7878 } ,
79- plugintypeimpl : {
80- entryPoints : [ ] ,
79+ WorkflowActionScript : {
80+ entryPoints : [ 'onAction' ] ,
8181 } ,
8282} ;
83+
84+ const scriptTypes = Object . keys ( scriptTypeMap ) . map ( function ( x ) {
85+ return x . toLowerCase ( ) ;
86+ } ) ;
87+
88+ module . exports = {
89+ scriptTypeMap,
90+ scriptTypes,
91+ } ;
0 commit comments