prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
1 lines • 4.57 kB
JavaScript
;function pzg_0x4f4568(_0x3b7bc4,_0x505d20,_0x579e8f,_0x15c717){return pzg_0x28de(_0x579e8f- -0x1de,_0x3b7bc4);}(function(_0x344a80,_0x1dc6af){const _0x56c067=_0x344a80();function _0x46184d(_0x419de8,_0x2f225a,_0x23e6c7,_0x55e2c7){return pzg_0x28de(_0x2f225a- -0x190,_0x55e2c7);}function _0x95c4ce(_0x26256b,_0x5d6424,_0x8fc68a,_0x503a51){return pzg_0x28de(_0x26256b-0x3a0,_0x503a51);}while(!![]){try{const _0x818cb2=-parseInt(_0x46184d(-0xc1,-0xc4,-0xcd,-0xc3))/(0x1e8f+0x1d2+-0x250*0xe)*(-parseInt(_0x95c4ce(0x473,0x46c,0x46b,0x46a))/(-0x283*-0x9+-0x120d+-0xc2*0x6))+-parseInt(_0x46184d(-0xbd,-0xbe,-0xbe,-0xc7))/(0x1137+0xf*-0xdf+0x423*-0x1)*(-parseInt(_0x46184d(-0xc0,-0xba,-0xba,-0xb3))/(0x259+0xef+0xb*-0x4c))+-parseInt(_0x95c4ce(0x468,0x46b,0x45f,0x46b))/(-0x1b68+0xede+-0x5*-0x283)+-parseInt(_0x95c4ce(0x477,0x47c,0x47c,0x47e))/(0x1e4d+-0x86*0x3+-0x1*0x1cb5)+-parseInt(_0x95c4ce(0x478,0x478,0x481,0x475))/(0x54d*0x6+0x1c77*-0x1+-0x10*0x35)+-parseInt(_0x46184d(-0xb6,-0xbc,-0xc3,-0xc4))/(-0x342+-0xdd+0x427)+parseInt(_0x95c4ce(0x46a,0x46b,0x46f,0x469))/(-0x1bef+-0x1*-0x2596+-0x2*0x4cf);if(_0x818cb2===_0x1dc6af)break;else _0x56c067['push'](_0x56c067['shift']());}catch(_0x5631e5){_0x56c067['push'](_0x56c067['shift']());}}}(pzg_0x5d5b,-0xed0a4+0x25a*-0x247+0x225588));const pzg_0x5505f8={};pzg_0x5505f8['value']=!![],Object[pzg_0x32436d(0xc2,0xc2,0xbc,0xb9)+'erty'](exports,pzg_0x4f4568(-0x10d,-0x110,-0x10d,-0x107),pzg_0x5505f8);function pzg_0x5d5b(){const _0x47fa51=['mJy0mJKWmgLhEvbguG','mtq5mtqXnef3shjZtq','mZG4nZeXngjcBuD5vW','tu1g','mJaYmti3nvruv0HnBa','zw5LCMf0B3jdBW','mtiYotmWmufTugDVuq','y3jLyxrLuhjVrW','mtuWmJa5m1DwwLjnuG','zxjHDg9Y','z2vUzxjHDgvbua','zgvMAw5LuhjVCa','z2vUzxjHDgu','x19LC01VzhvSzq','m1zSuMnNqW','mMHguNHmCq','mtmWndm0nhH3runADa','BNrLEhq'];pzg_0x5d5b=function(){return _0x47fa51;};return pzg_0x5d5b();}function pzg_0x32436d(_0x503e28,_0x1a650e,_0x343792,_0x4b34f9){return pzg_0x28de(_0x343792- -0x13,_0x1a650e);}exports[pzg_0x4f4568(-0x10a,-0x111,-0x110,-0x10e)+'IDocsFromD'+pzg_0x4f4568(-0x10a,-0x10d,-0x105,-0x10e)]=generateAPIDocsFromDMMF;const ProGeneratorContext_1=require('../../core/ProGeneratorContext'),ApiDocsGenerator_1=require('./ApiDocsGenerator');function pzg_0x28de(_0x31a9ca,_0x174b9f){const _0x3ba0f5=pzg_0x5d5b();return pzg_0x28de=function(_0x2c76d4,_0x58efc1){_0x2c76d4=_0x2c76d4-(-0x1*-0x789+-0x4f3*0x5+-0x7*-0x292);let _0x2bde19=_0x3ba0f5[_0x2c76d4];if(pzg_0x28de['YgemKP']===undefined){var _0x2986be=function(_0x2486b2){const _0x2fd83e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17ce2a='',_0x4bf509='';for(let _0xb5d305=-0x6e0+-0x1fa7+0x1*0x2687,_0x19d96f,_0x4d318e,_0x54fbdf=0x16bf*0x1+-0x2db*-0x7+0x155e*-0x2;_0x4d318e=_0x2486b2['charAt'](_0x54fbdf++);~_0x4d318e&&(_0x19d96f=_0xb5d305%(0x3af+0x1*0x6da+-0xa85)?_0x19d96f*(0x14e5+-0x24a6+0x1001)+_0x4d318e:_0x4d318e,_0xb5d305++%(-0x2151+-0x1516+0x366b))?_0x17ce2a+=String['fromCharCode'](-0x3*-0xaf2+0x1f9c+-0x3f73&_0x19d96f>>(-(-0x36e+-0x1*-0x2345+-0x1fd5)*_0xb5d305&-0xb9e+-0x1b44+0x7c8*0x5)):0x1319*0x2+0x1a04+0x201b*-0x2){_0x4d318e=_0x2fd83e['indexOf'](_0x4d318e);}for(let _0x31e946=-0x3cd+-0x883*-0x2+-0xd39*0x1,_0xa0b328=_0x17ce2a['length'];_0x31e946<_0xa0b328;_0x31e946++){_0x4bf509+='%'+('00'+_0x17ce2a['charCodeAt'](_0x31e946)['toString'](-0x1de7+-0x1*-0x3f4+0x1*0x1a03))['slice'](-(0xd73*0x2+0x16*0x151+-0x37da));}return decodeURIComponent(_0x4bf509);};pzg_0x28de['JpbQvg']=_0x2986be,_0x31a9ca=arguments,pzg_0x28de['YgemKP']=!![];}const _0x38524b=_0x3ba0f5[-0x3*-0x59+-0x488+-0x37d*-0x1],_0x34a06c=_0x2c76d4+_0x38524b,_0x5e0499=_0x31a9ca[_0x34a06c];return!_0x5e0499?(_0x2bde19=pzg_0x28de['JpbQvg'](_0x2bde19),_0x31a9ca[_0x34a06c]=_0x2bde19):_0x2bde19=_0x5e0499,_0x2bde19;},pzg_0x28de(_0x31a9ca,_0x174b9f);}async function generateAPIDocsFromDMMF(_0x49310e,_0x2f5c0b,_0x268782,_0x2d564f,_0x138fc3,_0x706f71,_0x15f43c={},_0x296bee){function _0xd83b74(_0x390692,_0x235507,_0x41f18c,_0x13aa26){return pzg_0x4f4568(_0x41f18c,_0x235507-0xa0,_0x13aa26-0x3d5,_0x13aa26-0x142);}function _0x5da07a(_0x21ab37,_0x28eb1d,_0x5951ed,_0x11766b){return pzg_0x4f4568(_0x28eb1d,_0x28eb1d-0x1b3,_0x11766b-0x161,_0x11766b-0xa9);}const _0x29d5c8=(-0x1148*-0x2+0x1*0x3af+-0x263f,ProGeneratorContext_1[_0xd83b74(0x2c1,0x2c7,0x2ba,0x2c2)+_0xd83b74(0x2c3,0x2c3,0x2b7,0x2c0)+_0x5da07a(0x61,0x54,0x56,0x58)])(_0x49310e,_0x2f5c0b,_0x268782,_0x2d564f,_0x138fc3,_0x706f71,_0x296bee),_0x178800=new ApiDocsGenerator_1['ApiDocsGen'+(_0x5da07a(0x57,0x4d,0x49,0x50))](_0x29d5c8,_0x15f43c);await _0x178800[_0xd83b74(0x2c3,0x2c8,0x2c2,0x2c7)]();}