prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
1 lines • 5.03 kB
JavaScript
;function pzg_0x39e2a4(_0x3f1624,_0x3fc4b3,_0x2e5004,_0xc04d58){return pzg_0xeaaf(_0x2e5004-0x32d,_0xc04d58);}(function(_0x55bd31,_0x4997ca){function _0x38e65f(_0xc15165,_0xee153b,_0x45535e,_0x2aa73d){return pzg_0xeaaf(_0xee153b-0x4a,_0x45535e);}const _0x372513=_0x55bd31();function _0x12c1a3(_0x44eb12,_0x5bffc8,_0x5aefee,_0x52b1a0){return pzg_0xeaaf(_0x5aefee-0x158,_0x5bffc8);}while(!![]){try{const _0x2ba62a=-parseInt(_0x38e65f(0x1e0,0x1e6,0x1de,0x1f1))/(0xaeb+0x6f*-0x3e+-0x2*-0x7fc)*(parseInt(_0x38e65f(0x1ef,0x1ec,0x1e8,0x1e6))/(0x5a9+-0x4de*-0x1+-0x1*0xa85))+-parseInt(_0x38e65f(0x1e9,0x1f4,0x1fd,0x1f7))/(-0x1f6b*-0x1+-0x1bd9*-0x1+-0xc5*0x4d)*(parseInt(_0x12c1a3(0x30c,0x308,0x301,0x30b))/(0x17b6*0x1+0x7d*-0x2d+-0x7*0x3f))+parseInt(_0x12c1a3(0x2f3,0x302,0x2ff,0x2fd))/(0x1*0x254b+0x722+-0x32c*0xe)*(parseInt(_0x12c1a3(0x2f1,0x2ea,0x2f5,0x2f3))/(-0x70f+-0x1*0x1010+0x7b7*0x3))+-parseInt(_0x12c1a3(0x2ed,0x2fb,0x2f1,0x2ea))/(-0x1229+-0x16*0x2+0xeb*0x14)*(-parseInt(_0x38e65f(0x1eb,0x1e4,0x1ef,0x1e2))/(0xc*0x337+-0x4cc*0x3+-0x1828))+parseInt(_0x38e65f(0x1f8,0x1f5,0x1ef,0x1ef))/(-0x1*-0x927+0x1018*-0x1+0x2f*0x26)*(parseInt(_0x12c1a3(0x2fb,0x2f4,0x2f0,0x2e5))/(0xaef+-0xae7+0x1*0x2))+parseInt(_0x12c1a3(0x306,0x2f7,0x2fe,0x2fa))/(-0x25*-0xc+0xc04*-0x3+-0x6df*-0x5)*(parseInt(_0x12c1a3(0x2f3,0x2fe,0x2fb,0x2f6))/(0x240f+-0x79e+-0x1c65))+-parseInt(_0x12c1a3(0x307,0x304,0x300,0x302))/(0x76*-0x4+0x130d+-0x1128);if(_0x2ba62a===_0x4997ca)break;else _0x372513['push'](_0x372513['shift']());}catch(_0x1319df){_0x372513['push'](_0x372513['shift']());}}}(pzg_0x1726,0x395de+0x273*0xb3+0x133c0*-0x1));function pzg_0xeaaf(_0x151191,_0x367631){const _0x229561=pzg_0x1726();return pzg_0xeaaf=function(_0x5016c8,_0x484e67){_0x5016c8=_0x5016c8-(0x53f+0x78b+-0xb36);let _0x1c15ce=_0x229561[_0x5016c8];if(pzg_0xeaaf['yehhhR']===undefined){var _0xc0b71e=function(_0x166536){const _0x3c10a0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x116ecf='',_0x1be1f6='';for(let _0x204f05=0x247b+-0xc07+0xa*-0x272,_0x593059,_0x5adb70,_0x32cd40=0x3*0x18a+0x2352+-0x470*0x9;_0x5adb70=_0x166536['charAt'](_0x32cd40++);~_0x5adb70&&(_0x593059=_0x204f05%(-0x173a*0x1+0x11*0x11+-0x161d*-0x1)?_0x593059*(0x2aa+0x15c7+-0x1831)+_0x5adb70:_0x5adb70,_0x204f05++%(-0x2493+-0x1c4e+-0x40e5*-0x1))?_0x116ecf+=String['fromCharCode'](0x217f+-0x1872+0x2*-0x407&_0x593059>>(-(-0xa51*-0x2+-0x5*-0x755+0x5*-0xb75)*_0x204f05&0x1*0x216c+0x1*-0x21f5+0x8f)):0x2e*-0x85+0x15a0+0x246*0x1){_0x5adb70=_0x3c10a0['indexOf'](_0x5adb70);}for(let _0x432c4d=0x28d*0x1+0xff3+-0x1280,_0x11ecce=_0x116ecf['length'];_0x432c4d<_0x11ecce;_0x432c4d++){_0x1be1f6+='%'+('00'+_0x116ecf['charCodeAt'](_0x432c4d)['toString'](-0x3*0x2f3+0x5*-0x343+0x1938))['slice'](-(-0x16f4+0x18fc+-0x206));}return decodeURIComponent(_0x1be1f6);};pzg_0xeaaf['OErZeo']=_0xc0b71e,_0x151191=arguments,pzg_0xeaaf['yehhhR']=!![];}const _0x2a6e96=_0x229561[0xf59*-0x1+-0x18b9+-0x1409*-0x2],_0x300ea5=_0x5016c8+_0x2a6e96,_0x36595e=_0x151191[_0x300ea5];return!_0x36595e?(_0x1c15ce=pzg_0xeaaf['OErZeo'](_0x1c15ce),_0x151191[_0x300ea5]=_0x1c15ce):_0x1c15ce=_0x36595e,_0x1c15ce;},pzg_0xeaaf(_0x151191,_0x367631);}function pzg_0x4a7fcd(_0x5937e1,_0xedd332,_0x30ed2e,_0x221772){return pzg_0xeaaf(_0x5937e1-0x2ea,_0xedd332);}function pzg_0x1726(){const _0x1ac210=['mJGZntCZmhzqCgLeza','mtuYotCXtNbNEefe','ntzTr2PWCLC','BMvYyxrVCG','mtq0odCXA09AtgLo','mJC2nZHrzgXeC1i','zxj0Eq','y3jLyxrLuhjVrW','zw5LCMf0B3jdBW','x19LC01VzhvSzq','mLDcs1DpBa','nJa0ntm2me5NC2Tsuq','BgLJAwvZrNjVBq','re1nrG','mtffu2rxAe8','mtvKCgPovwK','mtC0mZK4ouD6y3DHAW','nda2nZe2rMHRuxfI','mtj6DxbjDeu','ovHcs2PkCa','zgvMAw5LuhjVCa','z2vUzxjHDgvqBW','BNrLEhq','DMfSDwu'];pzg_0x1726=function(){return _0x1ac210;};return pzg_0x1726();}const pzg_0x4cf043={};pzg_0x4cf043[pzg_0x39e2a4(0x4ba,0x4cf,0x4c4,0x4ce)]=!![],Object[pzg_0x39e2a4(0x4be,0x4ca,0x4c1,0x4c0)+pzg_0x4a7fcd(0x488,0x488,0x486,0x47c)](exports,pzg_0x39e2a4(0x4c4,0x4d2,0x4ce,0x4cb),pzg_0x4cf043),exports[pzg_0x39e2a4(0x4ba,0x4be,0x4c2,0x4cc)+pzg_0x4a7fcd(0x48e,0x499,0x494,0x48d)+pzg_0x4a7fcd(0x48f,0x48e,0x486,0x496)]=generatePoliciesFromDMMF;const ProGeneratorContext_1=require('../../core/ProGeneratorContext'),PoliciesGenerator_1=require('./PoliciesGenerator');async function generatePoliciesFromDMMF(_0x89da6d,_0xd19ab2,_0x1c25d4,_0x30ca83,_0xd24cb4,_0x1950ed,_0x9d58a9={},_0x430a37){const _0x24cf32=(0x1*-0x25ee+0x1c5c+0x46*0x23,ProGeneratorContext_1[_0x5b173b(0x15e,0x162,0x154,0x15a)+_0x281bf4(-0x61,-0x6f,-0x6a,-0x70)+_0x5b173b(0x155,0x154,0x158,0x153)])(_0x89da6d,_0xd19ab2,_0x1c25d4,_0x30ca83,_0xd24cb4,_0x1950ed,_0x430a37);function _0x5b173b(_0xc5f436,_0x2bc4d9,_0x8ac67c,_0x26003c){return pzg_0x4a7fcd(_0xc5f436- -0x32b,_0x8ac67c,_0x8ac67c-0x97,_0x26003c-0x13c);}const _0x5892a2=new PoliciesGenerator_1['PoliciesGe'+(_0x281bf4(-0x77,-0x65,-0x6f,-0x79))](_0x24cf32,_0x9d58a9);function _0x281bf4(_0xd3fbb2,_0x629a15,_0x1dda60,_0x3f6921){return pzg_0x39e2a4(_0xd3fbb2-0x1ed,_0x629a15-0x137,_0x1dda60- -0x537,_0x3f6921);}await _0x5892a2['generate']();}