prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
1 lines • 5.1 kB
JavaScript
;(function(_0x4d0210,_0x4c38da){function _0x387ff5(_0x551f34,_0x2b9a39,_0x4b04bc,_0x5bcace){return pzg_0x563d(_0x4b04bc- -0x1a2,_0x551f34);}const _0x19f172=_0x4d0210();function _0x570d64(_0x375ef4,_0x554e27,_0x4018b0,_0x4977aa){return pzg_0x563d(_0x4977aa- -0x97,_0x554e27);}while(!![]){try{const _0x5c95fe=-parseInt(_0x570d64(0xc4,0xc9,0xc6,0xc7))/(0x3*-0x5f1+-0x26a7*-0x1+-0x14d3)*(-parseInt(_0x387ff5(-0x43,-0x32,-0x38,-0x2d))/(0x603*0x5+0x2621+-0x1*0x442e))+-parseInt(_0x387ff5(-0x45,-0x50,-0x46,-0x4e))/(0x14b2+-0x1d6e+0x8bf)*(parseInt(_0x570d64(0xcf,0xd2,0xde,0xd5))/(0x1*0x126a+0x2b2*0x5+-0x44*0x78))+parseInt(_0x387ff5(-0x35,-0x2e,-0x3a,-0x34))/(-0x1bb9+-0x1*-0x5dd+0x15e1)*(-parseInt(_0x570d64(0xdb,0xd4,0xcf,0xce))/(-0x5*-0x5d+-0x89c+-0x5*-0x15d))+-parseInt(_0x387ff5(-0x34,-0x3e,-0x3c,-0x44))/(0x1144+-0x3*-0x244+-0x1809)*(-parseInt(_0x387ff5(-0x3d,-0x48,-0x3f,-0x47))/(0x1c9b+0x1e8f*0x1+-0x3b22))+-parseInt(_0x387ff5(-0x4e,-0x48,-0x42,-0x3b))/(-0x129d+-0x14cc+0x2772)*(-parseInt(_0x570d64(0xce,0xd1,0xc8,0xc8))/(0x2662+0x6bc*-0x1+-0x77*0x44))+-parseInt(_0x570d64(0xe0,0xe2,0xe1,0xdb))/(-0x8b7*-0x2+-0x44*-0x1+0x1*-0x11a7)*(parseInt(_0x570d64(0xd3,0xd0,0xd9,0xd9))/(-0x1*-0x144d+-0x30*0x88+-0x4f*-0x11))+parseInt(_0x570d64(0xc3,0xd1,0xc7,0xd0))/(0x1580+0x7b*-0x2b+-0xca);if(_0x5c95fe===_0x4c38da)break;else _0x19f172['push'](_0x19f172['shift']());}catch(_0x16143e){_0x19f172['push'](_0x19f172['shift']());}}}(pzg_0x4166,0x20515*0x5+0x165707+0xb*-0x1b848));const pzg_0x2f52a0={};pzg_0x2f52a0[pzg_0x498e70(0x2f6,0x2f9,0x302,0x30f)]=!![],Object[pzg_0x498e70(0x30d,0x300,0x304,0x2fc)+pzg_0xe83021(0x282,0x26e,0x281,0x277)](exports,pzg_0xe83021(0x268,0x261,0x26e,0x269),pzg_0x2f52a0);function pzg_0x498e70(_0x5fd944,_0x139193,_0x5f0d2f,_0x4c5770){return pzg_0x563d(_0x5f0d2f-0x193,_0x139193);}exports[pzg_0xe83021(0x282,0x282,0x272,0x27b)+'rverAction'+pzg_0xe83021(0x26d,0x275,0x27b,0x270)]=generateServerActionsFromDMMF;function pzg_0x563d(_0x53346b,_0x5609a8){const _0x3c0f69=pzg_0x4166();return pzg_0x563d=function(_0x1e6ec8,_0x3dfd17){_0x1e6ec8=_0x1e6ec8-(-0x1a48+0x2e7*-0x9+0x35c2);let _0x15f63f=_0x3c0f69[_0x1e6ec8];if(pzg_0x563d['OMpgvA']===undefined){var _0x4d4ee3=function(_0x3cb290){const _0x4385f6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x52be3c='',_0x2491ec='';for(let _0x3d4b7c=-0x25d2*0x1+0x4*-0x4d9+0x989*0x6,_0x3f0fbb,_0x7e8b98,_0x1565c2=0x1880+0x1*0x35+-0x1*0x18b5;_0x7e8b98=_0x3cb290['charAt'](_0x1565c2++);~_0x7e8b98&&(_0x3f0fbb=_0x3d4b7c%(-0x1952+0x1193+-0x7c3*-0x1)?_0x3f0fbb*(-0xc27+0x1dbc+-0x1155)+_0x7e8b98:_0x7e8b98,_0x3d4b7c++%(-0x1*-0x1754+0x617*0x5+-0x1*0x35c3))?_0x52be3c+=String['fromCharCode'](-0x15df*0x1+-0x2*-0x578+-0x5f7*-0x2&_0x3f0fbb>>(-(-0x118f*-0x1+-0x1f2*-0x8+-0x31*0xad)*_0x3d4b7c&-0x1c*0x2e+-0xc43+0x1151)):-0x1cd6+-0x2*-0x94d+0xa3c){_0x7e8b98=_0x4385f6['indexOf'](_0x7e8b98);}for(let _0x462507=-0x11e7+0x127f*0x1+-0x98,_0x1ebf14=_0x52be3c['length'];_0x462507<_0x1ebf14;_0x462507++){_0x2491ec+='%'+('00'+_0x52be3c['charCodeAt'](_0x462507)['toString'](0x912+-0x1*-0x147c+0xa*-0x2f3))['slice'](-(0x1cc2+0x1*-0x137b+-0x945));}return decodeURIComponent(_0x2491ec);};pzg_0x563d['CoLfJf']=_0x4d4ee3,_0x53346b=arguments,pzg_0x563d['OMpgvA']=!![];}const _0x1f88b5=_0x3c0f69[0x7*-0x18f+0xc66+-0x7f*0x3],_0x282e58=_0x1e6ec8+_0x1f88b5,_0x460af9=_0x53346b[_0x282e58];return!_0x460af9?(_0x15f63f=pzg_0x563d['CoLfJf'](_0x15f63f),_0x53346b[_0x282e58]=_0x15f63f):_0x15f63f=_0x460af9,_0x15f63f;},pzg_0x563d(_0x53346b,_0x5609a8);}function pzg_0x4166(){const _0x4070fe=['zxj0Eq','mJe0mdGWnK1Tvhn5BW','y3jLyxrLuhjVrW','mtjoy0L6t0G','z2vUzxjHDgvtzq','z2vUzxjHDgu','DMfSDwu','mty1nZmZmZjnzg9MuMS','zgvMAw5LuhjVCa','mtf2wMLjCfG','zw5LCMf0B3jdBW','x19LC01VzhvSzq','ndu4ndmZtwrmvhbh','B25Zr2vUzxjHDa','mxjbBM90zW','mZGWBe1XDMXi','otGZotDlvhriswu','u2vYDMvYqwn0Aq','C0zYB21etu1g','ogXrCNznsa','BNrLEhq','mtq3mZzZsu9fEfC','mZq3mJGXowHuvuDXsa','mJi1nJy2nZrYEg5xEve','mJaYmfrUD1fjzW'];pzg_0x4166=function(){return _0x4070fe;};return pzg_0x4166();}const ProGeneratorContext_1=require('../../core/ProGeneratorContext');function pzg_0xe83021(_0x3528f6,_0x3474b0,_0x3f2203,_0x273e01){return pzg_0x563d(_0x273e01-0x10e,_0x3f2203);}const ServerActionsGenerator_1=require('./ServerActionsGenerator');async function generateServerActionsFromDMMF(_0x20db8d,_0x53fb65,_0x5e0069,_0x2250b3,_0x15ad20,_0x4c2933,_0x54da78={},_0x408b41){const _0x2e3dd6=(-0x1952+0x1193+-0x295*-0x3,ProGeneratorContext_1[_0x24923b(-0xbd,-0xd4,-0xca,-0xc7)+_0x82b0e6(0x8c,0x89,0x91,0x95)+_0x82b0e6(0x7d,0x73,0x7f,0x72)])(_0x20db8d,_0x53fb65,_0x5e0069,_0x2250b3,_0x15ad20,_0x4c2933,_0x408b41);function _0x24923b(_0x4be1dd,_0x5d2e27,_0x4fe27f,_0x3c3f4d){return pzg_0x498e70(_0x4be1dd-0x108,_0x4fe27f,_0x3c3f4d- -0x3c5,_0x3c3f4d-0x16d);}const _0x31c5a9=new ServerActionsGenerator_1[(_0x82b0e6(0x7a,0x79,0x7f,0x7f))+(_0x82b0e6(0x76,0x7d,0x7f,0x81))+'or'](_0x2e3dd6,_0x54da78);function _0x82b0e6(_0x4cfbef,_0x1c3869,_0x403b52,_0x558e46){return pzg_0xe83021(_0x4cfbef-0x16c,_0x1c3869-0x164,_0x403b52,_0x4cfbef- -0x1f5);}await _0x31c5a9[_0x82b0e6(0x87,0x86,0x85,0x7a)]();}