@things-factory/operato-tools 6.0.131 → 6.0.133

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
- 'use strict';const a0_0x162076=a0_0x5e3a;function a0_0x5e3a(_0x5d5eaa,_0x340a91){const _0x509344=a0_0x5093();return a0_0x5e3a=function(_0x5e3aea,_0x56f00c){_0x5e3aea=_0x5e3aea-0xac;let _0x4237c4=_0x509344[_0x5e3aea];return _0x4237c4;},a0_0x5e3a(_0x5d5eaa,_0x340a91);}(function(_0x252a82,_0x2c2f08){const _0x11c09a=a0_0x5e3a,_0x5f4252=_0x252a82();while(!![]){try{const _0x28aaa4=-parseInt(_0x11c09a(0xba))/0x1+-parseInt(_0x11c09a(0xb2))/0x2*(-parseInt(_0x11c09a(0xbb))/0x3)+-parseInt(_0x11c09a(0xac))/0x4*(parseInt(_0x11c09a(0xae))/0x5)+parseInt(_0x11c09a(0xbc))/0x6+parseInt(_0x11c09a(0xb0))/0x7+-parseInt(_0x11c09a(0xb6))/0x8+parseInt(_0x11c09a(0xb5))/0x9;if(_0x28aaa4===_0x2c2f08)break;else _0x5f4252['push'](_0x5f4252['shift']());}catch(_0x5c5508){_0x5f4252['push'](_0x5f4252['shift']());}}}(a0_0x5093,0xd557b));Object[a0_0x162076(0xb3)](exports,'__esModule',{'value':!0x0}),exports[a0_0x162076(0xb4)]=void 0x0;const tslib_1=require(a0_0x162076(0xaf)),ERROR_CODES=tslib_1[a0_0x162076(0xad)](require(a0_0x162076(0xb8)));class LicenseError extends Error{static get['ERROR_CODES'](){return Object['assign']({},ERROR_CODES);}constructor({errorCode:_0x394092,detail:_0x2da0bd}){const _0x47c24c=a0_0x162076;super(_0x394092),this['name']=_0x47c24c(0xb1),this[_0x47c24c(0xb9)]=_0x394092,this[_0x47c24c(0xb7)]=_0x2da0bd;}}function a0_0x5093(){const _0x1e41dc=['__importStar','10ATNePC','tslib','9114812VSzfOI','license-error','1815596JdoBTL','defineProperty','LicenseError','5341437jkQEZG','8066512viVzgH','detail','../constants/error-code','errorCode','546379nYhFmh','3VKeTVT','2644254ETrAaX','1631144ZrtFrB'];a0_0x5093=function(){return _0x1e41dc;};return a0_0x5093();}exports['LicenseError']=LicenseError;
1
+ 'use strict';const a0_0x1c39df=a0_0x537c;(function(_0x58aebb,_0xac59){const _0x480afd=a0_0x537c,_0x14208c=_0x58aebb();while(!![]){try{const _0x42f97d=parseInt(_0x480afd(0x15b))/0x1*(parseInt(_0x480afd(0x15a))/0x2)+-parseInt(_0x480afd(0x15c))/0x3+parseInt(_0x480afd(0x165))/0x4*(-parseInt(_0x480afd(0x156))/0x5)+parseInt(_0x480afd(0x157))/0x6*(-parseInt(_0x480afd(0x160))/0x7)+-parseInt(_0x480afd(0x161))/0x8*(parseInt(_0x480afd(0x159))/0x9)+-parseInt(_0x480afd(0x15d))/0xa+parseInt(_0x480afd(0x153))/0xb*(parseInt(_0x480afd(0x154))/0xc);if(_0x42f97d===_0xac59)break;else _0x14208c['push'](_0x14208c['shift']());}catch(_0x2bd75c){_0x14208c['push'](_0x14208c['shift']());}}}(a0_0x3737,0x80633));Object['defineProperty'](exports,'__esModule',{'value':!0x0}),exports[a0_0x1c39df(0x15f)]=void 0x0;const tslib_1=require('tslib'),ERROR_CODES=tslib_1[a0_0x1c39df(0x155)](require('../constants/error-code'));class LicenseError extends Error{static get['ERROR_CODES'](){const _0x541d46=a0_0x1c39df;return Object[_0x541d46(0x158)]({},ERROR_CODES);}constructor({errorCode:_0x323a1a,detail:_0x476663}){const _0x2532b9=a0_0x1c39df;super(_0x323a1a),this[_0x2532b9(0x164)]=_0x2532b9(0x163),this[_0x2532b9(0x15e)]=_0x323a1a,this[_0x2532b9(0x162)]=_0x476663;}}exports[a0_0x1c39df(0x15f)]=LicenseError;function a0_0x537c(_0x368113,_0x2c3ff2){const _0x37371d=a0_0x3737();return a0_0x537c=function(_0x537c6e,_0xf93a43){_0x537c6e=_0x537c6e-0x153;let _0x59c6a9=_0x37371d[_0x537c6e];return _0x59c6a9;},a0_0x537c(_0x368113,_0x2c3ff2);}function a0_0x3737(){const _0x53566e=['name','123864vtAHsQ','11lyqPJk','27265908DQtmwW','__importStar','10NcJMNB','60XHFsPv','assign','159174wEvTRf','1407722KSyonu','1CVmBXF','2310726dlUzqZ','9199530HcBaIj','errorCode','LicenseError','265769pWdvfb','144FZLDKQ','detail','license-error'];a0_0x3737=function(){return _0x53566e;};return a0_0x3737();}
package/server/routes.js CHANGED
@@ -1 +1 @@
1
- function a0_0x2da0(_0x3028a3,_0xfd26f0){const _0x4d3a45=a0_0x4d3a();return a0_0x2da0=function(_0x2da01f,_0x4c55b1){_0x2da01f=_0x2da01f-0x1c0;let _0x5d69ab=_0x4d3a45[_0x2da01f];return _0x5d69ab;},a0_0x2da0(_0x3028a3,_0xfd26f0);}const a0_0x5e95e9=a0_0x2da0;(function(_0x1cc6c8,_0x4ba037){const _0x376f45=a0_0x2da0,_0x46eff2=_0x1cc6c8();while(!![]){try{const _0x2e7a5d=-parseInt(_0x376f45(0x1c7))/0x1*(parseInt(_0x376f45(0x1c3))/0x2)+-parseInt(_0x376f45(0x1c4))/0x3*(parseInt(_0x376f45(0x1c9))/0x4)+parseInt(_0x376f45(0x1c2))/0x5+-parseInt(_0x376f45(0x1c8))/0x6*(-parseInt(_0x376f45(0x1cd))/0x7)+parseInt(_0x376f45(0x1c1))/0x8*(-parseInt(_0x376f45(0x1c0))/0x9)+parseInt(_0x376f45(0x1c5))/0xa+parseInt(_0x376f45(0x1c6))/0xb*(parseInt(_0x376f45(0x1ce))/0xc);if(_0x2e7a5d===_0x4ba037)break;else _0x46eff2['push'](_0x46eff2['shift']());}catch(_0x30df14){_0x46eff2['push'](_0x46eff2['shift']());}}}(a0_0x4d3a,0x24db8));const debug=require(a0_0x5e95e9(0x1cb))('things-factory:operato-tools:routes');process['on'](a0_0x5e95e9(0x1ca),(_0x1eae4e,_0x583f99)=>{}),process['on'](a0_0x5e95e9(0x1cf),(_0x221c03,_0x4fd777)=>{}),process['on']('bootstrap-module-domain-public-route',(_0x58ec02,_0x120e26)=>{}),process['on'](a0_0x5e95e9(0x1cc),(_0x5c2068,_0x44ca1a)=>{});function a0_0x4d3a(){const _0x33f85f=['bootstrap-module-global-private-route','9vIeXNp','2068904LnOUnp','1256170fhYzwl','436224vqeENB','2565EGOkyL','921730dXVDsJ','978615Lhfktj','1tzIzbX','153378PRBzMQ','1172BHFwHb','bootstrap-module-global-public-route','debug','bootstrap-module-domain-private-route','49wXyZOe','48tvPiwI'];a0_0x4d3a=function(){return _0x33f85f;};return a0_0x4d3a();}
1
+ function a0_0x1aea(){const _0x584b30=['961913zWZjXf','4703433QkDCts','debug','39396SZjBgn','bootstrap-module-domain-private-route','1476808lbcFjP','6StYCKV','bootstrap-module-domain-public-route','bootstrap-module-global-public-route','9935262atLFjB','2dNzxXt','5058890qMDBqx','bootstrap-module-global-private-route','things-factory:operato-tools:routes','13605724FzoLJq','10TToDlh','272CAaSHH'];a0_0x1aea=function(){return _0x584b30;};return a0_0x1aea();}const a0_0x4bda7f=a0_0x57a3;(function(_0xfd372e,_0x368861){const _0x482436=a0_0x57a3,_0x494aa7=_0xfd372e();while(!![]){try{const _0x53cfa0=parseInt(_0x482436(0x1eb))/0x1*(-parseInt(_0x482436(0x1f5))/0x2)+-parseInt(_0x482436(0x1ee))/0x3*(-parseInt(_0x482436(0x1fb))/0x4)+-parseInt(_0x482436(0x1f6))/0x5+parseInt(_0x482436(0x1f1))/0x6*(-parseInt(_0x482436(0x1ec))/0x7)+parseInt(_0x482436(0x1f0))/0x8+parseInt(_0x482436(0x1f4))/0x9+parseInt(_0x482436(0x1fa))/0xa*(parseInt(_0x482436(0x1f9))/0xb);if(_0x53cfa0===_0x368861)break;else _0x494aa7['push'](_0x494aa7['shift']());}catch(_0x5a8cae){_0x494aa7['push'](_0x494aa7['shift']());}}}(a0_0x1aea,0xbcaa1));const debug=require(a0_0x4bda7f(0x1ed))(a0_0x4bda7f(0x1f8));function a0_0x57a3(_0x4991e7,_0x380133){const _0x1aeaf9=a0_0x1aea();return a0_0x57a3=function(_0x57a3b0,_0xdc3107){_0x57a3b0=_0x57a3b0-0x1eb;let _0x40b931=_0x1aeaf9[_0x57a3b0];return _0x40b931;},a0_0x57a3(_0x4991e7,_0x380133);}process['on'](a0_0x4bda7f(0x1f3),(_0x389eda,_0x17a60e)=>{}),process['on'](a0_0x4bda7f(0x1f7),(_0x4ac5fe,_0x127643)=>{}),process['on'](a0_0x4bda7f(0x1f2),(_0x3988bf,_0x2be47f)=>{}),process['on'](a0_0x4bda7f(0x1ef),(_0x342b93,_0x240eea)=>{});
@@ -1 +1 @@
1
- 'use strict';function a0_0x118d(){const _0x2e0563=['{\x22type\x22:\x20\x22object\x22,\x22name\x22:\x20\x22','category','readonly','\x22,\x22codeField\x22:\x20\x22id\x22,\x22dispField\x22:\x20\x22name\x22}}','704914GJIEsW',',\x22select_opt\x22:{\x22type\x22:\x20\x22entity\x22,\x22args\x22:\x20{\x22queryName\x22:\x20\x22','996jbozDb','type-graphql','aes-256-ecb','toString','sortRank','menuType','rank','aes-256-cfb8','final','SCREEN','getRepository','\x22,\x22width\x22:\x20100,\x22editable\x22:false,\x20\x22align\x22:\x20\x22center\x22,\x22object_opt\x22:{\x22queryName\x22:\x22users\x22}}','resourceUrl',',\x22select_opt\x22:{\x22type\x22:\x22code\x22,\x22name\x22:\x22','toolCreateMenu','length','@things-factory/menu-base','Operato\x20Tool\x20Create\x20Menu','enc','{\x22name\x22:\x22','aes-256-cfb1','aes-256-ctr','tslib','prototype','dataProp','routing','Resolver','hidden','328262XrCruq','94190DtIXQk','COPY','parent_menu_id','searchRank','JSON','replace','10605fBWsLJ','split','assign','\x20,\x22editable\x22:\x20','{\x22type\x22:\x20\x22','Menu','__metadata','6uTbUjd','state','4366558IcQzvv',',\x22sortable\x22:true\x20,\x22align\x22:\x20\x22','388088xlfUPT','\x27\x20or\x20id\x20=\x20\x27','sort','name','map','filter','369ZulEUR','findOne','__decorate','refType','design:returntype','\x22,\x22width\x22:\x20160,\x22editable\x22:false,\x20\x22align\x22:\x20\x22center\x22}','createMenuData','entity','select\x20coalesce(max(rank),0)\x20as\x20rank\x20from\x20menus\x20where\x20parent_id\x20=\x20\x27','Arg','\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x20\x22history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22basic\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22label\x22:\x20\x22data_history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22icon\x22:\x20\x22history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22logic\x22:\x20\x22history_json\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20','update','string','h1z0q9i9x7q6','12OIIWUb','gridRank','find','\x20,\x22exportable\x22:\x20true','design:type','creator_id','code','crypto','utf8','updater_id','randomBytes','creator','refName','\x0a{\x0a\x20\x20\x22menu\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22title\x22:\x20\x22{{name}}\x22,\x0a\x20\x20\x20\x20\x20\x20\x22name\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x20\x20\x22desc\x22:\x20\x22\x22\x0a\x20\x20},\x0a\x20\x20\x22gql\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22query\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22list_func\x22:\x20\x22{{pluralCamelCase\x20name}}\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22find_one_func\x22:\x22{{camelCase\x20name}}\x22\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x22mutation\x22:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22multiple\x22:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22func\x22:\x22updateMultiple{{pascalCase\x20name}}\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22{{pascalCase\x20name}}Patch\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22delete\x22:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22func\x22:\x22delete{{pluralPascalCase\x20name}}\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20},\x0a\x20\x20\x22button\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x22export\x22\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x22add\x22\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x22delete\x22\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x22save\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20],\x0a\x20\x20\x22grid_column\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22string\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x20\x22id\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22header\x22:\x20\x22id\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22hidden\x22:\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22editable\x22:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22mandatory\x22:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22sortable\x22:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22align\x22:\x20\x22left\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22width\x22:\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22exportable\x22:\x20false\x0a\x20\x20\x20\x20\x20\x20},\x0a{{GridColumns}}\x0a\x20\x20],\x0a\x20\x20\x22grid\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22button\x22:[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{HistoryButton}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22option\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22mobile_mode\x22:\x20\x22LIST\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22desk_mode\x22:\x20\x22GRID\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22use_row_checker\x22:\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22pages\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2020,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2050,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20100,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20300\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22view_mode\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22GRID\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22LIST\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22CARD\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22sorters\x22:\x20[\x0a{{SortColumns}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x22row\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22multiple_select\x22:\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22click\x22:\x20\x22select-row-toggle\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20},\x0a\x20\x20\x22search\x22:\x20[\x0a{{SearchColumns}}\x0a\x20\x20]\x0a}\x0a','{\x22type\x22:\x20\x22datetime\x22,\x22name\x22:\x20\x22','meta-grist-page','join','createSearchCols','OperatoToolCreateMenu','@transaction','\x22,\x22operator\x22:\x20\x22','checkStudioTemplateIsOverLimit','left',',\x22mandatory\x22:\x20','createGridColumns','default','__esModule',',\x22select_opt\x22:{\x22type\x22:\x22scenario\x22,\x22name\x22:\x22','\x22,\x22header\x22:\x20\x22','push','aes-256-cbc','\x22,\x22desc\x22:','updater','from','@things-factory/resource-base','aes256','EntityColumn','__param','hex','createSortCols','pluralize','\x22,\x22name\x22:\x20\x22','defineProperty','9777496qXpOOa'];a0_0x118d=function(){return _0x2e0563;};return a0_0x118d();}const a0_0x163683=a0_0x47ab;(function(_0x32f9f9,_0x176f1f){const _0x2d7982=a0_0x47ab,_0x289c15=_0x32f9f9();while(!![]){try{const _0x6cc781=parseInt(_0x2d7982(0x150))/0x1+-parseInt(_0x2d7982(0x180))/0x2*(parseInt(_0x2d7982(0x120))/0x3)+-parseInt(_0x2d7982(0x152))/0x4*(parseInt(_0x2d7982(0x175))/0x5)+parseInt(_0x2d7982(0x17c))/0x6*(parseInt(_0x2d7982(0x17e))/0x7)+parseInt(_0x2d7982(0x14b))/0x8+parseInt(_0x2d7982(0x186))/0x9*(-parseInt(_0x2d7982(0x16f))/0xa)+parseInt(_0x2d7982(0x16e))/0xb;if(_0x6cc781===_0x176f1f)break;else _0x289c15['push'](_0x289c15['shift']());}catch(_0x1610da){_0x289c15['push'](_0x289c15['shift']());}}}(a0_0x118d,0xd958d));Object[a0_0x163683(0x14a)](exports,a0_0x163683(0x13a),{'value':!0x0}),exports[a0_0x163683(0x132)]=void 0x0;const tslib_1=require(a0_0x163683(0x168)),type_graphql_1=require(a0_0x163683(0x153)),resource_base_1=require(a0_0x163683(0x142)),menu_base_1=require(a0_0x163683(0x162)),tool_permission_1=require('./../tool-secret/tool-permission'),{camelCase:camelCase,startCase:startCase,snakeCase:snakeCase,kebabCase:kebabCase}=require('lodash'),{plural:plural}=require(a0_0x163683(0x148)),crypto_1=tslib_1['__importDefault'](require(a0_0x163683(0x127)));let OperatoToolCreateMenu=class{async[a0_0x163683(0x160)](_0x253108,_0x376910,_0x1ba035){const _0x34bed0=a0_0x163683,{domain:_0x1c613d,user:_0x58fbaa,tx:_0x359067}=_0x1ba035[_0x34bed0(0x17d)];await(0x0,tool_permission_1[_0x34bed0(0x135)])('',_0x1ba035);const _0x351488=await _0x359067[_0x34bed0(0x15c)](resource_base_1['Entity'])[_0x34bed0(0x187)]({'where':{'domain':{'id':_0x1c613d['id']},'id':_0x253108}}),_0x55989b=await _0x359067[_0x34bed0(0x15c)](resource_base_1[_0x34bed0(0x144)])[_0x34bed0(0x122)]({'where':{'domain':{'id':_0x1c613d['id']},'entity':{'id':_0x351488['id']}}});let {name:_0x2579fb=''}=_0x351488||{},_0x34d4d6=kebabCase(_0x2579fb),_0x52e415=modelTemplate['replace'](/{{pascalCase name}}/g,startCase(camelCase(_0x2579fb))[_0x34bed0(0x174)](/ /g,''))[_0x34bed0(0x174)](/{{camelCase name}}/g,camelCase(_0x2579fb))[_0x34bed0(0x174)](/{{snakeCase name}}/g,snakeCase(_0x2579fb))[_0x34bed0(0x174)](/{{pluralPascalCase name}}/g,startCase(camelCase(plural(_0x2579fb)))[_0x34bed0(0x174)](/ /g,''))[_0x34bed0(0x174)](/{{pluralCamelCase name}}/g,camelCase(plural(_0x2579fb)))[_0x34bed0(0x174)](/{{name}}/g,_0x2579fb),_0x41e28a='';_0x34bed0(0x173)==_0x351488[_0x34bed0(0x16a)]?_0x41e28a=_0x34bed0(0x11c):_0x34bed0(0x170)==_0x351488[_0x34bed0(0x16a)]&&(_0x41e28a='\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x20\x22history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22basic\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22label\x22:\x20\x22data_history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22icon\x22:\x20\x22history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22logic\x22:\x20\x22history_copy\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20'),_0x52e415=_0x52e415[_0x34bed0(0x174)](/{{HistoryButton}}/g,_0x41e28a);let _0x30e3cc=this[_0x34bed0(0x147)](_0x55989b);_0x52e415=_0x52e415['replace'](/{{SortColumns}}/g,_0x30e3cc[_0x34bed0(0x130)](','));let _0x38813d=this[_0x34bed0(0x131)](_0x55989b);_0x52e415=_0x52e415['replace'](/{{SearchColumns}}/g,_0x38813d[_0x34bed0(0x130)](','));let _0x457df7=this['createGridColumns'](_0x55989b);return _0x52e415=_0x52e415['replace'](/{{GridColumns}}/g,_0x457df7[_0x34bed0(0x130)](',')),_0x52e415=this['enc'](_0x52e415),await this['createMenuData'](_0x359067,_0x1c613d,_0x58fbaa,_0x376910,_0x34d4d6,_0x52e415),!0x0;}[a0_0x163683(0x138)](_0x462038){const _0x5da995=a0_0x163683;return _0x462038[_0x5da995(0x185)](_0x2a660a=>'id'!=_0x2a660a['name']&&_0x2a660a[_0x5da995(0x121)]>0x0)[_0x5da995(0x182)](function(_0x23b2e4,_0xb8501e){const _0x370db1=_0x5da995;return _0x23b2e4[_0x370db1(0x121)]-_0xb8501e[_0x370db1(0x121)];})['map'](_0x2d3690=>{const _0x1f2004=_0x5da995;let {gridEditor:_0xe4b93d=_0x1f2004(0x11e),name:_0x962c87,term:_0x404881,gridWidth:_0x113476=0x0,gridAlign:_0x5ddcad=_0x1f2004(0x136),nullable:_0x5aa882=!0x1}=_0x2d3690;if(null==_0xe4b93d&&(_0xe4b93d=_0x1f2004(0x11e)),null==_0x5ddcad&&(_0x5ddcad=_0x1f2004(0x136)),_0x1f2004(0x129)==_0x962c87||_0x1f2004(0x125)==_0x962c87)return _0x962c87='updater_id'==_0x962c87?_0x1f2004(0x140):_0x1f2004(0x12b),_0x1f2004(0x14c)+_0x962c87+_0x1f2004(0x13c)+_0x962c87+_0x1f2004(0x15d);if('updated_at'==_0x962c87||'created_at'==_0x962c87)return _0x1f2004(0x12e)+('updated_at'==_0x962c87?'updatedAt':'createdAt')+'\x22,\x22header\x22:\x20\x22'+_0x962c87+_0x1f2004(0x117);let _0x5ebd9a=_0x1f2004(0x14e)!=_0xe4b93d&&_0x1f2004(0x16d)!=_0xe4b93d,_0x1b9e47=_0x1f2004(0x16d)==_0xe4b93d;0x1!=_0x1b9e47&&0x0!=_0x5ebd9a||(_0xe4b93d='string');let _0x2c950a=_0x1f2004(0x179)+_0xe4b93d+_0x1f2004(0x149)+camelCase(_0x962c87)+_0x1f2004(0x13c)+_0x404881+'\x22,\x22hidden\x22:'+_0x1b9e47+_0x1f2004(0x178)+_0x5ebd9a+_0x1f2004(0x137)+!_0x5aa882+_0x1f2004(0x17f)+_0x5ddcad+'\x22,\x22width\x22:'+_0x113476+_0x1f2004(0x123);return _0x1f2004(0x126)==_0x2d3690['refType']&&(_0x2c950a+=_0x1f2004(0x15f)+_0x2d3690['refName']+'\x22}'),'scenario'==_0x2d3690[_0x1f2004(0x115)]&&(_0x2c950a+=_0x1f2004(0x13b)+_0x2d3690[_0x1f2004(0x12c)]+'\x22}'),_0x1f2004(0x119)==_0x2d3690['refType']&&(_0x2c950a+=_0x1f2004(0x151)+camelCase(plural(_0x2d3690['refName']))+_0x1f2004(0x14f)),_0x2c950a+='}',_0x2c950a;});}[a0_0x163683(0x131)](_0x4ffb8b){const _0x3ba1eb=a0_0x163683;return _0x4ffb8b[_0x3ba1eb(0x185)](_0x4bad26=>_0x4bad26[_0x3ba1eb(0x172)]>0x0)['sort'](function(_0x2c65f0,_0x15df6c){const _0x455535=_0x3ba1eb;return _0x2c65f0[_0x455535(0x172)]-_0x15df6c[_0x455535(0x172)];})[_0x3ba1eb(0x184)](_0x26f0ae=>{const _0x26859c=_0x3ba1eb;let _0x140d20=_0x26f0ae['searchOper'];return _0x26859c(0x185)==_0x140d20?'\x22'+camelCase(_0x26f0ae['name'])+'\x22':(_0x140d20||(_0x140d20='eq'),'{\x22name\x22:\x20\x22'+camelCase(_0x26f0ae[_0x26859c(0x183)])+_0x26859c(0x134)+_0x140d20+'\x22}');});}[a0_0x163683(0x147)](_0x33ae3f){const _0xde6479=a0_0x163683;return _0x33ae3f[_0xde6479(0x185)](_0x176ee0=>_0x176ee0[_0xde6479(0x156)]>0x0)['sort'](function(_0x1c31ae,_0xf5951c){const _0x3ac4e9=_0xde6479;return _0x1c31ae['sortRank']-_0xf5951c[_0x3ac4e9(0x156)];})['map'](_0x453537=>_0xde6479(0x165)+camelCase(_0x453537[_0xde6479(0x183)])+_0xde6479(0x13f)+_0x453537['reverseSort']+'}');}async[a0_0x163683(0x118)](_0x17a356,_0x3af22c,_0xc9fe82,_0x5b6a73,_0x383c49,_0x4b32ce){const _0x4f5c00=a0_0x163683;let _0x136848=await _0x17a356[_0x4f5c00(0x15c)](menu_base_1[_0x4f5c00(0x17a)])[_0x4f5c00(0x187)]({'where':{'domain':{'id':_0x3af22c['id']},'id':_0x5b6a73}}),_0x443d0d=(await _0x17a356[_0x4f5c00(0x15c)](menu_base_1[_0x4f5c00(0x17a)])['query'](_0x4f5c00(0x11a)+_0x5b6a73+_0x4f5c00(0x181)+_0x5b6a73+'\x27'))[0x0][_0x4f5c00(0x158)]+0xa,_0x598784=new menu_base_1[(_0x4f5c00(0x17a))]();_0x598784['name']=_0x383c49,_0x598784[_0x4f5c00(0x157)]=_0x4f5c00(0x15b),_0x598784[_0x4f5c00(0x14d)]=_0x4f5c00(0x12f),_0x598784[_0x4f5c00(0x158)]=_0x443d0d,_0x598784['hiddenFlag']=!0x1,_0x598784[_0x4f5c00(0x16b)]=_0x383c49,_0x598784['template']=_0x4b32ce,_0x598784[_0x4f5c00(0x15e)]='@things-factory/meta-ui/client/pages/meta-grist-page',_0x598784['parent']=_0x136848,await _0x17a356['getRepository'](menu_base_1[_0x4f5c00(0x17a)])['save'](Object[_0x4f5c00(0x177)](Object['assign']({},_0x598784),{'domain':_0x3af22c,'creator':_0xc9fe82,'updater':_0xc9fe82}));}[a0_0x163683(0x164)](_0x447ad1){const _0x57f4f0=a0_0x163683;let _0x44224f=JSON['stringify'](_0x447ad1)[_0x57f4f0(0x176)](/(.{100})/)[_0x57f4f0(0x185)](_0x118c7d=>_0x118c7d),_0x5598a7=[_0x57f4f0(0x154),_0x57f4f0(0x13e),'aes-256-cfb',_0x57f4f0(0x159),_0x57f4f0(0x166),'aes-256-ofb',_0x57f4f0(0x167),_0x57f4f0(0x143)],_0x41019a=crypto_1[_0x57f4f0(0x139)][_0x57f4f0(0x12a)](0x20)[_0x57f4f0(0x155)](_0x57f4f0(0x146)),_0x44d3c=Buffer[_0x57f4f0(0x141)](_0x41019a,'hex'),_0x18fbff=_0x41019a['substring'](0x0,0x10),_0x28d991=['',_0x18fbff,_0x18fbff,_0x18fbff,_0x18fbff,_0x18fbff,_0x18fbff,_0x18fbff],_0x44328c=0x0,_0xb82b01=[];_0xb82b01[_0x57f4f0(0x13d)](_0x41019a);for(var _0x2079af=0x0;_0x2079af<_0x44224f[_0x57f4f0(0x161)];_0x2079af++,_0x44328c++){_0x44328c==_0x5598a7[_0x57f4f0(0x161)]&&(_0x44328c=0x0);let _0x4e72ed=crypto_1[_0x57f4f0(0x139)]['createCipheriv'](_0x5598a7[_0x44328c],_0x44d3c,_0x28d991[_0x44328c]),_0x33b8cb=_0x4e72ed[_0x57f4f0(0x11d)](_0x44224f[_0x2079af],_0x57f4f0(0x128),_0x57f4f0(0x146));_0x33b8cb+=_0x4e72ed[_0x57f4f0(0x15a)](_0x57f4f0(0x146)),_0xb82b01[_0x57f4f0(0x13d)](_0x33b8cb);}return _0xb82b01[_0x57f4f0(0x130)](_0x57f4f0(0x11f));}};function a0_0x47ab(_0x577c35,_0x52cebd){const _0x118d1d=a0_0x118d();return a0_0x47ab=function(_0x47ab18,_0x46155c){_0x47ab18=_0x47ab18-0x115;let _0x240842=_0x118d1d[_0x47ab18];return _0x240842;},a0_0x47ab(_0x577c35,_0x52cebd);}tslib_1[a0_0x163683(0x188)]([(0x0,type_graphql_1['Directive'])(a0_0x163683(0x133)),(0x0,type_graphql_1['Mutation'])(_0x2fe465=>Boolean,{'description':a0_0x163683(0x163)}),tslib_1[a0_0x163683(0x145)](0x0,(0x0,type_graphql_1[a0_0x163683(0x11b)])('id')),tslib_1[a0_0x163683(0x145)](0x1,(0x0,type_graphql_1['Arg'])(a0_0x163683(0x171))),tslib_1[a0_0x163683(0x145)](0x2,(0x0,type_graphql_1['Ctx'])()),tslib_1[a0_0x163683(0x17b)](a0_0x163683(0x124),Function),tslib_1[a0_0x163683(0x17b)]('design:paramtypes',[String,String,Object]),tslib_1[a0_0x163683(0x17b)](a0_0x163683(0x116),Promise)],OperatoToolCreateMenu[a0_0x163683(0x169)],a0_0x163683(0x160),null),OperatoToolCreateMenu=tslib_1[a0_0x163683(0x188)]([(0x0,type_graphql_1[a0_0x163683(0x16c)])()],OperatoToolCreateMenu),exports[a0_0x163683(0x132)]=OperatoToolCreateMenu;const modelTemplate=a0_0x163683(0x12d);
1
+ 'use strict';const a0_0x40a4ff=a0_0x4439;(function(_0x13e4da,_0x2a2264){const _0x1d1afb=a0_0x4439,_0x1268e2=_0x13e4da();while(!![]){try{const _0x4c449d=parseInt(_0x1d1afb(0x1ea))/0x1+-parseInt(_0x1d1afb(0x1ba))/0x2*(-parseInt(_0x1d1afb(0x1b9))/0x3)+-parseInt(_0x1d1afb(0x1e9))/0x4+-parseInt(_0x1d1afb(0x1bb))/0x5*(parseInt(_0x1d1afb(0x1fc))/0x6)+parseInt(_0x1d1afb(0x210))/0x7+-parseInt(_0x1d1afb(0x1f1))/0x8*(parseInt(_0x1d1afb(0x1f6))/0x9)+parseInt(_0x1d1afb(0x1ca))/0xa;if(_0x4c449d===_0x2a2264)break;else _0x1268e2['push'](_0x1268e2['shift']());}catch(_0x318246){_0x1268e2['push'](_0x1268e2['shift']());}}}(a0_0x3cd0,0x1f9f3));function a0_0x3cd0(){const _0x2d162=['Mutation','h1z0q9i9x7q6','aes-256-cfb8','Arg','__metadata','randomBytes','length','resourceUrl','rank','__param','EntityColumn','split','final','1117870KbXwLR','createGridColumns','filter','updater','refType','findOne','creator','menuType','sort','aes-256-cfb','\x22,\x22width\x22:\x20100,\x22editable\x22:false,\x20\x22align\x22:\x20\x22center\x22,\x22object_opt\x22:{\x22queryName\x22:\x22users\x22}}','from','createSortCols','code',',\x22select_opt\x22:{\x22type\x22:\x22code\x22,\x22name\x22:\x22','Resolver','left','replace','JSON','push','OperatoToolCreateMenu','\x22,\x22operator\x22:\x20\x22','gridRank','\x22,\x22name\x22:\x20\x22','parent','design:type','creator_id','default','aes-256-cbc','state','@things-factory/menu-base','613960OxYqtD','137214stqzTI','searchRank','prototype','aes-256-ecb','updater_id','updatedAt','entity','560272wqdyUf','type-graphql','substring','crypto','design:returntype','9ciUJaK','design:paramtypes','readonly','@transaction','defineProperty','aes-256-ofb','88794DhxIhj','getRepository','createCipheriv','./../tool-secret/tool-permission','aes-256-ctr','createSearchCols','toolCreateMenu','__importDefault','save','tslib','__esModule','update','\x0a{\x0a\x20\x20\x22menu\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22title\x22:\x20\x22{{name}}\x22,\x0a\x20\x20\x20\x20\x20\x20\x22name\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x20\x20\x22desc\x22:\x20\x22\x22\x0a\x20\x20},\x0a\x20\x20\x22gql\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22query\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22list_func\x22:\x20\x22{{pluralCamelCase\x20name}}\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22find_one_func\x22:\x22{{camelCase\x20name}}\x22\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x22mutation\x22:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22multiple\x22:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22func\x22:\x22updateMultiple{{pascalCase\x20name}}\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22{{pascalCase\x20name}}Patch\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22delete\x22:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22func\x22:\x22delete{{pluralPascalCase\x20name}}\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20},\x0a\x20\x20\x22button\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x22export\x22\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x22add\x22\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x22delete\x22\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x22save\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20],\x0a\x20\x20\x22grid_column\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22string\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x20\x22id\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22header\x22:\x20\x22id\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22hidden\x22:\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22editable\x22:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22mandatory\x22:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22sortable\x22:\x20false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22align\x22:\x20\x22left\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22width\x22:\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22exportable\x22:\x20false\x0a\x20\x20\x20\x20\x20\x20},\x0a{{GridColumns}}\x0a\x20\x20],\x0a\x20\x20\x22grid\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22button\x22:[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{HistoryButton}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22option\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22mobile_mode\x22:\x20\x22LIST\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22desk_mode\x22:\x20\x22GRID\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22use_row_checker\x22:\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22pages\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2020,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2050,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20100,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20300\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22view_mode\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22GRID\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22LIST\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22CARD\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22sorters\x22:\x20[\x0a{{SortColumns}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x22row\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22multiple_select\x22:\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22click\x22:\x20\x22select-row-toggle\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20},\x0a\x20\x20\x22search\x22:\x20[\x0a{{SearchColumns}}\x0a\x20\x20]\x0a}\x0a','Menu','\x22,\x22hidden\x22:','Entity','aes256','hiddenFlag','pluralize','\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x20\x22history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22basic\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22label\x22:\x20\x22data_history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22icon\x22:\x20\x22history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22logic\x22:\x20\x22history_json\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20','828387dVsSNe','query','stringify','aes-256-cfb1','string','hex','map','hidden','createMenuData','updated_at','reverseSort','join','sortRank','\x22,\x22header\x22:\x20\x22','enc',',\x22select_opt\x22:{\x22type\x22:\x22scenario\x22,\x22name\x22:\x22','parent_menu_id',',\x22sortable\x22:true\x20,\x22align\x22:\x20\x22','{\x22type\x22:\x20\x22','dataProp','routing','\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22name\x22:\x20\x22history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22basic\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22label\x22:\x20\x22data_history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22icon\x22:\x20\x22history\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22logic\x22:\x20\x22history_copy\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20','\x20,\x22exportable\x22:\x20true','{\x22type\x22:\x20\x22datetime\x22,\x22name\x22:\x20\x22','name','@things-factory/resource-base','utf8','3114AjylkG','58ObzMlj','15ETihCI','refName'];a0_0x3cd0=function(){return _0x2d162;};return a0_0x3cd0();}Object[a0_0x40a4ff(0x1fa)](exports,a0_0x40a4ff(0x206),{'value':!0x0}),exports[a0_0x40a4ff(0x1de)]=void 0x0;const tslib_1=require(a0_0x40a4ff(0x205)),type_graphql_1=require(a0_0x40a4ff(0x1f2)),resource_base_1=require(a0_0x40a4ff(0x1b7)),menu_base_1=require(a0_0x40a4ff(0x1e8)),tool_permission_1=require(a0_0x40a4ff(0x1ff)),{camelCase:camelCase,startCase:startCase,snakeCase:snakeCase,kebabCase:kebabCase}=require('lodash'),{plural:plural}=require(a0_0x40a4ff(0x20e)),crypto_1=tslib_1[a0_0x40a4ff(0x203)](require(a0_0x40a4ff(0x1f4)));let OperatoToolCreateMenu=class{async[a0_0x40a4ff(0x202)](_0x78d71c,_0xb60b01,_0x5d6630){const _0x1a7205=a0_0x40a4ff,{domain:_0x59c884,user:_0xa0645e,tx:_0x476253}=_0x5d6630[_0x1a7205(0x1e7)];await(0x0,tool_permission_1['checkStudioTemplateIsOverLimit'])('',_0x5d6630);const _0x23ee8e=await _0x476253[_0x1a7205(0x1fd)](resource_base_1[_0x1a7205(0x20b)])[_0x1a7205(0x1cf)]({'where':{'domain':{'id':_0x59c884['id']},'id':_0x78d71c}}),_0x341d09=await _0x476253['getRepository'](resource_base_1[_0x1a7205(0x1c7)])['find']({'where':{'domain':{'id':_0x59c884['id']},'entity':{'id':_0x23ee8e['id']}}});let {name:_0x28a7fb=''}=_0x23ee8e||{},_0x119dec=kebabCase(_0x28a7fb),_0x55b963=modelTemplate['replace'](/{{pascalCase name}}/g,startCase(camelCase(_0x28a7fb))[_0x1a7205(0x1db)](/ /g,''))[_0x1a7205(0x1db)](/{{camelCase name}}/g,camelCase(_0x28a7fb))[_0x1a7205(0x1db)](/{{snakeCase name}}/g,snakeCase(_0x28a7fb))[_0x1a7205(0x1db)](/{{pluralPascalCase name}}/g,startCase(camelCase(plural(_0x28a7fb)))[_0x1a7205(0x1db)](/ /g,''))[_0x1a7205(0x1db)](/{{pluralCamelCase name}}/g,camelCase(plural(_0x28a7fb)))['replace'](/{{name}}/g,_0x28a7fb),_0x3bf6ed='';_0x1a7205(0x1dc)==_0x23ee8e['dataProp']?_0x3bf6ed=_0x1a7205(0x20f):'COPY'==_0x23ee8e[_0x1a7205(0x1b1)]&&(_0x3bf6ed=_0x1a7205(0x1b3)),_0x55b963=_0x55b963['replace'](/{{HistoryButton}}/g,_0x3bf6ed);let _0x321eeb=this[_0x1a7205(0x1d6)](_0x341d09);_0x55b963=_0x55b963[_0x1a7205(0x1db)](/{{SortColumns}}/g,_0x321eeb[_0x1a7205(0x1a9)](','));let _0x446f0b=this[_0x1a7205(0x201)](_0x341d09);_0x55b963=_0x55b963[_0x1a7205(0x1db)](/{{SearchColumns}}/g,_0x446f0b[_0x1a7205(0x1a9)](','));let _0xc5f76d=this[_0x1a7205(0x1cb)](_0x341d09);return _0x55b963=_0x55b963[_0x1a7205(0x1db)](/{{GridColumns}}/g,_0xc5f76d[_0x1a7205(0x1a9)](',')),_0x55b963=this['enc'](_0x55b963),await this[_0x1a7205(0x1a6)](_0x476253,_0x59c884,_0xa0645e,_0xb60b01,_0x119dec,_0x55b963),!0x0;}[a0_0x40a4ff(0x1cb)](_0x2553c3){const _0x249d07=a0_0x40a4ff;return _0x2553c3[_0x249d07(0x1cc)](_0x10c9d4=>'id'!=_0x10c9d4[_0x249d07(0x1b6)]&&_0x10c9d4[_0x249d07(0x1e0)]>0x0)[_0x249d07(0x1d2)](function(_0x30bd21,_0x3dcb90){const _0x4a243f=_0x249d07;return _0x30bd21[_0x4a243f(0x1e0)]-_0x3dcb90[_0x4a243f(0x1e0)];})[_0x249d07(0x1a4)](_0xefd62=>{const _0x4f578d=_0x249d07;let {gridEditor:_0x325bc4=_0x4f578d(0x1a2),name:_0x2fdcea,term:_0x5231a9,gridWidth:_0x509c8e=0x0,gridAlign:_0x4e54af=_0x4f578d(0x1da),nullable:_0x414706=!0x1}=_0xefd62;if(null==_0x325bc4&&(_0x325bc4=_0x4f578d(0x1a2)),null==_0x4e54af&&(_0x4e54af=_0x4f578d(0x1da)),_0x4f578d(0x1ee)==_0x2fdcea||_0x4f578d(0x1e4)==_0x2fdcea)return _0x2fdcea=_0x4f578d(0x1ee)==_0x2fdcea?_0x4f578d(0x1cd):_0x4f578d(0x1d0),'{\x22type\x22:\x20\x22object\x22,\x22name\x22:\x20\x22'+_0x2fdcea+_0x4f578d(0x1ab)+_0x2fdcea+_0x4f578d(0x1d4);if(_0x4f578d(0x1a7)==_0x2fdcea||'created_at'==_0x2fdcea)return _0x4f578d(0x1b5)+(_0x4f578d(0x1a7)==_0x2fdcea?_0x4f578d(0x1ef):'createdAt')+'\x22,\x22header\x22:\x20\x22'+_0x2fdcea+'\x22,\x22width\x22:\x20160,\x22editable\x22:false,\x20\x22align\x22:\x20\x22center\x22}';let _0x58d8cc=_0x4f578d(0x1f8)!=_0x325bc4&&_0x4f578d(0x1a5)!=_0x325bc4,_0x2d66a1='hidden'==_0x325bc4;0x1!=_0x2d66a1&&0x0!=_0x58d8cc||(_0x325bc4=_0x4f578d(0x1a2));let _0x21750f=_0x4f578d(0x1b0)+_0x325bc4+_0x4f578d(0x1e1)+camelCase(_0x2fdcea)+'\x22,\x22header\x22:\x20\x22'+_0x5231a9+_0x4f578d(0x20a)+_0x2d66a1+'\x20,\x22editable\x22:\x20'+_0x58d8cc+',\x22mandatory\x22:\x20'+!_0x414706+_0x4f578d(0x1af)+_0x4e54af+'\x22,\x22width\x22:'+_0x509c8e+_0x4f578d(0x1b4);return _0x4f578d(0x1d7)==_0xefd62[_0x4f578d(0x1ce)]&&(_0x21750f+=_0x4f578d(0x1d8)+_0xefd62[_0x4f578d(0x1bc)]+'\x22}'),'scenario'==_0xefd62['refType']&&(_0x21750f+=_0x4f578d(0x1ad)+_0xefd62[_0x4f578d(0x1bc)]+'\x22}'),_0x4f578d(0x1f0)==_0xefd62['refType']&&(_0x21750f+=',\x22select_opt\x22:{\x22type\x22:\x20\x22entity\x22,\x22args\x22:\x20{\x22queryName\x22:\x20\x22'+camelCase(plural(_0xefd62[_0x4f578d(0x1bc)]))+'\x22,\x22codeField\x22:\x20\x22id\x22,\x22dispField\x22:\x20\x22name\x22}}'),_0x21750f+='}',_0x21750f;});}[a0_0x40a4ff(0x201)](_0x386967){const _0x4dae8d=a0_0x40a4ff;return _0x386967['filter'](_0x483b79=>_0x483b79[_0x4dae8d(0x1eb)]>0x0)['sort'](function(_0x473aa3,_0x2b1afa){const _0x231c10=_0x4dae8d;return _0x473aa3[_0x231c10(0x1eb)]-_0x2b1afa[_0x231c10(0x1eb)];})[_0x4dae8d(0x1a4)](_0x11c229=>{const _0x4821da=_0x4dae8d;let _0x16b0a8=_0x11c229['searchOper'];return _0x4821da(0x1cc)==_0x16b0a8?'\x22'+camelCase(_0x11c229[_0x4821da(0x1b6)])+'\x22':(_0x16b0a8||(_0x16b0a8='eq'),'{\x22name\x22:\x20\x22'+camelCase(_0x11c229[_0x4821da(0x1b6)])+_0x4821da(0x1df)+_0x16b0a8+'\x22}');});}[a0_0x40a4ff(0x1d6)](_0xe0ee2a){const _0x1dad87=a0_0x40a4ff;return _0xe0ee2a[_0x1dad87(0x1cc)](_0x2270e6=>_0x2270e6[_0x1dad87(0x1aa)]>0x0)[_0x1dad87(0x1d2)](function(_0x28572f,_0x209cff){const _0x6f7a58=_0x1dad87;return _0x28572f[_0x6f7a58(0x1aa)]-_0x209cff[_0x6f7a58(0x1aa)];})[_0x1dad87(0x1a4)](_0x2c3578=>'{\x22name\x22:\x22'+camelCase(_0x2c3578[_0x1dad87(0x1b6)])+'\x22,\x22desc\x22:'+_0x2c3578[_0x1dad87(0x1a8)]+'}');}async[a0_0x40a4ff(0x1a6)](_0x433ca0,_0x481dff,_0x1ef9f6,_0x160da9,_0x59d956,_0x2f4542){const _0x2f58a5=a0_0x40a4ff;let _0x57a79f=await _0x433ca0[_0x2f58a5(0x1fd)](menu_base_1['Menu'])[_0x2f58a5(0x1cf)]({'where':{'domain':{'id':_0x481dff['id']},'id':_0x160da9}}),_0x2acdeb=(await _0x433ca0[_0x2f58a5(0x1fd)](menu_base_1['Menu'])[_0x2f58a5(0x211)]('select\x20coalesce(max(rank),0)\x20as\x20rank\x20from\x20menus\x20where\x20parent_id\x20=\x20\x27'+_0x160da9+'\x27\x20or\x20id\x20=\x20\x27'+_0x160da9+'\x27'))[0x0][_0x2f58a5(0x1c5)]+0xa,_0x11dca9=new menu_base_1[(_0x2f58a5(0x209))]();_0x11dca9[_0x2f58a5(0x1b6)]=_0x59d956,_0x11dca9[_0x2f58a5(0x1d1)]='SCREEN',_0x11dca9['category']='meta-grist-page',_0x11dca9['rank']=_0x2acdeb,_0x11dca9[_0x2f58a5(0x20d)]=!0x1,_0x11dca9[_0x2f58a5(0x1b2)]=_0x59d956,_0x11dca9['template']=_0x2f4542,_0x11dca9[_0x2f58a5(0x1c4)]='@things-factory/meta-ui/client/pages/meta-grist-page',_0x11dca9[_0x2f58a5(0x1e2)]=_0x57a79f,await _0x433ca0['getRepository'](menu_base_1['Menu'])[_0x2f58a5(0x204)](Object['assign'](Object['assign']({},_0x11dca9),{'domain':_0x481dff,'creator':_0x1ef9f6,'updater':_0x1ef9f6}));}[a0_0x40a4ff(0x1ac)](_0xef5e47){const _0x2976b2=a0_0x40a4ff;let _0x94a198=JSON[_0x2976b2(0x212)](_0xef5e47)[_0x2976b2(0x1c8)](/(.{100})/)[_0x2976b2(0x1cc)](_0x1e9b4d=>_0x1e9b4d),_0x2a48b6=[_0x2976b2(0x1ed),_0x2976b2(0x1e6),_0x2976b2(0x1d3),_0x2976b2(0x1bf),_0x2976b2(0x1a1),_0x2976b2(0x1fb),_0x2976b2(0x200),_0x2976b2(0x20c)],_0x21baff=crypto_1[_0x2976b2(0x1e5)][_0x2976b2(0x1c2)](0x20)['toString'](_0x2976b2(0x1a3)),_0x1ca182=Buffer[_0x2976b2(0x1d5)](_0x21baff,_0x2976b2(0x1a3)),_0x20ebb1=_0x21baff[_0x2976b2(0x1f3)](0x0,0x10),_0x1cb331=['',_0x20ebb1,_0x20ebb1,_0x20ebb1,_0x20ebb1,_0x20ebb1,_0x20ebb1,_0x20ebb1],_0x4b2ced=0x0,_0x21ee5d=[];_0x21ee5d[_0x2976b2(0x1dd)](_0x21baff);for(var _0x42322d=0x0;_0x42322d<_0x94a198[_0x2976b2(0x1c3)];_0x42322d++,_0x4b2ced++){_0x4b2ced==_0x2a48b6[_0x2976b2(0x1c3)]&&(_0x4b2ced=0x0);let _0x34fcab=crypto_1[_0x2976b2(0x1e5)][_0x2976b2(0x1fe)](_0x2a48b6[_0x4b2ced],_0x1ca182,_0x1cb331[_0x4b2ced]),_0x511e7b=_0x34fcab[_0x2976b2(0x207)](_0x94a198[_0x42322d],_0x2976b2(0x1b8),_0x2976b2(0x1a3));_0x511e7b+=_0x34fcab[_0x2976b2(0x1c9)]('hex'),_0x21ee5d[_0x2976b2(0x1dd)](_0x511e7b);}return _0x21ee5d[_0x2976b2(0x1a9)](_0x2976b2(0x1be));}};tslib_1['__decorate']([(0x0,type_graphql_1['Directive'])(a0_0x40a4ff(0x1f9)),(0x0,type_graphql_1[a0_0x40a4ff(0x1bd)])(_0x295f10=>Boolean,{'description':'Operato\x20Tool\x20Create\x20Menu'}),tslib_1[a0_0x40a4ff(0x1c6)](0x0,(0x0,type_graphql_1['Arg'])('id')),tslib_1[a0_0x40a4ff(0x1c6)](0x1,(0x0,type_graphql_1[a0_0x40a4ff(0x1c0)])(a0_0x40a4ff(0x1ae))),tslib_1['__param'](0x2,(0x0,type_graphql_1['Ctx'])()),tslib_1[a0_0x40a4ff(0x1c1)](a0_0x40a4ff(0x1e3),Function),tslib_1[a0_0x40a4ff(0x1c1)](a0_0x40a4ff(0x1f7),[String,String,Object]),tslib_1[a0_0x40a4ff(0x1c1)](a0_0x40a4ff(0x1f5),Promise)],OperatoToolCreateMenu[a0_0x40a4ff(0x1ec)],a0_0x40a4ff(0x202),null),OperatoToolCreateMenu=tslib_1['__decorate']([(0x0,type_graphql_1[a0_0x40a4ff(0x1d9)])()],OperatoToolCreateMenu),exports[a0_0x40a4ff(0x1de)]=OperatoToolCreateMenu;function a0_0x4439(_0x2519f2,_0x2a7149){const _0x3cd0c9=a0_0x3cd0();return a0_0x4439=function(_0x443946,_0x55f552){_0x443946=_0x443946-0x1a1;let _0x8c4ad7=_0x3cd0c9[_0x443946];return _0x8c4ad7;},a0_0x4439(_0x2519f2,_0x2a7149);}const modelTemplate=a0_0x40a4ff(0x208);
@@ -1 +1 @@
1
- 'use strict';function a0_0x80df(){const _0x2e6fe5=['existsPath','updated_at','Query','-mutation.ts','domain','createTypeText','12541888tLEXhP','\x20})','EntitySubscribers\x20}\x20from\x20\x27./','-history\x27','domain_id','36820449CbeqNP','getRepository','datetime','created_at','Resolvers,\x20subscribers\x20as\x20','.ts','createEntityText','\x20{\x20nullable:\x20','\x0aimport\x20{\x20Resolver,\x20Query,\x20FieldResolver,\x20Root,\x20Args,\x20Arg,\x20Ctx,\x20Directive\x20}\x20from\x20\x27type-graphql\x27\x0aimport\x20{\x20Domain,\x20ListParam,\x20convertListParams,\x20getRepository,\x20getQueryBuilderFromListParams\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20{{pascalCase\x20name}}List\x20}\x20from\x20\x27./{{name}}-type\x27\x0a\x0a@Resolver({{pascalCase\x20name}})\x0aexport\x20class\x20{{pascalCase\x20name}}Query\x20{\x0a\x20\x20@Query(returns\x20=>\x20{{pascalCase\x20name}},\x20{\x20description:\x20\x27To\x20fetch\x20a\x20{{pascalCase\x20name}}\x27\x20})\x0a\x20\x20async\x20{{camelCase\x20name}}(@Arg(\x27id\x27)\x20id:\x20string,\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain\x20}\x20=\x20context.state\x0a\x20\x20\x20\x20return\x20await\x20getRepository({{pascalCase\x20name}}).findOne({\x0a\x20\x20\x20\x20\x20\x20where:\x20{\x20domain:\x20{\x20id:\x20domain.id\x20},\x20id\x20}\x0a\x20\x20\x20\x20})\x0a\x20\x20}\x0a\x0a\x20\x20@Query(returns\x20=>\x20{{pascalCase\x20name}}List,\x20{\x20description:\x20\x27To\x20fetch\x20multiple\x20{{pluralPascalCase\x20name}}\x27\x20})\x0a\x20\x20async\x20{{pluralCamelCase\x20name}}(@Args()\x20params:\x20ListParam,\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}List>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20const\x20queryBuilder\x20=\x20getQueryBuilderFromListParams({\x0a\x20\x20\x20\x20\x20\x20domain,\x0a\x20\x20\x20\x20\x20\x20params,\x0a\x20\x20\x20\x20\x20\x20repository:\x20await\x20getRepository({{pascalCase\x20name}})\x0a\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20const\x20convertedParams\x20=\x20convertListParams(params,\x20domain.id)\x0a\x20\x20\x20\x20const\x20[items,\x20total]\x20=\x20await\x20queryBuilder.getManyAndCount()\x0a\x0a\x20\x20\x20\x20return\x20{\x20items,\x20total\x20}\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20Domain)\x0a\x20\x20async\x20domain(@Root()\x20{{camelCase\x20name}}:\x20{{pascalCase\x20name}}):\x20Promise<Domain>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(Domain).findOneBy({id:{{camelCase\x20name}}.domainId})\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20User)\x0a\x20\x20async\x20updater(@Root()\x20{{camelCase\x20name}}:\x20{{pascalCase\x20name}}):\x20Promise<User>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(User).findOneBy({id:{{camelCase\x20name}}.updaterId})\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20User)\x0a\x20\x20async\x20creator(@Root()\x20{{camelCase\x20name}}:\x20{{pascalCase\x20name}}):\x20Promise<User>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(User).findOneBy({id:{{camelCase\x20name}}.creatorId})\x0a\x20\x20}\x0a}\x0a','Float','OperatoToolCreateService','colSize','createHistoryEntityText','...','__esModule','/index.ts','-query.ts','colType','\x27,\x20nullable:\x20','writeFileSync','PWD','utf8','bigint','/packages','\x0aimport\x20{\x0a\x20\x20CreateDateColumn,\x0a\x20\x20UpdateDateColumn,\x0a\x20\x20Entity,\x0a\x20\x20Index,\x0a\x20\x20Column,\x0a\x20\x20RelationId,\x0a\x20\x20ManyToOne,\x0a\x20\x20PrimaryGeneratedColumn,\x0a\x20\x20VersionColumn\x0a}\x20from\x20\x27typeorm\x27\x0a\x0aimport\x20{\x0a\x20\x20HistoryActionColumn,\x0a\x20\x20HistoryActionType,\x0a\x20\x20HistoryEntityInterface,\x0a\x20\x20HistoryOriginalIdColumn\x0a}\x20from\x20\x27@operato/typeorm-history\x27\x0a\x0aimport\x20{\x20ObjectType,\x20Field,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20config\x20}\x20from\x20\x27@things-factory/env\x27\x0aimport\x20{\x20Domain,\x20ScalarObject\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0a\x0aconst\x20ORMCONFIG\x20=\x20config.get(\x27ormconfig\x27,\x20{})\x0aconst\x20DATABASE_TYPE\x20=\x20ORMCONFIG.type\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0a\x0a@Entity(\x27{{tableName}}_histories\x27)\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_0\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.originalId,{{camelCase\x20name}}History.dataRevisionNo],\x20{\x20unique:\x20true\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_1\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.originalId\x20],\x20{\x20unique:\x20false\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_2\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.domain,\x20{{camelCase\x20name}}History.originalId\x20],\x20{\x20unique:\x20false\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_3\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.domain,\x20{{camelCase\x20name}}History.originalId,\x20{{camelCase\x20name}}History.dataRevisionNo],\x20{\x20unique:\x20true\x20})\x0a@ObjectType({\x20description:\x20\x27Entity\x20for\x20{{pascalCase\x20name}}History\x27\x20})\x0aexport\x20class\x20{{pascalCase\x20name}}History\x20\x20implements\x20HistoryEntityInterface<{{pascalCase\x20name}}>{\x0a\x20\x20@PrimaryGeneratedColumn(\x27uuid\x27)\x0a\x20\x20@Field(type\x20=>\x20ID)\x0a\x20\x20readonly\x20id:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20Domain,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20domain:\x20Domain\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.domain)\x0a\x20\x20domainId:\x20string\x0a\x0a\x20\x20@HistoryOriginalIdColumn({type:\x20\x27character\x20varying\x27,\x20nullable:\x20false\x20,length:40})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20public\x20originalId!:\x20string\x0a\x0a\x0a\x20\x20@HistoryActionColumn({\x0a\x20\x20\x20\x20nullable:\x20false,\x0a\x20\x20\x20\x20type:\x0a\x20\x20\x20\x20\x20\x20DATABASE_TYPE\x20==\x20\x27postgres\x27\x20||\x20DATABASE_TYPE\x20==\x20\x27mysql\x27\x20||\x20DATABASE_TYPE\x20==\x20\x27mariadb\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20?\x20\x27enum\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20:\x20DATABASE_TYPE\x20==\x20\x27oracle\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20?\x20\x27varchar2\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20:\x20\x27smallint\x27,\x0a\x20\x20\x20\x20enum:\x20HistoryActionType\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20public\x20dataRevisionAction!:\x20HistoryActionType\x0a\x0a\x20\x20@Column({\x20default:\x201,\x20nullable:\x20false\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20dataRevisionNo?:\x20number\x20=\x201\x0a\x0a{{entityColumns}}\x0a\x0a\x20\x20@CreateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20createdAt?:\x20Date\x0a\x0a\x20\x20@UpdateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updatedAt?:\x20Date\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20creator?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.creator)\x0a\x20\x20creatorId?:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updater?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.updater)\x0a\x20\x20updaterId?:\x20string\x0a}\x0a','/event-subscriber.ts','export\x20*\x20from\x20\x27./','createServicePath','getFieldType','writeFile','__decorate','float','-history-query.ts','\x0aimport\x20{\x0a\x20\x20CreateDateColumn,\x0a\x20\x20UpdateDateColumn,\x0a\x20\x20Entity,\x0a\x20\x20Index,\x0a\x20\x20Column,\x0a\x20\x20RelationId,\x0a\x20\x20ManyToOne,\x0a\x20\x20PrimaryGeneratedColumn,\x0a\x20\x20VersionColumn\x0a}\x20from\x20\x27typeorm\x27\x0aimport\x20{\x20ObjectType,\x20Field,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20Domain\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0a\x0a@Entity(\x27{{tableName}}\x27)\x0a{{indexAnn}}\x0a@ObjectType({\x20description:\x20\x27Entity\x20for\x20{{pascalCase\x20name}}\x27\x20})\x0aexport\x20class\x20{{pascalCase\x20name}}\x20{\x0a\x20\x20@PrimaryGeneratedColumn(\x27uuid\x27)\x0a\x20\x20@Field(type\x20=>\x20ID)\x0a\x20\x20readonly\x20id:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20Domain,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20domain:\x20Domain\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}:\x20{{pascalCase\x20name}})\x20=>\x20{{camelCase\x20name}}.domain)\x0a\x20\x20domainId:\x20string\x0a\x0a{{entityColumns}}\x0a\x0a\x20\x20@CreateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20createdAt?:\x20Date\x0a\x0a\x20\x20@UpdateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updatedAt?:\x20Date\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20creator?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}:\x20{{pascalCase\x20name}})\x20=>\x20{{camelCase\x20name}}.creator)\x0a\x20\x20creatorId?:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updater?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}:\x20{{pascalCase\x20name}})\x20=>\x20{{camelCase\x20name}}.updater)\x0a\x20\x20updaterId?:\x20string\x0a}\x0a','createNoHistoryServiceFiels','nullable','EntityColumn','@things-factory/resource-base','createDir','state','getProjectRootPath','-type.ts','date','readFileSync','\x0aimport\x20{\x0a\x20\x20CreateDateColumn,\x0a\x20\x20UpdateDateColumn,\x0a\x20\x20Entity,\x0a\x20\x20Index,\x0a\x20\x20Column,\x0a\x20\x20RelationId,\x0a\x20\x20ManyToOne,\x0a\x20\x20PrimaryGeneratedColumn,\x0a\x20\x20VersionColumn\x0a}\x20from\x20\x27typeorm\x27\x0a\x0aimport\x20{\x0a\x20\x20HistoryActionColumn,\x0a\x20\x20HistoryActionType,\x0a\x20\x20HistoryEntityInterface,\x0a\x20\x20HistoryOriginalIdColumn\x0a}\x20from\x20\x27@operato/typeorm-history\x27\x0a\x0aimport\x20{\x20ObjectType,\x20Field,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20config\x20}\x20from\x20\x27@things-factory/env\x27\x0aimport\x20{\x20Domain,\x20ScalarObject\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0a\x0aconst\x20ORMCONFIG\x20=\x20config.get(\x27ormconfig\x27,\x20{})\x0aconst\x20DATABASE_TYPE\x20=\x20ORMCONFIG.type\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0a\x0a@Entity(\x27{{tableName}}_histories\x27)\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_0\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.originalId,{{camelCase\x20name}}History.dataRevisionNo],\x20{\x20unique:\x20true\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_1\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.originalId\x20],\x20{\x20unique:\x20false\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_2\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.domain,\x20{{camelCase\x20name}}History.originalId\x20],\x20{\x20unique:\x20false\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_3\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.domain,\x20{{camelCase\x20name}}History.originalId,\x20{{camelCase\x20name}}History.dataRevisionNo],\x20{\x20unique:\x20true\x20})\x0a@ObjectType({\x20description:\x20\x27Entity\x20for\x20{{pascalCase\x20name}}History\x27\x20})\x0aexport\x20class\x20{{pascalCase\x20name}}History\x20\x20implements\x20HistoryEntityInterface<{{pascalCase\x20name}}>{\x0a\x20\x20@PrimaryGeneratedColumn(\x27uuid\x27)\x0a\x20\x20@Field(type\x20=>\x20ID)\x0a\x20\x20readonly\x20id:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20Domain,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20domain:\x20Domain\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.domain)\x0a\x20\x20domainId:\x20string\x0a\x0a\x20\x20@HistoryOriginalIdColumn({type:\x20\x27character\x20varying\x27,\x20nullable:\x20false\x20,length:40})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20public\x20originalId!:\x20string\x0a\x0a\x20\x20@HistoryActionColumn({\x0a\x20\x20\x20\x20nullable:\x20false,\x0a\x20\x20\x20\x20type:\x0a\x20\x20\x20\x20\x20\x20DATABASE_TYPE\x20==\x20\x27postgres\x27\x20||\x20DATABASE_TYPE\x20==\x20\x27mysql\x27\x20||\x20DATABASE_TYPE\x20==\x20\x27mariadb\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20?\x20\x27enum\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20:\x20DATABASE_TYPE\x20==\x20\x27oracle\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20?\x20\x27varchar2\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20:\x20\x27smallint\x27,\x0a\x20\x20\x20\x20enum:\x20HistoryActionType\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20public\x20dataRevisionAction!:\x20HistoryActionType\x0a\x0a\x0a\x20\x20@Column({\x20default:\x201,\x20nullable:\x20false\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20dataRevisionNo?:\x20number\x20=\x201\x0a\x0a\x20\x20@Column(\x27simple-json\x27,\x20{\x20nullable:\x20true\x20})\x0a\x20\x20@Field(type\x20=>\x20ScalarObject,\x20{\x20nullable:\x20true\x20})\x0a\x20\x20historyJson?:\x20any\x0a\x0a\x20\x20@CreateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20createdAt?:\x20Date\x0a\x0a\x20\x20@UpdateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updatedAt?:\x20Date\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20creator?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.creator)\x0a\x20\x20creatorId?:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updater?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.updater)\x0a\x20\x20updaterId?:\x20string\x0a}\x0a','double\x20precision','createHistoryServiceFiles','text','toolCreateService','push','packages','env','Entities,\x20resolvers\x20as\x20','Arg','Resolvers\x20}\x20from\x20\x27./','/server','split','rank','/*\x20ENTITIES\x20*/\x0a\x09...','indexOf','__param','15SWmwON','replace','\x0aimport\x20{\x20Resolver,\x20Mutation,\x20Arg,\x20Ctx,\x20Directive\x20}\x20from\x20\x27type-graphql\x27\x0aimport\x20{\x20In\x20}\x20from\x20\x27typeorm\x27\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20New{{pascalCase\x20name}},\x20{{pascalCase\x20name}}Patch\x20}\x20from\x20\x27./{{name}}-type\x27\x0aimport\x20{\x20getRepository\x20}\x20from\x20\x27@things-factory/shell\x27\x0a\x0a@Resolver({{pascalCase\x20name}})\x0aexport\x20class\x20{{pascalCase\x20name}}Mutation\x20{\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20{{pascalCase\x20name}},\x20{\x20description:\x20\x27To\x20create\x20new\x20{{pascalCase\x20name}}\x27\x20})\x0a\x20\x20async\x20create{{pascalCase\x20name}}(@Arg(\x27{{camelCase\x20name}}\x27)\x20{{camelCase\x20name}}:\x20New{{pascalCase\x20name}},\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20user,\x20tx\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20return\x20await\x20tx.getRepository({{pascalCase\x20name}}).save({\x0a\x20\x20\x20\x20\x20\x20...{{camelCase\x20name}},\x0a\x20\x20\x20\x20\x20\x20domain,\x0a\x20\x20\x20\x20\x20\x20creator:\x20user,\x0a\x20\x20\x20\x20\x20\x20updater:\x20user\x0a\x20\x20\x20\x20})\x0a\x20\x20}\x0a\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20{{pascalCase\x20name}},\x20{\x20description:\x20\x27To\x20modify\x20{{pascalCase\x20name}}\x20information\x27\x20})\x0a\x20\x20async\x20update{{pascalCase\x20name}}(\x0a\x20\x20\x20\x20@Arg(\x27id\x27)\x20id:\x20string,\x0a\x20\x20\x20\x20@Arg(\x27patch\x27)\x20patch:\x20{{pascalCase\x20name}}Patch,\x0a\x20\x20\x20\x20@Ctx()\x20context:\x20any\x0a\x20\x20):\x20Promise<{{pascalCase\x20name}}>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20user,\x20tx\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20const\x20repository\x20=\x20tx.getRepository({{pascalCase\x20name}})\x0a\x20\x20\x20\x20const\x20{{camelCase\x20name}}\x20=\x20await\x20repository.findOne(\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20where:\x20{\x20domain:\x20{\x20id:\x20domain.id\x20},\x20id\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20relations:\x20[\x27domain\x27,\x20\x27updater\x27,\x20\x27creator\x27]\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20)\x0a\x0a\x20\x20\x20\x20return\x20await\x20repository.save({\x0a\x20\x20\x20\x20\x20\x20...{{camelCase\x20name}},\x0a\x20\x20\x20\x20\x20\x20...patch,\x0a\x20\x20\x20\x20\x20\x20updater:\x20user\x0a\x20\x20\x20\x20})\x0a\x20\x20}\x0a\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20[{{pascalCase\x20name}}],\x20{\x20description:\x20\x22To\x20modify\x20multiple\x20{{pluralPascalCase\x20name}}\x27\x20information\x22\x20})\x0a\x20\x20async\x20updateMultiple{{pascalCase\x20name}}(\x0a\x20\x20\x20\x20@Arg(\x27patches\x27,\x20type\x20=>\x20[{{pascalCase\x20name}}Patch])\x20patches:\x20{{pascalCase\x20name}}Patch[],\x0a\x20\x20\x20\x20@Ctx()\x20context:\x20any\x0a\x20\x20):\x20Promise<{{pascalCase\x20name}}[]>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20user,\x20tx\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20let\x20results\x20=\x20[]\x0a\x20\x20\x20\x20const\x20_createRecords\x20=\x20patches.filter((patch:\x20any)\x20=>\x20patch.cuFlag.toUpperCase()\x20===\x20\x27+\x27)\x0a\x20\x20\x20\x20const\x20_updateRecords\x20=\x20patches.filter((patch:\x20any)\x20=>\x20patch.cuFlag.toUpperCase()\x20===\x20\x27M\x27)\x0a\x20\x20\x20\x20const\x20{{camelCase\x20name}}Repo\x20=\x20tx.getRepository({{pascalCase\x20name}})\x0a\x0a\x20\x20\x20\x20if\x20(_createRecords.length\x20>\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20for\x20(let\x20i\x20=\x200;\x20i\x20<\x20_createRecords.length;\x20i++)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20newRecord\x20=\x20_createRecords[i]\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20result\x20=\x20await\x20{{camelCase\x20name}}Repo.save({\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20...newRecord,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20domain,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20creator:\x20user,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updater:\x20user\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20results.push({\x20...result,\x20cuFlag:\x20\x27+\x27\x20})\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20if\x20(_updateRecords.length\x20>\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20for\x20(let\x20i\x20=\x200;\x20i\x20<\x20_updateRecords.length;\x20i++)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20updRecord\x20=\x20_updateRecords[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20{{camelCase\x20name}}\x20=\x20await\x20{{camelCase\x20name}}Repo.findOne({\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20where:\x20{\x20domain:\x20{\x20id:\x20domain.id\x20},\x20id:updRecord.id\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20relations:\x20[\x27domain\x27,\x20\x27updater\x27,\x20\x27creator\x27]\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20result\x20=\x20await\x20{{camelCase\x20name}}Repo.save({\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20...{{camelCase\x20name}},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20...updRecord,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updater:\x20user\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20results.push({\x20...result,\x20cuFlag:\x20\x27M\x27\x20})\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20return\x20results\x0a\x20\x20}\x0a\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20Boolean,\x20{\x20description:\x20\x27To\x20delete\x20{{pascalCase\x20name}}\x27\x20})\x0a\x20\x20async\x20delete{{pascalCase\x20name}}(@Arg(\x27id\x27)\x20id:\x20string,\x20@Ctx()\x20context:\x20any):\x20Promise<boolean>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20tx,\x20user\x20}\x20=\x20context.state\x0a\x20\x20\x20\x20await\x20tx.getRepository({{pascalCase\x20name}}).remove({\x20domain,\x20id,\x20updater:user\x20})\x0a\x20\x20\x20\x20return\x20true\x0a\x20\x20}\x0a\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20Boolean,\x20{\x20description:\x20\x27To\x20delete\x20multiple\x20{{camelCase\x20name}}s\x27\x20})\x0a\x20\x20async\x20delete{{pluralPascalCase\x20name}}(\x0a\x20\x20\x20\x20@Arg(\x27ids\x27,\x20type\x20=>\x20[String])\x20ids:\x20string[],\x0a\x20\x20\x20\x20@Ctx()\x20context:\x20any\x0a\x20\x20):\x20Promise<boolean>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20tx,\x20user\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20let\x20delEntitis\x20=\x20ids.map(id=>{\x0a\x20\x20\x20\x20\x20\x20return\x20{domain,id,updater:user}\x0a\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20await\x20tx.getRepository({{pascalCase\x20name}}).remove(delEntitis)\x0a\x0a\x20\x20\x20\x20return\x20true\x0a\x20\x20}\x0a}\x0a','timestamp\x20without\x20time\x20zone','COPY','defineProperty','dataProp','character\x20varying','\x0a\x20\x20public\x20createHistoryEntity(manager,\x20entity)\x20{\x0a\x20\x20\x20\x20let\x20history\x20=\x20manager.create(this.historyEntity,\x20entity);\x0a\x20\x20\x20\x20history.historyJson\x20=\x20JSON.stringify(entity);\x0a\x20\x20\x20\x20return\x20history;\x0a\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20','Entity','Resolvers,','@things-factory/shell','length','sort','/*\x20RESOLVER\x20CLASSES\x20*/\x0a\x09\x09...','/*\x20EXPORT\x20ENTITY\x20TYPES\x20*/\x0aexport\x20*\x20from\x20\x27./','__metadata','/service','-history.ts','@Index(\x27ix_{{snakeCase\x20name}}_0\x27,\x20({{camelCase\x20name}}:\x20{{pascalCase\x20name}})\x20=>\x20[{{indexColumns}}],\x20{\x20unique:\x20true\x20})','\x0a\x20\x20@VersionColumn({\x20default:\x201\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20dataRevisionNo?:\x20number\x20=\x201','integer','/*\x20IMPORT\x20ENTITIES\x20AND\x20RESOLVERS\x20*/\x0aimport\x20{\x20entities\x20as\x20','\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20{{pascalCase\x20name}}Query\x20}\x20from\x20\x27./{{name}}-query\x27\x0aimport\x20{\x20{{pascalCase\x20name}}Mutation\x20}\x20from\x20\x27./{{name}}-mutation\x27\x0a\x0aexport\x20const\x20entities\x20=\x20[{{pascalCase\x20name}}]\x0aexport\x20const\x20resolvers\x20=\x20[{{pascalCase\x20name}}Query,\x20{{pascalCase\x20name}}Mutation]\x0a','@Field(','Date','join','updater_id','790895ZzYgct','\x0a/*\x20EXPORT\x20ENTITY\x20TYPES\x20*/\x0a\x0a/*\x20IMPORT\x20ENTITIES\x20AND\x20RESOLVERS\x20*/\x0a\x0aexport\x20const\x20entities\x20=\x20[\x20\x20\x0a\x20\x20/*\x20ENTITIES\x20*/\x0a]\x20\x0a\x0a\x0aexport\x20const\x20schema\x20=\x20{\x0a\x20\x20resolverClasses:\x20[\x0a\x20\x20\x20\x20/*\x20RESOLVER\x20CLASSES\x20*/\x0a\x20\x20]\x20\x0a}\x0a\x0aexport\x20const\x20subscribers\x20=\x20[\x0a\x20\x20/*\x20SUBSCRIBERS\x20*/\x0a]\x0a','pluralPascalCaseName','number','index.ts','EntitySubscribers,','createServiceFiles','Ctx','camelCaseName','name','updater','creator_id','snakeCaseName','long','mkdirSync','Entities,','440264RFHdEi',',length:','\x0a\x20\x20','\x0aimport\x20{\x20Resolver,\x20Query,\x20FieldResolver,\x20Root,\x20Args,\x20Arg,\x20Ctx,\x20Directive\x20}\x20from\x20\x27type-graphql\x27\x0aimport\x20{\x20Domain,\x20ListParam,\x20convertListParams,\x20getRepository,\x20getQueryBuilderFromListParams\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0aimport\x20{\x20{{pascalCase\x20name}}History\x20}\x20from\x20\x27./{{name}}-history\x27\x0aimport\x20{\x20{{pascalCase\x20name}}HistoryList\x20}\x20from\x20\x27./{{name}}-history-type\x27\x0a\x0a@Resolver({{pascalCase\x20name}}History)\x0aexport\x20class\x20{{pascalCase\x20name}}HistoryQuery\x20{\x0a\x20\x20@Query(returns\x20=>\x20{{pascalCase\x20name}}History,\x20{\x20description:\x20\x27To\x20fetch\x20a\x20{{pascalCase\x20name}}History\x27\x20})\x0a\x20\x20async\x20{{camelCase\x20name}}History(@Arg(\x27id\x27)\x20id:\x20string,\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}History>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain\x20}\x20=\x20context.state\x0a\x20\x20\x20\x20return\x20await\x20getRepository({{pascalCase\x20name}}History).findOne({\x0a\x20\x20\x20\x20\x20\x20where:\x20{\x20domain:\x20{\x20id:\x20domain.id\x20},\x20id\x20}\x0a\x20\x20\x20\x20})\x0a\x20\x20}\x0a\x0a\x20\x20@Query(returns\x20=>\x20{{pascalCase\x20name}}HistoryList,\x20{\x20description:\x20\x27To\x20fetch\x20multiple\x20{{pluralPascalCase\x20name}}History\x27\x20})\x0a\x20\x20async\x20{{camelCase\x20name}}Histories(@Args()\x20params:\x20ListParam,\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}HistoryList>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20const\x20queryBuilder\x20=\x20getQueryBuilderFromListParams({\x0a\x20\x20\x20\x20\x20\x20domain,\x0a\x20\x20\x20\x20\x20\x20params,\x0a\x20\x20\x20\x20\x20\x20repository:\x20await\x20getRepository({{pascalCase\x20name}}History)\x0a\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20const\x20[items,\x20total]\x20=\x20await\x20queryBuilder.getManyAndCount()\x0a\x0a\x20\x20\x20\x20return\x20{\x20items,\x20total\x20}\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20Domain)\x0a\x20\x20async\x20domain(@Root()\x20{{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History):\x20Promise<Domain>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(Domain).findOneBy({id:{{camelCase\x20name}}History.domainId})\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20User)\x0a\x20\x20async\x20updater(@Root()\x20{{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History):\x20Promise<User>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(User).findOneBy({id:{{camelCase\x20name}}History.updaterId})\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20User)\x0a\x20\x20async\x20creator(@Root()\x20{{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History):\x20Promise<User>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(User).findOneBy({id:{{camelCase\x20name}}History.creatorId})\x0a\x20\x20}\x0a}\x0a','getColTxtType','Int','912267GGXaFj','map','design:type','columnToEntityColumn','1739375mSohhp','double','10aEboHw','design:returntype','design:paramtypes','import\x20{\x20entities\x20as\x20','string','replaceNamesMap','uniqRank','pascalCaseName','\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20{{pascalCase\x20name}}Query\x20}\x20from\x20\x27./{{name}}-query\x27\x0aimport\x20{\x20{{pascalCase\x20name}}HistoryQuery\x20}\x20from\x20\x27./{{name}}-history-query\x27\x0aimport\x20{\x20{{pascalCase\x20name}}Mutation\x20}\x20from\x20\x27./{{name}}-mutation\x27\x0aimport\x20{\x20{{pascalCase\x20name}}History\x20}\x20from\x20\x27./{{name}}-history\x27\x0aimport\x20{\x20{{pascalCase\x20name}}HistoryEntitySubscriber\x20}\x20from\x20\x27./event-subscriber\x27\x0a\x0aexport\x20const\x20entities\x20=\x20[{{pascalCase\x20name}},\x20{{pascalCase\x20name}}History]\x0aexport\x20const\x20resolvers\x20=\x20[{{pascalCase\x20name}}Query,\x20{{pascalCase\x20name}}HistoryQuery,\x20{{pascalCase\x20name}}Mutation]\x0aexport\x20const\x20subscribers\x20=\x20[{{pascalCase\x20name}}HistoryEntitySubscriber]\x0a\x0a','type\x20=>','@Column({name:\x27','tableName','8507430SpzFwY','Operato\x20Tool\x20Create\x20Service','JSON'];a0_0x80df=function(){return _0x2e6fe5;};return a0_0x80df();}const a0_0x34b57a=a0_0x3b33;(function(_0x53097e,_0x5d1643){const _0x34be40=a0_0x3b33,_0x4d01be=_0x53097e();while(!![]){try{const _0x4ee2db=parseInt(_0x34be40(0x12d))/0x1+-parseInt(_0x34be40(0x12f))/0x2*(parseInt(_0x34be40(0x1b8))/0x3)+-parseInt(_0x34be40(0x1b2))/0x4*(parseInt(_0x34be40(0x186))/0x5)+-parseInt(_0x34be40(0x13b))/0x6+-parseInt(_0x34be40(0x1a2))/0x7+-parseInt(_0x34be40(0x144))/0x8+parseInt(_0x34be40(0x149))/0x9;if(_0x4ee2db===_0x5d1643)break;else _0x4d01be['push'](_0x4d01be['shift']());}catch(_0x497baa){_0x4d01be['push'](_0x4d01be['shift']());}}}(a0_0x80df,0xd7273));function a0_0x3b33(_0xb5d0a0,_0x33fb69){const _0x80dfa9=a0_0x80df();return a0_0x3b33=function(_0x3b3331,_0x4f7227){_0x3b3331=_0x3b3331-0x12c;let _0x493403=_0x80dfa9[_0x3b3331];return _0x493403;},a0_0x3b33(_0xb5d0a0,_0x33fb69);}Object[a0_0x34b57a(0x18b)](exports,a0_0x34b57a(0x157),{'value':!0x0}),exports[a0_0x34b57a(0x153)]=void 0x0;const tslib_1=require('tslib'),type_graphql_1=require('type-graphql'),shell_1=require(a0_0x34b57a(0x191)),resource_base_1=require(a0_0x34b57a(0x16e)),{camelCase:camelCase,startCase:startCase,snakeCase:snakeCase,kebabCase:kebabCase}=require('lodash'),{plural:plural}=require('pluralize'),fs=require('fs');let OperatoToolCreateService=class{async[a0_0x34b57a(0x179)](_0x206ecb,_0x314d63){const _0xe9c934=a0_0x34b57a,{domain:_0x3f6129}=_0x314d63[_0xe9c934(0x170)],_0x1dd56a=await(0x0,shell_1[_0xe9c934(0x14a)])(resource_base_1[_0xe9c934(0x18f)])['findOne']({'where':{'id':_0x206ecb}}),_0x4b0b79=await(0x0,shell_1[_0xe9c934(0x14a)])(resource_base_1[_0xe9c934(0x16d)])['find']({'where':{'domain':{'id':_0x3f6129['id']},'entity':{'id':_0x1dd56a['id']}}});let {name:_0x3d586f='',bundle:_0x1f3906=''}=_0x1dd56a||{},_0x4d8650=this[_0xe9c934(0x171)](),_0x1d3453=kebabCase(_0x3d586f);return await this[_0xe9c934(0x164)](_0x4d8650,_0x1f3906,_0x1d3453),await this[_0xe9c934(0x1a8)](_0x4d8650,_0x1f3906,_0x3d586f,_0x1d3453,_0x1dd56a,_0x4b0b79),!0x0;}async[a0_0x34b57a(0x1a8)](_0xf74089,_0x3d4575,_0x2ff901,_0x3c9ee9,_0x1ea782,_0x41f8f1){const _0x2d9bd9=a0_0x34b57a;let _0x531728={'name':_0x3c9ee9,'tableName':_0x1ea782['tableName'],'pascalCaseName':startCase(camelCase(_0x2ff901))[_0x2d9bd9(0x187)](/ /g,''),'camelCaseName':camelCase(_0x2ff901),'snakeCaseName':snakeCase(_0x2ff901),'pluralPascalCaseName':startCase(camelCase(plural(_0x2ff901)))[_0x2d9bd9(0x187)](/ /g,''),'pluralCamelCaseName':camelCase(plural(_0x2ff901))},_0x42fc95=_0xf74089+'/packages/'+_0x3d4575+'/server/service/';[_0x2d9bd9(0x13d),'COPY']['includes'](_0x1ea782[_0x2d9bd9(0x18c)])?await this['createHistoryServiceFiles'](_0x42fc95,_0x3c9ee9,_0x1ea782,_0x41f8f1,_0x531728):await this[_0x2d9bd9(0x16b)](_0x42fc95,_0x3c9ee9,_0x1ea782,_0x41f8f1,_0x531728);}async[a0_0x34b57a(0x177)](_0x5ed627,_0xd3d691,_0x58396e,_0x308c76,_0x510bfa){const _0x321fbf=a0_0x34b57a;await this['writeFile'](_0x5ed627+(_0xd3d691+_0x321fbf(0x158)),serviceHistoryIndex,_0x510bfa);let _0x50e829=this[_0x321fbf(0x14f)](_0x58396e,_0x308c76);await this[_0x321fbf(0x166)](_0x5ed627+(_0xd3d691+'/'+_0xd3d691+_0x321fbf(0x14e)),_0x50e829,_0x510bfa),await this[_0x321fbf(0x166)](_0x5ed627+(_0xd3d691+'/'+_0xd3d691+_0x321fbf(0x159)),serviceQuery,_0x510bfa),await this[_0x321fbf(0x166)](_0x5ed627+(_0xd3d691+'/'+_0xd3d691+_0x321fbf(0x141)),serviceMutation,_0x510bfa);let _0xe57d1a=this['createTypeText'](_0x308c76);await this['writeFile'](_0x5ed627+(_0xd3d691+'/'+_0xd3d691+_0x321fbf(0x172)),_0xe57d1a,_0x510bfa);let _0x2dce2c=this[_0x321fbf(0x155)](_0x58396e,_0x308c76);await this[_0x321fbf(0x166)](_0x5ed627+(_0xd3d691+'/'+_0xd3d691+_0x321fbf(0x198)),_0x2dce2c,_0x510bfa);let _0x346acf='';_0x321fbf(0x13d)==_0x58396e['dataProp']?(_0x346acf=_0x321fbf(0x18e),await this[_0x321fbf(0x166)](_0x5ed627+(_0xd3d691+_0x321fbf(0x162)),serviceEntitySubscriber,_0x510bfa)):_0x346acf='';let _0x1da27c=serviceEntitySubscriber[_0x321fbf(0x187)](/{{entityToJson}}/g,_0x346acf);await this[_0x321fbf(0x166)](_0x5ed627+(_0xd3d691+_0x321fbf(0x162)),_0x1da27c,_0x510bfa),await this[_0x321fbf(0x166)](_0x5ed627+(_0xd3d691+'/'+_0xd3d691+_0x321fbf(0x169)),serviceHistoryQuery,_0x510bfa),await this[_0x321fbf(0x166)](_0x5ed627+(_0xd3d691+'/'+_0xd3d691+'-history-type.ts'),sereviceHistoryType,_0x510bfa);let _0x981d27=_0x5ed627+_0x321fbf(0x1a6);0x0==await this[_0x321fbf(0x13e)](_0x981d27)&&await this[_0x321fbf(0x166)](_0x981d27,allIndex,_0x510bfa);let _0x47dd0c=await fs[_0x321fbf(0x174)](_0x981d27,_0x321fbf(0x15e));_0x47dd0c[_0x321fbf(0x184)](_0x321fbf(0x163)+_0x510bfa[_0x321fbf(0x1ab)]+'/'+_0x510bfa[_0x321fbf(0x1ab)]+_0x321fbf(0x147))<0x0&&(_0x47dd0c=_0x47dd0c['replace'](/\/\* EXPORT ENTITY TYPES \*\//,_0x321fbf(0x195)+_0x510bfa[_0x321fbf(0x1ab)]+'/'+_0x510bfa[_0x321fbf(0x1ab)]+_0x321fbf(0x147))),_0x47dd0c['indexOf'](_0x321fbf(0x163)+_0x510bfa[_0x321fbf(0x1ab)]+'/'+_0x510bfa[_0x321fbf(0x1ab)]+'\x27')<0x0&&(_0x47dd0c=_0x47dd0c[_0x321fbf(0x187)](/\/\* EXPORT ENTITY TYPES \*\//,'/*\x20EXPORT\x20ENTITY\x20TYPES\x20*/\x0aexport\x20*\x20from\x20\x27./'+_0x510bfa[_0x321fbf(0x1ab)]+'/'+_0x510bfa[_0x321fbf(0x1ab)]+'\x27')),_0x47dd0c[_0x321fbf(0x184)](_0x321fbf(0x132)+_0x510bfa['pascalCaseName']+_0x321fbf(0x17d)+_0x510bfa[_0x321fbf(0x136)]+'Resolvers,\x20subscribers\x20as\x20'+_0x510bfa[_0x321fbf(0x136)]+_0x321fbf(0x146)+_0x510bfa['name']+'\x27')<0x0&&(_0x47dd0c=_0x47dd0c[_0x321fbf(0x187)](/\/\* IMPORT ENTITIES AND RESOLVERS \*\//,_0x321fbf(0x19c)+_0x510bfa['pascalCaseName']+'Entities,\x20resolvers\x20as\x20'+_0x510bfa[_0x321fbf(0x136)]+_0x321fbf(0x14d)+_0x510bfa['pascalCaseName']+_0x321fbf(0x146)+_0x510bfa[_0x321fbf(0x1ab)]+'\x27')),_0x47dd0c['indexOf']('...'+_0x510bfa[_0x321fbf(0x136)]+_0x321fbf(0x1b1))<0x0&&(_0x47dd0c=_0x47dd0c[_0x321fbf(0x187)](/\/\* ENTITIES \*\//,'/*\x20ENTITIES\x20*/\x0a\x09...'+_0x510bfa[_0x321fbf(0x136)]+_0x321fbf(0x1b1))),_0x47dd0c[_0x321fbf(0x184)]('...'+_0x510bfa[_0x321fbf(0x136)]+_0x321fbf(0x190))<0x0&&(_0x47dd0c=_0x47dd0c[_0x321fbf(0x187)](/\/\* RESOLVER CLASSES \*\//,'/*\x20RESOLVER\x20CLASSES\x20*/\x0a\x09\x09...'+_0x510bfa['pascalCaseName']+_0x321fbf(0x190))),_0x47dd0c[_0x321fbf(0x184)](_0x321fbf(0x156)+_0x510bfa[_0x321fbf(0x136)]+'EntitySubscribers,')<0x0&&(_0x47dd0c=_0x47dd0c[_0x321fbf(0x187)](/\/\* SUBSCRIBERS \*\//,'/*\x20SUBSCRIBERS\x20*/\x0a\x09\x09...'+_0x510bfa['pascalCaseName']+_0x321fbf(0x1a7))),await this[_0x321fbf(0x166)](_0x981d27,_0x47dd0c,_0x510bfa);}async[a0_0x34b57a(0x16b)](_0x233fb9,_0x4ae5b5,_0x5905e3,_0x472083,_0x59cbd8){const _0x5d006e=a0_0x34b57a;await this[_0x5d006e(0x166)](_0x233fb9+(_0x4ae5b5+_0x5d006e(0x158)),serviceIndex,_0x59cbd8),await this[_0x5d006e(0x166)](_0x233fb9+(_0x4ae5b5+'/'+_0x4ae5b5+_0x5d006e(0x159)),serviceQuery,_0x59cbd8),await this['writeFile'](_0x233fb9+(_0x4ae5b5+'/'+_0x4ae5b5+'-mutation.ts'),serviceMutation,_0x59cbd8);let _0x3cc4dd=this[_0x5d006e(0x14f)](_0x5905e3,_0x472083);await this[_0x5d006e(0x166)](_0x233fb9+(_0x4ae5b5+'/'+_0x4ae5b5+_0x5d006e(0x14e)),_0x3cc4dd,_0x59cbd8);let _0x481f52=this[_0x5d006e(0x143)](_0x472083);await this[_0x5d006e(0x166)](_0x233fb9+(_0x4ae5b5+'/'+_0x4ae5b5+'-type.ts'),_0x481f52,_0x59cbd8);let _0x25c778=_0x233fb9+_0x5d006e(0x1a6);0x0==await this[_0x5d006e(0x13e)](_0x25c778)&&await this[_0x5d006e(0x166)](_0x25c778,allIndex,_0x59cbd8);let _0x96ba3=await fs[_0x5d006e(0x174)](_0x25c778,_0x5d006e(0x15e));_0x96ba3[_0x5d006e(0x184)]('export\x20*\x20from\x20\x27./'+_0x59cbd8[_0x5d006e(0x1ab)]+'/'+_0x59cbd8[_0x5d006e(0x1ab)]+'\x27')<0x0&&(_0x96ba3=_0x96ba3[_0x5d006e(0x187)](/\/\* EXPORT ENTITY TYPES \*\//,_0x5d006e(0x195)+_0x59cbd8[_0x5d006e(0x1ab)]+'/'+_0x59cbd8[_0x5d006e(0x1ab)]+'\x27')),_0x96ba3[_0x5d006e(0x184)](_0x5d006e(0x132)+_0x59cbd8[_0x5d006e(0x136)]+_0x5d006e(0x17d)+_0x59cbd8[_0x5d006e(0x136)]+_0x5d006e(0x17f)+_0x59cbd8['name']+'\x27')<0x0&&(_0x96ba3=_0x96ba3[_0x5d006e(0x187)](/\/\* IMPORT ENTITIES AND RESOLVERS \*\//,_0x5d006e(0x19c)+_0x59cbd8[_0x5d006e(0x136)]+_0x5d006e(0x17d)+_0x59cbd8[_0x5d006e(0x136)]+'Resolvers\x20}\x20from\x20\x27./'+_0x59cbd8[_0x5d006e(0x1ab)]+'\x27')),_0x96ba3[_0x5d006e(0x184)](_0x5d006e(0x156)+_0x59cbd8[_0x5d006e(0x136)]+_0x5d006e(0x1b1))<0x0&&(_0x96ba3=_0x96ba3['replace'](/\/\* ENTITIES \*\//,_0x5d006e(0x183)+_0x59cbd8['pascalCaseName']+_0x5d006e(0x1b1))),_0x96ba3['indexOf'](_0x5d006e(0x156)+_0x59cbd8[_0x5d006e(0x136)]+'Resolvers,')<0x0&&(_0x96ba3=_0x96ba3['replace'](/\/\* RESOLVER CLASSES \*\//,_0x5d006e(0x194)+_0x59cbd8['pascalCaseName']+_0x5d006e(0x190))),await this[_0x5d006e(0x166)](_0x25c778,_0x96ba3,_0x59cbd8);}[a0_0x34b57a(0x143)](_0x397857){const _0x1b72ed=a0_0x34b57a;let _0x1168ac=sereviceType,_0xf38790=_0x397857[_0x1b72ed(0x1b9)](_0x54d8be=>{const _0x4a2aaa=_0x1b72ed;if('id'==_0x54d8be['name'])return'';if(_0x4a2aaa(0x148)==_0x54d8be['name'])return'';if(_0x4a2aaa(0x14c)==_0x54d8be['name'])return'';if(_0x4a2aaa(0x13f)==_0x54d8be['name'])return'';if(_0x4a2aaa(0x1ad)==_0x54d8be['name'])return'';if('updater_id'==_0x54d8be[_0x4a2aaa(0x1ab)])return'';let _0x35f700=this[_0x4a2aaa(0x165)](_0x54d8be),_0x597944=this[_0x4a2aaa(0x1b6)](_0x54d8be),_0x45839a=camelCase(_0x54d8be[_0x4a2aaa(0x1ab)]);return'\x20\x20'+(_0x4a2aaa(0x19e)+(0x0==_0x35f700[_0x4a2aaa(0x192)]?'':'type\x20=>'+_0x35f700+',')+_0x4a2aaa(0x150)+_0x54d8be['nullable']+_0x4a2aaa(0x145))+_0x4a2aaa(0x1b4)+(''+_0x45839a+(_0x54d8be[_0x4a2aaa(0x16c)]?'?':'')+':\x20'+_0x597944)+'\x0a';});_0x1168ac=_0x1168ac[_0x1b72ed(0x187)](/{{newTypeColumns}}/g,_0xf38790[_0x1b72ed(0x1a0)]('\x0a'));let _0x3059fe=_0x397857[_0x1b72ed(0x1b9)](_0x4c2752=>{const _0x15635e=_0x1b72ed;if('id'==_0x4c2752[_0x15635e(0x1ab)])return'';if('domain_id'==_0x4c2752['name'])return'';if(_0x15635e(0x14c)==_0x4c2752['name'])return'';if(_0x15635e(0x13f)==_0x4c2752['name'])return'';if(_0x15635e(0x1ad)==_0x4c2752[_0x15635e(0x1ab)])return'';if(_0x15635e(0x1a1)==_0x4c2752[_0x15635e(0x1ab)])return'';let _0x42be3c=this['getFieldType'](_0x4c2752),_0x350a6b=this[_0x15635e(0x1b6)](_0x4c2752);_0x4c2752[_0x15635e(0x16c)]=!0x0;let _0x36ee66=camelCase(_0x4c2752[_0x15635e(0x1ab)]);return'\x20\x20'+('@Field('+(0x0==_0x42be3c[_0x15635e(0x192)]?'':_0x15635e(0x138)+_0x42be3c+',')+_0x15635e(0x150)+_0x4c2752[_0x15635e(0x16c)]+_0x15635e(0x145))+_0x15635e(0x1b4)+(''+_0x36ee66+(_0x4c2752[_0x15635e(0x16c)]?'?':'')+':\x20'+_0x350a6b)+'\x0a';});return _0x1168ac=_0x1168ac[_0x1b72ed(0x187)](/{{patchTypeColumns}}/g,_0x3059fe[_0x1b72ed(0x1a0)]('\x0a')),_0x1168ac;}[a0_0x34b57a(0x14f)](_0x1b0e86,_0x52bec7){const _0x1473b6=a0_0x34b57a;let _0x5864d4=serviceEntity,_0x5185d2=_0x52bec7[_0x1473b6(0x193)](function(_0x3e57b8,_0x2f53e1){const _0x247cce=_0x1473b6;return _0x3e57b8[_0x247cce(0x182)]-_0x2f53e1['rank'];})['map'](_0x34b83a=>this['columnToEntityColumn'](_0x34b83a));[_0x1473b6(0x18a),'JSON']['includes'](_0x1b0e86[_0x1473b6(0x18c)])&&_0x5185d2[_0x1473b6(0x17a)](_0x1473b6(0x19a)),_0x5864d4=_0x5864d4[_0x1473b6(0x187)](/{{entityColumns}}/g,_0x5185d2[_0x1473b6(0x1a0)]('\x0a'));let _0x17ae15='',_0x5a8f37=_0x52bec7['filter'](_0x5e9b3b=>_0x5e9b3b[_0x1473b6(0x135)]&&_0x5e9b3b[_0x1473b6(0x135)]>0x0)[_0x1473b6(0x193)](function(_0x457fbe,_0x3dfb2a){const _0x23a4b4=_0x1473b6;return _0x457fbe['uniqRank']-_0x3dfb2a[_0x23a4b4(0x135)];});if(_0x5a8f37['length']>0x0){_0x17ae15=_0x1473b6(0x199);let _0x17abc7=_0x5a8f37['map'](_0x3bc4fc=>{const _0x29368f=_0x1473b6;let _0x49e488=_0x3bc4fc[_0x29368f(0x1ab)];return _0x29368f(0x148)==_0x3bc4fc[_0x29368f(0x1ab)]&&(_0x49e488=_0x29368f(0x142)),_0x29368f(0x1ad)==_0x3bc4fc['name']&&(_0x49e488='creator'),'updater_id'==_0x3bc4fc[_0x29368f(0x1ab)]&&(_0x49e488=_0x29368f(0x1ac)),'{{camelCase\x20name}}.'+camelCase(_0x49e488);});_0x17ae15=_0x17ae15[_0x1473b6(0x187)](/{{indexColumns}}/g,_0x17abc7['join'](','));}return _0x5864d4=_0x5864d4['replace'](/{{indexAnn}}/g,_0x17ae15),_0x5864d4;}[a0_0x34b57a(0x155)](_0x3ea6ce,_0x49ef94){const _0x568a4b=a0_0x34b57a;let _0x30f85a=_0x568a4b(0x13d)==_0x3ea6ce['dataProp']?serviceEntityHistJson:serviceEntityHistCopy,_0x45f393=_0x49ef94[_0x568a4b(0x193)](function(_0x3f0479,_0xef58cd){const _0x21977f=_0x568a4b;return _0x3f0479[_0x21977f(0x182)]-_0xef58cd['rank'];})[_0x568a4b(0x1b9)](_0x424a06=>this[_0x568a4b(0x12c)](_0x424a06));return _0x30f85a=_0x30f85a[_0x568a4b(0x187)](/{{entityColumns}}/g,_0x45f393[_0x568a4b(0x1a0)]('\x0a')),_0x30f85a;}[a0_0x34b57a(0x12c)](_0x28b83c){const _0x3bf681=a0_0x34b57a;if('id'==_0x28b83c['name'])return'';if(_0x3bf681(0x148)==_0x28b83c[_0x3bf681(0x1ab)])return'';if(_0x3bf681(0x14c)==_0x28b83c[_0x3bf681(0x1ab)])return'';if('updated_at'==_0x28b83c['name'])return'';if(_0x3bf681(0x1ad)==_0x28b83c[_0x3bf681(0x1ab)])return'';if(_0x3bf681(0x1a1)==_0x28b83c[_0x3bf681(0x1ab)])return'';let _0x462f6d=_0x28b83c['colType'];_0x3bf681(0x12e)==_0x28b83c[_0x3bf681(0x15a)]&&(_0x462f6d=_0x3bf681(0x176)),_0x3bf681(0x1af)==_0x28b83c[_0x3bf681(0x15a)]&&(_0x462f6d=_0x3bf681(0x15f)),'string'==_0x28b83c[_0x3bf681(0x15a)]&&(_0x462f6d=_0x3bf681(0x18d)),'datetime'==_0x28b83c[_0x3bf681(0x15a)]&&(_0x462f6d=_0x3bf681(0x189));let _0x27cd6a='';'string'==_0x28b83c['colType']&&(_0x27cd6a=_0x28b83c[_0x3bf681(0x154)]);let _0x132b21=this[_0x3bf681(0x165)](_0x28b83c),_0x48a251=this['getColTxtType'](_0x28b83c),_0x935642=camelCase(_0x28b83c[_0x3bf681(0x1ab)]);return'\x20\x20'+(_0x3bf681(0x139)+_0x28b83c[_0x3bf681(0x1ab)]+'\x27,\x20type:\x20\x27'+_0x462f6d+_0x3bf681(0x15b)+_0x28b83c[_0x3bf681(0x16c)]+'\x20'+(0x0==_0x27cd6a[_0x3bf681(0x192)]?'':_0x3bf681(0x1b3)+_0x27cd6a)+_0x3bf681(0x145))+_0x3bf681(0x1b4)+(_0x3bf681(0x19e)+(0x0==_0x132b21[_0x3bf681(0x192)]?'':_0x3bf681(0x138)+_0x132b21+',')+_0x3bf681(0x150)+_0x28b83c[_0x3bf681(0x16c)]+_0x3bf681(0x145))+_0x3bf681(0x1b4)+(''+_0x935642+(_0x28b83c['nullable']?'?':'')+':\x20'+_0x48a251)+'\x0a';}[a0_0x34b57a(0x165)](_0x17f61d){const _0x49f2c1=a0_0x34b57a;let _0x3d9947='';return _0x49f2c1(0x12e)==_0x17f61d[_0x49f2c1(0x15a)]&&(_0x3d9947='Float'),_0x49f2c1(0x168)==_0x17f61d[_0x49f2c1(0x15a)]&&(_0x3d9947=_0x49f2c1(0x152)),'long'==_0x17f61d[_0x49f2c1(0x15a)]&&(_0x3d9947=_0x49f2c1(0x1b7)),_0x49f2c1(0x19b)==_0x17f61d['colType']&&(_0x3d9947=_0x49f2c1(0x1b7)),_0x3d9947;}[a0_0x34b57a(0x1b6)](_0x3b78d4){const _0x271df2=a0_0x34b57a;let _0x289184=_0x3b78d4[_0x271df2(0x15a)];return'decimal'==_0x3b78d4[_0x271df2(0x15a)]&&(_0x289184=_0x271df2(0x1a5)),_0x271df2(0x12e)==_0x3b78d4['colType']&&(_0x289184=_0x271df2(0x1a5)),'float'==_0x3b78d4['colType']&&(_0x289184='number'),_0x271df2(0x19b)==_0x3b78d4[_0x271df2(0x15a)]&&(_0x289184='number'),_0x271df2(0x1af)==_0x3b78d4[_0x271df2(0x15a)]&&(_0x289184=_0x271df2(0x1a5)),_0x271df2(0x14b)==_0x3b78d4[_0x271df2(0x15a)]&&(_0x289184=_0x271df2(0x19f)),_0x271df2(0x173)==_0x3b78d4[_0x271df2(0x15a)]&&(_0x289184='Date'),_0x271df2(0x178)==_0x3b78d4['colType']&&(_0x289184=_0x271df2(0x133)),_0x289184;}async[a0_0x34b57a(0x166)](_0x5241ba,_0xc33af7,_0x11cfdf){const _0x32f07f=a0_0x34b57a;await fs[_0x32f07f(0x15c)](_0x5241ba,this['replaceNamesMap'](_0xc33af7,_0x11cfdf),'utf8');}[a0_0x34b57a(0x134)](_0x2dbea0,_0x1c77b6){const _0x4365f3=a0_0x34b57a;return _0x2dbea0[_0x4365f3(0x187)](/{{pascalCase name}}/g,_0x1c77b6[_0x4365f3(0x136)])[_0x4365f3(0x187)](/{{camelCase name}}/g,_0x1c77b6[_0x4365f3(0x1aa)])[_0x4365f3(0x187)](/{{snakeCase name}}/g,_0x1c77b6[_0x4365f3(0x1ae)])[_0x4365f3(0x187)](/{{pluralPascalCase name}}/g,_0x1c77b6[_0x4365f3(0x1a4)])['replace'](/{{pluralCamelCase name}}/g,_0x1c77b6['pluralCamelCaseName'])[_0x4365f3(0x187)](/{{tableName}}/g,_0x1c77b6[_0x4365f3(0x13a)])[_0x4365f3(0x187)](/{{name}}/g,_0x1c77b6['name']);}async[a0_0x34b57a(0x164)](_0x25530e,_0x5f376a,_0xa6a403){const _0x63c7aa=a0_0x34b57a;let _0x3c3935=_0x25530e+_0x63c7aa(0x160);await this[_0x63c7aa(0x16f)](_0x3c3935),_0x3c3935=_0x3c3935+'/'+_0x5f376a,await this['createDir'](_0x3c3935),_0x3c3935+=_0x63c7aa(0x180),await this[_0x63c7aa(0x16f)](_0x3c3935),_0x3c3935+=_0x63c7aa(0x197),await this[_0x63c7aa(0x16f)](_0x3c3935),_0x3c3935=_0x3c3935+'/'+_0xa6a403,await this[_0x63c7aa(0x16f)](_0x3c3935);}[a0_0x34b57a(0x171)](){const _0x231e6c=a0_0x34b57a;let _0x3982d8=process[_0x231e6c(0x17c)][_0x231e6c(0x15d)][_0x231e6c(0x181)]('/'),_0x534310=[];for(let _0x508079=0x0;_0x508079<_0x3982d8['length']&&_0x231e6c(0x17b)!=_0x3982d8[_0x508079];_0x508079++)_0x534310[_0x231e6c(0x17a)](_0x3982d8[_0x508079]);return _0x534310[_0x231e6c(0x1a0)]('/');}async['createDir'](_0x1fe7b7){const _0x1f4fad=a0_0x34b57a;0x0==await this['existsPath'](_0x1fe7b7)&&fs[_0x1f4fad(0x1b0)](_0x1fe7b7);}async[a0_0x34b57a(0x13e)](_0x233990){return await fs['existsSync'](_0x233990);}};tslib_1[a0_0x34b57a(0x167)]([(0x0,type_graphql_1[a0_0x34b57a(0x140)])(_0x2d01d7=>Boolean,{'description':a0_0x34b57a(0x13c)}),tslib_1[a0_0x34b57a(0x185)](0x0,(0x0,type_graphql_1[a0_0x34b57a(0x17e)])('id')),tslib_1[a0_0x34b57a(0x185)](0x1,(0x0,type_graphql_1[a0_0x34b57a(0x1a9)])()),tslib_1[a0_0x34b57a(0x196)](a0_0x34b57a(0x1ba),Function),tslib_1[a0_0x34b57a(0x196)](a0_0x34b57a(0x131),[String,Object]),tslib_1['__metadata'](a0_0x34b57a(0x130),Promise)],OperatoToolCreateService['prototype'],'toolCreateService',null),OperatoToolCreateService=tslib_1['__decorate']([(0x0,type_graphql_1['Resolver'])()],OperatoToolCreateService),exports[a0_0x34b57a(0x153)]=OperatoToolCreateService;const allIndex=a0_0x34b57a(0x1a3),serviceIndex=a0_0x34b57a(0x19d),serviceHistoryIndex=a0_0x34b57a(0x137),serviceQuery=a0_0x34b57a(0x151),serviceHistoryQuery=a0_0x34b57a(0x1b5),serviceMutation=a0_0x34b57a(0x188),sereviceType='\x0aimport\x20{\x20ObjectType,\x20Field,\x20InputType,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0a\x0a@InputType()\x0aexport\x20class\x20New{{pascalCase\x20name}}\x20{\x0a{{newTypeColumns}}\x0a}\x0a\x0a@InputType()\x0aexport\x20class\x20{{pascalCase\x20name}}Patch\x20{\x0a\x20\x20@Field(type\x20=>\x20ID,\x20{\x20nullable:\x20true\x20})\x0a\x20\x20id?:\x20string\x0a\x0a{{patchTypeColumns}}\x0a\x0a\x20\x20@Field()\x0a\x20\x20cuFlag:\x20string\x0a}\x0a\x0a@ObjectType()\x0aexport\x20class\x20{{pascalCase\x20name}}List\x20{\x0a\x20\x20@Field(type\x20=>\x20[{{pascalCase\x20name}}])\x0a\x20\x20items:\x20{{pascalCase\x20name}}[]\x0a\x0a\x20\x20@Field(type\x20=>\x20Int)\x0a\x20\x20total:\x20number\x0a}\x0a',sereviceHistoryType='\x0aimport\x20{\x20ObjectType,\x20Field,\x20InputType,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}History\x20}\x20from\x20\x27./{{name}}-history\x27\x0a\x0a@ObjectType()\x0aexport\x20class\x20{{pascalCase\x20name}}HistoryList\x20{\x0a\x20\x20@Field(type\x20=>\x20[{{pascalCase\x20name}}History])\x0a\x20\x20items:\x20{{pascalCase\x20name}}History[]\x0a\x0a\x20\x20@Field(type\x20=>\x20Int)\x0a\x20\x20total:\x20number\x0a}\x0a',serviceEntity=a0_0x34b57a(0x16a),serviceEntityHistCopy=a0_0x34b57a(0x161),serviceEntityHistJson=a0_0x34b57a(0x175),serviceEntitySubscriber='\x0aimport\x20{\x20EventSubscriber\x20}\x20from\x20\x27typeorm\x27\x0aimport\x20{\x20HistoryEntitySubscriber\x20}\x20from\x20\x27@operato/typeorm-history\x27\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20{{pascalCase\x20name}}History\x20}\x20from\x20\x27./{{name}}-history\x27\x0aimport\x20{\x20getRepository\x20}\x20from\x20\x27@things-factory/shell\x27\x0a\x0a@EventSubscriber()\x0aexport\x20class\x20{{pascalCase\x20name}}HistoryEntitySubscriber\x20extends\x20HistoryEntitySubscriber<{{pascalCase\x20name}},{{pascalCase\x20name}}History>\x20{\x0a\x20\x20public\x20get\x20entity()\x20{\x0a\x20\x20\x20\x20return\x20{{pascalCase\x20name}}\x0a\x20\x20}\x0a\x0a\x20\x20public\x20get\x20historyEntity()\x20{\x0a\x20\x20\x20\x20return\x20{{pascalCase\x20name}}History\x0a\x20\x20}\x0a\x0a\x20\x20{{entityToJson}}\x0a\x0a\x20\x20async\x20beforeRemoveHistory(history:{{pascalCase\x20name}}History,entity:{{pascalCase\x20name}}){\x0a\x20\x20\x20\x20let\x20repo\x20=\x20getRepository({{pascalCase\x20name}}History);\x0a\x20\x20\x20\x20const\x20revNo\x20=\x20await\x20repo.createQueryBuilder()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.select(\x27max(data_revision_no)\x27,\x20\x27rev_no\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.where(\x27domain_id\x20=\x20:domainId\x27,\x20{\x20domainId:\x20entity.domain.id\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.andWhere(\x27original_id\x20=\x20:originalId\x27,\x20{\x20originalId:\x20entity.id\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.getRawOne()\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20history.dataRevisionNo\x20=\x20revNo\x20?\x20revNo.rev_no\x20+\x201\x20:\x201;\x0a\x20\x20\x20\x20return\x20history;\x0a\x20\x20}\x0a}\x0a';
1
+ 'use strict';const a0_0x1f254f=a0_0x293b;(function(_0x10da48,_0x4b5296){const _0x819321=a0_0x293b,_0x1190b8=_0x10da48();while(!![]){try{const _0x234bd1=-parseInt(_0x819321(0x1c4))/0x1*(parseInt(_0x819321(0x197))/0x2)+parseInt(_0x819321(0x218))/0x3*(parseInt(_0x819321(0x1eb))/0x4)+-parseInt(_0x819321(0x1ec))/0x5+-parseInt(_0x819321(0x1f9))/0x6*(-parseInt(_0x819321(0x210))/0x7)+-parseInt(_0x819321(0x1a7))/0x8*(-parseInt(_0x819321(0x1cb))/0x9)+-parseInt(_0x819321(0x1d7))/0xa*(parseInt(_0x819321(0x1bf))/0xb)+parseInt(_0x819321(0x222))/0xc;if(_0x234bd1===_0x4b5296)break;else _0x1190b8['push'](_0x1190b8['shift']());}catch(_0x1300bc){_0x1190b8['push'](_0x1190b8['shift']());}}}(a0_0x1e02,0x9303d));Object[a0_0x1f254f(0x1d5)](exports,a0_0x1f254f(0x1fc),{'value':!0x0}),exports[a0_0x1f254f(0x204)]=void 0x0;function a0_0x1e02(){const _0x585f56=['pascalCaseName','216RiWJRS','\x0aimport\x20{\x20Resolver,\x20Query,\x20FieldResolver,\x20Root,\x20Args,\x20Arg,\x20Ctx,\x20Directive\x20}\x20from\x20\x27type-graphql\x27\x0aimport\x20{\x20Domain,\x20ListParam,\x20convertListParams,\x20getRepository,\x20getQueryBuilderFromListParams\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20{{pascalCase\x20name}}List\x20}\x20from\x20\x27./{{name}}-type\x27\x0a\x0a@Resolver({{pascalCase\x20name}})\x0aexport\x20class\x20{{pascalCase\x20name}}Query\x20{\x0a\x20\x20@Query(returns\x20=>\x20{{pascalCase\x20name}},\x20{\x20description:\x20\x27To\x20fetch\x20a\x20{{pascalCase\x20name}}\x27\x20})\x0a\x20\x20async\x20{{camelCase\x20name}}(@Arg(\x27id\x27)\x20id:\x20string,\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain\x20}\x20=\x20context.state\x0a\x20\x20\x20\x20return\x20await\x20getRepository({{pascalCase\x20name}}).findOne({\x0a\x20\x20\x20\x20\x20\x20where:\x20{\x20domain:\x20{\x20id:\x20domain.id\x20},\x20id\x20}\x0a\x20\x20\x20\x20})\x0a\x20\x20}\x0a\x0a\x20\x20@Query(returns\x20=>\x20{{pascalCase\x20name}}List,\x20{\x20description:\x20\x27To\x20fetch\x20multiple\x20{{pluralPascalCase\x20name}}\x27\x20})\x0a\x20\x20async\x20{{pluralCamelCase\x20name}}(@Args()\x20params:\x20ListParam,\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}List>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20const\x20queryBuilder\x20=\x20getQueryBuilderFromListParams({\x0a\x20\x20\x20\x20\x20\x20domain,\x0a\x20\x20\x20\x20\x20\x20params,\x0a\x20\x20\x20\x20\x20\x20repository:\x20await\x20getRepository({{pascalCase\x20name}})\x0a\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20const\x20convertedParams\x20=\x20convertListParams(params,\x20domain.id)\x0a\x20\x20\x20\x20const\x20[items,\x20total]\x20=\x20await\x20queryBuilder.getManyAndCount()\x0a\x0a\x20\x20\x20\x20return\x20{\x20items,\x20total\x20}\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20Domain)\x0a\x20\x20async\x20domain(@Root()\x20{{camelCase\x20name}}:\x20{{pascalCase\x20name}}):\x20Promise<Domain>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(Domain).findOneBy({id:{{camelCase\x20name}}.domainId})\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20User)\x0a\x20\x20async\x20updater(@Root()\x20{{camelCase\x20name}}:\x20{{pascalCase\x20name}}):\x20Promise<User>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(User).findOneBy({id:{{camelCase\x20name}}.updaterId})\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20User)\x0a\x20\x20async\x20creator(@Root()\x20{{camelCase\x20name}}:\x20{{pascalCase\x20name}}):\x20Promise<User>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(User).findOneBy({id:{{camelCase\x20name}}.creatorId})\x0a\x20\x20}\x0a}\x0a','columnToEntityColumn','-type.ts','env','nullable','bigint','\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20{{pascalCase\x20name}}Query\x20}\x20from\x20\x27./{{name}}-query\x27\x0aimport\x20{\x20{{pascalCase\x20name}}HistoryQuery\x20}\x20from\x20\x27./{{name}}-history-query\x27\x0aimport\x20{\x20{{pascalCase\x20name}}Mutation\x20}\x20from\x20\x27./{{name}}-mutation\x27\x0aimport\x20{\x20{{pascalCase\x20name}}History\x20}\x20from\x20\x27./{{name}}-history\x27\x0aimport\x20{\x20{{pascalCase\x20name}}HistoryEntitySubscriber\x20}\x20from\x20\x27./event-subscriber\x27\x0a\x0aexport\x20const\x20entities\x20=\x20[{{pascalCase\x20name}},\x20{{pascalCase\x20name}}History]\x0aexport\x20const\x20resolvers\x20=\x20[{{pascalCase\x20name}}Query,\x20{{pascalCase\x20name}}HistoryQuery,\x20{{pascalCase\x20name}}Mutation]\x0aexport\x20const\x20subscribers\x20=\x20[{{pascalCase\x20name}}HistoryEntitySubscriber]\x0a\x0a','split','createTypeText','uniqRank','Entities,','Arg','/*\x20RESOLVER\x20CLASSES\x20*/\x0a\x09\x09...','\x0aimport\x20{\x20Resolver,\x20Query,\x20FieldResolver,\x20Root,\x20Args,\x20Arg,\x20Ctx,\x20Directive\x20}\x20from\x20\x27type-graphql\x27\x0aimport\x20{\x20Domain,\x20ListParam,\x20convertListParams,\x20getRepository,\x20getQueryBuilderFromListParams\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0aimport\x20{\x20{{pascalCase\x20name}}History\x20}\x20from\x20\x27./{{name}}-history\x27\x0aimport\x20{\x20{{pascalCase\x20name}}HistoryList\x20}\x20from\x20\x27./{{name}}-history-type\x27\x0a\x0a@Resolver({{pascalCase\x20name}}History)\x0aexport\x20class\x20{{pascalCase\x20name}}HistoryQuery\x20{\x0a\x20\x20@Query(returns\x20=>\x20{{pascalCase\x20name}}History,\x20{\x20description:\x20\x27To\x20fetch\x20a\x20{{pascalCase\x20name}}History\x27\x20})\x0a\x20\x20async\x20{{camelCase\x20name}}History(@Arg(\x27id\x27)\x20id:\x20string,\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}History>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain\x20}\x20=\x20context.state\x0a\x20\x20\x20\x20return\x20await\x20getRepository({{pascalCase\x20name}}History).findOne({\x0a\x20\x20\x20\x20\x20\x20where:\x20{\x20domain:\x20{\x20id:\x20domain.id\x20},\x20id\x20}\x0a\x20\x20\x20\x20})\x0a\x20\x20}\x0a\x0a\x20\x20@Query(returns\x20=>\x20{{pascalCase\x20name}}HistoryList,\x20{\x20description:\x20\x27To\x20fetch\x20multiple\x20{{pluralPascalCase\x20name}}History\x27\x20})\x0a\x20\x20async\x20{{camelCase\x20name}}Histories(@Args()\x20params:\x20ListParam,\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}HistoryList>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20const\x20queryBuilder\x20=\x20getQueryBuilderFromListParams({\x0a\x20\x20\x20\x20\x20\x20domain,\x0a\x20\x20\x20\x20\x20\x20params,\x0a\x20\x20\x20\x20\x20\x20repository:\x20await\x20getRepository({{pascalCase\x20name}}History)\x0a\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20const\x20[items,\x20total]\x20=\x20await\x20queryBuilder.getManyAndCount()\x0a\x0a\x20\x20\x20\x20return\x20{\x20items,\x20total\x20}\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20Domain)\x0a\x20\x20async\x20domain(@Root()\x20{{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History):\x20Promise<Domain>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(Domain).findOneBy({id:{{camelCase\x20name}}History.domainId})\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20User)\x0a\x20\x20async\x20updater(@Root()\x20{{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History):\x20Promise<User>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(User).findOneBy({id:{{camelCase\x20name}}History.updaterId})\x0a\x20\x20}\x0a\x0a\x20\x20@FieldResolver(type\x20=>\x20User)\x0a\x20\x20async\x20creator(@Root()\x20{{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History):\x20Promise<User>\x20{\x0a\x20\x20\x20\x20return\x20await\x20getRepository(User).findOneBy({id:{{camelCase\x20name}}History.creatorId})\x0a\x20\x20}\x0a}\x0a','createServiceFiles','/index.ts','createEntityText','-history\x27','__metadata','Ctx','float','Entities,\x20resolvers\x20as\x20','@Field(','115643bbKYDc','timestamp\x20without\x20time\x20zone','created_at','\x27,\x20nullable:\x20','packages','1369oYPVBt','design:paramtypes','datetime','camelCaseName','createServicePath','/server/service/','find','167076OCRWCZ','EntityColumn','pluralCamelCaseName','Resolvers\x20}\x20from\x20\x27./','getColTxtType','/packages/','date','/server','createNoHistoryServiceFiels','...','defineProperty','\x0aimport\x20{\x20EventSubscriber\x20}\x20from\x20\x27typeorm\x27\x0aimport\x20{\x20HistoryEntitySubscriber\x20}\x20from\x20\x27@operato/typeorm-history\x27\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20{{pascalCase\x20name}}History\x20}\x20from\x20\x27./{{name}}-history\x27\x0aimport\x20{\x20getRepository\x20}\x20from\x20\x27@things-factory/shell\x27\x0a\x0a@EventSubscriber()\x0aexport\x20class\x20{{pascalCase\x20name}}HistoryEntitySubscriber\x20extends\x20HistoryEntitySubscriber<{{pascalCase\x20name}},{{pascalCase\x20name}}History>\x20{\x0a\x20\x20public\x20get\x20entity()\x20{\x0a\x20\x20\x20\x20return\x20{{pascalCase\x20name}}\x0a\x20\x20}\x0a\x0a\x20\x20public\x20get\x20historyEntity()\x20{\x0a\x20\x20\x20\x20return\x20{{pascalCase\x20name}}History\x0a\x20\x20}\x0a\x0a\x20\x20{{entityToJson}}\x0a\x0a\x20\x20async\x20beforeRemoveHistory(history:{{pascalCase\x20name}}History,entity:{{pascalCase\x20name}}){\x0a\x20\x20\x20\x20let\x20repo\x20=\x20getRepository({{pascalCase\x20name}}History);\x0a\x20\x20\x20\x20const\x20revNo\x20=\x20await\x20repo.createQueryBuilder()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.select(\x27max(data_revision_no)\x27,\x20\x27rev_no\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.where(\x27domain_id\x20=\x20:domainId\x27,\x20{\x20domainId:\x20entity.domain.id\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.andWhere(\x27original_id\x20=\x20:originalId\x27,\x20{\x20originalId:\x20entity.id\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.getRawOne()\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20history.dataRevisionNo\x20=\x20revNo\x20?\x20revNo.rev_no\x20+\x201\x20:\x201;\x0a\x20\x20\x20\x20return\x20history;\x0a\x20\x20}\x0a}\x0a','120KSvxnS','state',',length:','push','createDir','import\x20{\x20entities\x20as\x20','COPY','Float','prototype','writeFileSync','snakeCaseName','join','number','text','existsSync','Resolvers,','\x0a\x20\x20','rank','PWD','type-graphql','4EGBjnq','5179730ZuHEyg','Entity','name','/packages','toolCreateService','@Index(\x27ix_{{snakeCase\x20name}}_0\x27,\x20({{camelCase\x20name}}:\x20{{pascalCase\x20name}})\x20=>\x20[{{indexColumns}}],\x20{\x20unique:\x20true\x20})','character\x20varying','/*\x20EXPORT\x20ENTITY\x20TYPES\x20*/\x0aexport\x20*\x20from\x20\x27./','Resolver','colType','dataProp','type\x20=>','replaceNamesMap','2321658DQcKEh','readFileSync','-mutation.ts','__esModule','\x20})','\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20{{pascalCase\x20name}}Query\x20}\x20from\x20\x27./{{name}}-query\x27\x0aimport\x20{\x20{{pascalCase\x20name}}Mutation\x20}\x20from\x20\x27./{{name}}-mutation\x27\x0a\x0aexport\x20const\x20entities\x20=\x20[{{pascalCase\x20name}}]\x0aexport\x20const\x20resolvers\x20=\x20[{{pascalCase\x20name}}Query,\x20{{pascalCase\x20name}}Mutation]\x0a','domain','tslib','\x0a\x20\x20public\x20createHistoryEntity(manager,\x20entity)\x20{\x0a\x20\x20\x20\x20let\x20history\x20=\x20manager.create(this.historyEntity,\x20entity);\x0a\x20\x20\x20\x20history.historyJson\x20=\x20JSON.stringify(entity);\x0a\x20\x20\x20\x20return\x20history;\x0a\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20','creator','Date','OperatoToolCreateService','writeFile','includes','Resolvers,\x20subscribers\x20as\x20','\x0a\x20\x20@VersionColumn({\x20default:\x201\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20dataRevisionNo?:\x20number\x20=\x201','replace','\x0aimport\x20{\x20Resolver,\x20Mutation,\x20Arg,\x20Ctx,\x20Directive\x20}\x20from\x20\x27type-graphql\x27\x0aimport\x20{\x20In\x20}\x20from\x20\x27typeorm\x27\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0aimport\x20{\x20New{{pascalCase\x20name}},\x20{{pascalCase\x20name}}Patch\x20}\x20from\x20\x27./{{name}}-type\x27\x0aimport\x20{\x20getRepository\x20}\x20from\x20\x27@things-factory/shell\x27\x0a\x0a@Resolver({{pascalCase\x20name}})\x0aexport\x20class\x20{{pascalCase\x20name}}Mutation\x20{\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20{{pascalCase\x20name}},\x20{\x20description:\x20\x27To\x20create\x20new\x20{{pascalCase\x20name}}\x27\x20})\x0a\x20\x20async\x20create{{pascalCase\x20name}}(@Arg(\x27{{camelCase\x20name}}\x27)\x20{{camelCase\x20name}}:\x20New{{pascalCase\x20name}},\x20@Ctx()\x20context:\x20any):\x20Promise<{{pascalCase\x20name}}>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20user,\x20tx\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20return\x20await\x20tx.getRepository({{pascalCase\x20name}}).save({\x0a\x20\x20\x20\x20\x20\x20...{{camelCase\x20name}},\x0a\x20\x20\x20\x20\x20\x20domain,\x0a\x20\x20\x20\x20\x20\x20creator:\x20user,\x0a\x20\x20\x20\x20\x20\x20updater:\x20user\x0a\x20\x20\x20\x20})\x0a\x20\x20}\x0a\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20{{pascalCase\x20name}},\x20{\x20description:\x20\x27To\x20modify\x20{{pascalCase\x20name}}\x20information\x27\x20})\x0a\x20\x20async\x20update{{pascalCase\x20name}}(\x0a\x20\x20\x20\x20@Arg(\x27id\x27)\x20id:\x20string,\x0a\x20\x20\x20\x20@Arg(\x27patch\x27)\x20patch:\x20{{pascalCase\x20name}}Patch,\x0a\x20\x20\x20\x20@Ctx()\x20context:\x20any\x0a\x20\x20):\x20Promise<{{pascalCase\x20name}}>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20user,\x20tx\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20const\x20repository\x20=\x20tx.getRepository({{pascalCase\x20name}})\x0a\x20\x20\x20\x20const\x20{{camelCase\x20name}}\x20=\x20await\x20repository.findOne(\x0a\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20where:\x20{\x20domain:\x20{\x20id:\x20domain.id\x20},\x20id\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20relations:\x20[\x27domain\x27,\x20\x27updater\x27,\x20\x27creator\x27]\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20)\x0a\x0a\x20\x20\x20\x20return\x20await\x20repository.save({\x0a\x20\x20\x20\x20\x20\x20...{{camelCase\x20name}},\x0a\x20\x20\x20\x20\x20\x20...patch,\x0a\x20\x20\x20\x20\x20\x20updater:\x20user\x0a\x20\x20\x20\x20})\x0a\x20\x20}\x0a\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20[{{pascalCase\x20name}}],\x20{\x20description:\x20\x22To\x20modify\x20multiple\x20{{pluralPascalCase\x20name}}\x27\x20information\x22\x20})\x0a\x20\x20async\x20updateMultiple{{pascalCase\x20name}}(\x0a\x20\x20\x20\x20@Arg(\x27patches\x27,\x20type\x20=>\x20[{{pascalCase\x20name}}Patch])\x20patches:\x20{{pascalCase\x20name}}Patch[],\x0a\x20\x20\x20\x20@Ctx()\x20context:\x20any\x0a\x20\x20):\x20Promise<{{pascalCase\x20name}}[]>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20user,\x20tx\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20let\x20results\x20=\x20[]\x0a\x20\x20\x20\x20const\x20_createRecords\x20=\x20patches.filter((patch:\x20any)\x20=>\x20patch.cuFlag.toUpperCase()\x20===\x20\x27+\x27)\x0a\x20\x20\x20\x20const\x20_updateRecords\x20=\x20patches.filter((patch:\x20any)\x20=>\x20patch.cuFlag.toUpperCase()\x20===\x20\x27M\x27)\x0a\x20\x20\x20\x20const\x20{{camelCase\x20name}}Repo\x20=\x20tx.getRepository({{pascalCase\x20name}})\x0a\x0a\x20\x20\x20\x20if\x20(_createRecords.length\x20>\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20for\x20(let\x20i\x20=\x200;\x20i\x20<\x20_createRecords.length;\x20i++)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20newRecord\x20=\x20_createRecords[i]\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20result\x20=\x20await\x20{{camelCase\x20name}}Repo.save({\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20...newRecord,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20domain,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20creator:\x20user,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updater:\x20user\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20results.push({\x20...result,\x20cuFlag:\x20\x27+\x27\x20})\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20if\x20(_updateRecords.length\x20>\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20for\x20(let\x20i\x20=\x200;\x20i\x20<\x20_updateRecords.length;\x20i++)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20updRecord\x20=\x20_updateRecords[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20{{camelCase\x20name}}\x20=\x20await\x20{{camelCase\x20name}}Repo.findOne({\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20where:\x20{\x20domain:\x20{\x20id:\x20domain.id\x20},\x20id:updRecord.id\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20relations:\x20[\x27domain\x27,\x20\x27updater\x27,\x20\x27creator\x27]\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20result\x20=\x20await\x20{{camelCase\x20name}}Repo.save({\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20...{{camelCase\x20name}},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20...updRecord,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updater:\x20user\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20results.push({\x20...result,\x20cuFlag:\x20\x27M\x27\x20})\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20return\x20results\x0a\x20\x20}\x0a\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20Boolean,\x20{\x20description:\x20\x27To\x20delete\x20{{pascalCase\x20name}}\x27\x20})\x0a\x20\x20async\x20delete{{pascalCase\x20name}}(@Arg(\x27id\x27)\x20id:\x20string,\x20@Ctx()\x20context:\x20any):\x20Promise<boolean>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20tx,\x20user\x20}\x20=\x20context.state\x0a\x20\x20\x20\x20await\x20tx.getRepository({{pascalCase\x20name}}).remove({\x20domain,\x20id,\x20updater:user\x20})\x0a\x20\x20\x20\x20return\x20true\x0a\x20\x20}\x0a\x0a\x20\x20@Directive(\x27@transaction\x27)\x0a\x20\x20@Mutation(returns\x20=>\x20Boolean,\x20{\x20description:\x20\x27To\x20delete\x20multiple\x20{{camelCase\x20name}}s\x27\x20})\x0a\x20\x20async\x20delete{{pluralPascalCase\x20name}}(\x0a\x20\x20\x20\x20@Arg(\x27ids\x27,\x20type\x20=>\x20[String])\x20ids:\x20string[],\x0a\x20\x20\x20\x20@Ctx()\x20context:\x20any\x0a\x20\x20):\x20Promise<boolean>\x20{\x0a\x20\x20\x20\x20const\x20{\x20domain,\x20tx,\x20user\x20}\x20=\x20context.state\x0a\x0a\x20\x20\x20\x20let\x20delEntitis\x20=\x20ids.map(id=>{\x0a\x20\x20\x20\x20\x20\x20return\x20{domain,id,updater:user}\x0a\x20\x20\x20\x20})\x0a\x0a\x20\x20\x20\x20await\x20tx.getRepository({{pascalCase\x20name}}).remove(delEntitis)\x0a\x0a\x20\x20\x20\x20return\x20true\x0a\x20\x20}\x0a}\x0a','@things-factory/shell','\x27,\x20type:\x20\x27','\x0aimport\x20{\x0a\x20\x20CreateDateColumn,\x0a\x20\x20UpdateDateColumn,\x0a\x20\x20Entity,\x0a\x20\x20Index,\x0a\x20\x20Column,\x0a\x20\x20RelationId,\x0a\x20\x20ManyToOne,\x0a\x20\x20PrimaryGeneratedColumn,\x0a\x20\x20VersionColumn\x0a}\x20from\x20\x27typeorm\x27\x0a\x0aimport\x20{\x0a\x20\x20HistoryActionColumn,\x0a\x20\x20HistoryActionType,\x0a\x20\x20HistoryEntityInterface,\x0a\x20\x20HistoryOriginalIdColumn\x0a}\x20from\x20\x27@operato/typeorm-history\x27\x0a\x0aimport\x20{\x20ObjectType,\x20Field,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20config\x20}\x20from\x20\x27@things-factory/env\x27\x0aimport\x20{\x20Domain,\x20ScalarObject\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0a\x0aconst\x20ORMCONFIG\x20=\x20config.get(\x27ormconfig\x27,\x20{})\x0aconst\x20DATABASE_TYPE\x20=\x20ORMCONFIG.type\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0a\x0a@Entity(\x27{{tableName}}_histories\x27)\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_0\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.originalId,{{camelCase\x20name}}History.dataRevisionNo],\x20{\x20unique:\x20true\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_1\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.originalId\x20],\x20{\x20unique:\x20false\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_2\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.domain,\x20{{camelCase\x20name}}History.originalId\x20],\x20{\x20unique:\x20false\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_3\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.domain,\x20{{camelCase\x20name}}History.originalId,\x20{{camelCase\x20name}}History.dataRevisionNo],\x20{\x20unique:\x20true\x20})\x0a@ObjectType({\x20description:\x20\x27Entity\x20for\x20{{pascalCase\x20name}}History\x27\x20})\x0aexport\x20class\x20{{pascalCase\x20name}}History\x20\x20implements\x20HistoryEntityInterface<{{pascalCase\x20name}}>{\x0a\x20\x20@PrimaryGeneratedColumn(\x27uuid\x27)\x0a\x20\x20@Field(type\x20=>\x20ID)\x0a\x20\x20readonly\x20id:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20Domain,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20domain:\x20Domain\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.domain)\x0a\x20\x20domainId:\x20string\x0a\x0a\x20\x20@HistoryOriginalIdColumn({type:\x20\x27character\x20varying\x27,\x20nullable:\x20false\x20,length:40})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20public\x20originalId!:\x20string\x0a\x0a\x0a\x20\x20@HistoryActionColumn({\x0a\x20\x20\x20\x20nullable:\x20false,\x0a\x20\x20\x20\x20type:\x0a\x20\x20\x20\x20\x20\x20DATABASE_TYPE\x20==\x20\x27postgres\x27\x20||\x20DATABASE_TYPE\x20==\x20\x27mysql\x27\x20||\x20DATABASE_TYPE\x20==\x20\x27mariadb\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20?\x20\x27enum\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20:\x20DATABASE_TYPE\x20==\x20\x27oracle\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20?\x20\x27varchar2\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20:\x20\x27smallint\x27,\x0a\x20\x20\x20\x20enum:\x20HistoryActionType\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20public\x20dataRevisionAction!:\x20HistoryActionType\x0a\x0a\x20\x20@Column({\x20default:\x201,\x20nullable:\x20false\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20dataRevisionNo?:\x20number\x20=\x201\x0a\x0a{{entityColumns}}\x0a\x0a\x20\x20@CreateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20createdAt?:\x20Date\x0a\x0a\x20\x20@UpdateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updatedAt?:\x20Date\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20creator?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.creator)\x0a\x20\x20creatorId?:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updater?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.updater)\x0a\x20\x20updaterId?:\x20string\x0a}\x0a','sort','-history-type.ts','14OeoUcm','EntitySubscribers\x20}\x20from\x20\x27./','design:returntype','\x20{\x20nullable:\x20','domain_id','filter','/event-subscriber.ts','\x0aimport\x20{\x0a\x20\x20CreateDateColumn,\x0a\x20\x20UpdateDateColumn,\x0a\x20\x20Entity,\x0a\x20\x20Index,\x0a\x20\x20Column,\x0a\x20\x20RelationId,\x0a\x20\x20ManyToOne,\x0a\x20\x20PrimaryGeneratedColumn,\x0a\x20\x20VersionColumn\x0a}\x20from\x20\x27typeorm\x27\x0a\x0aimport\x20{\x0a\x20\x20HistoryActionColumn,\x0a\x20\x20HistoryActionType,\x0a\x20\x20HistoryEntityInterface,\x0a\x20\x20HistoryOriginalIdColumn\x0a}\x20from\x20\x27@operato/typeorm-history\x27\x0a\x0aimport\x20{\x20ObjectType,\x20Field,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20config\x20}\x20from\x20\x27@things-factory/env\x27\x0aimport\x20{\x20Domain,\x20ScalarObject\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0a\x0aconst\x20ORMCONFIG\x20=\x20config.get(\x27ormconfig\x27,\x20{})\x0aconst\x20DATABASE_TYPE\x20=\x20ORMCONFIG.type\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0a\x0a@Entity(\x27{{tableName}}_histories\x27)\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_0\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.originalId,{{camelCase\x20name}}History.dataRevisionNo],\x20{\x20unique:\x20true\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_1\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.originalId\x20],\x20{\x20unique:\x20false\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_2\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.domain,\x20{{camelCase\x20name}}History.originalId\x20],\x20{\x20unique:\x20false\x20})\x0a@Index(\x27ix_{{snakeCase\x20name}}_histories_3\x27,\x20({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20[{{camelCase\x20name}}History.domain,\x20{{camelCase\x20name}}History.originalId,\x20{{camelCase\x20name}}History.dataRevisionNo],\x20{\x20unique:\x20true\x20})\x0a@ObjectType({\x20description:\x20\x27Entity\x20for\x20{{pascalCase\x20name}}History\x27\x20})\x0aexport\x20class\x20{{pascalCase\x20name}}History\x20\x20implements\x20HistoryEntityInterface<{{pascalCase\x20name}}>{\x0a\x20\x20@PrimaryGeneratedColumn(\x27uuid\x27)\x0a\x20\x20@Field(type\x20=>\x20ID)\x0a\x20\x20readonly\x20id:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20Domain,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20domain:\x20Domain\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.domain)\x0a\x20\x20domainId:\x20string\x0a\x0a\x20\x20@HistoryOriginalIdColumn({type:\x20\x27character\x20varying\x27,\x20nullable:\x20false\x20,length:40})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20public\x20originalId!:\x20string\x0a\x0a\x20\x20@HistoryActionColumn({\x0a\x20\x20\x20\x20nullable:\x20false,\x0a\x20\x20\x20\x20type:\x0a\x20\x20\x20\x20\x20\x20DATABASE_TYPE\x20==\x20\x27postgres\x27\x20||\x20DATABASE_TYPE\x20==\x20\x27mysql\x27\x20||\x20DATABASE_TYPE\x20==\x20\x27mariadb\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20?\x20\x27enum\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20:\x20DATABASE_TYPE\x20==\x20\x27oracle\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20?\x20\x27varchar2\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20:\x20\x27smallint\x27,\x0a\x20\x20\x20\x20enum:\x20HistoryActionType\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20public\x20dataRevisionAction!:\x20HistoryActionType\x0a\x0a\x0a\x20\x20@Column({\x20default:\x201,\x20nullable:\x20false\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20dataRevisionNo?:\x20number\x20=\x201\x0a\x0a\x20\x20@Column(\x27simple-json\x27,\x20{\x20nullable:\x20true\x20})\x0a\x20\x20@Field(type\x20=>\x20ScalarObject,\x20{\x20nullable:\x20true\x20})\x0a\x20\x20historyJson?:\x20any\x0a\x0a\x20\x20@CreateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20createdAt?:\x20Date\x0a\x0a\x20\x20@UpdateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updatedAt?:\x20Date\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20creator?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.creator)\x0a\x20\x20creatorId?:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updater?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}History:\x20{{pascalCase\x20name}}History)\x20=>\x20{{camelCase\x20name}}History.updater)\x0a\x20\x20updaterId?:\x20string\x0a}\x0a','1991139Jjpfse','long','JSON','updater_id','__decorate','export\x20*\x20from\x20\x27./','creator_id','existsPath','__param','utf8','6300084OKDONg','design:type','index.ts','map','length','pluralPascalCaseName','/service','double','.ts','integer','1022WOKplc','getProjectRootPath','createHistoryEntityText','\x0aimport\x20{\x20ObjectType,\x20Field,\x20InputType,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}History\x20}\x20from\x20\x27./{{name}}-history\x27\x0a\x0a@ObjectType()\x0aexport\x20class\x20{{pascalCase\x20name}}HistoryList\x20{\x0a\x20\x20@Field(type\x20=>\x20[{{pascalCase\x20name}}History])\x0a\x20\x20items:\x20{{pascalCase\x20name}}History[]\x0a\x0a\x20\x20@Field(type\x20=>\x20Int)\x0a\x20\x20total:\x20number\x0a}\x0a','updated_at','getRepository','double\x20precision','indexOf','EntitySubscribers,','/*\x20IMPORT\x20ENTITIES\x20AND\x20RESOLVERS\x20*/\x0aimport\x20{\x20entities\x20as\x20','decimal','getFieldType','-query.ts','string','tableName'];a0_0x1e02=function(){return _0x585f56;};return a0_0x1e02();}const tslib_1=require(a0_0x1f254f(0x200)),type_graphql_1=require(a0_0x1f254f(0x1ea)),shell_1=require(a0_0x1f254f(0x20b)),resource_base_1=require('@things-factory/resource-base'),{camelCase:camelCase,startCase:startCase,snakeCase:snakeCase,kebabCase:kebabCase}=require('lodash'),{plural:plural}=require('pluralize'),fs=require('fs');let OperatoToolCreateService=class{async[a0_0x1f254f(0x1f0)](_0x304556,_0x138f45){const _0x3e1bbd=a0_0x1f254f,{domain:_0x46a538}=_0x138f45[_0x3e1bbd(0x1d8)],_0x485537=await(0x0,shell_1[_0x3e1bbd(0x19c)])(resource_base_1[_0x3e1bbd(0x1ed)])['findOne']({'where':{'id':_0x304556}}),_0x4f5d6c=await(0x0,shell_1['getRepository'])(resource_base_1[_0x3e1bbd(0x1cc)])[_0x3e1bbd(0x1ca)]({'where':{'domain':{'id':_0x46a538['id']},'entity':{'id':_0x485537['id']}}});let {name:_0x5114a8='',bundle:_0x846e72=''}=_0x485537||{},_0x3b490b=this[_0x3e1bbd(0x198)](),_0x42a19a=kebabCase(_0x5114a8);return await this['createServicePath'](_0x3b490b,_0x846e72,_0x42a19a),await this['createServiceFiles'](_0x3b490b,_0x846e72,_0x5114a8,_0x42a19a,_0x485537,_0x4f5d6c),!0x0;}async[a0_0x1f254f(0x1b6)](_0x441538,_0x2ff6ff,_0x7bb087,_0xf2783e,_0x26e0e2,_0x3c212c){const _0x3fc173=a0_0x1f254f;let _0x30f479={'name':_0xf2783e,'tableName':_0x26e0e2[_0x3fc173(0x1a5)],'pascalCaseName':startCase(camelCase(_0x7bb087))[_0x3fc173(0x209)](/ /g,''),'camelCaseName':camelCase(_0x7bb087),'snakeCaseName':snakeCase(_0x7bb087),'pluralPascalCaseName':startCase(camelCase(plural(_0x7bb087)))['replace'](/ /g,''),'pluralCamelCaseName':camelCase(plural(_0x7bb087))},_0x16604c=_0x441538+_0x3fc173(0x1d0)+_0x2ff6ff+_0x3fc173(0x1c9);['JSON',_0x3fc173(0x1dd)][_0x3fc173(0x206)](_0x26e0e2[_0x3fc173(0x1f6)])?await this['createHistoryServiceFiles'](_0x16604c,_0xf2783e,_0x26e0e2,_0x3c212c,_0x30f479):await this[_0x3fc173(0x1d3)](_0x16604c,_0xf2783e,_0x26e0e2,_0x3c212c,_0x30f479);}async['createHistoryServiceFiles'](_0x415400,_0x490b0a,_0x62cd88,_0x85d80e,_0x881d88){const _0x5bf7b2=a0_0x1f254f;await this['writeFile'](_0x415400+(_0x490b0a+_0x5bf7b2(0x1b7)),serviceHistoryIndex,_0x881d88);let _0x52e570=this[_0x5bf7b2(0x1b8)](_0x62cd88,_0x85d80e);await this['writeFile'](_0x415400+(_0x490b0a+'/'+_0x490b0a+_0x5bf7b2(0x195)),_0x52e570,_0x881d88),await this[_0x5bf7b2(0x205)](_0x415400+(_0x490b0a+'/'+_0x490b0a+_0x5bf7b2(0x1a3)),serviceQuery,_0x881d88),await this['writeFile'](_0x415400+(_0x490b0a+'/'+_0x490b0a+_0x5bf7b2(0x1fb)),serviceMutation,_0x881d88);let _0x5ce1ba=this[_0x5bf7b2(0x1b0)](_0x85d80e);await this[_0x5bf7b2(0x205)](_0x415400+(_0x490b0a+'/'+_0x490b0a+'-type.ts'),_0x5ce1ba,_0x881d88);let _0xf8ec84=this[_0x5bf7b2(0x199)](_0x62cd88,_0x85d80e);await this[_0x5bf7b2(0x205)](_0x415400+(_0x490b0a+'/'+_0x490b0a+'-history.ts'),_0xf8ec84,_0x881d88);let _0x8a034f='';_0x5bf7b2(0x21a)==_0x62cd88['dataProp']?(_0x8a034f=_0x5bf7b2(0x201),await this[_0x5bf7b2(0x205)](_0x415400+(_0x490b0a+_0x5bf7b2(0x216)),serviceEntitySubscriber,_0x881d88)):_0x8a034f='';let _0x5e2c43=serviceEntitySubscriber[_0x5bf7b2(0x209)](/{{entityToJson}}/g,_0x8a034f);await this[_0x5bf7b2(0x205)](_0x415400+(_0x490b0a+_0x5bf7b2(0x216)),_0x5e2c43,_0x881d88),await this[_0x5bf7b2(0x205)](_0x415400+(_0x490b0a+'/'+_0x490b0a+'-history-query.ts'),serviceHistoryQuery,_0x881d88),await this[_0x5bf7b2(0x205)](_0x415400+(_0x490b0a+'/'+_0x490b0a+_0x5bf7b2(0x20f)),sereviceHistoryType,_0x881d88);let _0x51ecd8=_0x415400+_0x5bf7b2(0x224);0x0==await this[_0x5bf7b2(0x21f)](_0x51ecd8)&&await this[_0x5bf7b2(0x205)](_0x51ecd8,allIndex,_0x881d88);let _0x29e3f8=await fs[_0x5bf7b2(0x1fa)](_0x51ecd8,_0x5bf7b2(0x221));_0x29e3f8['indexOf']('export\x20*\x20from\x20\x27./'+_0x881d88[_0x5bf7b2(0x1ee)]+'/'+_0x881d88[_0x5bf7b2(0x1ee)]+'-history\x27')<0x0&&(_0x29e3f8=_0x29e3f8[_0x5bf7b2(0x209)](/\/\* EXPORT ENTITY TYPES \*\//,_0x5bf7b2(0x1f3)+_0x881d88[_0x5bf7b2(0x1ee)]+'/'+_0x881d88[_0x5bf7b2(0x1ee)]+_0x5bf7b2(0x1b9))),_0x29e3f8[_0x5bf7b2(0x19e)]('export\x20*\x20from\x20\x27./'+_0x881d88['name']+'/'+_0x881d88[_0x5bf7b2(0x1ee)]+'\x27')<0x0&&(_0x29e3f8=_0x29e3f8[_0x5bf7b2(0x209)](/\/\* EXPORT ENTITY TYPES \*\//,_0x5bf7b2(0x1f3)+_0x881d88[_0x5bf7b2(0x1ee)]+'/'+_0x881d88[_0x5bf7b2(0x1ee)]+'\x27')),_0x29e3f8[_0x5bf7b2(0x19e)]('import\x20{\x20entities\x20as\x20'+_0x881d88[_0x5bf7b2(0x1a6)]+_0x5bf7b2(0x1bd)+_0x881d88['pascalCaseName']+_0x5bf7b2(0x207)+_0x881d88['pascalCaseName']+_0x5bf7b2(0x211)+_0x881d88[_0x5bf7b2(0x1ee)]+'\x27')<0x0&&(_0x29e3f8=_0x29e3f8[_0x5bf7b2(0x209)](/\/\* IMPORT ENTITIES AND RESOLVERS \*\//,_0x5bf7b2(0x1a0)+_0x881d88[_0x5bf7b2(0x1a6)]+_0x5bf7b2(0x1bd)+_0x881d88['pascalCaseName']+_0x5bf7b2(0x207)+_0x881d88[_0x5bf7b2(0x1a6)]+_0x5bf7b2(0x211)+_0x881d88[_0x5bf7b2(0x1ee)]+'\x27')),_0x29e3f8['indexOf'](_0x5bf7b2(0x1d4)+_0x881d88['pascalCaseName']+'Entities,')<0x0&&(_0x29e3f8=_0x29e3f8[_0x5bf7b2(0x209)](/\/\* ENTITIES \*\//,'/*\x20ENTITIES\x20*/\x0a\x09...'+_0x881d88['pascalCaseName']+_0x5bf7b2(0x1b2))),_0x29e3f8['indexOf'](_0x5bf7b2(0x1d4)+_0x881d88[_0x5bf7b2(0x1a6)]+_0x5bf7b2(0x1e6))<0x0&&(_0x29e3f8=_0x29e3f8[_0x5bf7b2(0x209)](/\/\* RESOLVER CLASSES \*\//,_0x5bf7b2(0x1b4)+_0x881d88['pascalCaseName']+'Resolvers,')),_0x29e3f8[_0x5bf7b2(0x19e)]('...'+_0x881d88[_0x5bf7b2(0x1a6)]+'EntitySubscribers,')<0x0&&(_0x29e3f8=_0x29e3f8[_0x5bf7b2(0x209)](/\/\* SUBSCRIBERS \*\//,'/*\x20SUBSCRIBERS\x20*/\x0a\x09\x09...'+_0x881d88[_0x5bf7b2(0x1a6)]+_0x5bf7b2(0x19f))),await this['writeFile'](_0x51ecd8,_0x29e3f8,_0x881d88);}async[a0_0x1f254f(0x1d3)](_0x31cd64,_0x16e895,_0x48c4ce,_0x2e40a0,_0x2b7321){const _0xcdf04e=a0_0x1f254f;await this[_0xcdf04e(0x205)](_0x31cd64+(_0x16e895+_0xcdf04e(0x1b7)),serviceIndex,_0x2b7321),await this[_0xcdf04e(0x205)](_0x31cd64+(_0x16e895+'/'+_0x16e895+_0xcdf04e(0x1a3)),serviceQuery,_0x2b7321),await this['writeFile'](_0x31cd64+(_0x16e895+'/'+_0x16e895+_0xcdf04e(0x1fb)),serviceMutation,_0x2b7321);let _0x49395b=this['createEntityText'](_0x48c4ce,_0x2e40a0);await this[_0xcdf04e(0x205)](_0x31cd64+(_0x16e895+'/'+_0x16e895+_0xcdf04e(0x195)),_0x49395b,_0x2b7321);let _0x508214=this[_0xcdf04e(0x1b0)](_0x2e40a0);await this[_0xcdf04e(0x205)](_0x31cd64+(_0x16e895+'/'+_0x16e895+_0xcdf04e(0x1aa)),_0x508214,_0x2b7321);let _0x21cf61=_0x31cd64+'index.ts';0x0==await this[_0xcdf04e(0x21f)](_0x21cf61)&&await this[_0xcdf04e(0x205)](_0x21cf61,allIndex,_0x2b7321);let _0x200cb2=await fs[_0xcdf04e(0x1fa)](_0x21cf61,_0xcdf04e(0x221));_0x200cb2[_0xcdf04e(0x19e)](_0xcdf04e(0x21d)+_0x2b7321[_0xcdf04e(0x1ee)]+'/'+_0x2b7321[_0xcdf04e(0x1ee)]+'\x27')<0x0&&(_0x200cb2=_0x200cb2[_0xcdf04e(0x209)](/\/\* EXPORT ENTITY TYPES \*\//,_0xcdf04e(0x1f3)+_0x2b7321[_0xcdf04e(0x1ee)]+'/'+_0x2b7321[_0xcdf04e(0x1ee)]+'\x27')),_0x200cb2[_0xcdf04e(0x19e)](_0xcdf04e(0x1dc)+_0x2b7321[_0xcdf04e(0x1a6)]+_0xcdf04e(0x1bd)+_0x2b7321['pascalCaseName']+_0xcdf04e(0x1ce)+_0x2b7321[_0xcdf04e(0x1ee)]+'\x27')<0x0&&(_0x200cb2=_0x200cb2[_0xcdf04e(0x209)](/\/\* IMPORT ENTITIES AND RESOLVERS \*\//,_0xcdf04e(0x1a0)+_0x2b7321[_0xcdf04e(0x1a6)]+_0xcdf04e(0x1bd)+_0x2b7321[_0xcdf04e(0x1a6)]+_0xcdf04e(0x1ce)+_0x2b7321[_0xcdf04e(0x1ee)]+'\x27')),_0x200cb2[_0xcdf04e(0x19e)]('...'+_0x2b7321[_0xcdf04e(0x1a6)]+'Entities,')<0x0&&(_0x200cb2=_0x200cb2[_0xcdf04e(0x209)](/\/\* ENTITIES \*\//,'/*\x20ENTITIES\x20*/\x0a\x09...'+_0x2b7321[_0xcdf04e(0x1a6)]+_0xcdf04e(0x1b2))),_0x200cb2[_0xcdf04e(0x19e)](_0xcdf04e(0x1d4)+_0x2b7321[_0xcdf04e(0x1a6)]+_0xcdf04e(0x1e6))<0x0&&(_0x200cb2=_0x200cb2['replace'](/\/\* RESOLVER CLASSES \*\//,_0xcdf04e(0x1b4)+_0x2b7321[_0xcdf04e(0x1a6)]+_0xcdf04e(0x1e6))),await this['writeFile'](_0x21cf61,_0x200cb2,_0x2b7321);}['createTypeText'](_0x40c840){const _0x17407d=a0_0x1f254f;let _0x51abda=sereviceType,_0x27767b=_0x40c840[_0x17407d(0x225)](_0x318a57=>{const _0x25ca28=_0x17407d;if('id'==_0x318a57['name'])return'';if(_0x25ca28(0x214)==_0x318a57['name'])return'';if('created_at'==_0x318a57[_0x25ca28(0x1ee)])return'';if(_0x25ca28(0x19b)==_0x318a57[_0x25ca28(0x1ee)])return'';if(_0x25ca28(0x21e)==_0x318a57[_0x25ca28(0x1ee)])return'';if(_0x25ca28(0x21b)==_0x318a57[_0x25ca28(0x1ee)])return'';let _0x39af03=this[_0x25ca28(0x1a2)](_0x318a57),_0x127757=this[_0x25ca28(0x1cf)](_0x318a57),_0x251e4e=camelCase(_0x318a57[_0x25ca28(0x1ee)]);return'\x20\x20'+(_0x25ca28(0x1be)+(0x0==_0x39af03[_0x25ca28(0x226)]?'':_0x25ca28(0x1f7)+_0x39af03+',')+'\x20{\x20nullable:\x20'+_0x318a57[_0x25ca28(0x1ac)]+'\x20})')+'\x0a\x20\x20'+(''+_0x251e4e+(_0x318a57[_0x25ca28(0x1ac)]?'?':'')+':\x20'+_0x127757)+'\x0a';});_0x51abda=_0x51abda[_0x17407d(0x209)](/{{newTypeColumns}}/g,_0x27767b[_0x17407d(0x1e2)]('\x0a'));let _0x58332c=_0x40c840[_0x17407d(0x225)](_0x3ca62b=>{const _0x5381a9=_0x17407d;if('id'==_0x3ca62b[_0x5381a9(0x1ee)])return'';if(_0x5381a9(0x214)==_0x3ca62b['name'])return'';if(_0x5381a9(0x1c1)==_0x3ca62b[_0x5381a9(0x1ee)])return'';if(_0x5381a9(0x19b)==_0x3ca62b['name'])return'';if(_0x5381a9(0x21e)==_0x3ca62b[_0x5381a9(0x1ee)])return'';if('updater_id'==_0x3ca62b[_0x5381a9(0x1ee)])return'';let _0x31cd0d=this[_0x5381a9(0x1a2)](_0x3ca62b),_0x48a527=this[_0x5381a9(0x1cf)](_0x3ca62b);_0x3ca62b['nullable']=!0x0;let _0x4b7b28=camelCase(_0x3ca62b['name']);return'\x20\x20'+(_0x5381a9(0x1be)+(0x0==_0x31cd0d['length']?'':'type\x20=>'+_0x31cd0d+',')+_0x5381a9(0x213)+_0x3ca62b[_0x5381a9(0x1ac)]+_0x5381a9(0x1fd))+_0x5381a9(0x1e7)+(''+_0x4b7b28+(_0x3ca62b[_0x5381a9(0x1ac)]?'?':'')+':\x20'+_0x48a527)+'\x0a';});return _0x51abda=_0x51abda[_0x17407d(0x209)](/{{patchTypeColumns}}/g,_0x58332c[_0x17407d(0x1e2)]('\x0a')),_0x51abda;}[a0_0x1f254f(0x1b8)](_0x151855,_0x4e9269){const _0x3c0825=a0_0x1f254f;let _0x53a2c2=serviceEntity,_0x5e0eb3=_0x4e9269[_0x3c0825(0x20e)](function(_0x36f3ba,_0x1c7bd3){const _0x36c774=_0x3c0825;return _0x36f3ba[_0x36c774(0x1e8)]-_0x1c7bd3[_0x36c774(0x1e8)];})[_0x3c0825(0x225)](_0x556243=>this[_0x3c0825(0x1a9)](_0x556243));[_0x3c0825(0x1dd),_0x3c0825(0x21a)][_0x3c0825(0x206)](_0x151855['dataProp'])&&_0x5e0eb3[_0x3c0825(0x1da)](_0x3c0825(0x208)),_0x53a2c2=_0x53a2c2[_0x3c0825(0x209)](/{{entityColumns}}/g,_0x5e0eb3[_0x3c0825(0x1e2)]('\x0a'));let _0x5a7aa4='',_0x5c1074=_0x4e9269[_0x3c0825(0x215)](_0x47a34e=>_0x47a34e[_0x3c0825(0x1b1)]&&_0x47a34e['uniqRank']>0x0)[_0x3c0825(0x20e)](function(_0xdb890,_0x547045){const _0x2028b9=_0x3c0825;return _0xdb890[_0x2028b9(0x1b1)]-_0x547045[_0x2028b9(0x1b1)];});if(_0x5c1074[_0x3c0825(0x226)]>0x0){_0x5a7aa4=_0x3c0825(0x1f1);let _0x473afe=_0x5c1074[_0x3c0825(0x225)](_0x1133c1=>{const _0x25a527=_0x3c0825;let _0x2ccf77=_0x1133c1['name'];return _0x25a527(0x214)==_0x1133c1[_0x25a527(0x1ee)]&&(_0x2ccf77=_0x25a527(0x1ff)),_0x25a527(0x21e)==_0x1133c1[_0x25a527(0x1ee)]&&(_0x2ccf77=_0x25a527(0x202)),_0x25a527(0x21b)==_0x1133c1['name']&&(_0x2ccf77='updater'),'{{camelCase\x20name}}.'+camelCase(_0x2ccf77);});_0x5a7aa4=_0x5a7aa4[_0x3c0825(0x209)](/{{indexColumns}}/g,_0x473afe[_0x3c0825(0x1e2)](','));}return _0x53a2c2=_0x53a2c2['replace'](/{{indexAnn}}/g,_0x5a7aa4),_0x53a2c2;}[a0_0x1f254f(0x199)](_0x3ec2fb,_0x4681b3){const _0x79b6ab=a0_0x1f254f;let _0x5cb610='JSON'==_0x3ec2fb[_0x79b6ab(0x1f6)]?serviceEntityHistJson:serviceEntityHistCopy,_0x4225a4=_0x4681b3[_0x79b6ab(0x20e)](function(_0x53a3e5,_0x447ccc){const _0x23662d=_0x79b6ab;return _0x53a3e5[_0x23662d(0x1e8)]-_0x447ccc[_0x23662d(0x1e8)];})[_0x79b6ab(0x225)](_0x2d590c=>this[_0x79b6ab(0x1a9)](_0x2d590c));return _0x5cb610=_0x5cb610['replace'](/{{entityColumns}}/g,_0x4225a4[_0x79b6ab(0x1e2)]('\x0a')),_0x5cb610;}[a0_0x1f254f(0x1a9)](_0x5b10cd){const _0x9282d5=a0_0x1f254f;if('id'==_0x5b10cd[_0x9282d5(0x1ee)])return'';if(_0x9282d5(0x214)==_0x5b10cd[_0x9282d5(0x1ee)])return'';if(_0x9282d5(0x1c1)==_0x5b10cd[_0x9282d5(0x1ee)])return'';if(_0x9282d5(0x19b)==_0x5b10cd[_0x9282d5(0x1ee)])return'';if(_0x9282d5(0x21e)==_0x5b10cd[_0x9282d5(0x1ee)])return'';if(_0x9282d5(0x21b)==_0x5b10cd[_0x9282d5(0x1ee)])return'';let _0x15e73f=_0x5b10cd[_0x9282d5(0x1f5)];'double'==_0x5b10cd['colType']&&(_0x15e73f=_0x9282d5(0x19d)),'long'==_0x5b10cd[_0x9282d5(0x1f5)]&&(_0x15e73f=_0x9282d5(0x1ad)),_0x9282d5(0x1a4)==_0x5b10cd[_0x9282d5(0x1f5)]&&(_0x15e73f=_0x9282d5(0x1f2)),_0x9282d5(0x1c6)==_0x5b10cd[_0x9282d5(0x1f5)]&&(_0x15e73f=_0x9282d5(0x1c0));let _0x533bb9='';'string'==_0x5b10cd['colType']&&(_0x533bb9=_0x5b10cd['colSize']);let _0x3e2865=this[_0x9282d5(0x1a2)](_0x5b10cd),_0x2fb425=this[_0x9282d5(0x1cf)](_0x5b10cd),_0x4aeb45=camelCase(_0x5b10cd[_0x9282d5(0x1ee)]);return'\x20\x20'+('@Column({name:\x27'+_0x5b10cd['name']+_0x9282d5(0x20c)+_0x15e73f+_0x9282d5(0x1c2)+_0x5b10cd['nullable']+'\x20'+(0x0==_0x533bb9['length']?'':_0x9282d5(0x1d9)+_0x533bb9)+_0x9282d5(0x1fd))+_0x9282d5(0x1e7)+(_0x9282d5(0x1be)+(0x0==_0x3e2865[_0x9282d5(0x226)]?'':_0x9282d5(0x1f7)+_0x3e2865+',')+'\x20{\x20nullable:\x20'+_0x5b10cd[_0x9282d5(0x1ac)]+_0x9282d5(0x1fd))+_0x9282d5(0x1e7)+(''+_0x4aeb45+(_0x5b10cd[_0x9282d5(0x1ac)]?'?':'')+':\x20'+_0x2fb425)+'\x0a';}[a0_0x1f254f(0x1a2)](_0x358e05){const _0xa16a94=a0_0x1f254f;let _0xa13583='';return _0xa16a94(0x194)==_0x358e05[_0xa16a94(0x1f5)]&&(_0xa13583=_0xa16a94(0x1de)),_0xa16a94(0x1bc)==_0x358e05[_0xa16a94(0x1f5)]&&(_0xa13583=_0xa16a94(0x1de)),'long'==_0x358e05[_0xa16a94(0x1f5)]&&(_0xa13583='Int'),_0xa16a94(0x196)==_0x358e05[_0xa16a94(0x1f5)]&&(_0xa13583='Int'),_0xa13583;}[a0_0x1f254f(0x1cf)](_0x1d7422){const _0x46c5bc=a0_0x1f254f;let _0x151f39=_0x1d7422['colType'];return _0x46c5bc(0x1a1)==_0x1d7422[_0x46c5bc(0x1f5)]&&(_0x151f39=_0x46c5bc(0x1e3)),_0x46c5bc(0x194)==_0x1d7422[_0x46c5bc(0x1f5)]&&(_0x151f39='number'),'float'==_0x1d7422[_0x46c5bc(0x1f5)]&&(_0x151f39='number'),_0x46c5bc(0x196)==_0x1d7422['colType']&&(_0x151f39=_0x46c5bc(0x1e3)),_0x46c5bc(0x219)==_0x1d7422[_0x46c5bc(0x1f5)]&&(_0x151f39='number'),'datetime'==_0x1d7422['colType']&&(_0x151f39=_0x46c5bc(0x203)),_0x46c5bc(0x1d1)==_0x1d7422[_0x46c5bc(0x1f5)]&&(_0x151f39=_0x46c5bc(0x203)),_0x46c5bc(0x1e4)==_0x1d7422[_0x46c5bc(0x1f5)]&&(_0x151f39=_0x46c5bc(0x1a4)),_0x151f39;}async[a0_0x1f254f(0x205)](_0x3bb9e2,_0x591d76,_0x19562f){const _0x2a9c45=a0_0x1f254f;await fs[_0x2a9c45(0x1e0)](_0x3bb9e2,this[_0x2a9c45(0x1f8)](_0x591d76,_0x19562f),_0x2a9c45(0x221));}[a0_0x1f254f(0x1f8)](_0x5d85eb,_0x1c71bb){const _0x404ad6=a0_0x1f254f;return _0x5d85eb[_0x404ad6(0x209)](/{{pascalCase name}}/g,_0x1c71bb[_0x404ad6(0x1a6)])[_0x404ad6(0x209)](/{{camelCase name}}/g,_0x1c71bb[_0x404ad6(0x1c7)])[_0x404ad6(0x209)](/{{snakeCase name}}/g,_0x1c71bb[_0x404ad6(0x1e1)])[_0x404ad6(0x209)](/{{pluralPascalCase name}}/g,_0x1c71bb[_0x404ad6(0x227)])['replace'](/{{pluralCamelCase name}}/g,_0x1c71bb[_0x404ad6(0x1cd)])['replace'](/{{tableName}}/g,_0x1c71bb[_0x404ad6(0x1a5)])['replace'](/{{name}}/g,_0x1c71bb[_0x404ad6(0x1ee)]);}async[a0_0x1f254f(0x1c8)](_0x3811fa,_0x222853,_0x16b95d){const _0x42c56c=a0_0x1f254f;let _0x360bc7=_0x3811fa+_0x42c56c(0x1ef);await this[_0x42c56c(0x1db)](_0x360bc7),_0x360bc7=_0x360bc7+'/'+_0x222853,await this[_0x42c56c(0x1db)](_0x360bc7),_0x360bc7+=_0x42c56c(0x1d2),await this['createDir'](_0x360bc7),_0x360bc7+=_0x42c56c(0x228),await this[_0x42c56c(0x1db)](_0x360bc7),_0x360bc7=_0x360bc7+'/'+_0x16b95d,await this[_0x42c56c(0x1db)](_0x360bc7);}[a0_0x1f254f(0x198)](){const _0x13c123=a0_0x1f254f;let _0x3a7816=process[_0x13c123(0x1ab)][_0x13c123(0x1e9)][_0x13c123(0x1af)]('/'),_0x2fe182=[];for(let _0x4a7ab3=0x0;_0x4a7ab3<_0x3a7816['length']&&_0x13c123(0x1c3)!=_0x3a7816[_0x4a7ab3];_0x4a7ab3++)_0x2fe182[_0x13c123(0x1da)](_0x3a7816[_0x4a7ab3]);return _0x2fe182[_0x13c123(0x1e2)]('/');}async['createDir'](_0x3bc83d){0x0==await this['existsPath'](_0x3bc83d)&&fs['mkdirSync'](_0x3bc83d);}async['existsPath'](_0x2f8a39){const _0x258a71=a0_0x1f254f;return await fs[_0x258a71(0x1e5)](_0x2f8a39);}};function a0_0x293b(_0x5c59bb,_0xdf25f9){const _0x1e02c3=a0_0x1e02();return a0_0x293b=function(_0x293ba0,_0x4befdb){_0x293ba0=_0x293ba0-0x194;let _0x1bb620=_0x1e02c3[_0x293ba0];return _0x1bb620;},a0_0x293b(_0x5c59bb,_0xdf25f9);}tslib_1[a0_0x1f254f(0x21c)]([(0x0,type_graphql_1['Query'])(_0x37b805=>Boolean,{'description':'Operato\x20Tool\x20Create\x20Service'}),tslib_1[a0_0x1f254f(0x220)](0x0,(0x0,type_graphql_1[a0_0x1f254f(0x1b3)])('id')),tslib_1[a0_0x1f254f(0x220)](0x1,(0x0,type_graphql_1[a0_0x1f254f(0x1bb)])()),tslib_1['__metadata'](a0_0x1f254f(0x223),Function),tslib_1['__metadata'](a0_0x1f254f(0x1c5),[String,Object]),tslib_1[a0_0x1f254f(0x1ba)](a0_0x1f254f(0x212),Promise)],OperatoToolCreateService[a0_0x1f254f(0x1df)],a0_0x1f254f(0x1f0),null),OperatoToolCreateService=tslib_1[a0_0x1f254f(0x21c)]([(0x0,type_graphql_1[a0_0x1f254f(0x1f4)])()],OperatoToolCreateService),exports[a0_0x1f254f(0x204)]=OperatoToolCreateService;const allIndex='\x0a/*\x20EXPORT\x20ENTITY\x20TYPES\x20*/\x0a\x0a/*\x20IMPORT\x20ENTITIES\x20AND\x20RESOLVERS\x20*/\x0a\x0aexport\x20const\x20entities\x20=\x20[\x20\x20\x0a\x20\x20/*\x20ENTITIES\x20*/\x0a]\x20\x0a\x0a\x0aexport\x20const\x20schema\x20=\x20{\x0a\x20\x20resolverClasses:\x20[\x0a\x20\x20\x20\x20/*\x20RESOLVER\x20CLASSES\x20*/\x0a\x20\x20]\x20\x0a}\x0a\x0aexport\x20const\x20subscribers\x20=\x20[\x0a\x20\x20/*\x20SUBSCRIBERS\x20*/\x0a]\x0a',serviceIndex=a0_0x1f254f(0x1fe),serviceHistoryIndex=a0_0x1f254f(0x1ae),serviceQuery=a0_0x1f254f(0x1a8),serviceHistoryQuery=a0_0x1f254f(0x1b5),serviceMutation=a0_0x1f254f(0x20a),sereviceType='\x0aimport\x20{\x20ObjectType,\x20Field,\x20InputType,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20{{pascalCase\x20name}}\x20}\x20from\x20\x27./{{name}}\x27\x0a\x0a@InputType()\x0aexport\x20class\x20New{{pascalCase\x20name}}\x20{\x0a{{newTypeColumns}}\x0a}\x0a\x0a@InputType()\x0aexport\x20class\x20{{pascalCase\x20name}}Patch\x20{\x0a\x20\x20@Field(type\x20=>\x20ID,\x20{\x20nullable:\x20true\x20})\x0a\x20\x20id?:\x20string\x0a\x0a{{patchTypeColumns}}\x0a\x0a\x20\x20@Field()\x0a\x20\x20cuFlag:\x20string\x0a}\x0a\x0a@ObjectType()\x0aexport\x20class\x20{{pascalCase\x20name}}List\x20{\x0a\x20\x20@Field(type\x20=>\x20[{{pascalCase\x20name}}])\x0a\x20\x20items:\x20{{pascalCase\x20name}}[]\x0a\x0a\x20\x20@Field(type\x20=>\x20Int)\x0a\x20\x20total:\x20number\x0a}\x0a',sereviceHistoryType=a0_0x1f254f(0x19a),serviceEntity='\x0aimport\x20{\x0a\x20\x20CreateDateColumn,\x0a\x20\x20UpdateDateColumn,\x0a\x20\x20Entity,\x0a\x20\x20Index,\x0a\x20\x20Column,\x0a\x20\x20RelationId,\x0a\x20\x20ManyToOne,\x0a\x20\x20PrimaryGeneratedColumn,\x0a\x20\x20VersionColumn\x0a}\x20from\x20\x27typeorm\x27\x0aimport\x20{\x20ObjectType,\x20Field,\x20Int,\x20ID,\x20Float,\x20registerEnumType\x20}\x20from\x20\x27type-graphql\x27\x0a\x0aimport\x20{\x20Domain\x20}\x20from\x20\x27@things-factory/shell\x27\x0aimport\x20{\x20User\x20}\x20from\x20\x27@things-factory/auth-base\x27\x0a\x0a@Entity(\x27{{tableName}}\x27)\x0a{{indexAnn}}\x0a@ObjectType({\x20description:\x20\x27Entity\x20for\x20{{pascalCase\x20name}}\x27\x20})\x0aexport\x20class\x20{{pascalCase\x20name}}\x20{\x0a\x20\x20@PrimaryGeneratedColumn(\x27uuid\x27)\x0a\x20\x20@Field(type\x20=>\x20ID)\x0a\x20\x20readonly\x20id:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20Domain,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20false\x20})\x0a\x20\x20domain:\x20Domain\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}:\x20{{pascalCase\x20name}})\x20=>\x20{{camelCase\x20name}}.domain)\x0a\x20\x20domainId:\x20string\x0a\x0a{{entityColumns}}\x0a\x0a\x20\x20@CreateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20createdAt?:\x20Date\x0a\x0a\x20\x20@UpdateDateColumn()\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updatedAt?:\x20Date\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20creator?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}:\x20{{pascalCase\x20name}})\x20=>\x20{{camelCase\x20name}}.creator)\x0a\x20\x20creatorId?:\x20string\x0a\x0a\x20\x20@ManyToOne(type\x20=>\x20User,\x20{\x0a\x20\x20\x20\x20createForeignKeyConstraints:\x20false,\x0a\x20\x20\x20\x20nullable:\x20true\x0a\x20\x20})\x0a\x20\x20@Field({\x20nullable:\x20true\x20})\x0a\x20\x20updater?:\x20User\x0a\x0a\x20\x20@RelationId(({{camelCase\x20name}}:\x20{{pascalCase\x20name}})\x20=>\x20{{camelCase\x20name}}.updater)\x0a\x20\x20updaterId?:\x20string\x0a}\x0a',serviceEntityHistCopy=a0_0x1f254f(0x20d),serviceEntityHistJson=a0_0x1f254f(0x217),serviceEntitySubscriber=a0_0x1f254f(0x1d6);
@@ -1 +1 @@
1
- 'use strict';const a0_0x40c0d4=a0_0x378b;function a0_0x4392(){const _0x5a9e43=['Menu','INVALID_LICENSE','trim','@things-factory/shell','1235MpkOXw','64qnjENu','checkTarget','defineProperty','from','../../errors/license-error','id\x20!=\x20:id','includes','__esModule','72AYOAuH','248660srPDsI','(template\x20is\x20not\x20null\x20and\x20template\x20!=\x20\x27\x27\x20)','OVER_LIMIT','LicenseError','3757911QMAWYW','7303134dHgtne','checkStudioPermission','select','where','2nIlLlL','createQueryBuilder','checkStudioTemplateIsOverLimit','989435HZynEN','split','ERROR_CODES','99JKlsgQ','getCount','@things-factory/menu-base','manager','770007gSxHfY','andWhere','forEach','getRepository','10619939bKJkSC','map','@things-factory/operato-license-checker','menu'];a0_0x4392=function(){return _0x5a9e43;};return a0_0x4392();}(function(_0x197091,_0x3c136d){const _0x1ab28a=a0_0x378b,_0x1cde6d=_0x197091();while(!![]){try{const _0x2d579d=parseInt(_0x1ab28a(0x1cb))/0x1+-parseInt(_0x1ab28a(0x1c8))/0x2*(parseInt(_0x1ab28a(0x1c3))/0x3)+parseInt(_0x1ab28a(0x1b6))/0x4*(-parseInt(_0x1ab28a(0x1b5))/0x5)+parseInt(_0x1ab28a(0x1c4))/0x6+-parseInt(_0x1ab28a(0x1a9))/0x7*(parseInt(_0x1ab28a(0x1be))/0x8)+parseInt(_0x1ab28a(0x1a5))/0x9*(-parseInt(_0x1ab28a(0x1bf))/0xa)+parseInt(_0x1ab28a(0x1ad))/0xb;if(_0x2d579d===_0x3c136d)break;else _0x1cde6d['push'](_0x1cde6d['shift']());}catch(_0x2a8cff){_0x1cde6d['push'](_0x1cde6d['shift']());}}}(a0_0x4392,0x9f2ad));Object[a0_0x40c0d4(0x1b8)](exports,a0_0x40c0d4(0x1bd),{'value':!0x0}),exports[a0_0x40c0d4(0x1ca)]=exports[a0_0x40c0d4(0x1c5)]=void 0x0;const operato_license_checker_1=require(a0_0x40c0d4(0x1af)),shell_1=require(a0_0x40c0d4(0x1b4)),menu_base_1=require(a0_0x40c0d4(0x1a7)),license_error_1=require(a0_0x40c0d4(0x1ba));function a0_0x378b(_0x3c1f29,_0x64d899){const _0x4392fe=a0_0x4392();return a0_0x378b=function(_0x378b62,_0x1dc48c){_0x378b62=_0x378b62-0x1a5;let _0x4d7113=_0x4392fe[_0x378b62];return _0x4d7113;},a0_0x378b(_0x3c1f29,_0x64d899);}async function checkStudioPermission(){const _0x4dda60=a0_0x40c0d4;let _0x4843e9=((0x0,operato_license_checker_1['getPermission'])('Permissions\x20For\x20Tailor\x20Tool')||',')[_0x4dda60(0x1cc)](',')[_0x4dda60(0x1ae)](_0xaa707d=>_0xaa707d[_0x4dda60(0x1b3)]()),_0x182512=!0x1;return _0x4843e9[_0x4dda60(0x1ab)](_0x4c1024=>{const _0x4f48bb=_0x4dda60;_0x4c1024[_0x4f48bb(0x1bc)]('Studio')&&(_0x182512=!0x0);}),_0x182512;}async function checkStudioTemplateIsOverLimit(_0x3e8458,_0x4cc0e6){const _0x1f3516=a0_0x40c0d4;if(0x0==await checkStudioPermission())throw new license_error_1[(_0x1f3516(0x1c2))]({'errorCode':_0x4cc0e6['t'](license_error_1[_0x1f3516(0x1c2)][_0x1f3516(0x1cd)][_0x1f3516(0x1b2)])});var _0x458fa4=0x0;if(_0x458fa4=_0x3e8458&&''!=_0x3e8458?await(0x0,shell_1['getRepository'])(menu_base_1[_0x1f3516(0x1b1)])[_0x1f3516(0x1a8)][_0x1f3516(0x1c9)]()[_0x1f3516(0x1c6)](_0x1f3516(0x1b0))[_0x1f3516(0x1b9)](menu_base_1[_0x1f3516(0x1b1)],_0x1f3516(0x1b0))[_0x1f3516(0x1c7)](_0x1f3516(0x1bb),{'id':_0x3e8458})[_0x1f3516(0x1aa)](_0x1f3516(0x1c0))[_0x1f3516(0x1a6)]()+0x1:await(0x0,shell_1[_0x1f3516(0x1ac)])(menu_base_1[_0x1f3516(0x1b1)])[_0x1f3516(0x1a8)][_0x1f3516(0x1c9)]()['select'](_0x1f3516(0x1b0))[_0x1f3516(0x1b9)](menu_base_1['Menu'],_0x1f3516(0x1b0))['where'](_0x1f3516(0x1c0))[_0x1f3516(0x1a6)]()+0x1,!(0x0,operato_license_checker_1[_0x1f3516(0x1b7)])(_0x458fa4))throw new license_error_1[(_0x1f3516(0x1c2))]({'errorCode':_0x4cc0e6['t'](license_error_1[_0x1f3516(0x1c2)][_0x1f3516(0x1cd)][_0x1f3516(0x1c1)])});return!0x0;}exports[a0_0x40c0d4(0x1c5)]=checkStudioPermission,exports['checkStudioTemplateIsOverLimit']=checkStudioTemplateIsOverLimit;
1
+ 'use strict';function a0_0x29e4(){const _0x187495=['4829LWSujf','1144269TYUtYX','1768830zTsHBU','55917HmNcEg','select','750398BXqXCC','checkStudioPermission','INVALID_LICENSE','112CSEmEn','(template\x20is\x20not\x20null\x20and\x20template\x20!=\x20\x27\x27\x20)','manager','menu','Studio','LicenseError','includes','121970BqfdmA','map','checkTarget','430971tpRCuO','14556NZiDOh','getRepository','ERROR_CODES','andWhere','where','@things-factory/shell','../../errors/license-error','8lrWJPg','trim','createQueryBuilder','from','getPermission','Menu','defineProperty','342PLEsXZ','@things-factory/operato-license-checker','5IcPjRC','getCount'];a0_0x29e4=function(){return _0x187495;};return a0_0x29e4();}const a0_0xfffa76=a0_0x41f2;function a0_0x41f2(_0x412c9e,_0x558bbe){const _0x29e4e8=a0_0x29e4();return a0_0x41f2=function(_0x41f280,_0x4f8b8f){_0x41f280=_0x41f280-0xf4;let _0x588926=_0x29e4e8[_0x41f280];return _0x588926;},a0_0x41f2(_0x412c9e,_0x558bbe);}(function(_0x3fb2f1,_0x5c0164){const _0x537afb=a0_0x41f2,_0x10151f=_0x3fb2f1();while(!![]){try{const _0x14113a=-parseInt(_0x537afb(0xf5))/0x1+parseInt(_0x537afb(0x10d))/0x2+-parseInt(_0x537afb(0x10b))/0x3*(-parseInt(_0x537afb(0x110))/0x4)+-parseInt(_0x537afb(0x106))/0x5*(parseInt(_0x537afb(0x10a))/0x6)+-parseInt(_0x537afb(0x109))/0x7*(-parseInt(_0x537afb(0xfd))/0x8)+-parseInt(_0x537afb(0x104))/0x9*(parseInt(_0x537afb(0x117))/0xa)+parseInt(_0x537afb(0x108))/0xb*(parseInt(_0x537afb(0xf6))/0xc);if(_0x14113a===_0x5c0164)break;else _0x10151f['push'](_0x10151f['shift']());}catch(_0x59d6b4){_0x10151f['push'](_0x10151f['shift']());}}}(a0_0x29e4,0x6295b));Object[a0_0xfffa76(0x103)](exports,'__esModule',{'value':!0x0}),exports['checkStudioTemplateIsOverLimit']=exports[a0_0xfffa76(0x10e)]=void 0x0;const operato_license_checker_1=require(a0_0xfffa76(0x105)),shell_1=require(a0_0xfffa76(0xfb)),menu_base_1=require('@things-factory/menu-base'),license_error_1=require(a0_0xfffa76(0xfc));async function checkStudioPermission(){const _0x523274=a0_0xfffa76;let _0x5324d6=((0x0,operato_license_checker_1[_0x523274(0x101)])('Permissions\x20For\x20Tailor\x20Tool')||',')['split'](',')[_0x523274(0x118)](_0x1d3994=>_0x1d3994[_0x523274(0xfe)]()),_0x3df30e=!0x1;return _0x5324d6['forEach'](_0x434aa1=>{const _0x18df22=_0x523274;_0x434aa1[_0x18df22(0x116)](_0x18df22(0x114))&&(_0x3df30e=!0x0);}),_0x3df30e;}async function checkStudioTemplateIsOverLimit(_0x16e318,_0x3aca37){const _0x361a49=a0_0xfffa76;if(0x0==await checkStudioPermission())throw new license_error_1['LicenseError']({'errorCode':_0x3aca37['t'](license_error_1[_0x361a49(0x115)][_0x361a49(0xf8)][_0x361a49(0x10f)])});var _0x7f4dfc=0x0;if(_0x7f4dfc=_0x16e318&&''!=_0x16e318?await(0x0,shell_1[_0x361a49(0xf7)])(menu_base_1[_0x361a49(0x102)])[_0x361a49(0x112)]['createQueryBuilder']()[_0x361a49(0x10c)](_0x361a49(0x113))[_0x361a49(0x100)](menu_base_1['Menu'],_0x361a49(0x113))[_0x361a49(0xfa)]('id\x20!=\x20:id',{'id':_0x16e318})[_0x361a49(0xf9)](_0x361a49(0x111))[_0x361a49(0x107)]()+0x1:await(0x0,shell_1[_0x361a49(0xf7)])(menu_base_1['Menu'])[_0x361a49(0x112)][_0x361a49(0xff)]()['select'](_0x361a49(0x113))['from'](menu_base_1['Menu'],_0x361a49(0x113))[_0x361a49(0xfa)](_0x361a49(0x111))[_0x361a49(0x107)]()+0x1,!(0x0,operato_license_checker_1[_0x361a49(0xf4)])(_0x7f4dfc))throw new license_error_1[(_0x361a49(0x115))]({'errorCode':_0x3aca37['t'](license_error_1[_0x361a49(0x115)][_0x361a49(0xf8)]['OVER_LIMIT'])});return!0x0;}exports['checkStudioPermission']=checkStudioPermission,exports['checkStudioTemplateIsOverLimit']=checkStudioTemplateIsOverLimit;
@@ -1 +1 @@
1
- 'use strict';const a0_0x3713fc=a0_0x2f9d;function a0_0x2f9d(_0x30c3ea,_0x3b9b22){const _0x5e17af=a0_0x5e17();return a0_0x2f9d=function(_0x2f9d92,_0x118344){_0x2f9d92=_0x2f9d92-0x1ac;let _0x394476=_0x5e17af[_0x2f9d92];return _0x394476;},a0_0x2f9d(_0x30c3ea,_0x3b9b22);}function a0_0x5e17(){const _0x19ffc1=['1463124vcydot','1557665PMlrzs','design:type','__metadata','Ctx','tslib','Operato\x20Tool\x20Studio\x20Usage\x20Permissions','studioPermission','prototype','5816860sofMDq','studioTemplateIsOverLimit','checkStudioTemplateIsOverLimit','7479716exDdNt','./tool-permission','Query','Resolver','__decorate','checkStudioPermission','1106824LqOaWN','defineProperty','5691VBepUz','__param','type-graphql','design:returntype','10517499CWvoEN','Arg','3McPcIy','design:paramtypes','10FRjIny','OperatoToolResolver','11124isvAqb'];a0_0x5e17=function(){return _0x19ffc1;};return a0_0x5e17();}(function(_0x302e09,_0x4e5e40){const _0x1614ab=a0_0x2f9d,_0x16927e=_0x302e09();while(!![]){try{const _0x3ea226=-parseInt(_0x1614ab(0x1b2))/0x1+-parseInt(_0x1614ab(0x1b1))/0x2+parseInt(_0x1614ab(0x1ac))/0x3*(parseInt(_0x1614ab(0x1bd))/0x4)+parseInt(_0x1614ab(0x1ba))/0x5+-parseInt(_0x1614ab(0x1b0))/0x6*(-parseInt(_0x1614ab(0x1c5))/0x7)+-parseInt(_0x1614ab(0x1c3))/0x8+-parseInt(_0x1614ab(0x1c9))/0x9*(parseInt(_0x1614ab(0x1ae))/0xa);if(_0x3ea226===_0x4e5e40)break;else _0x16927e['push'](_0x16927e['shift']());}catch(_0x316fb0){_0x16927e['push'](_0x16927e['shift']());}}}(a0_0x5e17,0xe691c));Object[a0_0x3713fc(0x1c4)](exports,'__esModule',{'value':!0x0}),exports[a0_0x3713fc(0x1af)]=void 0x0;const tslib_1=require(a0_0x3713fc(0x1b6)),type_graphql_1=require(a0_0x3713fc(0x1c7)),tool_permission_1=require(a0_0x3713fc(0x1be));let OperatoToolResolver=class{async[a0_0x3713fc(0x1b8)](_0xa7131c){const _0x189db2=a0_0x3713fc;return(0x0,tool_permission_1[_0x189db2(0x1c2)])();}async[a0_0x3713fc(0x1bb)](_0x391089,_0x463145){const _0x3da808=a0_0x3713fc;return(0x0,tool_permission_1[_0x3da808(0x1bc)])(_0x391089,_0x463145);}};tslib_1[a0_0x3713fc(0x1c1)]([(0x0,type_graphql_1[a0_0x3713fc(0x1bf)])(_0x400401=>Boolean,{'description':a0_0x3713fc(0x1b7)}),tslib_1['__param'](0x0,(0x0,type_graphql_1[a0_0x3713fc(0x1b5)])()),tslib_1[a0_0x3713fc(0x1b4)](a0_0x3713fc(0x1b3),Function),tslib_1[a0_0x3713fc(0x1b4)](a0_0x3713fc(0x1ad),[Object]),tslib_1[a0_0x3713fc(0x1b4)]('design:returntype',Promise)],OperatoToolResolver[a0_0x3713fc(0x1b9)],a0_0x3713fc(0x1b8),null),tslib_1[a0_0x3713fc(0x1c1)]([(0x0,type_graphql_1['Query'])(_0x10cc85=>Boolean,{'description':'Operato\x20Tool\x20Studio\x20Limit\x20check'}),tslib_1[a0_0x3713fc(0x1c6)](0x0,(0x0,type_graphql_1[a0_0x3713fc(0x1ca)])('id')),tslib_1[a0_0x3713fc(0x1c6)](0x1,(0x0,type_graphql_1[a0_0x3713fc(0x1b5)])()),tslib_1[a0_0x3713fc(0x1b4)](a0_0x3713fc(0x1b3),Function),tslib_1[a0_0x3713fc(0x1b4)](a0_0x3713fc(0x1ad),[String,Object]),tslib_1[a0_0x3713fc(0x1b4)](a0_0x3713fc(0x1c8),Promise)],OperatoToolResolver['prototype'],a0_0x3713fc(0x1bb),null),OperatoToolResolver=tslib_1['__decorate']([(0x0,type_graphql_1[a0_0x3713fc(0x1c0)])()],OperatoToolResolver),exports[a0_0x3713fc(0x1af)]=OperatoToolResolver;
1
+ 'use strict';const a0_0x3b50e2=a0_0x5357;(function(_0x1ef52d,_0x592a96){const _0x54531b=a0_0x5357,_0x2ee02a=_0x1ef52d();while(!![]){try{const _0x503a88=parseInt(_0x54531b(0x1df))/0x1+parseInt(_0x54531b(0x1ef))/0x2*(parseInt(_0x54531b(0x1dd))/0x3)+parseInt(_0x54531b(0x1f1))/0x4+-parseInt(_0x54531b(0x1eb))/0x5*(-parseInt(_0x54531b(0x1e7))/0x6)+-parseInt(_0x54531b(0x1ee))/0x7+parseInt(_0x54531b(0x1f4))/0x8*(parseInt(_0x54531b(0x1e6))/0x9)+-parseInt(_0x54531b(0x1f2))/0xa;if(_0x503a88===_0x592a96)break;else _0x2ee02a['push'](_0x2ee02a['shift']());}catch(_0x172b07){_0x2ee02a['push'](_0x2ee02a['shift']());}}}(a0_0x4482,0xab12a));function a0_0x4482(){const _0x34fc9c=['2394964jTMtIX','28539120MFEURr','type-graphql','4712StSmKz','__param','Query','__decorate','design:returntype','studioPermission','2592OmZkoD','checkStudioPermission','874240wJchhf','OperatoToolResolver','__metadata','tslib','design:paramtypes','prototype','Resolver','20898PaMqXC','6SHFnVQ','studioTemplateIsOverLimit','Operato\x20Tool\x20Studio\x20Limit\x20check','checkStudioTemplateIsOverLimit','4394090xINDrp','design:type','./tool-permission','2944025GuMTRY','592SEoPSR','Ctx'];a0_0x4482=function(){return _0x34fc9c;};return a0_0x4482();}Object['defineProperty'](exports,'__esModule',{'value':!0x0}),exports['OperatoToolResolver']=void 0x0;const tslib_1=require(a0_0x3b50e2(0x1e2)),type_graphql_1=require(a0_0x3b50e2(0x1f3)),tool_permission_1=require(a0_0x3b50e2(0x1ed));function a0_0x5357(_0x35bca7,_0x2edf7e){const _0x4482b1=a0_0x4482();return a0_0x5357=function(_0x53571f,_0x459323){_0x53571f=_0x53571f-0x1dd;let _0x2f5ce0=_0x4482b1[_0x53571f];return _0x2f5ce0;},a0_0x5357(_0x35bca7,_0x2edf7e);}let OperatoToolResolver=class{async[a0_0x3b50e2(0x1f9)](_0x3709bd){const _0x831dd9=a0_0x3b50e2;return(0x0,tool_permission_1[_0x831dd9(0x1de)])();}async['studioTemplateIsOverLimit'](_0x23375e,_0x54c070){const _0x1f0418=a0_0x3b50e2;return(0x0,tool_permission_1[_0x1f0418(0x1ea)])(_0x23375e,_0x54c070);}};tslib_1[a0_0x3b50e2(0x1f7)]([(0x0,type_graphql_1[a0_0x3b50e2(0x1f6)])(_0xb12c95=>Boolean,{'description':'Operato\x20Tool\x20Studio\x20Usage\x20Permissions'}),tslib_1['__param'](0x0,(0x0,type_graphql_1['Ctx'])()),tslib_1['__metadata'](a0_0x3b50e2(0x1ec),Function),tslib_1[a0_0x3b50e2(0x1e1)]('design:paramtypes',[Object]),tslib_1[a0_0x3b50e2(0x1e1)](a0_0x3b50e2(0x1f8),Promise)],OperatoToolResolver['prototype'],a0_0x3b50e2(0x1f9),null),tslib_1['__decorate']([(0x0,type_graphql_1[a0_0x3b50e2(0x1f6)])(_0x3a76f5=>Boolean,{'description':a0_0x3b50e2(0x1e9)}),tslib_1[a0_0x3b50e2(0x1f5)](0x0,(0x0,type_graphql_1['Arg'])('id')),tslib_1[a0_0x3b50e2(0x1f5)](0x1,(0x0,type_graphql_1[a0_0x3b50e2(0x1f0)])()),tslib_1[a0_0x3b50e2(0x1e1)](a0_0x3b50e2(0x1ec),Function),tslib_1['__metadata'](a0_0x3b50e2(0x1e3),[String,Object]),tslib_1['__metadata']('design:returntype',Promise)],OperatoToolResolver[a0_0x3b50e2(0x1e4)],a0_0x3b50e2(0x1e8),null),OperatoToolResolver=tslib_1[a0_0x3b50e2(0x1f7)]([(0x0,type_graphql_1[a0_0x3b50e2(0x1e5)])()],OperatoToolResolver),exports[a0_0x3b50e2(0x1e0)]=OperatoToolResolver;
@@ -0,0 +1,85 @@
1
+ {
2
+ "text.tool start msg": "Operato開発ツールをご体験ください...",
3
+ "error.license token not valid": "ライセンス トークン データ検査に失敗しました!",
4
+ "error.page count over license limit": "ライセンスで規定したページ数量を超えました!",
5
+ "error.count over license limit": "ライセンスで規定したボードまたはドメイン数量を超えました!",
6
+ "error.your license is not valid in this host": "このホストでライセンスが無効です!",
7
+ "error.your license is expired! expired date is [x]": "ライセンスが満了しました! 満了日は[{x}]です!",
8
+ "error.license key is empty": "ライセンス情報がありません!",
9
+ "error.license key is not certified": "ライセンスが認証されていません!",
10
+ "error.invalid license key": "ライセンスが無効です!",
11
+ "error.license expiration notice": "ライセンス満了予定のお知らせ",
12
+ "error.your license due date is x, please renewal your license!": "ライセンス期限は{x}です. ライセンスを更新したください!",
13
+ "label.header": "ヘッダ",
14
+ "label.editable": "編集可否",
15
+ "label.sortable": "ソーティング可否",
16
+ "label.exportable": "エクスポート可否",
17
+ "label.mandatory": "必須値可否",
18
+ "label.selector_type": "セレクター タイプ",
19
+ "label.selector_name": "セレクター名",
20
+ "label.selector_args": "セレクター変数",
21
+ "label.search_operator": "フィルター演算子",
22
+ "label.default_value": "基本値",
23
+ "label.grid_use_row_check": "行チェックボックス使用可否",
24
+ "label.grid_support_multi_select": "行多重選択",
25
+ "label.grid_desk_view": "デスクトップ ビュー基本値",
26
+ "label.grid_mobile_view": "モバイル ビュー基本値",
27
+ "label.grid_support_view": "サポート ビュー タイプ",
28
+ "label.grid_pagination": "ページ設定",
29
+ "label.grid_term_default": "ページ基本",
30
+ "label.grid_term_50": "50単位",
31
+ "label.grid_term_100": "100単位",
32
+ "label.grid_term_1000": "1000単位",
33
+ "label.grid_term_unlimited": "制限なし",
34
+ "label.use": "使用",
35
+ "label.unuse": "未使用",
36
+ "label.support": "サポート",
37
+ "label.unsupport": "未支援",
38
+ "label.grid_config": "グリッド設定",
39
+ "label.menu_config": "メニュー設定",
40
+ "label.graphql_config": "GraphQL設定",
41
+ "label.column_config": "カラム設定",
42
+ "label.button_config": "ボタン設定",
43
+ "label.search_config": "検索設定",
44
+ "label.form_config": "フォーム設定",
45
+ "label.tab_config": "タブ設定",
46
+ "label.etc_config": "他の設定",
47
+ "label.menu_title": "メニュー タイトル",
48
+ "label.display": "表示",
49
+ "label.menu_name_field": "名前フィールド",
50
+ "label.menu_desc_field": "説明フィールド",
51
+ "label.help_doc": "ヘルプ文章",
52
+ "label.grid_use_filter": "フィルター フォーム使用可否",
53
+ "label.set_field_name": "変更フィールド",
54
+ "label.get_field_name": "データ フィールド",
55
+ "label.field_name": "フィールド名",
56
+ "label.query_list_function": "リスト照会関数",
57
+ "label.query_find_function": "短件照会関数",
58
+ "label.multiple_update_function": "多重作成/修正関数",
59
+ "label.multiple_update_type": "多重作成/修正タイプ",
60
+ "label.delete_function": "リスト削除関数",
61
+ "label.query_option": "照会オプション",
62
+ "label.query_parent_id": "親オブジェクトID",
63
+ "label.after_set_fields": "照会後の変更対象フィールド",
64
+ "label.multiple_update_option": "多重作成/修正オプション",
65
+ "label.mutation_multiple_parent_id": "親オブジェクトID",
66
+ "label.skip_fields": "除外フィールド",
67
+ "label.parent_id": "上位データID",
68
+ "title.meta_generator": "ページ作成ツール",
69
+ "label.rank": "順位",
70
+ "label.name": "名前",
71
+ "label.type": "タイプ",
72
+ "label.rep_field": "代表フィールド",
73
+ "label.detail_field": "詳細フィールド",
74
+ "label.thumbnail_field": "サムネール",
75
+ "label.hidden": "隠し",
76
+ "label.align": "整列",
77
+ "label.width": "幅",
78
+ "label.sort_rank": "整列順位",
79
+ "label.reverse_sort": "逆整列",
80
+ "label.label": "ラベル",
81
+ "label.style": "スタイル",
82
+ "label.logic": "ロジック",
83
+ "label.column_cnt": "列数",
84
+ "label.grid_column_list": "カラム リスト"
85
+ }