UNPKG

prisma-zod-generator

Version:

Prisma 2+ generator to emit Zod schemas from your Prisma schema

1 lines 4.59 kB
'use strict';(function(_0x1d4f37,_0x323fb6){const _0x57872f=_0x1d4f37();function _0xb66c37(_0x540cb6,_0xec5681,_0x50da6e,_0x17b6ad){return pzg_0xe702(_0xec5681- -0x1a2,_0x17b6ad);}function _0x3f4bcf(_0x36acbe,_0x5178bb,_0x23f44b,_0x1c8e70){return pzg_0xe702(_0x36acbe-0x16d,_0x23f44b);}while(!![]){try{const _0x166bb5=parseInt(_0xb66c37(-0x1b,-0x1f,-0x16,-0x1f))/(0x1095*-0x2+-0x24aa+0x45d5)+-parseInt(_0x3f4bcf(0x2ed,0x2e8,0x2f6,0x2e8))/(-0x23fb+-0xcc5+-0x4f*-0x9e)*(parseInt(_0xb66c37(-0x1b,-0x16,-0x1b,-0x1f))/(-0x492+0x8d9+-0x27*0x1c))+parseInt(_0x3f4bcf(0x2f6,0x2f7,0x2f2,0x2f5))/(-0x4*0x7ed+0x17b+0x1e3d)+-parseInt(_0xb66c37(-0x29,-0x27,-0x1e,-0x23))/(-0x1*-0x1249+-0xb99+-0x6ab)+-parseInt(_0xb66c37(-0x13,-0x18,-0x1c,-0x1f))/(0x10e7+-0x3df*-0x2+-0x189f)*(-parseInt(_0x3f4bcf(0x2ef,0x2ea,0x2f0,0x2ef))/(-0xbc4+-0x2075+0x2c40))+parseInt(_0x3f4bcf(0x2fa,0x2f5,0x2fa,0x2fb))/(-0x18da+-0x89+0x196b)+-parseInt(_0x3f4bcf(0x2f4,0x2f2,0x2ec,0x2ec))/(0x13f6+-0x64*-0x14+-0x1bbd);if(_0x166bb5===_0x323fb6)break;else _0x57872f['push'](_0x57872f['shift']());}catch(_0x26c555){_0x57872f['push'](_0x57872f['shift']());}}}(pzg_0x3a8b,0x6*-0x1ec16+-0xb54d0+0x20faf2));function pzg_0x3a8b(){const _0x4ac776=['mtqYmZy5ofLnEgDNEa','DMfSDwu','nK1yveX6vq','odeYmZjjvhL3u3G','ndaYnZu2me5Pr0rICG','x19LC01VzhvSzq','z2vUzxjHDgu','rM9YBvvyr2vUzq','z2vUzxjHDgvgBW','ndq0ntrWrujdvfa','zw5LCMf0B3jdBW','mtrTzeH0DgG','odG3mZCYEwP0uwLW','zgvMAw5LuhjVCa','CMf0B3i','zxj0Eq','nJuXnZyYmerZu0fTwG','BNrLEhq','mZq1otK4ngXwruTbAq'];pzg_0x3a8b=function(){return _0x4ac776;};return pzg_0x3a8b();}function pzg_0x557e1f(_0x3a87ae,_0x504c02,_0x4ed045,_0x555e0e){return pzg_0xe702(_0x3a87ae- -0x263,_0x504c02);}const pzg_0xecbbcc={};pzg_0xecbbcc[pzg_0x1df4f6(0x2a6,0x2b0,0x29f,0x2b0)]=!![],Object[pzg_0x1df4f6(0x29f,0x2a8,0x2a5,0x297)+pzg_0x1df4f6(0x2a1,0x297,0x2a2,0x29a)](exports,pzg_0x1df4f6(0x297,0x28e,0x293,0x29e),pzg_0xecbbcc);function pzg_0x1df4f6(_0x256dbc,_0x3795bd,_0x488855,_0x3bdb2c){return pzg_0xe702(_0x256dbc-0x11b,_0x3795bd);}exports[pzg_0x557e1f(-0xe4,-0xe8,-0xec,-0xea)+'rmUXFromDM'+'MF']=generateFormUXFromDMMF;function pzg_0xe702(_0x2319f3,_0xe24866){const _0x3edc86=pzg_0x3a8b();return pzg_0xe702=function(_0x5303c5,_0x2cdc42){_0x5303c5=_0x5303c5-(-0x3d9*0x5+0x69b+0x1*0xe1d);let _0x292174=_0x3edc86[_0x5303c5];if(pzg_0xe702['UzmCzq']===undefined){var _0x512552=function(_0x51b485){const _0x307d7a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x177fa9='',_0x5e2fb5='';for(let _0x7369de=0x1*-0x114a+-0xe*-0x14e+-0x1*0xfa,_0x2f0d4f,_0x5b5559,_0x5ad3f1=0x1*-0x1f25+-0xec6+0x2deb;_0x5b5559=_0x51b485['charAt'](_0x5ad3f1++);~_0x5b5559&&(_0x2f0d4f=_0x7369de%(-0x1*0xf9a+0x20ef+-0x155*0xd)?_0x2f0d4f*(0x239*0x3+-0x2233+0x3f8*0x7)+_0x5b5559:_0x5b5559,_0x7369de++%(-0xec7+0xb6*0x19+-0x2fb))?_0x177fa9+=String['fromCharCode'](0x1*0x197c+-0x17bc+-0xc1*0x1&_0x2f0d4f>>(-(-0xd01*0x2+-0x5c9+0x1fcd)*_0x7369de&-0x1d2+-0x4e7*0x5+0x1a5b)):0x2*-0x7ad+0x3d*0x1d+0x871*0x1){_0x5b5559=_0x307d7a['indexOf'](_0x5b5559);}for(let _0x29bb2a=0x1d84+-0x6d*-0x28+0x4*-0xba3,_0x824c25=_0x177fa9['length'];_0x29bb2a<_0x824c25;_0x29bb2a++){_0x5e2fb5+='%'+('00'+_0x177fa9['charCodeAt'](_0x29bb2a)['toString'](0xf75+-0x25*-0x2+0x5*-0x323))['slice'](-(0x25*-0xfd+-0xc66+0x30f9));}return decodeURIComponent(_0x5e2fb5);};pzg_0xe702['tjrLQf']=_0x512552,_0x2319f3=arguments,pzg_0xe702['UzmCzq']=!![];}const _0x2adb3e=_0x3edc86[-0x1dfb+-0x3c0+-0x5*-0x6bf],_0x363704=_0x5303c5+_0x2adb3e,_0x224565=_0x2319f3[_0x363704];return!_0x224565?(_0x292174=pzg_0xe702['tjrLQf'](_0x292174),_0x2319f3[_0x363704]=_0x292174):_0x292174=_0x224565,_0x292174;},pzg_0xe702(_0x2319f3,_0xe24866);}const ProGeneratorContext_1=require('../../core/ProGeneratorContext'),FormUXGenerator_1=require('./FormUXGenerator');async function generateFormUXFromDMMF(_0x37d3cd,_0x5f290d,_0x4fd299,_0x4db5fd,_0x23a837,_0x5d013e,_0x560cb6={},_0x1da6e9){const _0x4561f8=(-0x1*0xf9a+0x20ef+-0x105*0x11,ProGeneratorContext_1['createProG'+_0x2fded4(0x34a,0x33e,0x33f,0x341)+_0x2d2ad3(-0x151,-0x15a,-0x163,-0x15d)])(_0x37d3cd,_0x5f290d,_0x4fd299,_0x4db5fd,_0x23a837,_0x5d013e,_0x1da6e9);function _0x2d2ad3(_0x291cff,_0x49ef44,_0x3d4889,_0x3f6171){return pzg_0x557e1f(_0x49ef44- -0x7f,_0x3d4889,_0x3d4889-0xde,_0x3f6171-0x130);}function _0x2fded4(_0x23ea59,_0x1496df,_0x5dcbb8,_0x670239){return pzg_0x557e1f(_0x670239-0x423,_0x23ea59,_0x5dcbb8-0x172,_0x670239-0x1b6);}const _0x2ad760=new FormUXGenerator_1[(_0x2d2ad3(-0x15b,-0x164,-0x16c,-0x164))+(_0x2d2ad3(-0x15e,-0x15d,-0x159,-0x156))](_0x4561f8,_0x560cb6);await _0x2ad760[_0x2fded4(0x339,0x344,0x33a,0x33d)]();}