prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
1 lines • 4.66 kB
JavaScript
;function pzg_0x728f47(_0x3257bf,_0x1577d8,_0x5e9ae6,_0x28d9ad){return pzg_0x493d(_0x3257bf-0xf,_0x5e9ae6);}(function(_0x3a4bce,_0x46d33b){const _0x19ca5e=_0x3a4bce();function _0x3c4e4b(_0x36cb0e,_0x11501f,_0x887283,_0x4a1e1){return pzg_0x493d(_0x36cb0e- -0x95,_0x887283);}function _0x2ab617(_0x3c540d,_0x445f15,_0x2339c6,_0x3ec18e){return pzg_0x493d(_0x3ec18e- -0x361,_0x3c540d);}while(!![]){try{const _0x592ab5=-parseInt(_0x3c4e4b(0xd3,0xcc,0xcf,0xdb))/(-0x10f6+-0x982+0x1b*0xfb)*(parseInt(_0x3c4e4b(0xdb,0xe0,0xdd,0xd4))/(-0xb*0x18e+-0x205b+-0x711*-0x7))+parseInt(_0x3c4e4b(0xda,0xd9,0xd4,0xd5))/(-0x16bb+-0xe*-0xf+-0x1*-0x15ec)*(parseInt(_0x2ab617(-0x1fb,-0x204,-0x202,-0x1fc))/(-0x1385*0x1+0x1*0xd31+-0xe8*-0x7))+parseInt(_0x2ab617(-0x201,-0x1ff,-0x202,-0x1f8))/(-0x4*-0x713+-0x871+-0x1*0x13d6)+-parseInt(_0x2ab617(-0x1f9,-0x1fe,-0x1ff,-0x1fe))/(-0x1*0xe6c+0x1*0x1749+-0x8d7)+parseInt(_0x2ab617(-0x200,-0x1f1,-0x1ef,-0x1f7))/(0x9*0x1c9+-0x2*0xc8d+0x910)+parseInt(_0x2ab617(-0x1ec,-0x1f8,-0x1f3,-0x1f3))/(0x25aa+0x10*0xbb+-0x3152)+-parseInt(_0x2ab617(-0x206,-0x1f8,-0x208,-0x200))/(-0x3*-0x417+-0x1086+0x44a)*(parseInt(_0x2ab617(-0x1ea,-0x1f6,-0x1e6,-0x1ef))/(0x29*-0x25+-0x1*0xb6f+0x1166));if(_0x592ab5===_0x46d33b)break;else _0x19ca5e['push'](_0x19ca5e['shift']());}catch(_0x3bf08b){_0x19ca5e['push'](_0x19ca5e['shift']());}}}(pzg_0x351e,0x2236d+-0x405*0x7c+0x41543));function pzg_0x493d(_0x36dfbb,_0x2e5a94){const _0x5b3734=pzg_0x351e();return pzg_0x493d=function(_0x22bbf5,_0x1be9f5){_0x22bbf5=_0x22bbf5-(0x50*0x3c+-0x123d+0xdd);let _0x471aa2=_0x5b3734[_0x22bbf5];if(pzg_0x493d['onAsyR']===undefined){var _0x5c37a4=function(_0x1aa7e3){const _0x46f8c5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59489a='',_0x3561d5='';for(let _0x40dc13=0x1ca2+0xad6+-0x2778,_0x44cdbf,_0xa5bbc1,_0xc4b9b2=-0x515*0x7+0x55+-0xd*-0x2b6;_0xa5bbc1=_0x1aa7e3['charAt'](_0xc4b9b2++);~_0xa5bbc1&&(_0x44cdbf=_0x40dc13%(0x6ae+-0x199d+0xe7*0x15)?_0x44cdbf*(-0x1*-0x2606+-0x6*0x5bc+-0x1af*0x2)+_0xa5bbc1:_0xa5bbc1,_0x40dc13++%(-0x83a*0x1+-0x1c48*0x1+0x2486))?_0x59489a+=String['fromCharCode'](-0x1*0x1987+0x323*0x4+-0x2*-0x6fd&_0x44cdbf>>(-(0x19cd+0x22cd+-0x3c98)*_0x40dc13&-0x2661+-0x11d*-0x9+0x6*0x4bb)):-0x25ca+-0x2*-0x55b+0xd8a*0x2){_0xa5bbc1=_0x46f8c5['indexOf'](_0xa5bbc1);}for(let _0x154a57=-0x1548+-0xeb1*-0x1+0x697,_0x172d86=_0x59489a['length'];_0x154a57<_0x172d86;_0x154a57++){_0x3561d5+='%'+('00'+_0x59489a['charCodeAt'](_0x154a57)['toString'](0x1c*-0x5+-0x260b*-0x1+-0x256f))['slice'](-(-0x1bfb+0x1*-0x29f+0xc*0x28d));}return decodeURIComponent(_0x3561d5);};pzg_0x493d['rWMZbL']=_0x5c37a4,_0x36dfbb=arguments,pzg_0x493d['onAsyR']=!![];}const _0x5a3f83=_0x5b3734[-0x2*0x1182+-0x98e+0x2c92],_0x26973d=_0x22bbf5+_0x5a3f83,_0x36058a=_0x36dfbb[_0x26973d];return!_0x36058a?(_0x471aa2=pzg_0x493d['rWMZbL'](_0x471aa2),_0x36dfbb[_0x26973d]=_0x471aa2):_0x471aa2=_0x36058a,_0x471aa2;},pzg_0x493d(_0x36dfbb,_0x2e5a94);}function pzg_0x2b25fe(_0x477fdd,_0x55b777,_0x2311ef,_0x19b20c){return pzg_0x493d(_0x19b20c-0x355,_0x2311ef);}const pzg_0x2da0bc={};pzg_0x2da0bc[pzg_0x728f47(0x16f,0x178,0x177,0x166)]=!![],Object[pzg_0x728f47(0x17b,0x179,0x179,0x179)+'erty'](exports,pzg_0x2b25fe(0x4c3,0x4bd,0x4b6,0x4c0),pzg_0x2da0bc),exports[pzg_0x2b25fe(0x4ce,0x4c9,0x4c9,0x4c6)+pzg_0x728f47(0x173,0x17c,0x170,0x177)+'MMF']=generateAPIDocsFromDMMF;const ProGeneratorContext_1=require('../../core/ProGeneratorContext'),ApiDocsGenerator_1=require('./ApiDocsGenerator');function pzg_0x351e(){const _0x115afb=['zw5LCMf0B3jdBW','y3jLyxrLuhjVrW','mtKZuwDirMfi','mtiWodiWAhLXs0fw','mtm5nZGYm3zeELHZCa','x19LC01VzhvSzq','zgvMAw5LuhjVCa','z2vUzxjHDgu','mZq1nJe0ne1zwhzeBW','ntm5odGZsNvhAM96','mZC5ngPcDfvvBa','z2vUzxjHDgvbua','mtbNBg1IyM0','DMfSDwu','otqWntGXtwresKXM','BNrLEhq','nteWndiWtwn0thLW','surVy3ngCM9Tra','nfPxuKDLDq'];pzg_0x351e=function(){return _0x115afb;};return pzg_0x351e();}async function generateAPIDocsFromDMMF(_0x337190,_0x23c22b,_0x4f3d43,_0x17c076,_0x25a593,_0xd2c311,_0x5e5033={},_0x23cd85){function _0x3b07f8(_0x3e509e,_0x2c1a5b,_0xa7c5a7,_0x52f4f5){return pzg_0x728f47(_0x2c1a5b-0xa7,_0x2c1a5b-0x162,_0x52f4f5,_0x52f4f5-0x3);}const _0x4ca391=(0x11f1*-0x1+0x111a+-0x1*-0xd7,ProGeneratorContext_1[_0x2d290a(0xca,0xca,0xc7,0xc4)+_0x3b07f8(0x21e,0x21c,0x221,0x220)+_0x2d290a(0xc8,0xc5,0xc9,0xbf)])(_0x337190,_0x23c22b,_0x4f3d43,_0x17c076,_0x25a593,_0xd2c311,_0x23cd85),_0x2cf7dc=new ApiDocsGenerator_1['ApiDocsGen'+'erator'](_0x4ca391,_0x5e5033);function _0x2d290a(_0x59360d,_0x27a374,_0x1e2d76,_0x35700c){return pzg_0x2b25fe(_0x59360d-0x1ea,_0x27a374-0x6,_0x1e2d76,_0x27a374- -0x3f2);}await _0x2cf7dc[_0x3b07f8(0x226,0x223,0x21a,0x22b)]();}