UNPKG

prisma-zod-generator

Version:

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

1 lines 4.94 kB
'use strict';function pzg_0x3569(_0x193ee3,_0x31f958){const _0xf47d54=pzg_0x2e4d();return pzg_0x3569=function(_0x13db7a,_0x49cd5c){_0x13db7a=_0x13db7a-(0x60c+0x4d*-0x81+0x2296);let _0x2c9655=_0xf47d54[_0x13db7a];if(pzg_0x3569['EnawIz']===undefined){var _0x418be8=function(_0x4ba1f7){const _0x2531fa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5767e2='',_0x24d444='';for(let _0x3025a7=0xd74+0x1d8a+-0x2afe,_0x364c6c,_0x4ebd1d,_0xfb65cb=-0x1*-0x1454+-0xc07*0x2+-0x6*-0x9f;_0x4ebd1d=_0x4ba1f7['charAt'](_0xfb65cb++);~_0x4ebd1d&&(_0x364c6c=_0x3025a7%(0x9*0x1c9+0x9*-0x3c4+-0x11d7*-0x1)?_0x364c6c*(-0xef*-0x29+-0xb*0x1f1+-0x184*0xb)+_0x4ebd1d:_0x4ebd1d,_0x3025a7++%(0x14*-0x3e+0x2123+-0x1c47))?_0x5767e2+=String['fromCharCode'](0xe5b+-0xc4d+-0x10f&_0x364c6c>>(-(-0x765*-0x5+-0x825+0xee*-0x1f)*_0x3025a7&0x16d1+-0xeef*-0x1+-0x25ba)):0x23fe+0x42*0x72+0x20b1*-0x2){_0x4ebd1d=_0x2531fa['indexOf'](_0x4ebd1d);}for(let _0x454f7c=-0x2*0xb23+0xb*-0x28d+0x3255,_0x2108d6=_0x5767e2['length'];_0x454f7c<_0x2108d6;_0x454f7c++){_0x24d444+='%'+('00'+_0x5767e2['charCodeAt'](_0x454f7c)['toString'](-0x25af+0xbfc*-0x1+0x31bb))['slice'](-(-0xf4a+-0x1d*-0x6a+0x1a5*0x2));}return decodeURIComponent(_0x24d444);};pzg_0x3569['qBCSSZ']=_0x418be8,_0x193ee3=arguments,pzg_0x3569['EnawIz']=!![];}const _0x51ace9=_0xf47d54[-0x152b+-0x239c+0x38c7],_0x290c87=_0x13db7a+_0x51ace9,_0x3c3ad3=_0x193ee3[_0x290c87];return!_0x3c3ad3?(_0x2c9655=pzg_0x3569['qBCSSZ'](_0x2c9655),_0x193ee3[_0x290c87]=_0x2c9655):_0x2c9655=_0x3c3ad3,_0x2c9655;},pzg_0x3569(_0x193ee3,_0x31f958);}function pzg_0x2e4d(){const _0x2cd933=['mteYr1b1vNvb','C0zYB21etu1g','BNrLEhq','zw5LCMf0B3jdBW','mZiYA095sLn3','x19LC01VzhvSzq','mJLOwfrWtKW','otiZmvPkBwfZzW','z2vUzxjHDgvtzq','zxj0Eq','mZqWuLL4CeHK','mZqWnta2rffPthnY','mteYmdm3nujYwvrSyW','u2vYDMvYqwn0Aq','z2vUzxjHDgu','mtaXntjuwLjPu1K','mZmXodDkwLjIA0K','B25Zr2vUzxjHDa','CNzLCKfJDgLVBG','ndC4mtrtuwXOqNq','nZu2mZbKyM5UqMK','DMfSDwu','ndmXmJiXme5qwNrmEG'];pzg_0x2e4d=function(){return _0x2cd933;};return pzg_0x2e4d();}(function(_0x4adbc0,_0x5c8457){function _0x490c1d(_0x23ddee,_0x58269f,_0x4685c3,_0x5f3b99){return pzg_0x3569(_0x4685c3- -0x3cd,_0x58269f);}function _0x14ad6e(_0x444a03,_0xb3d5fe,_0x5b9248,_0x4e94e9){return pzg_0x3569(_0x5b9248- -0x1af,_0x444a03);}const _0x141b84=_0x4adbc0();while(!![]){try{const _0x3da529=-parseInt(_0x490c1d(-0x1e6,-0x1e5,-0x1e8,-0x1e1))/(-0x205d+-0xa48+0x2aa6)*(parseInt(_0x490c1d(-0x1eb,-0x1f5,-0x1f2,-0x1f6))/(0x12e*0xc+0x1007+-0x1e2d))+-parseInt(_0x14ad6e(0x39,0x42,0x37,0x3a))/(-0x8dd+-0x1835+0x9*0x3ad)*(-parseInt(_0x490c1d(-0x1ec,-0x1ed,-0x1e4,-0x1d9))/(0x6b7+-0x1*0xd1c+0x669*0x1))+-parseInt(_0x490c1d(-0x1e4,-0x1dc,-0x1e2,-0x1da))/(0x5b6+0x11a1+-0x1752)+parseInt(_0x14ad6e(0x36,0x34,0x2d,0x2a))/(-0x14ac+0x773*0x5+-0x108d)*(-parseInt(_0x14ad6e(0x39,0x30,0x34,0x3e))/(-0x1f4f+0xe6f+0x10e7))+parseInt(_0x14ad6e(0x28,0x3c,0x30,0x2d))/(0x211*0x11+0x115+-0x242e)*(-parseInt(_0x14ad6e(0x43,0x43,0x3b,0x3b))/(-0x3*0xa4+-0x1*-0xff8+-0xe03))+-parseInt(_0x490c1d(-0x1f8,-0x1e6,-0x1ef,-0x1f5))/(-0x1bbf+0x19c3+-0x25*-0xe)+-parseInt(_0x14ad6e(0x28,0x28,0x29,0x22))/(-0xc62+0x147b+-0x80e)*(-parseInt(_0x490c1d(-0x1fa,-0x1eb,-0x1f6,-0x1f1))/(-0x2*-0xb26+-0x99*0xd+-0xe7b));if(_0x3da529===_0x5c8457)break;else _0x141b84['push'](_0x141b84['shift']());}catch(_0x184471){_0x141b84['push'](_0x141b84['shift']());}}}(pzg_0x2e4d,0x462dd+-0x74c8e+0x8579f));const pzg_0x652ef4={};pzg_0x652ef4[pzg_0x37a53a(-0xe8,-0xdd,-0xd3,-0xdc)]=!![],Object['defineProp'+pzg_0x37a53a(-0xd8,-0xd2,-0xca,-0xc8)](exports,pzg_0x37a53a(-0xd7,-0xd6,-0xd7,-0xca),pzg_0x652ef4);function pzg_0x37a53a(_0xf8ee44,_0x56f614,_0x4f3637,_0x2d6477){return pzg_0x3569(_0x56f614- -0x2ba,_0x4f3637);}exports[pzg_0x15ba7b(0x474,0x466,0x46f,0x46b)+pzg_0x37a53a(-0xdb,-0xe0,-0xd8,-0xdd)+pzg_0x15ba7b(0x45c,0x465,0x46f,0x464)]=generateServerActionsFromDMMF;function pzg_0x15ba7b(_0xc01b3,_0x3d184d,_0x6e8d2,_0x5cbacd){return pzg_0x3569(_0x5cbacd-0x284,_0xc01b3);}const ProGeneratorContext_1=require('../../core/ProGeneratorContext'),ServerActionsGenerator_1=require('./ServerActionsGenerator');async function generateServerActionsFromDMMF(_0x5bc50d,_0xd11140,_0x3036cd,_0x1f221c,_0x4a1375,_0xf3555c,_0x29c723={},_0x5821ba){const _0x464c49=(0x15*0x174+-0xcb*-0x15+-0xa1*0x4b,ProGeneratorContext_1['createProG'+_0x22803e(-0x77,-0x7f,-0x74,-0x74)+_0x22803e(-0x76,-0x7a,-0x75,-0x71)])(_0x5bc50d,_0xd11140,_0x3036cd,_0x1f221c,_0x4a1375,_0xf3555c,_0x5821ba);function _0x22803e(_0x32b99d,_0x135d21,_0x196483,_0x54dcc9){return pzg_0x15ba7b(_0x54dcc9,_0x135d21-0x157,_0x196483-0x14,_0x196483- -0x4da);}const _0x42c1ef=new ServerActionsGenerator_1[(_0x22803e(-0x80,-0x83,-0x81,-0x7a))+(_0x343973(0x45d,0x461,0x456,0x45c))+'or'](_0x464c49,_0x29c723);function _0x343973(_0x489fcc,_0x235301,_0x5dc8d2,_0x7f5d14){return pzg_0x15ba7b(_0x235301,_0x235301-0x2c,_0x5dc8d2-0x175,_0x7f5d14- -0x1);}await _0x42c1ef[_0x343973(0x45d,0x45e,0x452,0x459)]();}