@anncic-api/validator 3.4.8 → 3.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const a0_0x71823e=a0_0x5faa;(function(_0x30a2d9,_0x1029a2){const _0x1fd8e7=a0_0x5faa,_0x585e3f=_0x30a2d9();while(!![]){try{const _0x13452f=-parseInt(_0x1fd8e7(0xac))/0x1+-parseInt(_0x1fd8e7(0xb3))/0x2+-parseInt(_0x1fd8e7(0xb0))/0x3*(-parseInt(_0x1fd8e7(0xb2))/0x4)+parseInt(_0x1fd8e7(0xad))/0x5*(parseInt(_0x1fd8e7(0xb8))/0x6)+-parseInt(_0x1fd8e7(0xb5))/0x7+-parseInt(_0x1fd8e7(0xa9))/0x8*(-parseInt(_0x1fd8e7(0xae))/0x9)+parseInt(_0x1fd8e7(0xaf))/0xa;if(_0x13452f===_0x1029a2)break;else _0x585e3f['push'](_0x585e3f['shift']());}catch(_0x58d0cf){_0x585e3f['push'](_0x585e3f['shift']());}}}(a0_0x3744,0xbbbc4));function a0_0x5faa(_0x2e2d66,_0x2402b5){const _0xd490a5=a0_0x3744();return a0_0x5faa=function(_0x82954,_0x4e8148){_0x82954=_0x82954-0xa9;let _0x374464=_0xd490a5[_0x82954];return _0x374464;},a0_0x5faa(_0x2e2d66,_0x2402b5);}const a0_0x4e8148=(function(){let _0x72ef91=!![];return function(_0x3efe6a,_0x3f51bf){const _0x2df8a9=_0x72ef91?function(){if(_0x3f51bf){const _0x37a757=_0x3f51bf['apply'](_0x3efe6a,arguments);return _0x3f51bf=null,_0x37a757;}}:function(){};return _0x72ef91=![],_0x2df8a9;};}()),a0_0x82954=a0_0x4e8148(this,function(){const _0x323e4f=a0_0x5faa;return a0_0x82954['toString']()['search'](_0x323e4f(0xab))[_0x323e4f(0xb4)]()['constructor'](a0_0x82954)[_0x323e4f(0xaa)]('(((.+)+)+)+$');});a0_0x82954();'use strict';Object['defineProperty'](exports,a0_0x71823e(0xb7),{'value':!![]});function a0_0x3744(){const _0x452e09=['15dCVoNq','9gHTxvO','14209660seMbwJ','27DJhDaL','default','314844TGRxtC','2446622WGyzIw','toString','5542740KIsQxO','../../locales/zh_CN.json','__esModule','1664034lFbYJF','PARAMS','4738616mTEBlN','search','(((.+)+)+)+$','769614QLFcJN'];a0_0x3744=function(){return _0x452e09;};return a0_0x3744();}const ValidatorError_1=require('../exception/ValidatorError');exports[a0_0x71823e(0xb1)]={'validator':{'errorStatus':ValidatorError_1['ValidatorError'][a0_0x71823e(0xb9)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require('../../locales/en_US.json')},'zh_CN':{'validator':require(a0_0x71823e(0xb6))}}}};
1
+ const a0_0xb0e1d0=a0_0x95ed;(function(_0x44dc34,_0x2bf211){const _0x588bf6=a0_0x95ed,_0x4f79e4=_0x44dc34();while(!![]){try{const _0xefa5bd=-parseInt(_0x588bf6(0x18f))/0x1+-parseInt(_0x588bf6(0x198))/0x2+parseInt(_0x588bf6(0x196))/0x3+parseInt(_0x588bf6(0x18c))/0x4+parseInt(_0x588bf6(0x194))/0x5*(parseInt(_0x588bf6(0x18b))/0x6)+-parseInt(_0x588bf6(0x19a))/0x7*(-parseInt(_0x588bf6(0x19d))/0x8)+parseInt(_0x588bf6(0x192))/0x9;if(_0xefa5bd===_0x2bf211)break;else _0x4f79e4['push'](_0x4f79e4['shift']());}catch(_0x5bb513){_0x4f79e4['push'](_0x4f79e4['shift']());}}}(a0_0x3915,0xd082e));function a0_0x95ed(_0x406078,_0x2a4f25){const _0x41f39a=a0_0x3915();return a0_0x95ed=function(_0x59baf6,_0x5048b5){_0x59baf6=_0x59baf6-0x18a;let _0x3915df=_0x41f39a[_0x59baf6];return _0x3915df;},a0_0x95ed(_0x406078,_0x2a4f25);}const a0_0x5048b5=(function(){let _0x3a88f4=!![];return function(_0x1dc686,_0x54a067){const _0xbaed19=_0x3a88f4?function(){const _0x46bfce=a0_0x95ed;if(_0x54a067){const _0x279c8d=_0x54a067[_0x46bfce(0x19b)](_0x1dc686,arguments);return _0x54a067=null,_0x279c8d;}}:function(){};return _0x3a88f4=![],_0xbaed19;};}()),a0_0x59baf6=a0_0x5048b5(this,function(){const _0x4c0130=a0_0x95ed;return a0_0x59baf6[_0x4c0130(0x191)]()[_0x4c0130(0x19c)](_0x4c0130(0x190))[_0x4c0130(0x191)]()['constructor'](a0_0x59baf6)[_0x4c0130(0x19c)](_0x4c0130(0x190));});a0_0x59baf6();'use strict';function a0_0x3915(){const _0x379ecb=['(((.+)+)+)+$','toString','290799zeHnFO','../exception/ValidatorError','65sKHozX','ValidatorError','283902EzDoIj','defineProperty','3014738GkhDMK','../../locales/zh_CN.json','63wubvGB','apply','search','1098360CrFDQC','default','587256NHHtcW','1765424mBAGLW','string','../../locales/en_US.json','714913bjGVuC'];a0_0x3915=function(){return _0x379ecb;};return a0_0x3915();}Object[a0_0xb0e1d0(0x197)](exports,'__esModule',{'value':!![]});const ValidatorError_1=require(a0_0xb0e1d0(0x193));exports[a0_0xb0e1d0(0x18a)]={'validator':{'errorStatus':ValidatorError_1[a0_0xb0e1d0(0x195)]['PARAMS'],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0xb0e1d0(0x18d)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0xb0e1d0(0x18e))},'zh_CN':{'validator':require(a0_0xb0e1d0(0x199))}}}};
@@ -1 +1 @@
1
- const a1_0x2adc51=a1_0x181b;(function(_0x1f0df0,_0x5cbff3){const _0x1a2118=a1_0x181b,_0x59fb40=_0x1f0df0();while(!![]){try{const _0x2d25fb=-parseInt(_0x1a2118(0x12e))/0x1*(-parseInt(_0x1a2118(0x13d))/0x2)+-parseInt(_0x1a2118(0x133))/0x3*(-parseInt(_0x1a2118(0x12b))/0x4)+-parseInt(_0x1a2118(0x12c))/0x5*(parseInt(_0x1a2118(0x112))/0x6)+-parseInt(_0x1a2118(0x118))/0x7*(-parseInt(_0x1a2118(0x11a))/0x8)+-parseInt(_0x1a2118(0x11d))/0x9+parseInt(_0x1a2118(0x10e))/0xa+parseInt(_0x1a2118(0x109))/0xb*(-parseInt(_0x1a2118(0x120))/0xc);if(_0x2d25fb===_0x5cbff3)break;else _0x59fb40['push'](_0x59fb40['shift']());}catch(_0x3c719a){_0x59fb40['push'](_0x59fb40['shift']());}}}(a1_0x4b9c,0x58be8));const a1_0x48a958=(function(){let _0x4a89fb=!![];return function(_0x4a346f,_0x4983b9){const _0x5f2b0e=_0x4a89fb?function(){const _0x2fcd9f=a1_0x181b;if(_0x4983b9){const _0x436ea7=_0x4983b9[_0x2fcd9f(0x105)](_0x4a346f,arguments);return _0x4983b9=null,_0x436ea7;}}:function(){};return _0x4a89fb=![],_0x5f2b0e;};}()),a1_0x328320=a1_0x48a958(this,function(){const _0x33ea23=a1_0x181b;return a1_0x328320[_0x33ea23(0x139)]()[_0x33ea23(0x134)](_0x33ea23(0x13a))['toString']()[_0x33ea23(0x106)](a1_0x328320)[_0x33ea23(0x134)](_0x33ea23(0x13a));});a1_0x328320();'use strict';function a1_0x181b(_0x334dbf,_0x2da014){const _0x1f9fa7=a1_0x4b9c();return a1_0x181b=function(_0x328320,_0x48a958){_0x328320=_0x328320-0x105;let _0x4b9c45=_0x1f9fa7[_0x328320];return _0x4b9c45;},a1_0x181b(_0x334dbf,_0x2da014);}var __decorate=this&&this['__decorate']||function(_0x3880c8,_0x19440b,_0x28023b,_0xc6939){const _0x53282e=a1_0x181b;var _0x5c0f7c=arguments[_0x53282e(0x126)],_0x1aa549=_0x5c0f7c<0x3?_0x19440b:_0xc6939===null?_0xc6939=Object[_0x53282e(0x10b)](_0x19440b,_0x28023b):_0xc6939,_0x5b7f2f;if(typeof Reflect===_0x53282e(0x132)&&typeof Reflect[_0x53282e(0x12d)]===_0x53282e(0x13b))_0x1aa549=Reflect['decorate'](_0x3880c8,_0x19440b,_0x28023b,_0xc6939);else{for(var _0x4a8583=_0x3880c8[_0x53282e(0x126)]-0x1;_0x4a8583>=0x0;_0x4a8583--)if(_0x5b7f2f=_0x3880c8[_0x4a8583])_0x1aa549=(_0x5c0f7c<0x3?_0x5b7f2f(_0x1aa549):_0x5c0f7c>0x3?_0x5b7f2f(_0x19440b,_0x28023b,_0x1aa549):_0x5b7f2f(_0x19440b,_0x28023b))||_0x1aa549;}return _0x5c0f7c>0x3&&_0x1aa549&&Object[_0x53282e(0x10c)](_0x19440b,_0x28023b,_0x1aa549),_0x1aa549;},__metadata=this&&this['__metadata']||function(_0x28c936,_0x228673){const _0x284351=a1_0x181b;if(typeof Reflect==='object'&&typeof Reflect[_0x284351(0x113)]==='function')return Reflect[_0x284351(0x113)](_0x28c936,_0x228673);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x2adc51(0x121)]=void 0x0;function a1_0x4b9c(){const _0x2f4235=['1ogMLgE','@midwayjs/core','getMethodParamTypes','validator','object','52950mvSBmB','search','methodName','request','methodArgs','onReady','toString','(((.+)+)+)+$','function','target','828398zUieen','apply','constructor','decorator','./interface','11mmaHxW','param','getOwnPropertyDescriptor','defineProperty','design:type','881310TsilkI','body','REQUEST_OBJ_CTX_KEY','args','6LHyhuk','metadata','getAttr','res','params','Configuration','833pBCqYx','prototype','47848avOxrf','getClassMetadata','locale','661005umfySa','find','MidwayDecoratorService','8207796AgcEbY','CustomConfiguration','anncic-api:validator','./service/ValidatorService','Inject','ValidatorService','length','method','./config/config.default','VALIDATOR_KEY','@midwayjs/i18n','44oAfpuT','1436475PRdjLO','decorate'];a1_0x4b9c=function(){return _0x2f4235;};return a1_0x4b9c();}const i18n_1=require(a1_0x2adc51(0x12a)),core_1=require(a1_0x2adc51(0x12f)),core_2=require(a1_0x2adc51(0x12f)),interface_1=require(a1_0x2adc51(0x108)),ValidatorService_1=require(a1_0x2adc51(0x123)),i18n=require(a1_0x2adc51(0x12a)),anncic=require('@anncic-api/core'),ConfigDefault=require(a1_0x2adc51(0x128));let CustomConfiguration=class CustomConfiguration{async[a1_0x2adc51(0x138)](){const _0x34a984=a1_0x2adc51;this[_0x34a984(0x107)]['registerMethodHandler'](interface_1[_0x34a984(0x129)],_0x860164=>{const _0x2397c5=_0x34a984,_0x1f0d7a=_0x860164['metadata'],_0x29ecb9=(0x0,core_2[_0x2397c5(0x130)])(_0x860164[_0x2397c5(0x13c)],_0x860164['propertyName']);return{'before':_0x18019e=>{const _0x42a4a5=_0x2397c5;var _0x56d793,_0x58bdec,_0x3f6602,_0x24d7f8,_0x3cfca6,_0x1e68d2,_0x216e08,_0x589576,_0x32d732,_0xde6331,_0x3d88fc,_0x4e4b85,_0x4fe582;const _0x2c29dc=_0x18019e[_0x42a4a5(0x13c)][core_1[_0x42a4a5(0x110)]],_0x4968e2=Object['assign']({},((_0x56d793=_0x2c29dc===null||_0x2c29dc===void 0x0?void 0x0:_0x2c29dc[_0x42a4a5(0x136)])===null||_0x56d793===void 0x0?void 0x0:_0x56d793['query'])||{},((_0x58bdec=_0x2c29dc===null||_0x2c29dc===void 0x0?void 0x0:_0x2c29dc[_0x42a4a5(0x136)])===null||_0x58bdec===void 0x0?void 0x0:_0x58bdec[_0x42a4a5(0x10f)])||{}),_0xb3f27d=((0x0,core_2[_0x42a4a5(0x11b)])(interface_1[_0x42a4a5(0x129)],_0x18019e[_0x42a4a5(0x13c)])||[])[_0x42a4a5(0x11e)](_0x3899b3=>_0x3899b3[_0x42a4a5(0x127)]==_0x18019e[_0x42a4a5(0x135)]);!(_0x1f0d7a===null||_0x1f0d7a===void 0x0?void 0x0:_0x1f0d7a[_0x42a4a5(0x11c)])&&_0x2c29dc&&_0x2c29dc[_0x42a4a5(0x114)]&&(_0x1f0d7a[_0x42a4a5(0x11c)]=_0x2c29dc[_0x42a4a5(0x114)](i18n_1['I18N_ATTR_KEY']));for(let _0x3c990b=0x0;_0x3c990b<_0x29ecb9[_0x42a4a5(0x126)];_0x3c990b++){const _0x3512ae=_0x29ecb9[_0x3c990b],_0x210c14=this[_0x42a4a5(0x125)]['getSchema'](_0x3512ae);if(_0x210c14){if(typeof _0x18019e['args'][_0x3c990b]=='undefined'||((_0x3f6602=_0x18019e[_0x42a4a5(0x111)][_0x3c990b])===null||_0x3f6602===void 0x0?void 0x0:_0x3f6602[_0x42a4a5(0x136)])&&((_0x24d7f8=_0x18019e[_0x42a4a5(0x111)][_0x3c990b])===null||_0x24d7f8===void 0x0?void 0x0:_0x24d7f8[_0x42a4a5(0x115)])&&((_0x3cfca6=_0x18019e['args'][_0x3c990b])===null||_0x3cfca6===void 0x0?void 0x0:_0x3cfca6['req']))_0x18019e[_0x42a4a5(0x111)][_0x3c990b]=_0x4968e2;else((_0x1e68d2=_0x18019e['args'][_0x3c990b])===null||_0x1e68d2===void 0x0?void 0x0:_0x1e68d2['name'])=='bound\x20dispatch'&&_0x18019e[_0x42a4a5(0x111)]['splice'](_0x3c990b,0x0,_0x4968e2);const _0x373736=this['ValidatorService'][_0x42a4a5(0x131)](_0x210c14,_0x18019e['args'][_0x3c990b],_0x1f0d7a);_0x373736&&(_0x18019e['args'][_0x3c990b]=_0x373736);}else{if((_0xb3f27d===null||_0xb3f27d===void 0x0?void 0x0:_0xb3f27d[_0x42a4a5(0x137)][_0x3c990b])&&((_0x216e08=_0x18019e[_0x42a4a5(0x111)][_0x3c990b])===null||_0x216e08===void 0x0?void 0x0:_0x216e08[_0x42a4a5(0x116)])&&typeof _0x18019e[_0x42a4a5(0x111)][_0x3c990b][_0x42a4a5(0x10a)]==_0x42a4a5(0x13b)&&((_0x589576=_0x2c29dc===null||_0x2c29dc===void 0x0?void 0x0:_0x2c29dc[_0x42a4a5(0x116)])===null||_0x589576===void 0x0?void 0x0:_0x589576[_0xb3f27d[_0x42a4a5(0x137)][_0x3c990b]]))_0x18019e[_0x42a4a5(0x111)][_0x3c990b]=_0x3512ae((_0x32d732=_0x2c29dc===null||_0x2c29dc===void 0x0?void 0x0:_0x2c29dc[_0x42a4a5(0x116)])===null||_0x32d732===void 0x0?void 0x0:_0x32d732[_0xb3f27d['methodArgs'][_0x3c990b]]);else(_0xb3f27d===null||_0xb3f27d===void 0x0?void 0x0:_0xb3f27d[_0x42a4a5(0x137)][_0x3c990b])&&((_0x3d88fc=(_0xde6331=_0x18019e[_0x42a4a5(0x111)][_0x3c990b])===null||_0xde6331===void 0x0?void 0x0:_0xde6331['params'])===null||_0x3d88fc===void 0x0?void 0x0:_0x3d88fc[_0xb3f27d[_0x42a4a5(0x137)][_0x3c990b]])&&(_0x18019e[_0x42a4a5(0x111)][_0x3c990b]=(_0x4fe582=(_0x4e4b85=_0x18019e[_0x42a4a5(0x111)][_0x3c990b])===null||_0x4e4b85===void 0x0?void 0x0:_0x4e4b85['params'])===null||_0x4fe582===void 0x0?void 0x0:_0x4fe582[_0xb3f27d[_0x42a4a5(0x137)][_0x3c990b]]);}}},'afterThrow':(_0x556b03,_0x41ec8f)=>{throw _0x41ec8f;}};});}};exports[a1_0x2adc51(0x121)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0x2adc51(0x124)])(),__metadata('design:type',core_1[a1_0x2adc51(0x11f)])],CustomConfiguration[a1_0x2adc51(0x119)],a1_0x2adc51(0x107),void 0x0),__decorate([(0x0,core_2[a1_0x2adc51(0x124)])(),__metadata(a1_0x2adc51(0x10d),ValidatorService_1[a1_0x2adc51(0x125)])],CustomConfiguration[a1_0x2adc51(0x119)],a1_0x2adc51(0x125),void 0x0),exports[a1_0x2adc51(0x121)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x2adc51(0x117)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x2adc51(0x122),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ const a1_0xe4ae9=a1_0x562d;(function(_0x1f4ea2,_0x537377){const _0x3a955a=a1_0x562d,_0x17c33c=_0x1f4ea2();while(!![]){try{const _0x4b9b24=parseInt(_0x3a955a(0x91))/0x1*(parseInt(_0x3a955a(0xa3))/0x2)+parseInt(_0x3a955a(0x83))/0x3*(-parseInt(_0x3a955a(0x99))/0x4)+parseInt(_0x3a955a(0x6e))/0x5*(parseInt(_0x3a955a(0x94))/0x6)+parseInt(_0x3a955a(0x9d))/0x7+parseInt(_0x3a955a(0x6d))/0x8*(parseInt(_0x3a955a(0x82))/0x9)+-parseInt(_0x3a955a(0x9f))/0xa+-parseInt(_0x3a955a(0x8f))/0xb;if(_0x4b9b24===_0x537377)break;else _0x17c33c['push'](_0x17c33c['shift']());}catch(_0x32dc4b){_0x17c33c['push'](_0x17c33c['shift']());}}}(a1_0xceb6,0xe33c5));function a1_0x562d(_0x3e1e94,_0x21849e){const _0x322ccd=a1_0xceb6();return a1_0x562d=function(_0x326eae,_0x4e2356){_0x326eae=_0x326eae-0x6a;let _0xceb699=_0x322ccd[_0x326eae];return _0xceb699;},a1_0x562d(_0x3e1e94,_0x21849e);}function a1_0xceb6(){const _0x1861f7=['validator','__decorate','res','object','./interface','5198666dGpapP','bound\x20dispatch','7231bODwSS','design:type','onReady','5286102UZCIEY','I18N_ATTR_KEY','propertyName','Inject','methodArgs','620gnSfuX','apply','constructor','decorate','2850533cWnGgD','getAttr','5400840SSIuCk','toString','decorator','undefined','338aNTOvK','defineProperty','ValidatorService','search','24eapcGL','5HolFGO','length','assign','Configuration','./service/ValidatorService','__esModule','metadata','@midwayjs/core','REQUEST_OBJ_CTX_KEY','name','prototype','param','params','@anncic-api/core','getSchema','splice','MidwayDecoratorService','req','args','registerMethodHandler','1237851cAtQzI','18957ivBmLl','target','@midwayjs/i18n','locale','request','function','(((.+)+)+)+$'];a1_0xceb6=function(){return _0x1861f7;};return a1_0xceb6();}const a1_0x4e2356=(function(){let _0x5dbf74=!![];return function(_0x4bb6d6,_0x1540ea){const _0x16831c=_0x5dbf74?function(){const _0x4e125f=a1_0x562d;if(_0x1540ea){const _0x325b28=_0x1540ea[_0x4e125f(0x9a)](_0x4bb6d6,arguments);return _0x1540ea=null,_0x325b28;}}:function(){};return _0x5dbf74=![],_0x16831c;};}()),a1_0x326eae=a1_0x4e2356(this,function(){const _0x3e14df=a1_0x562d;return a1_0x326eae[_0x3e14df(0xa0)]()[_0x3e14df(0x6c)](_0x3e14df(0x89))[_0x3e14df(0xa0)]()[_0x3e14df(0x9b)](a1_0x326eae)[_0x3e14df(0x6c)](_0x3e14df(0x89));});a1_0x326eae();'use strict';var __decorate=this&&this[a1_0xe4ae9(0x8b)]||function(_0x3734b4,_0x19afe3,_0x475c9f,_0x13100b){const _0x58a5eb=a1_0xe4ae9;var _0x500a93=arguments[_0x58a5eb(0x6f)],_0x283836=_0x500a93<0x3?_0x19afe3:_0x13100b===null?_0x13100b=Object['getOwnPropertyDescriptor'](_0x19afe3,_0x475c9f):_0x13100b,_0x5aade7;if(typeof Reflect===_0x58a5eb(0x8d)&&typeof Reflect[_0x58a5eb(0x9c)]===_0x58a5eb(0x88))_0x283836=Reflect[_0x58a5eb(0x9c)](_0x3734b4,_0x19afe3,_0x475c9f,_0x13100b);else{for(var _0x3dacdd=_0x3734b4[_0x58a5eb(0x6f)]-0x1;_0x3dacdd>=0x0;_0x3dacdd--)if(_0x5aade7=_0x3734b4[_0x3dacdd])_0x283836=(_0x500a93<0x3?_0x5aade7(_0x283836):_0x500a93>0x3?_0x5aade7(_0x19afe3,_0x475c9f,_0x283836):_0x5aade7(_0x19afe3,_0x475c9f))||_0x283836;}return _0x500a93>0x3&&_0x283836&&Object['defineProperty'](_0x19afe3,_0x475c9f,_0x283836),_0x283836;},__metadata=this&&this['__metadata']||function(_0x4454ea,_0x271f80){const _0x37cfcd=a1_0xe4ae9;if(typeof Reflect===_0x37cfcd(0x8d)&&typeof Reflect['metadata']===_0x37cfcd(0x88))return Reflect['metadata'](_0x4454ea,_0x271f80);};Object[a1_0xe4ae9(0x6a)](exports,a1_0xe4ae9(0x73),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const i18n_1=require('@midwayjs/i18n'),core_1=require(a1_0xe4ae9(0x75)),core_2=require(a1_0xe4ae9(0x75)),interface_1=require(a1_0xe4ae9(0x8e)),ValidatorService_1=require(a1_0xe4ae9(0x72)),i18n=require(a1_0xe4ae9(0x85)),anncic=require(a1_0xe4ae9(0x7b)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0xe4ae9(0x93)](){const _0x4f8f12=a1_0xe4ae9;this[_0x4f8f12(0xa1)][_0x4f8f12(0x81)](interface_1['VALIDATOR_KEY'],_0x2c334c=>{const _0x38c5ca=_0x4f8f12,_0xac6d27=_0x2c334c[_0x38c5ca(0x74)],_0x5beca1=(0x0,core_2['getMethodParamTypes'])(_0x2c334c[_0x38c5ca(0x84)],_0x2c334c[_0x38c5ca(0x96)]);return{'before':_0x18c5f6=>{const _0x55b6d1=_0x38c5ca;var _0x3493e5,_0x2eb859,_0x1f318d,_0x1b42b5,_0x42c279,_0x5d65cb,_0x3a1f78,_0x59e8f7,_0x5e7752,_0x35f5a3,_0x785ef4,_0x24b1ad,_0x591312;const _0x8c1b96=_0x18c5f6[_0x55b6d1(0x84)][core_1[_0x55b6d1(0x76)]],_0x2ba67a=Object[_0x55b6d1(0x70)]({},((_0x3493e5=_0x8c1b96===null||_0x8c1b96===void 0x0?void 0x0:_0x8c1b96[_0x55b6d1(0x87)])===null||_0x3493e5===void 0x0?void 0x0:_0x3493e5['query'])||{},((_0x2eb859=_0x8c1b96===null||_0x8c1b96===void 0x0?void 0x0:_0x8c1b96['request'])===null||_0x2eb859===void 0x0?void 0x0:_0x2eb859['body'])||{}),_0x2cc731=((0x0,core_2['getClassMetadata'])(interface_1['VALIDATOR_KEY'],_0x18c5f6[_0x55b6d1(0x84)])||[])['find'](_0xddc7ed=>_0xddc7ed['method']==_0x18c5f6['methodName']);!(_0xac6d27===null||_0xac6d27===void 0x0?void 0x0:_0xac6d27[_0x55b6d1(0x86)])&&_0x8c1b96&&_0x8c1b96[_0x55b6d1(0x9e)]&&(_0xac6d27[_0x55b6d1(0x86)]=_0x8c1b96[_0x55b6d1(0x9e)](i18n_1[_0x55b6d1(0x95)]));for(let _0x502716=0x0;_0x502716<_0x5beca1[_0x55b6d1(0x6f)];_0x502716++){const _0x32c6b7=_0x5beca1[_0x502716],_0x872527=this[_0x55b6d1(0x6b)][_0x55b6d1(0x7c)](_0x32c6b7);if(_0x872527){if(typeof _0x18c5f6['args'][_0x502716]==_0x55b6d1(0xa2)||((_0x1f318d=_0x18c5f6[_0x55b6d1(0x80)][_0x502716])===null||_0x1f318d===void 0x0?void 0x0:_0x1f318d[_0x55b6d1(0x87)])&&((_0x1b42b5=_0x18c5f6[_0x55b6d1(0x80)][_0x502716])===null||_0x1b42b5===void 0x0?void 0x0:_0x1b42b5[_0x55b6d1(0x8c)])&&((_0x42c279=_0x18c5f6[_0x55b6d1(0x80)][_0x502716])===null||_0x42c279===void 0x0?void 0x0:_0x42c279[_0x55b6d1(0x7f)]))_0x18c5f6[_0x55b6d1(0x80)][_0x502716]=_0x2ba67a;else((_0x5d65cb=_0x18c5f6[_0x55b6d1(0x80)][_0x502716])===null||_0x5d65cb===void 0x0?void 0x0:_0x5d65cb[_0x55b6d1(0x77)])==_0x55b6d1(0x90)&&_0x18c5f6['args'][_0x55b6d1(0x7d)](_0x502716,0x0,_0x2ba67a);const _0x35d594=this['ValidatorService'][_0x55b6d1(0x8a)](_0x872527,_0x18c5f6[_0x55b6d1(0x80)][_0x502716],_0xac6d27);_0x35d594&&(_0x18c5f6['args'][_0x502716]=_0x35d594);}else{if((_0x2cc731===null||_0x2cc731===void 0x0?void 0x0:_0x2cc731[_0x55b6d1(0x98)][_0x502716])&&((_0x3a1f78=_0x18c5f6['args'][_0x502716])===null||_0x3a1f78===void 0x0?void 0x0:_0x3a1f78[_0x55b6d1(0x7a)])&&typeof _0x18c5f6[_0x55b6d1(0x80)][_0x502716][_0x55b6d1(0x79)]==_0x55b6d1(0x88)&&((_0x59e8f7=_0x8c1b96===null||_0x8c1b96===void 0x0?void 0x0:_0x8c1b96[_0x55b6d1(0x7a)])===null||_0x59e8f7===void 0x0?void 0x0:_0x59e8f7[_0x2cc731[_0x55b6d1(0x98)][_0x502716]]))_0x18c5f6['args'][_0x502716]=_0x32c6b7((_0x5e7752=_0x8c1b96===null||_0x8c1b96===void 0x0?void 0x0:_0x8c1b96[_0x55b6d1(0x7a)])===null||_0x5e7752===void 0x0?void 0x0:_0x5e7752[_0x2cc731['methodArgs'][_0x502716]]);else(_0x2cc731===null||_0x2cc731===void 0x0?void 0x0:_0x2cc731[_0x55b6d1(0x98)][_0x502716])&&((_0x785ef4=(_0x35f5a3=_0x18c5f6['args'][_0x502716])===null||_0x35f5a3===void 0x0?void 0x0:_0x35f5a3[_0x55b6d1(0x7a)])===null||_0x785ef4===void 0x0?void 0x0:_0x785ef4[_0x2cc731[_0x55b6d1(0x98)][_0x502716]])&&(_0x18c5f6[_0x55b6d1(0x80)][_0x502716]=(_0x591312=(_0x24b1ad=_0x18c5f6[_0x55b6d1(0x80)][_0x502716])===null||_0x24b1ad===void 0x0?void 0x0:_0x24b1ad['params'])===null||_0x591312===void 0x0?void 0x0:_0x591312[_0x2cc731[_0x55b6d1(0x98)][_0x502716]]);}}},'afterThrow':(_0x571705,_0x4b079e)=>{throw _0x4b079e;}};});}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_2[a1_0xe4ae9(0x97)])(),__metadata(a1_0xe4ae9(0x92),core_1[a1_0xe4ae9(0x7e)])],CustomConfiguration['prototype'],a1_0xe4ae9(0xa1),void 0x0),__decorate([(0x0,core_2[a1_0xe4ae9(0x97)])(),__metadata(a1_0xe4ae9(0x92),ValidatorService_1[a1_0xe4ae9(0x6b)])],CustomConfiguration[a1_0xe4ae9(0x78)],a1_0xe4ae9(0x6b),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_2[a1_0xe4ae9(0x71)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':'anncic-api:validator','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x1e1674=a2_0x1b83;(function(_0x137ea5,_0x48ae7d){const _0x3f7593=a2_0x1b83,_0xf84d3d=_0x137ea5();while(!![]){try{const _0x48461b=-parseInt(_0x3f7593(0x188))/0x1*(-parseInt(_0x3f7593(0x180))/0x2)+-parseInt(_0x3f7593(0x189))/0x3+-parseInt(_0x3f7593(0x178))/0x4+-parseInt(_0x3f7593(0x184))/0x5+-parseInt(_0x3f7593(0x190))/0x6+parseInt(_0x3f7593(0x193))/0x7+parseInt(_0x3f7593(0x17b))/0x8*(parseInt(_0x3f7593(0x173))/0x9);if(_0x48461b===_0x48ae7d)break;else _0xf84d3d['push'](_0xf84d3d['shift']());}catch(_0x142cdc){_0xf84d3d['push'](_0xf84d3d['shift']());}}}(a2_0x4fff,0xc10f9));const a2_0x554ff2=(function(){let _0x59d206=!![];return function(_0xeb1210,_0x58d9c7){const _0x497395=_0x59d206?function(){const _0xfad3e4=a2_0x1b83;if(_0x58d9c7){const _0x18467d=_0x58d9c7[_0xfad3e4(0x17c)](_0xeb1210,arguments);return _0x58d9c7=null,_0x18467d;}}:function(){};return _0x59d206=![],_0x497395;};}()),a2_0x16e013=a2_0x554ff2(this,function(){const _0x274d1e=a2_0x1b83;return a2_0x16e013[_0x274d1e(0x194)]()[_0x274d1e(0x182)](_0x274d1e(0x187))['toString']()[_0x274d1e(0x18c)](a2_0x16e013)[_0x274d1e(0x182)]('(((.+)+)+)+$');});a2_0x16e013();'use strict';Object[a2_0x1e1674(0x17e)](exports,'__esModule',{'value':!![]}),exports[a2_0x1e1674(0x18e)]=exports[a2_0x1e1674(0x18d)]=void 0x0;function a2_0x4fff(){const _0x12e97b=['default','2562552qvveVl','meta','function','7137676JPEPJC','toString','@midwayjs/core','10565118FiSfWR','Array','saveClassMetadata','isSchema','getClassMetadata','157376aVOCkI','keys','joi','8wFjcvo','apply','getPropertyType','defineProperty','label','2sHWCju','items','search','description','2198040cshCyd','name','array','(((.+)+)+)+$','140796FczFZE','1912635MUvcvU','object','RULES_KEY','constructor','RuleType','Rule'];a2_0x4fff=function(){return _0x12e97b;};return a2_0x4fff();}const joi=require(a2_0x1e1674(0x17a)),date_1=require('@joi/date'),core_1=require(a2_0x1e1674(0x172)),interface_1=require('../interface');exports['RuleType']=joi['extend'](date_1[a2_0x1e1674(0x18f)]);function Rule(_0x55fe31,_0x4832f3,_0x2be4cc=''){return(_0x32a572,_0x2e9947)=>{const _0x9d7bc7=a2_0x1b83;var _0x2d5358;if(_0x2e9947)!joi[_0x9d7bc7(0x176)](_0x4832f3)&&(_0x4832f3===null||_0x4832f3===void 0x0?void 0x0:_0x4832f3['name'])&&(_0x4832f3=joi[_0x9d7bc7(0x18a)]((0x0,core_1[_0x9d7bc7(0x177)])(interface_1['RULES_KEY'],_0x4832f3))[_0x9d7bc7(0x191)]({'id':_0x4832f3[_0x9d7bc7(0x185)]}),(0x0,core_1[_0x9d7bc7(0x17d)])(_0x32a572,_0x2e9947)['name']===_0x9d7bc7(0x174)&&(_0x4832f3=joi[_0x9d7bc7(0x186)]()[_0x9d7bc7(0x181)](_0x4832f3))),joi[_0x9d7bc7(0x176)](_0x4832f3)&&(_0x55fe31&&typeof(_0x4832f3===null||_0x4832f3===void 0x0?void 0x0:_0x4832f3[_0x9d7bc7(0x17f)])==_0x9d7bc7(0x192)&&(_0x4832f3=_0x4832f3[_0x9d7bc7(0x17f)](_0x55fe31)),_0x2be4cc&&typeof(_0x4832f3===null||_0x4832f3===void 0x0?void 0x0:_0x4832f3[_0x9d7bc7(0x183)])==_0x9d7bc7(0x192)&&(_0x4832f3=_0x4832f3['description'](_0x2be4cc)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x9d7bc7(0x18b)],_0x4832f3,_0x32a572,_0x2e9947));else{const _0x400638=(0x0,core_1[_0x9d7bc7(0x177)])(interface_1[_0x9d7bc7(0x18b)],_0x4832f3);if(_0x400638){let _0x47d380=(_0x2d5358=(0x0,core_1[_0x9d7bc7(0x177)])(interface_1[_0x9d7bc7(0x18b)],_0x32a572))!==null&&_0x2d5358!==void 0x0?_0x2d5358:{};Object[_0x9d7bc7(0x179)](_0x400638)['map'](_0x592902=>{!_0x47d380[_0x592902]&&(_0x47d380[_0x592902]=_0x400638[_0x592902]);}),(0x0,core_1[_0x9d7bc7(0x175)])(interface_1['RULES_KEY'],_0x47d380,_0x32a572);}}};}function a2_0x1b83(_0x16e2b2,_0x3231be){const _0x27be0c=a2_0x4fff();return a2_0x1b83=function(_0x16e013,_0x554ff2){_0x16e013=_0x16e013-0x172;let _0x4fffaf=_0x27be0c[_0x16e013];return _0x4fffaf;},a2_0x1b83(_0x16e2b2,_0x3231be);}exports[a2_0x1e1674(0x18e)]=Rule;
1
+ const a2_0x4d6114=a2_0x3d33;(function(_0x2de96c,_0x5aa735){const _0x19f5e=a2_0x3d33,_0x28fbf4=_0x2de96c();while(!![]){try{const _0x4d8295=-parseInt(_0x19f5e(0x85))/0x1*(-parseInt(_0x19f5e(0x9f))/0x2)+parseInt(_0x19f5e(0x8c))/0x3*(-parseInt(_0x19f5e(0x7e))/0x4)+parseInt(_0x19f5e(0x9b))/0x5+parseInt(_0x19f5e(0x94))/0x6+-parseInt(_0x19f5e(0x91))/0x7+parseInt(_0x19f5e(0x9e))/0x8*(-parseInt(_0x19f5e(0x97))/0x9)+-parseInt(_0x19f5e(0x81))/0xa;if(_0x4d8295===_0x5aa735)break;else _0x28fbf4['push'](_0x28fbf4['shift']());}catch(_0x256ed0){_0x28fbf4['push'](_0x28fbf4['shift']());}}}(a2_0x21e9,0x46e1f));const a2_0x1eec4c=(function(){let _0x33b110=!![];return function(_0x504702,_0x57f2d5){const _0x539437=_0x33b110?function(){const _0x5d6cf2=a2_0x3d33;if(_0x57f2d5){const _0x57f815=_0x57f2d5[_0x5d6cf2(0x9c)](_0x504702,arguments);return _0x57f2d5=null,_0x57f815;}}:function(){};return _0x33b110=![],_0x539437;};}()),a2_0x2f8eff=a2_0x1eec4c(this,function(){const _0xcbe19d=a2_0x3d33;return a2_0x2f8eff[_0xcbe19d(0x89)]()['search']('(((.+)+)+)+$')[_0xcbe19d(0x89)]()['constructor'](a2_0x2f8eff)[_0xcbe19d(0x88)](_0xcbe19d(0x84));});a2_0x2f8eff();'use strict';Object[a2_0x4d6114(0x96)](exports,'__esModule',{'value':!![]}),exports[a2_0x4d6114(0x90)]=exports['RuleType']=void 0x0;const joi=require(a2_0x4d6114(0x8d)),date_1=require(a2_0x4d6114(0x7c)),core_1=require(a2_0x4d6114(0x99)),interface_1=require('../interface');function a2_0x3d33(_0x1c78fb,_0x19c29a){const _0x1d04cb=a2_0x21e9();return a2_0x3d33=function(_0x2f8eff,_0x1eec4c){_0x2f8eff=_0x2f8eff-0x7c;let _0x21e909=_0x1d04cb[_0x2f8eff];return _0x21e909;},a2_0x3d33(_0x1c78fb,_0x19c29a);}function a2_0x21e9(){const _0x24e1da=['1738250rmfidK','label','array','(((.+)+)+)+$','2xtOtsG','function','Array','search','toString','RULES_KEY','description','6HMGmgN','joi','object','keys','Rule','1687133ZqXQKg','isSchema','getPropertyType','3475650uOXBxO','RuleType','defineProperty','45IfidTv','default','@midwayjs/core','map','1994465jdPQLB','apply','getClassMetadata','54760exuJom','197172xyqvKn','@joi/date','name','871872XHJOdj','meta','extend'];a2_0x21e9=function(){return _0x24e1da;};return a2_0x21e9();}exports[a2_0x4d6114(0x95)]=joi[a2_0x4d6114(0x80)](date_1[a2_0x4d6114(0x98)]);function Rule(_0x34b282,_0x4cb637,_0x1229e3=''){return(_0x8de690,_0x1bb73b)=>{const _0x40c91f=a2_0x3d33;var _0x26038c;if(_0x1bb73b)!joi[_0x40c91f(0x92)](_0x4cb637)&&(_0x4cb637===null||_0x4cb637===void 0x0?void 0x0:_0x4cb637[_0x40c91f(0x7d)])&&(_0x4cb637=joi[_0x40c91f(0x8e)]((0x0,core_1[_0x40c91f(0x9d)])(interface_1['RULES_KEY'],_0x4cb637))[_0x40c91f(0x7f)]({'id':_0x4cb637[_0x40c91f(0x7d)]}),(0x0,core_1[_0x40c91f(0x93)])(_0x8de690,_0x1bb73b)['name']===_0x40c91f(0x87)&&(_0x4cb637=joi[_0x40c91f(0x83)]()['items'](_0x4cb637))),joi[_0x40c91f(0x92)](_0x4cb637)&&(_0x34b282&&typeof(_0x4cb637===null||_0x4cb637===void 0x0?void 0x0:_0x4cb637[_0x40c91f(0x82)])==_0x40c91f(0x86)&&(_0x4cb637=_0x4cb637[_0x40c91f(0x82)](_0x34b282)),_0x1229e3&&typeof(_0x4cb637===null||_0x4cb637===void 0x0?void 0x0:_0x4cb637[_0x40c91f(0x8b)])==_0x40c91f(0x86)&&(_0x4cb637=_0x4cb637[_0x40c91f(0x8b)](_0x1229e3)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x40c91f(0x8a)],_0x4cb637,_0x8de690,_0x1bb73b));else{const _0x363625=(0x0,core_1[_0x40c91f(0x9d)])(interface_1[_0x40c91f(0x8a)],_0x4cb637);if(_0x363625){let _0x260c1c=(_0x26038c=(0x0,core_1['getClassMetadata'])(interface_1[_0x40c91f(0x8a)],_0x8de690))!==null&&_0x26038c!==void 0x0?_0x26038c:{};Object[_0x40c91f(0x8f)](_0x363625)[_0x40c91f(0x9a)](_0x33c8e8=>{!_0x260c1c[_0x33c8e8]&&(_0x260c1c[_0x33c8e8]=_0x363625[_0x33c8e8]);}),(0x0,core_1['saveClassMetadata'])(interface_1[_0x40c91f(0x8a)],_0x260c1c,_0x8de690);}}};}exports[a2_0x4d6114(0x90)]=Rule;
@@ -1 +1 @@
1
- const a3_0x580328=a3_0x38b8;(function(_0x2e229e,_0x42c715){const _0x2fe2dc=a3_0x38b8,_0x2e5329=_0x2e229e();while(!![]){try{const _0x2e4bc9=-parseInt(_0x2fe2dc(0xc1))/0x1+parseInt(_0x2fe2dc(0xb6))/0x2*(parseInt(_0x2fe2dc(0xc6))/0x3)+parseInt(_0x2fe2dc(0xcc))/0x4*(parseInt(_0x2fe2dc(0xc7))/0x5)+-parseInt(_0x2fe2dc(0xc9))/0x6*(parseInt(_0x2fe2dc(0xc0))/0x7)+parseInt(_0x2fe2dc(0xce))/0x8*(parseInt(_0x2fe2dc(0xbe))/0x9)+-parseInt(_0x2fe2dc(0xbb))/0xa+parseInt(_0x2fe2dc(0xbd))/0xb*(parseInt(_0x2fe2dc(0xbc))/0xc);if(_0x2e4bc9===_0x42c715)break;else _0x2e5329['push'](_0x2e5329['shift']());}catch(_0x42048d){_0x2e5329['push'](_0x2e5329['shift']());}}}(a3_0x57ad,0xcc10f));const a3_0x4fdc6c=(function(){let _0x46ad86=!![];return function(_0x5bee07,_0x58fcc4){const _0x30399d=_0x46ad86?function(){const _0x3c0094=a3_0x38b8;if(_0x58fcc4){const _0x4a226a=_0x58fcc4[_0x3c0094(0xcd)](_0x5bee07,arguments);return _0x58fcc4=null,_0x4a226a;}}:function(){};return _0x46ad86=![],_0x30399d;};}()),a3_0x24784d=a3_0x4fdc6c(this,function(){const _0x5ef6fb=a3_0x38b8;return a3_0x24784d[_0x5ef6fb(0xc3)]()['search'](_0x5ef6fb(0xb5))[_0x5ef6fb(0xc3)]()[_0x5ef6fb(0xb4)](a3_0x24784d)[_0x5ef6fb(0xbf)](_0x5ef6fb(0xb5));});a3_0x24784d();'use strict';Object[a3_0x580328(0xcb)](exports,a3_0x580328(0xc8),{'value':!![]}),exports['getFuncArgs']=exports[a3_0x580328(0xc2)]=void 0x0;function a3_0x38b8(_0x2a87c2,_0x11cd3c){const _0x199223=a3_0x57ad();return a3_0x38b8=function(_0x24784d,_0x4fdc6c){_0x24784d=_0x24784d-0xb3;let _0x57ad1d=_0x199223[_0x24784d];return _0x57ad1d;},a3_0x38b8(_0x2a87c2,_0x11cd3c);}const core_1=require(a3_0x580328(0xc4)),interface_1=require(a3_0x580328(0xc5));function Validator(_0x160405={}){return(_0xf2631c,_0x21548f,_0x5dfb65)=>{const _0x400a0f=a3_0x38b8,_0x476671=getFuncArgs(_0xf2631c[_0x21548f]);(0x0,core_1['attachClassMetadata'])(interface_1['VALIDATOR_KEY'],{'method':_0x21548f,'methodArgs':_0x476671},_0xf2631c),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x400a0f(0xb9)],_0x160405)(_0xf2631c,_0x21548f,_0x5dfb65);};}function a3_0x57ad(){const _0x32b7a9=['6CZPqES','prototype','function','VALIDATOR_KEY','replace','14579450uHyDnC','1032TGgOPt','239569lKqSiZ','9986931gvhfBw','search','849891HPpTaM','986414ZOulak','Validator','toString','@midwayjs/core','../interface','1047513ooOgNw','920kOhgrk','__esModule','48Dgrfvt','indexOf','defineProperty','4812DqPazq','apply','8bHRLXt','slice','match','constructor','(((.+)+)+)+$'];a3_0x57ad=function(){return _0x32b7a9;};return a3_0x57ad();}exports['Validator']=Validator;function getFuncArgs(_0x4701e2){const _0x3753fb=a3_0x580328;if(typeof _0x4701e2==_0x3753fb(0xb8)){const _0x3f2dc4=/=>.*$/mg,_0x545508=/=[^,)]+/mg,_0x42fac3=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x548529=(_0x4701e2[_0x3753fb(0xb7)]?_0x4701e2[_0x3753fb(0xb7)][_0x3753fb(0xb4)][_0x3753fb(0xc3)]():_0x4701e2[_0x3753fb(0xc3)]())[_0x3753fb(0xba)](_0x42fac3,'')[_0x3753fb(0xba)](_0x3f2dc4,'')[_0x3753fb(0xba)](_0x545508,''),_0xc74852=_0x548529[_0x3753fb(0xcf)](_0x548529[_0x3753fb(0xca)]('(')+0x1,_0x548529[_0x3753fb(0xca)](')'))[_0x3753fb(0xb3)](/([^\s,]+)/g)||[];return _0xc74852;}}exports['getFuncArgs']=getFuncArgs;
1
+ function a3_0x3977(_0x84310,_0x50d176){const _0x395bd3=a3_0x4353();return a3_0x3977=function(_0x190914,_0xa50be9){_0x190914=_0x190914-0x15a;let _0x435314=_0x395bd3[_0x190914];return _0x435314;},a3_0x3977(_0x84310,_0x50d176);}const a3_0x4f094d=a3_0x3977;(function(_0x2e5aeb,_0x4c20f3){const _0x402707=a3_0x3977,_0x523309=_0x2e5aeb();while(!![]){try{const _0x50c5ce=parseInt(_0x402707(0x162))/0x1*(-parseInt(_0x402707(0x171))/0x2)+parseInt(_0x402707(0x16b))/0x3*(-parseInt(_0x402707(0x15f))/0x4)+parseInt(_0x402707(0x172))/0x5+-parseInt(_0x402707(0x15a))/0x6+parseInt(_0x402707(0x166))/0x7*(parseInt(_0x402707(0x16a))/0x8)+-parseInt(_0x402707(0x170))/0x9*(-parseInt(_0x402707(0x15d))/0xa)+parseInt(_0x402707(0x174))/0xb;if(_0x50c5ce===_0x4c20f3)break;else _0x523309['push'](_0x523309['shift']());}catch(_0x1715f5){_0x523309['push'](_0x523309['shift']());}}}(a3_0x4353,0x1b648));const a3_0xa50be9=(function(){let _0x3486fb=!![];return function(_0x1623bc,_0x3e41e9){const _0x5613bb=_0x3486fb?function(){const _0x546fc1=a3_0x3977;if(_0x3e41e9){const _0x192897=_0x3e41e9[_0x546fc1(0x16d)](_0x1623bc,arguments);return _0x3e41e9=null,_0x192897;}}:function(){};return _0x3486fb=![],_0x5613bb;};}()),a3_0x190914=a3_0xa50be9(this,function(){const _0x3463d1=a3_0x3977;return a3_0x190914[_0x3463d1(0x15b)]()['search'](_0x3463d1(0x15c))[_0x3463d1(0x15b)]()[_0x3463d1(0x16c)](a3_0x190914)[_0x3463d1(0x168)]('(((.+)+)+)+$');});a3_0x190914();'use strict';Object[a3_0x4f094d(0x173)](exports,'__esModule',{'value':!![]}),exports['getFuncArgs']=exports['Validator']=void 0x0;const core_1=require(a3_0x4f094d(0x163)),interface_1=require(a3_0x4f094d(0x164));function Validator(_0x55ab86={}){return(_0x4ef435,_0x2ed66f,_0x58d8)=>{const _0x148169=a3_0x3977,_0x1d29c7=getFuncArgs(_0x4ef435[_0x2ed66f]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x148169(0x16e)],{'method':_0x2ed66f,'methodArgs':_0x1d29c7},_0x4ef435),(0x0,core_1[_0x148169(0x169)])(interface_1['VALIDATOR_KEY'],_0x55ab86)(_0x4ef435,_0x2ed66f,_0x58d8);};}function a3_0x4353(){const _0x1e2511=['slice','getFuncArgs','2987aSbSLl','@midwayjs/core','../interface','indexOf','602WlJPTv','prototype','search','createCustomMethodDecorator','4640kULmbJ','135savHXd','constructor','apply','VALIDATOR_KEY','function','8163OSOEpg','70CqKWQZ','907500fRVbyM','defineProperty','1213388IIWbKf','785238PCqwQJ','toString','(((.+)+)+)+$','1400LUJIzD','replace','10760VHGIST'];a3_0x4353=function(){return _0x1e2511;};return a3_0x4353();}exports['Validator']=Validator;function getFuncArgs(_0x3ae66c){const _0x2fcb44=a3_0x4f094d;if(typeof _0x3ae66c==_0x2fcb44(0x16f)){const _0x2749f4=/=>.*$/mg,_0x3edb73=/=[^,)]+/mg,_0x542d46=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x39c7f5=(_0x3ae66c[_0x2fcb44(0x167)]?_0x3ae66c[_0x2fcb44(0x167)][_0x2fcb44(0x16c)][_0x2fcb44(0x15b)]():_0x3ae66c[_0x2fcb44(0x15b)]())[_0x2fcb44(0x15e)](_0x542d46,'')['replace'](_0x2749f4,'')[_0x2fcb44(0x15e)](_0x3edb73,''),_0x15b0f5=_0x39c7f5[_0x2fcb44(0x160)](_0x39c7f5[_0x2fcb44(0x165)]('(')+0x1,_0x39c7f5[_0x2fcb44(0x165)](')'))['match'](/([^\s,]+)/g)||[];return _0x15b0f5;}}exports[a3_0x4f094d(0x161)]=getFuncArgs;
@@ -1 +1 @@
1
- var a4_0x19a167=a4_0x54ee;(function(_0x114b90,_0x25895e){var _0x41f202=a4_0x54ee,_0x5b9568=_0x114b90();while(!![]){try{var _0x4208f6=-parseInt(_0x41f202(0x173))/0x1*(-parseInt(_0x41f202(0x170))/0x2)+-parseInt(_0x41f202(0x162))/0x3+parseInt(_0x41f202(0x16d))/0x4*(-parseInt(_0x41f202(0x179))/0x5)+parseInt(_0x41f202(0x160))/0x6*(parseInt(_0x41f202(0x167))/0x7)+-parseInt(_0x41f202(0x17a))/0x8*(parseInt(_0x41f202(0x164))/0x9)+-parseInt(_0x41f202(0x168))/0xa+-parseInt(_0x41f202(0x161))/0xb*(-parseInt(_0x41f202(0x176))/0xc);if(_0x4208f6===_0x25895e)break;else _0x5b9568['push'](_0x5b9568['shift']());}catch(_0x416d1b){_0x5b9568['push'](_0x5b9568['shift']());}}}(a4_0x437a,0x77670));var a4_0x175ccd=(function(){var _0x1e672f=!![];return function(_0x202386,_0x3b8c29){var _0x45429b=_0x1e672f?function(){var _0x686e70=a4_0x54ee;if(_0x3b8c29){var _0x5533ad=_0x3b8c29[_0x686e70(0x163)](_0x202386,arguments);return _0x3b8c29=null,_0x5533ad;}}:function(){};return _0x1e672f=![],_0x45429b;};}()),a4_0x7af71f=a4_0x175ccd(this,function(){var _0x311b36=a4_0x54ee;return a4_0x7af71f[_0x311b36(0x177)]()[_0x311b36(0x16a)](_0x311b36(0x171))[_0x311b36(0x177)]()[_0x311b36(0x178)](a4_0x7af71f)[_0x311b36(0x16a)](_0x311b36(0x171));});function a4_0x54ee(_0x36ac9d,_0x170d45){var _0x33b433=a4_0x437a();return a4_0x54ee=function(_0x7af71f,_0x175ccd){_0x7af71f=_0x7af71f-0x15d;var _0x437a99=_0x33b433[_0x7af71f];return _0x437a99;},a4_0x54ee(_0x36ac9d,_0x170d45);}a4_0x7af71f();'use strict';var __decorate=this&&this[a4_0x19a167(0x15f)]||function(_0x217b3f,_0x432bc3,_0x21ceb1,_0x2f8a51){var _0x55d395=a4_0x19a167,_0x3847b8=arguments[_0x55d395(0x174)],_0x1f5b7a=_0x3847b8<0x3?_0x432bc3:_0x2f8a51===null?_0x2f8a51=Object[_0x55d395(0x17c)](_0x432bc3,_0x21ceb1):_0x2f8a51,_0x2bed0d;if(typeof Reflect==='object'&&typeof Reflect[_0x55d395(0x172)]===_0x55d395(0x16e))_0x1f5b7a=Reflect[_0x55d395(0x172)](_0x217b3f,_0x432bc3,_0x21ceb1,_0x2f8a51);else{for(var _0x21f6bf=_0x217b3f[_0x55d395(0x174)]-0x1;_0x21f6bf>=0x0;_0x21f6bf--)if(_0x2bed0d=_0x217b3f[_0x21f6bf])_0x1f5b7a=(_0x3847b8<0x3?_0x2bed0d(_0x1f5b7a):_0x3847b8>0x3?_0x2bed0d(_0x432bc3,_0x21ceb1,_0x1f5b7a):_0x2bed0d(_0x432bc3,_0x21ceb1))||_0x1f5b7a;}return _0x3847b8>0x3&&_0x1f5b7a&&Object['defineProperty'](_0x432bc3,_0x21ceb1,_0x1f5b7a),_0x1f5b7a;},__metadata=this&&this['__metadata']||function(_0x375030,_0x328ca3){var _0x4b3915=a4_0x19a167;if(typeof Reflect===_0x4b3915(0x15e)&&typeof Reflect['metadata']===_0x4b3915(0x16e))return Reflect[_0x4b3915(0x15d)](_0x375030,_0x328ca3);};Object[a4_0x19a167(0x16b)](exports,a4_0x19a167(0x175),{'value':!![]}),exports['ValidatorError']=void 0x0;const core_1=require(a4_0x19a167(0x16c));class ValidatorError extends AnnError{}function a4_0x437a(){var _0x382e3e=['AnnErrorMsg','getOwnPropertyDescriptor','metadata','object','__decorate','4948884zdWWSP','188617JWaoUD','1128138WBzxRL','apply','9oeaKwP','design:type','NOFIND_SCHEMA','7Dlnzhh','6254210FMTOaG','PARAMS','search','defineProperty','@anncic-api/core','20EVDxku','function','ValidatorError','2cyaNkT','(((.+)+)+)+$','decorate','933577gDRuQw','length','__esModule','144GCBBqE','toString','constructor','286535IEWdJt','1496648DXMEpA'];a4_0x437a=function(){return _0x382e3e;};return a4_0x437a();}exports[a4_0x19a167(0x16f)]=ValidatorError,ValidatorError[a4_0x19a167(0x169)]=0x18c1e,ValidatorError[a4_0x19a167(0x166)]=0x18c1c,__decorate([(0x0,core_1[a4_0x19a167(0x17b)])('参数验证失败'),__metadata(a4_0x19a167(0x165),Object)],ValidatorError,a4_0x19a167(0x169),void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])('参数验证失败'),__metadata(a4_0x19a167(0x165),Object)],ValidatorError,a4_0x19a167(0x166),void 0x0);
1
+ var a4_0x547219=a4_0x31c7;function a4_0x20d1(){var _0x4671a3=['参数验证失败','1900gACfOP','__esModule','defineProperty','decorate','search','@anncic-api/core','toString','6ywVNru','getOwnPropertyDescriptor','__metadata','constructor','220EFFluU','function','AnnErrorMsg','6196080bqnTIE','611sLyECf','(((.+)+)+)+$','5679604heizTE','object','NOFIND_SCHEMA','366399VBzqnG','ValidatorError','PARAMS','2504644lhXegT','2993157kuveMt','design:type','2447610cYeLcy','metadata'];a4_0x20d1=function(){return _0x4671a3;};return a4_0x20d1();}(function(_0x506786,_0x5313c6){var _0x46e9e5=a4_0x31c7,_0x1bba37=_0x506786();while(!![]){try{var _0x4a4969=parseInt(_0x46e9e5(0x181))/0x1*(parseInt(_0x46e9e5(0x172))/0x2)+-parseInt(_0x46e9e5(0x18a))/0x3+parseInt(_0x46e9e5(0x189))/0x4+-parseInt(_0x46e9e5(0x18c))/0x5+parseInt(_0x46e9e5(0x179))/0x6*(parseInt(_0x46e9e5(0x183))/0x7)+-parseInt(_0x46e9e5(0x180))/0x8+parseInt(_0x46e9e5(0x186))/0x9*(parseInt(_0x46e9e5(0x17d))/0xa);if(_0x4a4969===_0x5313c6)break;else _0x1bba37['push'](_0x1bba37['shift']());}catch(_0xaaf8c4){_0x1bba37['push'](_0x1bba37['shift']());}}}(a4_0x20d1,0x9f262));var a4_0x40ec6a=(function(){var _0x1538da=!![];return function(_0x1096f7,_0x3bb3f5){var _0x3d6f61=_0x1538da?function(){if(_0x3bb3f5){var _0x477299=_0x3bb3f5['apply'](_0x1096f7,arguments);return _0x3bb3f5=null,_0x477299;}}:function(){};return _0x1538da=![],_0x3d6f61;};}()),a4_0x25bbc0=a4_0x40ec6a(this,function(){var _0x3d154d=a4_0x31c7;return a4_0x25bbc0[_0x3d154d(0x178)]()[_0x3d154d(0x176)](_0x3d154d(0x182))[_0x3d154d(0x178)]()[_0x3d154d(0x17c)](a4_0x25bbc0)['search'](_0x3d154d(0x182));});a4_0x25bbc0();'use strict';var __decorate=this&&this['__decorate']||function(_0x9fe27a,_0x569da4,_0x10d017,_0x343381){var _0x505510=a4_0x31c7,_0x43d686=arguments['length'],_0xfa071=_0x43d686<0x3?_0x569da4:_0x343381===null?_0x343381=Object[_0x505510(0x17a)](_0x569da4,_0x10d017):_0x343381,_0x484c9e;if(typeof Reflect===_0x505510(0x184)&&typeof Reflect[_0x505510(0x175)]===_0x505510(0x17e))_0xfa071=Reflect[_0x505510(0x175)](_0x9fe27a,_0x569da4,_0x10d017,_0x343381);else{for(var _0x4a5291=_0x9fe27a['length']-0x1;_0x4a5291>=0x0;_0x4a5291--)if(_0x484c9e=_0x9fe27a[_0x4a5291])_0xfa071=(_0x43d686<0x3?_0x484c9e(_0xfa071):_0x43d686>0x3?_0x484c9e(_0x569da4,_0x10d017,_0xfa071):_0x484c9e(_0x569da4,_0x10d017))||_0xfa071;}return _0x43d686>0x3&&_0xfa071&&Object['defineProperty'](_0x569da4,_0x10d017,_0xfa071),_0xfa071;},__metadata=this&&this[a4_0x547219(0x17b)]||function(_0x1c77e9,_0x12457d){var _0x3e0775=a4_0x547219;if(typeof Reflect===_0x3e0775(0x184)&&typeof Reflect[_0x3e0775(0x170)]===_0x3e0775(0x17e))return Reflect[_0x3e0775(0x170)](_0x1c77e9,_0x12457d);};Object[a4_0x547219(0x174)](exports,a4_0x547219(0x173),{'value':!![]}),exports[a4_0x547219(0x187)]=void 0x0;function a4_0x31c7(_0x2748c4,_0x22559c){var _0x16e061=a4_0x20d1();return a4_0x31c7=function(_0x25bbc0,_0x40ec6a){_0x25bbc0=_0x25bbc0-0x170;var _0x20d19a=_0x16e061[_0x25bbc0];return _0x20d19a;},a4_0x31c7(_0x2748c4,_0x22559c);}const core_1=require(a4_0x547219(0x177));class ValidatorError extends AnnError{}exports[a4_0x547219(0x187)]=ValidatorError,ValidatorError[a4_0x547219(0x188)]=0x18c1e,ValidatorError[a4_0x547219(0x185)]=0x18c1c,__decorate([(0x0,core_1[a4_0x547219(0x17f)])(a4_0x547219(0x171)),__metadata(a4_0x547219(0x18b),Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x547219(0x17f)])('参数验证失败'),__metadata(a4_0x547219(0x18b),Object)],ValidatorError,a4_0x547219(0x185),void 0x0);
@@ -1 +1 @@
1
- const a5_0x1bd27f=a5_0x3670;(function(_0x1d3399,_0x1a7502){const _0x389219=a5_0x3670,_0x3b299c=_0x1d3399();while(!![]){try{const _0x3ab235=parseInt(_0x389219(0x148))/0x1*(-parseInt(_0x389219(0x13b))/0x2)+-parseInt(_0x389219(0x146))/0x3*(parseInt(_0x389219(0x145))/0x4)+-parseInt(_0x389219(0x14a))/0x5*(parseInt(_0x389219(0x14b))/0x6)+-parseInt(_0x389219(0x143))/0x7*(parseInt(_0x389219(0x137))/0x8)+-parseInt(_0x389219(0x13a))/0x9*(-parseInt(_0x389219(0x149))/0xa)+-parseInt(_0x389219(0x13c))/0xb+parseInt(_0x389219(0x138))/0xc;if(_0x3ab235===_0x1a7502)break;else _0x3b299c['push'](_0x3b299c['shift']());}catch(_0x2e60eb){_0x3b299c['push'](_0x3b299c['shift']());}}}(a5_0x9fec,0x2fb2f));function a5_0x9fec(){const _0x34407b=['61810tFmXrd','150ODRfdB','defineProperty','getClassExtendedMetadata','104LsjbCH','15583584bQhnVU','__esModule','3015ZjQKZu','742SWPdcy','2705769CULykd','RULES_KEY','search','prototype','apply','constructor','PickDto','94871AAkQRC','OmitDto','4DrFOEh','350868VpuHvu','toString','823OZDrjO','1500VLTyeB'];a5_0x9fec=function(){return _0x34407b;};return a5_0x9fec();}const a5_0x275b23=(function(){let _0x12fbfd=!![];return function(_0x1263c1,_0x470dae){const _0x3ad7de=_0x12fbfd?function(){const _0x5eeb88=a5_0x3670;if(_0x470dae){const _0x14e346=_0x470dae[_0x5eeb88(0x140)](_0x1263c1,arguments);return _0x470dae=null,_0x14e346;}}:function(){};return _0x12fbfd=![],_0x3ad7de;};}()),a5_0x10e571=a5_0x275b23(this,function(){const _0x29e21c=a5_0x3670;return a5_0x10e571[_0x29e21c(0x147)]()[_0x29e21c(0x13e)]('(((.+)+)+)+$')['toString']()[_0x29e21c(0x141)](a5_0x10e571)['search']('(((.+)+)+)+$');});a5_0x10e571();function a5_0x3670(_0xa35419,_0x56f4cb){const _0x5333ec=a5_0x9fec();return a5_0x3670=function(_0x10e571,_0x275b23){_0x10e571=_0x10e571-0x137;let _0x9fec06=_0x5333ec[_0x10e571];return _0x9fec06;},a5_0x3670(_0xa35419,_0x56f4cb);}'use strict';Object[a5_0x1bd27f(0x14c)](exports,a5_0x1bd27f(0x139),{'value':!![]}),exports['OmitDto']=exports[a5_0x1bd27f(0x142)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require('../interface');function PickDto(_0x48f462,_0x303847){const _0x5eabfb=a5_0x1bd27f,_0x3fc155=function(){};_0x3fc155[_0x5eabfb(0x13f)]=_0x48f462['prototype'];const _0x54d74d=(0x0,core_1[_0x5eabfb(0x14d)])(interface_1['RULES_KEY'],_0x48f462),_0x59a284={};for(const _0x58b3a5 of _0x303847){_0x54d74d[_0x58b3a5]&&(_0x59a284[_0x58b3a5]=_0x54d74d[_0x58b3a5]);}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x5eabfb(0x13d)],_0x59a284,_0x3fc155),_0x3fc155;}exports[a5_0x1bd27f(0x142)]=PickDto;function OmitDto(_0x2c5bad,_0x474915){const _0x1fa27d=a5_0x1bd27f,_0x35d08e=function(){};_0x35d08e[_0x1fa27d(0x13f)]=_0x2c5bad[_0x1fa27d(0x13f)];const _0x33a1f7=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x2c5bad),_0x14f994=Object['assign']({},_0x33a1f7);for(const _0x17000b of _0x474915){delete _0x14f994[_0x17000b];}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x1fa27d(0x13d)],_0x14f994,_0x35d08e),_0x35d08e;}exports[a5_0x1bd27f(0x144)]=OmitDto;
1
+ function a5_0x4d38(_0x742eb0,_0x25ca0b){const _0x1979c6=a5_0x4e94();return a5_0x4d38=function(_0x146620,_0x46f095){_0x146620=_0x146620-0x98;let _0x4e944f=_0x1979c6[_0x146620];return _0x4e944f;},a5_0x4d38(_0x742eb0,_0x25ca0b);}const a5_0x251fdd=a5_0x4d38;(function(_0x5de015,_0x23bf27){const _0x559441=a5_0x4d38,_0x1b6e45=_0x5de015();while(!![]){try{const _0x4b4c5e=-parseInt(_0x559441(0xa2))/0x1+-parseInt(_0x559441(0xa1))/0x2+-parseInt(_0x559441(0xa6))/0x3+parseInt(_0x559441(0x9e))/0x4*(-parseInt(_0x559441(0xae))/0x5)+parseInt(_0x559441(0xa7))/0x6+parseInt(_0x559441(0x9a))/0x7*(-parseInt(_0x559441(0x99))/0x8)+parseInt(_0x559441(0x9c))/0x9*(parseInt(_0x559441(0xa0))/0xa);if(_0x4b4c5e===_0x23bf27)break;else _0x1b6e45['push'](_0x1b6e45['shift']());}catch(_0x473a1a){_0x1b6e45['push'](_0x1b6e45['shift']());}}}(a5_0x4e94,0x37e8a));const a5_0x46f095=(function(){let _0x1c1249=!![];return function(_0x2fc2f4,_0x5ee757){const _0x12f41a=_0x1c1249?function(){if(_0x5ee757){const _0xc76f2f=_0x5ee757['apply'](_0x2fc2f4,arguments);return _0x5ee757=null,_0xc76f2f;}}:function(){};return _0x1c1249=![],_0x12f41a;};}()),a5_0x146620=a5_0x46f095(this,function(){const _0x1c4f69=a5_0x4d38;return a5_0x146620[_0x1c4f69(0x9d)]()['search'](_0x1c4f69(0x9b))[_0x1c4f69(0x9d)]()[_0x1c4f69(0xa8)](a5_0x146620)[_0x1c4f69(0x9f)](_0x1c4f69(0x9b));});a5_0x146620();function a5_0x4e94(){const _0xe42bbe=['(((.+)+)+)+$','12447jkTFFg','toString','1048BOevsa','search','8810ordEqn','484504kRuMeW','337813jHmBgS','RULES_KEY','assign','@midwayjs/core','1036143xPDsec','1562598eDdcii','constructor','getClassExtendedMetadata','saveClassMetadata','OmitDto','../interface','defineProperty','5005owWplV','prototype','PickDto','3088gxAFkZ','1127BrTujN'];a5_0x4e94=function(){return _0xe42bbe;};return a5_0x4e94();}'use strict';Object[a5_0x251fdd(0xad)](exports,'__esModule',{'value':!![]}),exports[a5_0x251fdd(0xab)]=exports[a5_0x251fdd(0x98)]=void 0x0;const core_1=require(a5_0x251fdd(0xa5)),interface_1=require(a5_0x251fdd(0xac));function PickDto(_0x3aff66,_0x18e1da){const _0x55a165=a5_0x251fdd,_0x27a9a4=function(){};_0x27a9a4['prototype']=_0x3aff66[_0x55a165(0xaf)];const _0xde4998=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x3aff66),_0x20514f={};for(const _0xec7c58 of _0x18e1da){_0xde4998[_0xec7c58]&&(_0x20514f[_0xec7c58]=_0xde4998[_0xec7c58]);}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x55a165(0xa3)],_0x20514f,_0x27a9a4),_0x27a9a4;}exports['PickDto']=PickDto;function OmitDto(_0x56537f,_0x19612e){const _0xbd8933=a5_0x251fdd,_0x2f05b7=function(){};_0x2f05b7[_0xbd8933(0xaf)]=_0x56537f[_0xbd8933(0xaf)];const _0x21da69=(0x0,core_1[_0xbd8933(0xa9)])(interface_1['RULES_KEY'],_0x56537f),_0x84c491=Object[_0xbd8933(0xa4)]({},_0x21da69);for(const _0x14702e of _0x19612e){delete _0x84c491[_0x14702e];}return(0x0,core_1[_0xbd8933(0xaa)])(interface_1[_0xbd8933(0xa3)],_0x84c491,_0x2f05b7),_0x2f05b7;}exports[a5_0x251fdd(0xab)]=OmitDto;
@@ -1 +1 @@
1
- const a6_0x4e1afc=a6_0x5299;(function(_0x3a60ab,_0x201a6b){const _0x27e945=a6_0x5299,_0x877a8c=_0x3a60ab();while(!![]){try{const _0x5b39ac=-parseInt(_0x27e945(0xe4))/0x1*(parseInt(_0x27e945(0xe0))/0x2)+-parseInt(_0x27e945(0xdb))/0x3*(parseInt(_0x27e945(0xd6))/0x4)+-parseInt(_0x27e945(0xd1))/0x5+-parseInt(_0x27e945(0xd4))/0x6*(-parseInt(_0x27e945(0xda))/0x7)+-parseInt(_0x27e945(0xdf))/0x8*(parseInt(_0x27e945(0xe6))/0x9)+-parseInt(_0x27e945(0xd9))/0xa+parseInt(_0x27e945(0xd8))/0xb;if(_0x5b39ac===_0x201a6b)break;else _0x877a8c['push'](_0x877a8c['shift']());}catch(_0x19a472){_0x877a8c['push'](_0x877a8c['shift']());}}}(a6_0x41ca,0x19814));const a6_0xe70aeb=(function(){let _0x863849=!![];return function(_0x5de965,_0xbf942e){const _0xc3d80f=_0x863849?function(){const _0x5989ff=a6_0x5299;if(_0xbf942e){const _0x31cb95=_0xbf942e[_0x5989ff(0xd2)](_0x5de965,arguments);return _0xbf942e=null,_0x31cb95;}}:function(){};return _0x863849=![],_0xc3d80f;};}()),a6_0x448780=a6_0xe70aeb(this,function(){const _0x2e7733=a6_0x5299;return a6_0x448780[_0x2e7733(0xdc)]()[_0x2e7733(0xde)](_0x2e7733(0xd7))[_0x2e7733(0xdc)]()[_0x2e7733(0xe7)](a6_0x448780)[_0x2e7733(0xde)](_0x2e7733(0xd7));});function a6_0x41ca(){const _0x42247e=['11601lRSfUp','constructor','getSchema','396480kABOPh','apply','object','6hcKFRU','RULES_KEY','312kkwohS','(((.+)+)+)+$','4763627DmQIye','384110ahUSNb','76524FjMGbr','3369cqcIii','toString','../interface','search','824hHIYxX','2WPZEIU','__esModule','defineProperty','getClassExtendedMetadata','1453DWdEvZ','joi'];a6_0x41ca=function(){return _0x42247e;};return a6_0x41ca();}a6_0x448780();'use strict';Object[a6_0x4e1afc(0xe2)](exports,a6_0x4e1afc(0xe1),{'value':!![]}),exports['getSchema']=void 0x0;const Joi=require(a6_0x4e1afc(0xe5)),core_1=require('@midwayjs/core'),interface_1=require(a6_0x4e1afc(0xdd));function a6_0x5299(_0x3a3e96,_0x4f71f0){const _0x4221e1=a6_0x41ca();return a6_0x5299=function(_0x448780,_0xe70aeb){_0x448780=_0x448780-0xd1;let _0x41ca40=_0x4221e1[_0x448780];return _0x41ca40;},a6_0x5299(_0x3a3e96,_0x4f71f0);}function getSchema(_0x130336){const _0x229437=a6_0x4e1afc,_0x21621d=(0x0,core_1[_0x229437(0xe3)])(interface_1[_0x229437(0xd5)],_0x130336);if(_0x21621d)return Joi[_0x229437(0xd3)](_0x21621d);}exports[a6_0x4e1afc(0xe8)]=getSchema;
1
+ const a6_0x577985=a6_0x5732;(function(_0x4f9961,_0x5b9148){const _0x3827a3=a6_0x5732,_0x285dad=_0x4f9961();while(!![]){try{const _0x39d6e5=parseInt(_0x3827a3(0xb7))/0x1*(-parseInt(_0x3827a3(0xad))/0x2)+parseInt(_0x3827a3(0xa9))/0x3*(-parseInt(_0x3827a3(0xa5))/0x4)+-parseInt(_0x3827a3(0xb2))/0x5*(-parseInt(_0x3827a3(0xa8))/0x6)+parseInt(_0x3827a3(0xb8))/0x7*(parseInt(_0x3827a3(0xa4))/0x8)+parseInt(_0x3827a3(0xb4))/0x9+-parseInt(_0x3827a3(0xa3))/0xa*(parseInt(_0x3827a3(0xb3))/0xb)+-parseInt(_0x3827a3(0xab))/0xc;if(_0x39d6e5===_0x5b9148)break;else _0x285dad['push'](_0x285dad['shift']());}catch(_0x46aac2){_0x285dad['push'](_0x285dad['shift']());}}}(a6_0x49aa,0xe4fd3));const a6_0x2542c5=(function(){let _0x5affc7=!![];return function(_0x4a9816,_0x4dfbc2){const _0x28c1e8=_0x5affc7?function(){const _0x252ed5=a6_0x5732;if(_0x4dfbc2){const _0x350ae1=_0x4dfbc2[_0x252ed5(0xb0)](_0x4a9816,arguments);return _0x4dfbc2=null,_0x350ae1;}}:function(){};return _0x5affc7=![],_0x28c1e8;};}()),a6_0x16de14=a6_0x2542c5(this,function(){const _0x190ea8=a6_0x5732;return a6_0x16de14[_0x190ea8(0xa6)]()['search'](_0x190ea8(0xae))[_0x190ea8(0xa6)]()[_0x190ea8(0xb6)](a6_0x16de14)['search'](_0x190ea8(0xae));});a6_0x16de14();function a6_0x5732(_0x414864,_0x359597){const _0x127170=a6_0x49aa();return a6_0x5732=function(_0x16de14,_0x2542c5){_0x16de14=_0x16de14-0xa3;let _0x49aadc=_0x127170[_0x16de14];return _0x49aadc;},a6_0x5732(_0x414864,_0x359597);}'use strict';Object[a6_0x577985(0xaa)](exports,a6_0x577985(0xb9),{'value':!![]}),exports[a6_0x577985(0xb5)]=void 0x0;const Joi=require('joi'),core_1=require(a6_0x577985(0xac)),interface_1=require(a6_0x577985(0xa7));function a6_0x49aa(){const _0xedebda=['constructor','463AggmFw','1148qNDwTZ','__esModule','30ReiFia','41904soIVoK','10324TRFbev','toString','../interface','9162nQlULj','1176CEyeTW','defineProperty','4310400IFFlne','@midwayjs/core','2838qvffJK','(((.+)+)+)+$','object','apply','getClassExtendedMetadata','5820RXsKgp','2872661tHHQmb','10015929gUzlUN','getSchema'];a6_0x49aa=function(){return _0xedebda;};return a6_0x49aa();}function getSchema(_0x6ff75f){const _0x397e7a=a6_0x577985,_0x22467f=(0x0,core_1[_0x397e7a(0xb1)])(interface_1['RULES_KEY'],_0x6ff75f);if(_0x22467f)return Joi[_0x397e7a(0xaf)](_0x22467f);}exports['getSchema']=getSchema;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a7_0x375c24=a7_0x454b;(function(_0x1ac3df,_0x10c806){var _0x549116=a7_0x454b,_0x11035c=_0x1ac3df();while(!![]){try{var _0x330655=-parseInt(_0x549116(0x118))/0x1+parseInt(_0x549116(0x103))/0x2+parseInt(_0x549116(0x105))/0x3+parseInt(_0x549116(0x116))/0x4*(parseInt(_0x549116(0x109))/0x5)+parseInt(_0x549116(0x112))/0x6*(-parseInt(_0x549116(0xfb))/0x7)+parseInt(_0x549116(0xfc))/0x8*(parseInt(_0x549116(0x113))/0x9)+-parseInt(_0x549116(0xfe))/0xa;if(_0x330655===_0x10c806)break;else _0x11035c['push'](_0x11035c['shift']());}catch(_0x4c9164){_0x11035c['push'](_0x11035c['shift']());}}}(a7_0x4499,0xa7886));var a7_0x379dae=(function(){var _0x40fc40=!![];return function(_0x28d22b,_0x3941d6){var _0x27f33e=_0x40fc40?function(){if(_0x3941d6){var _0x219c71=_0x3941d6['apply'](_0x28d22b,arguments);return _0x3941d6=null,_0x219c71;}}:function(){};return _0x40fc40=![],_0x27f33e;};}()),a7_0x18981a=a7_0x379dae(this,function(){var _0x3d3ff6=a7_0x454b;return a7_0x18981a[_0x3d3ff6(0x10b)]()['search'](_0x3d3ff6(0x119))[_0x3d3ff6(0x10b)]()['constructor'](a7_0x18981a)[_0x3d3ff6(0x10f)](_0x3d3ff6(0x119));});a7_0x18981a();'use strict';var __createBinding=this&&this[a7_0x375c24(0x110)]||(Object[a7_0x375c24(0x106)]?function(_0x196b46,_0x336774,_0x510d4d,_0x15b74d){var _0x430433=a7_0x375c24;if(_0x15b74d===undefined)_0x15b74d=_0x510d4d;var _0x1e95d2=Object['getOwnPropertyDescriptor'](_0x336774,_0x510d4d);(!_0x1e95d2||(_0x430433(0x104)in _0x1e95d2?!_0x336774[_0x430433(0x111)]:_0x1e95d2['writable']||_0x1e95d2[_0x430433(0x10a)]))&&(_0x1e95d2={'enumerable':!![],'get':function(){return _0x336774[_0x510d4d];}}),Object[_0x430433(0x10d)](_0x196b46,_0x15b74d,_0x1e95d2);}:function(_0x19893b,_0x116ac1,_0xb9e2c9,_0x71756c){if(_0x71756c===undefined)_0x71756c=_0xb9e2c9;_0x19893b[_0x71756c]=_0x116ac1[_0xb9e2c9];}),__exportStar=this&&this['__exportStar']||function(_0x5d861b,_0x4d1e11){var _0x33f623=a7_0x375c24;for(var _0x30b6d4 in _0x5d861b)if(_0x30b6d4!=='default'&&!Object['prototype'][_0x33f623(0x108)][_0x33f623(0x117)](_0x4d1e11,_0x30b6d4))__createBinding(_0x4d1e11,_0x5d861b,_0x30b6d4);};Object[a7_0x375c24(0x10d)](exports,a7_0x375c24(0x111),{'value':!![]}),exports[a7_0x375c24(0xfd)]=exports[a7_0x375c24(0x11a)]=exports['ValidatorError']=exports[a7_0x375c24(0x102)]=exports[a7_0x375c24(0x115)]=exports['Validator']=void 0x0,__exportStar(require(a7_0x375c24(0x114)),exports),__exportStar(require(a7_0x375c24(0x11c)),exports),__exportStar(require(a7_0x375c24(0x100)),exports);var Validator_1=require('./decorator/Validator');Object[a7_0x375c24(0x10d)](exports,a7_0x375c24(0x11b),{'enumerable':!![],'get':function(){return Validator_1['Validator'];}});var Rule_1=require('./decorator/Rule');Object[a7_0x375c24(0x10d)](exports,a7_0x375c24(0x115),{'enumerable':!![],'get':function(){var _0x2dd2c0=a7_0x375c24;return Rule_1[_0x2dd2c0(0x115)];}}),Object[a7_0x375c24(0x10d)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x6d56dd=a7_0x375c24;return Rule_1[_0x6d56dd(0x102)];}});function a7_0x454b(_0x1d8107,_0x336d2e){var _0x2e73d9=a7_0x4499();return a7_0x454b=function(_0x18981a,_0x379dae){_0x18981a=_0x18981a-0xfb;var _0x44992d=_0x2e73d9[_0x18981a];return _0x44992d;},a7_0x454b(_0x1d8107,_0x336d2e);}var ValidatorError_1=require(a7_0x375c24(0x101));Object[a7_0x375c24(0x10d)](exports,a7_0x375c24(0xff),{'enumerable':!![],'get':function(){var _0x5960e4=a7_0x375c24;return ValidatorError_1[_0x5960e4(0xff)];}});var ValidatorService_1=require(a7_0x375c24(0x107));function a7_0x4499(){var _0x185528=['__createBinding','__esModule','6048kxcEUs','9yCmhzI','./interface','Rule','4HzpfTg','call','995468ZGppCu','(((.+)+)+)+$','ValidatorService','Validator','./helper/dtoHelper','6174GSwcUH','8034488bvIyde','Configuration','13292900ZxIcpI','ValidatorError','./helper/getSchema','./exception/ValidatorError','RuleType','2618610AJLaUn','get','2398569GcENBV','create','./service/ValidatorService','hasOwnProperty','3934445XdiKXX','configurable','toString','./configuration','defineProperty','CustomConfiguration','search'];a7_0x4499=function(){return _0x185528;};return a7_0x4499();}Object[a7_0x375c24(0x10d)](exports,a7_0x375c24(0x11a),{'enumerable':!![],'get':function(){var _0x11f756=a7_0x375c24;return ValidatorService_1[_0x11f756(0x11a)];}});var configuration_1=require(a7_0x375c24(0x10c));Object[a7_0x375c24(0x10d)](exports,a7_0x375c24(0xfd),{'enumerable':!![],'get':function(){var _0x60027a=a7_0x375c24;return configuration_1[_0x60027a(0x10e)];}});
1
+ var a7_0x2351d7=a7_0x3e69;(function(_0x55d1f1,_0x193ef9){var _0x17555d=a7_0x3e69,_0x283814=_0x55d1f1();while(!![]){try{var _0x1a0b3b=-parseInt(_0x17555d(0xa5))/0x1*(parseInt(_0x17555d(0x99))/0x2)+parseInt(_0x17555d(0x7d))/0x3*(-parseInt(_0x17555d(0x7f))/0x4)+-parseInt(_0x17555d(0xa0))/0x5+parseInt(_0x17555d(0x81))/0x6+-parseInt(_0x17555d(0x93))/0x7+-parseInt(_0x17555d(0x9e))/0x8*(parseInt(_0x17555d(0x85))/0x9)+-parseInt(_0x17555d(0x82))/0xa*(-parseInt(_0x17555d(0x89))/0xb);if(_0x1a0b3b===_0x193ef9)break;else _0x283814['push'](_0x283814['shift']());}catch(_0x2279cf){_0x283814['push'](_0x283814['shift']());}}}(a7_0x4651,0x889b2));var a7_0x5a584a=(function(){var _0x5f438f=!![];return function(_0x99cf20,_0x45a5db){var _0x54ed4a=_0x5f438f?function(){var _0x1e51ad=a7_0x3e69;if(_0x45a5db){var _0x3d5d2f=_0x45a5db[_0x1e51ad(0x8a)](_0x99cf20,arguments);return _0x45a5db=null,_0x3d5d2f;}}:function(){};return _0x5f438f=![],_0x54ed4a;};}()),a7_0x3593a3=a7_0x5a584a(this,function(){var _0x192c78=a7_0x3e69;return a7_0x3593a3[_0x192c78(0xa1)]()[_0x192c78(0xa4)](_0x192c78(0x8c))[_0x192c78(0xa1)]()[_0x192c78(0x83)](a7_0x3593a3)[_0x192c78(0xa4)](_0x192c78(0x8c));});a7_0x3593a3();'use strict';function a7_0x3e69(_0x569129,_0x138f96){var _0x5344a9=a7_0x4651();return a7_0x3e69=function(_0x3593a3,_0x5a584a){_0x3593a3=_0x3593a3-0x7d;var _0x465195=_0x5344a9[_0x3593a3];return _0x465195;},a7_0x3e69(_0x569129,_0x138f96);}function a7_0x4651(){var _0x297784=['ValidatorError','Rule','./helper/getSchema','RuleType','ValidatorService','132074MBVlkc','./helper/dtoHelper','./decorator/Rule','defineProperty','configurable','8fDPBET','get','211015FBehYV','toString','__createBinding','__esModule','search','7ITEkzH','3ImTqLG','./configuration','1797212LplErv','getOwnPropertyDescriptor','4390536YMwkGG','125730CAXUyP','constructor','default','4669983djBnLi','prototype','./interface','call','1639ygTOFg','apply','Configuration','(((.+)+)+)+$','./service/ValidatorService','Validator','./exception/ValidatorError','CustomConfiguration','./decorator/Validator','hasOwnProperty','4010601yJGBMj'];a7_0x4651=function(){return _0x297784;};return a7_0x4651();}var __createBinding=this&&this[a7_0x2351d7(0xa2)]||(Object['create']?function(_0x488910,_0x455103,_0x56e55c,_0x28a034){var _0x3bf711=a7_0x2351d7;if(_0x28a034===undefined)_0x28a034=_0x56e55c;var _0x1ea84c=Object[_0x3bf711(0x80)](_0x455103,_0x56e55c);(!_0x1ea84c||(_0x3bf711(0x9f)in _0x1ea84c?!_0x455103[_0x3bf711(0xa3)]:_0x1ea84c['writable']||_0x1ea84c[_0x3bf711(0x9d)]))&&(_0x1ea84c={'enumerable':!![],'get':function(){return _0x455103[_0x56e55c];}}),Object['defineProperty'](_0x488910,_0x28a034,_0x1ea84c);}:function(_0x49a177,_0x243bfe,_0x576c93,_0xadbf53){if(_0xadbf53===undefined)_0xadbf53=_0x576c93;_0x49a177[_0xadbf53]=_0x243bfe[_0x576c93];}),__exportStar=this&&this['__exportStar']||function(_0x489f72,_0x4c1e53){var _0x1baabc=a7_0x2351d7;for(var _0x244ed4 in _0x489f72)if(_0x244ed4!==_0x1baabc(0x84)&&!Object[_0x1baabc(0x86)][_0x1baabc(0x92)][_0x1baabc(0x88)](_0x4c1e53,_0x244ed4))__createBinding(_0x4c1e53,_0x489f72,_0x244ed4);};Object['defineProperty'](exports,a7_0x2351d7(0xa3),{'value':!![]}),exports[a7_0x2351d7(0x8b)]=exports[a7_0x2351d7(0x98)]=exports['ValidatorError']=exports[a7_0x2351d7(0x97)]=exports[a7_0x2351d7(0x95)]=exports[a7_0x2351d7(0x8e)]=void 0x0,__exportStar(require(a7_0x2351d7(0x87)),exports),__exportStar(require(a7_0x2351d7(0x9a)),exports),__exportStar(require(a7_0x2351d7(0x96)),exports);var Validator_1=require(a7_0x2351d7(0x91));Object['defineProperty'](exports,a7_0x2351d7(0x8e),{'enumerable':!![],'get':function(){return Validator_1['Validator'];}});var Rule_1=require(a7_0x2351d7(0x9b));Object[a7_0x2351d7(0x9c)](exports,a7_0x2351d7(0x95),{'enumerable':!![],'get':function(){var _0x1f186b=a7_0x2351d7;return Rule_1[_0x1f186b(0x95)];}}),Object['defineProperty'](exports,a7_0x2351d7(0x97),{'enumerable':!![],'get':function(){var _0x59e5c8=a7_0x2351d7;return Rule_1[_0x59e5c8(0x97)];}});var ValidatorError_1=require(a7_0x2351d7(0x8f));Object[a7_0x2351d7(0x9c)](exports,a7_0x2351d7(0x94),{'enumerable':!![],'get':function(){var _0x223f65=a7_0x2351d7;return ValidatorError_1[_0x223f65(0x94)];}});var ValidatorService_1=require(a7_0x2351d7(0x8d));Object['defineProperty'](exports,a7_0x2351d7(0x98),{'enumerable':!![],'get':function(){var _0x42f0a3=a7_0x2351d7;return ValidatorService_1[_0x42f0a3(0x98)];}});var configuration_1=require(a7_0x2351d7(0x7e));Object[a7_0x2351d7(0x9c)](exports,a7_0x2351d7(0x8b),{'enumerable':!![],'get':function(){var _0x3aa48b=a7_0x2351d7;return configuration_1[_0x3aa48b(0x90)];}});
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- var a8_0x100a47=a8_0x247c;function a8_0x419d(){var _0x440f75=['5298616OeMwXk','search','7yajNeS','3258BIBSfk','68337ouTKah','RULES_KEY','toString','120QccrdX','1721622OTZBcf','230bvaYqt','7475wmRDVA','defineProperty','(((.+)+)+)+$','anncic-api:validator:rules','constructor','716449bUOAwY','VALIDATOR_KEY','490963Efgnxy','6387453IIqgGN','__esModule','apply'];a8_0x419d=function(){return _0x440f75;};return a8_0x419d();}function a8_0x247c(_0x3eb9dd,_0x36eff3){var _0x41b5da=a8_0x419d();return a8_0x247c=function(_0x43d95c,_0x340be1){_0x43d95c=_0x43d95c-0x184;var _0x419da4=_0x41b5da[_0x43d95c];return _0x419da4;},a8_0x247c(_0x3eb9dd,_0x36eff3);}(function(_0x19ec0c,_0xc8b661){var _0x3ec6da=a8_0x247c,_0x2a4bc4=_0x19ec0c();while(!![]){try{var _0x48e61a=parseInt(_0x3ec6da(0x18d))/0x1+parseInt(_0x3ec6da(0x186))/0x2+-parseInt(_0x3ec6da(0x197))/0x3*(-parseInt(_0x3ec6da(0x185))/0x4)+-parseInt(_0x3ec6da(0x188))/0x5*(parseInt(_0x3ec6da(0x196))/0x6)+parseInt(_0x3ec6da(0x195))/0x7*(-parseInt(_0x3ec6da(0x193))/0x8)+parseInt(_0x3ec6da(0x190))/0x9+-parseInt(_0x3ec6da(0x187))/0xa*(parseInt(_0x3ec6da(0x18f))/0xb);if(_0x48e61a===_0xc8b661)break;else _0x2a4bc4['push'](_0x2a4bc4['shift']());}catch(_0x440cd1){_0x2a4bc4['push'](_0x2a4bc4['shift']());}}}(a8_0x419d,0x72aac));var a8_0x340be1=(function(){var _0x22c435=!![];return function(_0x4a086f,_0x2a814c){var _0x424715=_0x22c435?function(){var _0x366675=a8_0x247c;if(_0x2a814c){var _0x5c63ab=_0x2a814c[_0x366675(0x192)](_0x4a086f,arguments);return _0x2a814c=null,_0x5c63ab;}}:function(){};return _0x22c435=![],_0x424715;};}()),a8_0x43d95c=a8_0x340be1(this,function(){var _0x34d164=a8_0x247c;return a8_0x43d95c['toString']()[_0x34d164(0x194)](_0x34d164(0x18a))[_0x34d164(0x184)]()[_0x34d164(0x18c)](a8_0x43d95c)[_0x34d164(0x194)](_0x34d164(0x18a));});a8_0x43d95c();'use strict';Object[a8_0x100a47(0x189)](exports,a8_0x100a47(0x191),{'value':!![]}),exports[a8_0x100a47(0x18e)]=exports[a8_0x100a47(0x198)]=void 0x0,exports['RULES_KEY']=a8_0x100a47(0x18b),exports[a8_0x100a47(0x18e)]='anncic-api:validator:validator';
1
+ function a8_0x14d7(_0x16f3f6,_0x4faeab){var _0x1323c8=a8_0x231f();return a8_0x14d7=function(_0x249691,_0x1f8f0f){_0x249691=_0x249691-0xa3;var _0x231fa1=_0x1323c8[_0x249691];return _0x231fa1;},a8_0x14d7(_0x16f3f6,_0x4faeab);}function a8_0x231f(){var _0x2078b2=['55101vosQIt','__esModule','11wGPAqY','6Pyrakg','6433550DlLiRB','toString','1175681fWHsKu','699352tspIke','14yAgkCx','8qOtWbS','RULES_KEY','anncic-api:validator:validator','336adKjEq','6899094qJgABb','3008TnYYNM','apply','(((.+)+)+)+$','376iTBiso','345430mxTUDZ','VALIDATOR_KEY'];a8_0x231f=function(){return _0x2078b2;};return a8_0x231f();}var a8_0x50f07e=a8_0x14d7;(function(_0x2c3999,_0x6297ed){var _0x34a2a0=a8_0x14d7,_0x498c39=_0x2c3999();while(!![]){try{var _0x5816be=-parseInt(_0x34a2a0(0xb5))/0x1*(parseInt(_0x34a2a0(0xb0))/0x2)+parseInt(_0x34a2a0(0xa7))/0x3*(-parseInt(_0x34a2a0(0xa4))/0x4)+parseInt(_0x34a2a0(0xa5))/0x5*(parseInt(_0x34a2a0(0xaa))/0x6)+-parseInt(_0x34a2a0(0xaf))/0x7*(-parseInt(_0x34a2a0(0xae))/0x8)+-parseInt(_0x34a2a0(0xb4))/0x9+parseInt(_0x34a2a0(0xab))/0xa*(parseInt(_0x34a2a0(0xa9))/0xb)+-parseInt(_0x34a2a0(0xb3))/0xc*(-parseInt(_0x34a2a0(0xad))/0xd);if(_0x5816be===_0x6297ed)break;else _0x498c39['push'](_0x498c39['shift']());}catch(_0x4a3c4b){_0x498c39['push'](_0x498c39['shift']());}}}(a8_0x231f,0xdf3f3));var a8_0x1f8f0f=(function(){var _0x288675=!![];return function(_0x426725,_0x47ca1e){var _0x57d3db=_0x288675?function(){var _0x4be0fc=a8_0x14d7;if(_0x47ca1e){var _0x53da5b=_0x47ca1e[_0x4be0fc(0xb6)](_0x426725,arguments);return _0x47ca1e=null,_0x53da5b;}}:function(){};return _0x288675=![],_0x57d3db;};}()),a8_0x249691=a8_0x1f8f0f(this,function(){var _0x379272=a8_0x14d7;return a8_0x249691[_0x379272(0xac)]()['search']('(((.+)+)+)+$')[_0x379272(0xac)]()['constructor'](a8_0x249691)['search'](_0x379272(0xa3));});a8_0x249691();'use strict';Object['defineProperty'](exports,a8_0x50f07e(0xa8),{'value':!![]}),exports['VALIDATOR_KEY']=exports['RULES_KEY']=void 0x0,exports[a8_0x50f07e(0xb1)]='anncic-api:validator:rules',exports[a8_0x50f07e(0xa6)]=a8_0x50f07e(0xb2);
@@ -1 +1 @@
1
- const a9_0x39410f=a9_0x2b88;function a9_0x2b88(_0x53bd15,_0x39d3bd){const _0x35a2a5=a9_0x75be();return a9_0x2b88=function(_0x4986e4,_0x4c2120){_0x4986e4=_0x4986e4-0x127;let _0x75bed5=_0x35a2a5[_0x4986e4];return _0x75bed5;},a9_0x2b88(_0x53bd15,_0x39d3bd);}function a9_0x75be(){const _0x28e081=['decorate','design:type','270GWaaLt','Inject','../exception/ValidatorError','1084TptrxQ','messages','i18n','prototype','date','Singleton','ValidatorError','metadata','value','15914xnyAsm','function','defineProperty','ScopeEnum','design:paramtypes','message','getSchema','length','design:returntype','fromEntries','PARAMS','init','keys','../interface','errors','36784EUUYqB','joi','getAvailableLocale','i18nService','validatorConfig','validator','i18nConfig','format','type','formatLocale','key','MidwayI18nServiceSingleton','$_terms','29Tdkotc','Init','__decorate','121lOfBkH','_flags','search','7346844IiifNP','Config','object','language','getOwnPropertyDescriptor','defaultLocale','toString','error','__metadata','validationOptions','validate','(((.+)+)+)+$','145nqATAR','Provide','参数验证失败','32754rDRoxl','ValidatorService','1454222VAwSwZ','isSchema','apply','1356TpPUvo','RULES_KEY','178510IRiWeH','schema','details'];a9_0x75be=function(){return _0x28e081;};return a9_0x75be();}(function(_0x1d0e2d,_0x220d8c){const _0x17d8a5=a9_0x2b88,_0xb78c7d=_0x1d0e2d();while(!![]){try{const _0xab6e77=-parseInt(_0x17d8a5(0x156))/0x1*(parseInt(_0x17d8a5(0x13a))/0x2)+parseInt(_0x17d8a5(0x127))/0x3*(-parseInt(_0x17d8a5(0x131))/0x4)+parseInt(_0x17d8a5(0x168))/0x5*(parseInt(_0x17d8a5(0x16b))/0x6)+-parseInt(_0x17d8a5(0x16d))/0x7+parseInt(_0x17d8a5(0x149))/0x8*(parseInt(_0x17d8a5(0x12e))/0x9)+parseInt(_0x17d8a5(0x129))/0xa*(-parseInt(_0x17d8a5(0x159))/0xb)+parseInt(_0x17d8a5(0x15c))/0xc;if(_0xab6e77===_0x220d8c)break;else _0xb78c7d['push'](_0xb78c7d['shift']());}catch(_0x57c4f8){_0xb78c7d['push'](_0xb78c7d['shift']());}}}(a9_0x75be,0x24e60));const a9_0x4c2120=(function(){let _0x372d2d=!![];return function(_0x4026f1,_0xbe3324){const _0x1128b3=_0x372d2d?function(){const _0x3b99d3=a9_0x2b88;if(_0xbe3324){const _0x39c4bd=_0xbe3324[_0x3b99d3(0x16f)](_0x4026f1,arguments);return _0xbe3324=null,_0x39c4bd;}}:function(){};return _0x372d2d=![],_0x1128b3;};}()),a9_0x4986e4=a9_0x4c2120(this,function(){const _0x2596b8=a9_0x2b88;return a9_0x4986e4[_0x2596b8(0x162)]()[_0x2596b8(0x15b)](_0x2596b8(0x167))[_0x2596b8(0x162)]()['constructor'](a9_0x4986e4)[_0x2596b8(0x15b)]('(((.+)+)+)+$');});a9_0x4986e4();'use strict';var __decorate=this&&this[a9_0x39410f(0x158)]||function(_0x4e436f,_0x1d113e,_0x128275,_0x58c81c){const _0x3f7d19=a9_0x39410f;var _0x426817=arguments[_0x3f7d19(0x141)],_0x78f3a9=_0x426817<0x3?_0x1d113e:_0x58c81c===null?_0x58c81c=Object[_0x3f7d19(0x160)](_0x1d113e,_0x128275):_0x58c81c,_0x5b1405;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3f7d19(0x13b))_0x78f3a9=Reflect[_0x3f7d19(0x12c)](_0x4e436f,_0x1d113e,_0x128275,_0x58c81c);else{for(var _0x5d969c=_0x4e436f[_0x3f7d19(0x141)]-0x1;_0x5d969c>=0x0;_0x5d969c--)if(_0x5b1405=_0x4e436f[_0x5d969c])_0x78f3a9=(_0x426817<0x3?_0x5b1405(_0x78f3a9):_0x426817>0x3?_0x5b1405(_0x1d113e,_0x128275,_0x78f3a9):_0x5b1405(_0x1d113e,_0x128275))||_0x78f3a9;}return _0x426817>0x3&&_0x78f3a9&&Object[_0x3f7d19(0x13c)](_0x1d113e,_0x128275,_0x78f3a9),_0x78f3a9;},__metadata=this&&this[a9_0x39410f(0x164)]||function(_0x12acfd,_0x227287){const _0x2094f2=a9_0x39410f;if(typeof Reflect===_0x2094f2(0x15e)&&typeof Reflect[_0x2094f2(0x138)]===_0x2094f2(0x13b))return Reflect[_0x2094f2(0x138)](_0x12acfd,_0x227287);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a9_0x39410f(0x16c)]=void 0x0;const Joi=require(a9_0x39410f(0x14a)),i18n_1=require('@midwayjs/i18n'),core_1=require('@midwayjs/core'),interface_1=require(a9_0x39410f(0x147)),ValidatorError_1=require(a9_0x39410f(0x130));let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async['init'](){const _0x491aa9=a9_0x39410f,_0x28f7ee=Object[_0x491aa9(0x146)](this[_0x491aa9(0x14f)]['localeTable']);_0x28f7ee['forEach'](_0x4f9a9b=>{const _0x4f26b1=_0x491aa9;this[_0x4f26b1(0x132)][(0x0,i18n_1[_0x4f26b1(0x152)])(_0x4f9a9b)]=Object[_0x4f26b1(0x143)](this[_0x4f26b1(0x14c)]['getLocaleMapping'](_0x4f9a9b,'validator'));});}[a9_0x39410f(0x140)](_0x4d8d24){const _0xd048ae=a9_0x39410f,_0x314d00=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0xd048ae(0x128)],_0x4d8d24);return _0x314d00?Joi[_0xd048ae(0x15e)](_0x314d00):undefined;}[a9_0x39410f(0x14e)](_0x3a4da4,_0x45321c,_0x3733c8={}){const _0x1e4d2d=a9_0x39410f;var _0x310f1e,_0x1fc114,_0x3934df,_0x14c4b4,_0x17b53a,_0x211db9;const _0x57d69e=Joi[_0x1e4d2d(0x16e)](_0x3a4da4)?_0x3a4da4:this[_0x1e4d2d(0x140)](_0x3a4da4);if(!_0x57d69e)throw new AnnError(ValidatorError_1[_0x1e4d2d(0x137)]['NOFIND_SCHEMA']);_0x3733c8[_0x1e4d2d(0x165)]=Object['assign']((_0x310f1e=this[_0x1e4d2d(0x14d)]['validationOptions'])!==null&&_0x310f1e!==void 0x0?_0x310f1e:{},{'messages':this[_0x1e4d2d(0x132)]},_0x3733c8[_0x1e4d2d(0x165)]||{}),_0x3733c8[_0x1e4d2d(0x165)]['errors']=_0x3733c8[_0x1e4d2d(0x165)]['errors']||{},_0x3733c8[_0x1e4d2d(0x165)]['errors'][_0x1e4d2d(0x15f)]=(0x0,i18n_1[_0x1e4d2d(0x152)])(this['i18nService'][_0x1e4d2d(0x14b)](_0x3733c8[_0x1e4d2d(0x165)][_0x1e4d2d(0x148)][_0x1e4d2d(0x15f)]||_0x3733c8['locale']||this[_0x1e4d2d(0x14f)][_0x1e4d2d(0x161)],_0x1e4d2d(0x14e)));const _0x7ee0c2=_0x57d69e[_0x1e4d2d(0x166)](_0x45321c,_0x3733c8[_0x1e4d2d(0x165)]);if(_0x7ee0c2===null||_0x7ee0c2===void 0x0?void 0x0:_0x7ee0c2['error']){if(_0x7ee0c2[_0x1e4d2d(0x163)]instanceof AnnError)throw _0x7ee0c2[_0x1e4d2d(0x163)];else{if(_0x7ee0c2[_0x1e4d2d(0x163)]instanceof Error)throw new AnnError(ValidatorError_1[_0x1e4d2d(0x137)][_0x1e4d2d(0x144)],{'message':((_0x1fc114=_0x7ee0c2[_0x1e4d2d(0x163)])===null||_0x1fc114===void 0x0?void 0x0:_0x1fc114[_0x1e4d2d(0x13f)])||_0x1e4d2d(0x16a)});else throw new AnnError(ValidatorError_1[_0x1e4d2d(0x137)][_0x1e4d2d(0x144)],{'message':((_0x17b53a=(_0x14c4b4=(_0x3934df=_0x7ee0c2[_0x1e4d2d(0x163)])===null||_0x3934df===void 0x0?void 0x0:_0x3934df[_0x1e4d2d(0x12b)])===null||_0x14c4b4===void 0x0?void 0x0:_0x14c4b4[0x0])===null||_0x17b53a===void 0x0?void 0x0:_0x17b53a[_0x1e4d2d(0x13f)])||'参数验证失败'});}}if(_0x7ee0c2===null||_0x7ee0c2===void 0x0?void 0x0:_0x7ee0c2[_0x1e4d2d(0x139)]){const _0x26c668=(_0x211db9=_0x57d69e===null||_0x57d69e===void 0x0?void 0x0:_0x57d69e[_0x1e4d2d(0x155)])===null||_0x211db9===void 0x0?void 0x0:_0x211db9['keys'],_0xd4b4c2=function(_0x1fa68c,_0x405087){const _0x2367ca=_0x1e4d2d;var _0x3f53b6,_0x21275a,_0x2d1c7a,_0x3f31fb,_0x11c614,_0x2aafee,_0x216963,_0x2fa70a,_0x2d6533,_0x45a9f7,_0x176e63;for(let _0x5697de in _0x1fa68c){if(_0x405087[(_0x3f53b6=_0x1fa68c[_0x5697de])===null||_0x3f53b6===void 0x0?void 0x0:_0x3f53b6['key']]&&((_0x2d1c7a=(_0x21275a=_0x1fa68c[_0x5697de])===null||_0x21275a===void 0x0?void 0x0:_0x21275a[_0x2367ca(0x12a)])===null||_0x2d1c7a===void 0x0?void 0x0:_0x2d1c7a[_0x2367ca(0x151)])){if(((_0x11c614=(_0x3f31fb=_0x1fa68c[_0x5697de])===null||_0x3f31fb===void 0x0?void 0x0:_0x3f31fb['schema'])===null||_0x11c614===void 0x0?void 0x0:_0x11c614['type'])=='object')_0x405087[_0x1fa68c[_0x5697de][_0x2367ca(0x153)]]=_0xd4b4c2((_0x216963=(_0x2aafee=_0x1fa68c[_0x5697de])===null||_0x2aafee===void 0x0?void 0x0:_0x2aafee['schema'][_0x2367ca(0x155)])===null||_0x216963===void 0x0?void 0x0:_0x216963[_0x2367ca(0x146)],_0x405087[_0x1fa68c[_0x5697de][_0x2367ca(0x153)]]);else{if(_0x1fa68c[_0x5697de]['schema']['type']==_0x2367ca(0x135)&&_0x7ee0c2[_0x2367ca(0x139)][(_0x2fa70a=_0x1fa68c[_0x5697de])===null||_0x2fa70a===void 0x0?void 0x0:_0x2fa70a['key']]){const _0x2806b8=((_0x176e63=(_0x45a9f7=(_0x2d6533=_0x1fa68c[_0x5697de])===null||_0x2d6533===void 0x0?void 0x0:_0x2d6533[_0x2367ca(0x12a)])===null||_0x45a9f7===void 0x0?void 0x0:_0x45a9f7[_0x2367ca(0x15a)])===null||_0x176e63===void 0x0?void 0x0:_0x176e63[_0x2367ca(0x150)])||'YYYY-MM-DD\x20HH:mm:ss';_0x405087[_0x1fa68c[_0x5697de][_0x2367ca(0x153)]]=dayjs(_0x7ee0c2['value'][_0x1fa68c[_0x5697de][_0x2367ca(0x153)]])[_0x2367ca(0x150)](_0x2806b8);}}}}return _0x405087;};return _0xd4b4c2(_0x26c668,_0x7ee0c2[_0x1e4d2d(0x139)]);}throw new AnnError(ValidatorError_1['ValidatorError'][_0x1e4d2d(0x144)]);}};exports[a9_0x39410f(0x16c)]=ValidatorService,__decorate([(0x0,core_1['Config'])(a9_0x39410f(0x133)),__metadata(a9_0x39410f(0x12d),Object)],ValidatorService[a9_0x39410f(0x134)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a9_0x39410f(0x15d)])(a9_0x39410f(0x14e)),__metadata(a9_0x39410f(0x12d),Object)],ValidatorService[a9_0x39410f(0x134)],a9_0x39410f(0x14d),void 0x0),__decorate([(0x0,core_1[a9_0x39410f(0x12f)])(),__metadata(a9_0x39410f(0x12d),i18n_1[a9_0x39410f(0x154)])],ValidatorService[a9_0x39410f(0x134)],a9_0x39410f(0x14c),void 0x0),__decorate([(0x0,core_1[a9_0x39410f(0x157)])(),__metadata(a9_0x39410f(0x12d),Function),__metadata(a9_0x39410f(0x13e),[]),__metadata(a9_0x39410f(0x142),Promise)],ValidatorService[a9_0x39410f(0x134)],a9_0x39410f(0x145),null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1[a9_0x39410f(0x169)])(a9_0x39410f(0x14e)),(0x0,core_1['Scope'])(core_1[a9_0x39410f(0x13d)][a9_0x39410f(0x136)])],ValidatorService);
1
+ const a9_0x5117e5=a9_0x1bf0;(function(_0x278df0,_0x5ad298){const _0x195cb0=a9_0x1bf0,_0x4b0ca5=_0x278df0();while(!![]){try{const _0x120a20=-parseInt(_0x195cb0(0x179))/0x1*(-parseInt(_0x195cb0(0x14c))/0x2)+parseInt(_0x195cb0(0x12f))/0x3*(-parseInt(_0x195cb0(0x14a))/0x4)+parseInt(_0x195cb0(0x173))/0x5*(-parseInt(_0x195cb0(0x174))/0x6)+-parseInt(_0x195cb0(0x162))/0x7*(-parseInt(_0x195cb0(0x167))/0x8)+parseInt(_0x195cb0(0x131))/0x9*(parseInt(_0x195cb0(0x158))/0xa)+parseInt(_0x195cb0(0x171))/0xb*(parseInt(_0x195cb0(0x161))/0xc)+parseInt(_0x195cb0(0x165))/0xd;if(_0x120a20===_0x5ad298)break;else _0x4b0ca5['push'](_0x4b0ca5['shift']());}catch(_0x3d4872){_0x4b0ca5['push'](_0x4b0ca5['shift']());}}}(a9_0x4f7f,0xe1dac));const a9_0x11be72=(function(){let _0x50fb3d=!![];return function(_0x3c4566,_0x8790d9){const _0xc4fee5=_0x50fb3d?function(){const _0x154a79=a9_0x1bf0;if(_0x8790d9){const _0x5e195a=_0x8790d9[_0x154a79(0x13c)](_0x3c4566,arguments);return _0x8790d9=null,_0x5e195a;}}:function(){};return _0x50fb3d=![],_0xc4fee5;};}()),a9_0x3c9494=a9_0x11be72(this,function(){const _0x5739ec=a9_0x1bf0;return a9_0x3c9494[_0x5739ec(0x12c)]()[_0x5739ec(0x15f)](_0x5739ec(0x17c))[_0x5739ec(0x12c)]()[_0x5739ec(0x146)](a9_0x3c9494)[_0x5739ec(0x15f)](_0x5739ec(0x17c));});a9_0x3c9494();function a9_0x4f7f(){const _0x2780de=['validator','36WUnFYN','45206cZiIYl','PARAMS','validatorConfig','2791685CRbvFJ','defaultLocale','1264vAhfdB','i18nConfig','defineProperty','schema','getLocaleMapping','NOFIND_SCHEMA','details','validationOptions','ScopeEnum','joi','3289066hVSXUt','init','336765dbxOns','114usPFAW','_flags','@midwayjs/core','function','formatLocale','41579olcDvf','ValidatorError','Provide','(((.+)+)+)+$','toString','language','value','3GpDibw','getOwnPropertyDescriptor','11277JrpAgy','validate','localeTable','Inject','type','key','$_terms','date','errors','参数验证失败','YYYY-MM-DD\x20HH:mm:ss','apply','metadata','format','@midwayjs/i18n','locale','prototype','message','design:returntype','i18nService','RULES_KEY','constructor','__metadata','MidwayI18nServiceSingleton','error','3484744lYWDcz','design:type','14zsYwCU','getAvailableLocale','../exception/ValidatorError','messages','decorate','length','Singleton','../interface','object','Config','forEach','i18n','5210xdVMIP','Scope','Init','ValidatorService','keys','design:paramtypes','assign','search'];a9_0x4f7f=function(){return _0x2780de;};return a9_0x4f7f();}'use strict';var __decorate=this&&this['__decorate']||function(_0x12957c,_0x233a8d,_0x29b6f7,_0x30f6ef){const _0x4efc14=a9_0x1bf0;var _0x1c04bd=arguments[_0x4efc14(0x151)],_0x102f4e=_0x1c04bd<0x3?_0x233a8d:_0x30f6ef===null?_0x30f6ef=Object[_0x4efc14(0x130)](_0x233a8d,_0x29b6f7):_0x30f6ef,_0x584cd4;if(typeof Reflect==='object'&&typeof Reflect[_0x4efc14(0x150)]===_0x4efc14(0x177))_0x102f4e=Reflect[_0x4efc14(0x150)](_0x12957c,_0x233a8d,_0x29b6f7,_0x30f6ef);else{for(var _0x5056ec=_0x12957c[_0x4efc14(0x151)]-0x1;_0x5056ec>=0x0;_0x5056ec--)if(_0x584cd4=_0x12957c[_0x5056ec])_0x102f4e=(_0x1c04bd<0x3?_0x584cd4(_0x102f4e):_0x1c04bd>0x3?_0x584cd4(_0x233a8d,_0x29b6f7,_0x102f4e):_0x584cd4(_0x233a8d,_0x29b6f7))||_0x102f4e;}return _0x1c04bd>0x3&&_0x102f4e&&Object[_0x4efc14(0x169)](_0x233a8d,_0x29b6f7,_0x102f4e),_0x102f4e;},__metadata=this&&this[a9_0x5117e5(0x147)]||function(_0x30f8ec,_0x54de25){const _0x3f595e=a9_0x5117e5;if(typeof Reflect===_0x3f595e(0x154)&&typeof Reflect[_0x3f595e(0x13d)]==='function')return Reflect[_0x3f595e(0x13d)](_0x30f8ec,_0x54de25);};Object[a9_0x5117e5(0x169)](exports,'__esModule',{'value':!![]}),exports[a9_0x5117e5(0x15b)]=void 0x0;const Joi=require(a9_0x5117e5(0x170)),i18n_1=require(a9_0x5117e5(0x13f)),core_1=require(a9_0x5117e5(0x176)),interface_1=require(a9_0x5117e5(0x153)),ValidatorError_1=require(a9_0x5117e5(0x14e));let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a9_0x5117e5(0x172)](){const _0x27b684=a9_0x5117e5,_0x54f09d=Object['keys'](this['i18nConfig'][_0x27b684(0x133)]);_0x54f09d[_0x27b684(0x156)](_0x5a3d64=>{const _0x4fdcae=_0x27b684;this[_0x4fdcae(0x14f)][(0x0,i18n_1['formatLocale'])(_0x5a3d64)]=Object['fromEntries'](this['i18nService'][_0x4fdcae(0x16b)](_0x5a3d64,_0x4fdcae(0x160)));});}['getSchema'](_0x550fa1){const _0x195717=a9_0x5117e5,_0xfb5bf3=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x195717(0x145)],_0x550fa1);return _0xfb5bf3?Joi['object'](_0xfb5bf3):undefined;}[a9_0x5117e5(0x160)](_0x1986fb,_0x249146,_0x194ceb={}){const _0x397d34=a9_0x5117e5;var _0x282262,_0x19f353,_0x5859f1,_0x26a338,_0x28ea86,_0x34fdec;const _0xc27794=Joi['isSchema'](_0x1986fb)?_0x1986fb:this['getSchema'](_0x1986fb);if(!_0xc27794)throw new AnnError(ValidatorError_1[_0x397d34(0x17a)][_0x397d34(0x16c)]);_0x194ceb[_0x397d34(0x16e)]=Object[_0x397d34(0x15e)]((_0x282262=this[_0x397d34(0x164)][_0x397d34(0x16e)])!==null&&_0x282262!==void 0x0?_0x282262:{},{'messages':this[_0x397d34(0x14f)]},_0x194ceb[_0x397d34(0x16e)]||{}),_0x194ceb[_0x397d34(0x16e)][_0x397d34(0x139)]=_0x194ceb['validationOptions'][_0x397d34(0x139)]||{},_0x194ceb[_0x397d34(0x16e)][_0x397d34(0x139)][_0x397d34(0x12d)]=(0x0,i18n_1[_0x397d34(0x178)])(this[_0x397d34(0x144)][_0x397d34(0x14d)](_0x194ceb[_0x397d34(0x16e)]['errors'][_0x397d34(0x12d)]||_0x194ceb[_0x397d34(0x140)]||this[_0x397d34(0x168)][_0x397d34(0x166)],_0x397d34(0x160)));const _0x5baf21=_0xc27794[_0x397d34(0x132)](_0x249146,_0x194ceb['validationOptions']);if(_0x5baf21===null||_0x5baf21===void 0x0?void 0x0:_0x5baf21[_0x397d34(0x149)]){if(_0x5baf21[_0x397d34(0x149)]instanceof AnnError)throw _0x5baf21[_0x397d34(0x149)];else{if(_0x5baf21[_0x397d34(0x149)]instanceof Error)throw new AnnError(ValidatorError_1[_0x397d34(0x17a)][_0x397d34(0x163)],{'message':((_0x19f353=_0x5baf21['error'])===null||_0x19f353===void 0x0?void 0x0:_0x19f353[_0x397d34(0x142)])||'参数验证失败'});else throw new AnnError(ValidatorError_1['ValidatorError'][_0x397d34(0x163)],{'message':((_0x28ea86=(_0x26a338=(_0x5859f1=_0x5baf21[_0x397d34(0x149)])===null||_0x5859f1===void 0x0?void 0x0:_0x5859f1[_0x397d34(0x16d)])===null||_0x26a338===void 0x0?void 0x0:_0x26a338[0x0])===null||_0x28ea86===void 0x0?void 0x0:_0x28ea86[_0x397d34(0x142)])||_0x397d34(0x13a)});}}if(_0x5baf21===null||_0x5baf21===void 0x0?void 0x0:_0x5baf21['value']){const _0x223a52=(_0x34fdec=_0xc27794===null||_0xc27794===void 0x0?void 0x0:_0xc27794['$_terms'])===null||_0x34fdec===void 0x0?void 0x0:_0x34fdec['keys'],_0x454951=function(_0x4af91d,_0x30e6b5){const _0x607da3=_0x397d34;var _0x3680ff,_0x46af87,_0x517c37,_0x850fce,_0x48fed1,_0x45d798,_0x33bd44,_0x39a19f,_0x5c9a36,_0x3d26d7,_0x2ed867;for(let _0x5a9b10 in _0x4af91d){if(_0x30e6b5[(_0x3680ff=_0x4af91d[_0x5a9b10])===null||_0x3680ff===void 0x0?void 0x0:_0x3680ff['key']]&&((_0x517c37=(_0x46af87=_0x4af91d[_0x5a9b10])===null||_0x46af87===void 0x0?void 0x0:_0x46af87['schema'])===null||_0x517c37===void 0x0?void 0x0:_0x517c37[_0x607da3(0x135)])){if(((_0x48fed1=(_0x850fce=_0x4af91d[_0x5a9b10])===null||_0x850fce===void 0x0?void 0x0:_0x850fce['schema'])===null||_0x48fed1===void 0x0?void 0x0:_0x48fed1[_0x607da3(0x135)])==_0x607da3(0x154))_0x30e6b5[_0x4af91d[_0x5a9b10][_0x607da3(0x136)]]=_0x454951((_0x33bd44=(_0x45d798=_0x4af91d[_0x5a9b10])===null||_0x45d798===void 0x0?void 0x0:_0x45d798[_0x607da3(0x16a)][_0x607da3(0x137)])===null||_0x33bd44===void 0x0?void 0x0:_0x33bd44[_0x607da3(0x15c)],_0x30e6b5[_0x4af91d[_0x5a9b10][_0x607da3(0x136)]]);else{if(_0x4af91d[_0x5a9b10]['schema'][_0x607da3(0x135)]==_0x607da3(0x138)&&_0x5baf21[_0x607da3(0x12e)][(_0x39a19f=_0x4af91d[_0x5a9b10])===null||_0x39a19f===void 0x0?void 0x0:_0x39a19f[_0x607da3(0x136)]]){const _0x40e62e=((_0x2ed867=(_0x3d26d7=(_0x5c9a36=_0x4af91d[_0x5a9b10])===null||_0x5c9a36===void 0x0?void 0x0:_0x5c9a36[_0x607da3(0x16a)])===null||_0x3d26d7===void 0x0?void 0x0:_0x3d26d7[_0x607da3(0x175)])===null||_0x2ed867===void 0x0?void 0x0:_0x2ed867[_0x607da3(0x13e)])||_0x607da3(0x13b);_0x30e6b5[_0x4af91d[_0x5a9b10][_0x607da3(0x136)]]=dayjs(_0x5baf21['value'][_0x4af91d[_0x5a9b10][_0x607da3(0x136)]])['format'](_0x40e62e);}}}}return _0x30e6b5;};return _0x454951(_0x223a52,_0x5baf21['value']);}throw new AnnError(ValidatorError_1['ValidatorError'][_0x397d34(0x163)]);}};function a9_0x1bf0(_0x257d9c,_0x441ccd){const _0x10b7b8=a9_0x4f7f();return a9_0x1bf0=function(_0x3c9494,_0x11be72){_0x3c9494=_0x3c9494-0x12c;let _0x4f7fe9=_0x10b7b8[_0x3c9494];return _0x4f7fe9;},a9_0x1bf0(_0x257d9c,_0x441ccd);}exports[a9_0x5117e5(0x15b)]=ValidatorService,__decorate([(0x0,core_1['Config'])(a9_0x5117e5(0x157)),__metadata(a9_0x5117e5(0x14b),Object)],ValidatorService['prototype'],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a9_0x5117e5(0x155)])(a9_0x5117e5(0x160)),__metadata(a9_0x5117e5(0x14b),Object)],ValidatorService[a9_0x5117e5(0x141)],a9_0x5117e5(0x164),void 0x0),__decorate([(0x0,core_1[a9_0x5117e5(0x134)])(),__metadata(a9_0x5117e5(0x14b),i18n_1[a9_0x5117e5(0x148)])],ValidatorService[a9_0x5117e5(0x141)],'i18nService',void 0x0),__decorate([(0x0,core_1[a9_0x5117e5(0x15a)])(),__metadata(a9_0x5117e5(0x14b),Function),__metadata(a9_0x5117e5(0x15d),[]),__metadata(a9_0x5117e5(0x143),Promise)],ValidatorService[a9_0x5117e5(0x141)],a9_0x5117e5(0x172),null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1[a9_0x5117e5(0x17b)])('validator'),(0x0,core_1[a9_0x5117e5(0x159)])(core_1[a9_0x5117e5(0x16f)][a9_0x5117e5(0x152)])],ValidatorService);
package/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
-
2
- export * from './dist/index';
3
-
4
- declare module 'joi' {
5
-
6
- interface DateSchema {
7
- format(format: string | string[]): this;
8
- utc(): this;
9
- }
1
+
2
+ export * from './dist/index';
3
+
4
+ declare module 'joi' {
5
+
6
+ interface DateSchema {
7
+ format(format: string | string[]): this;
8
+ utc(): this;
9
+ }
10
10
  }
@@ -1,116 +1,116 @@
1
- {
2
- "alternatives.all": "{{#label}} does not match all of the required types",
3
- "alternatives.any": "{{#label}} does not match any of the allowed types",
4
- "alternatives.match": "{{#label}} does not match any of the allowed types",
5
- "alternatives.one": "{{#label}} matches more than one allowed type",
6
- "alternatives.types": "{{#label}} must be one of {{#types}}",
7
- "any.custom": "{{#label}} failed custom validation because {{#error.message}}",
8
- "any.default": "{{#label}} threw an error when running default method",
9
- "any.failover": "{{#label}} threw an error when running failover method",
10
- "any.invalid": "{{#label}} contains an invalid value",
11
- "any.only": "{{#label}} must be {if(#valids.length == 1, \"\", \"one of \")}{{#valids}}",
12
- "any.ref": "{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}",
13
- "any.required": "{{#label}} is required",
14
- "any.unknown": "{{#label}} is not allowed",
15
- "array.base": "{{#label}} must be an array",
16
- "array.excludes": "{{#label}} contains an excluded value",
17
- "array.hasKnown": "{{#label}} does not contain at least one required match for type {:#patternLabel}",
18
- "array.hasUnknown": "{{#label}} does not contain at least one required match",
19
- "array.includes": "{{#label}} does not match any of the allowed types",
20
- "array.includesRequiredBoth": "{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)",
21
- "array.includesRequiredKnowns": "{{#label}} does not contain {{#knownMisses}}",
22
- "array.includesRequiredUnknowns": "{{#label}} does not contain {{#unknownMisses}} required value(s)",
23
- "array.length": "{{#label}} must contain {{#limit}} items",
24
- "array.max": "{{#label}} must contain less than or equal to {{#limit}} items",
25
- "array.min": "{{#label}} must contain at least {{#limit}} items",
26
- "array.orderedLength": "{{#label}} must contain at most {{#limit}} items",
27
- "array.sort": "{{#label}} must be sorted in {#order} order by {{#by}}",
28
- "array.sort.mismatching": "{{#label}} cannot be sorted due to mismatching types",
29
- "array.sort.unsupported": "{{#label}} cannot be sorted due to unsupported type {#type}",
30
- "array.sparse": "{{#label}} must not be a sparse array item",
31
- "array.unique": "{{#label}} contains a duplicate value",
32
- "binary.base": "{{#label}} must be a buffer or a string",
33
- "binary.length": "{{#label}} must be {{#limit}} bytes",
34
- "binary.max": "{{#label}} must be less than or equal to {{#limit}} bytes",
35
- "binary.min": "{{#label}} must be at least {{#limit}} bytes",
36
- "boolean.base": "{{#label}} must be a boolean",
37
- "date.base": "{{#label}} must be a valid date",
38
- "date.format": "{{#label}} must be in {msg(\"date.format.\" + #format) || #format} format",
39
- "date.greater": "{{#label}} must be greater than {{:#limit}}",
40
- "date.less": "{{#label}} must be less than {{:#limit}}",
41
- "date.max": "{{#label}} must be less than or equal to {{:#limit}}",
42
- "date.min": "{{#label}} must be greater than or equal to {{:#limit}}",
43
- "date.format.iso": "ISO 8601 date",
44
- "date.format.javascript": "timestamp or number of milliseconds",
45
- "date.format.unix": "timestamp or number of seconds",
46
- "function.arity": "{{#label}} must have an arity of {{#n}}",
47
- "function.class": "{{#label}} must be a class",
48
- "function.maxArity": "{{#label}} must have an arity lesser or equal to {{#n}}",
49
- "function.minArity": "{{#label}} must have an arity greater or equal to {{#n}}",
50
- "object.and": "{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}",
51
- "object.assert": "{{#label}} is invalid because {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
- "object.base": "{{#label}} must be of type {{#type}}",
53
- "object.instance": "{{#label}} must be an instance of {{:#type}}",
54
- "object.length": "{{#label}} must have {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
55
- "object.max": "{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
56
- "object.min": "{{#label}} must have at least {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
57
- "object.missing": "{{#label}} must contain at least one of {{#peersWithLabels}}",
58
- "object.nand": "{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}",
59
- "object.oxor": "{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}",
60
- "object.pattern.match": "{{#label}} keys failed to match pattern requirements",
61
- "object.refType": "{{#label}} must be a Joi reference",
62
- "object.regex": "{{#label}} must be a RegExp object",
63
- "object.rename.multiple": "{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}",
64
- "object.rename.override": "{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists",
65
- "object.schema": "{{#label}} must be a Joi schema of {{#type}} type",
66
- "object.unknown": "{{#label}} is not allowed",
67
- "object.with": "{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}",
68
- "object.without": "{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}",
69
- "object.xor": "{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}",
70
- "number.base": "{{#label}} must be a number",
71
- "number.greater": "{{#label}} must be greater than {{#limit}}",
72
- "number.infinity": "{{#label}} cannot be infinity",
73
- "number.integer": "{{#label}} must be an integer",
74
- "number.less": "{{#label}} must be less than {{#limit}}",
75
- "number.max": "{{#label}} must be less than or equal to {{#limit}}",
76
- "number.min": "{{#label}} must be greater than or equal to {{#limit}}",
77
- "number.multiple": "{{#label}} must be a multiple of {{#multiple}}",
78
- "number.negative": "{{#label}} must be a negative number",
79
- "number.port": "{{#label}} must be a valid port",
80
- "number.positive": "{{#label}} must be a positive number",
81
- "number.precision": "{{#label}} must have no more than {{#limit}} decimal places",
82
- "number.unsafe": "{{#label}} must be a safe number",
83
- "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
- "string.base": "{{#label}} must be a string",
85
- "string.base64": "{{#label}} must be a valid base64 string",
86
- "string.creditCard": "{{#label}} must be a credit card",
87
- "string.dataUri": "{{#label}} must be a valid dataUri string",
88
- "string.domain": "{{#label}} must contain a valid domain name",
89
- "string.email": "{{#label}} must be a valid email",
90
- "string.empty": "{{#label}} is not allowed to be empty",
91
- "string.guid": "{{#label}} must be a valid GUID",
92
- "string.hex": "{{#label}} must only contain hexadecimal characters",
93
- "string.hexAlign": "{{#label}} hex decoded representation must be byte aligned",
94
- "string.hostname": "{{#label}} must be a valid hostname",
95
- "string.ip": "{{#label}} must be a valid ip address with a {{#cidr}} CIDR",
96
- "string.ipVersion": "{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR",
97
- "string.isoDate": "{{#label}} must be in iso format",
98
- "string.isoDuration": "{{#label}} must be a valid ISO 8601 duration",
99
- "string.length": "{{#label}} length must be {{#limit}} characters long",
100
- "string.lowercase": "{{#label}} must only contain lowercase characters",
101
- "string.max": "{{#label}} length must be less than or equal to {{#limit}} characters long",
102
- "string.min": "{{#label}} length must be at least {{#limit}} characters long",
103
- "string.normalize": "{{#label}} must be unicode normalized in the {{#form}} form",
104
- "string.token": "{{#label}} must only contain alpha-numeric and underscore characters",
105
- "string.pattern.base": "{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}",
106
- "string.pattern.name": "{{#label}} with value {:[.]} fails to match the {{#name}} pattern",
107
- "string.pattern.invert.base": "{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}",
108
- "string.pattern.invert.name": "{{#label}} with value {:[.]} matches the inverted {{#name}} pattern",
109
- "string.trim": "{{#label}} must not have leading or trailing whitespace",
110
- "string.uri": "{{#label}} must be a valid uri",
111
- "string.uriCustomScheme": "{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern",
112
- "string.uriRelativeOnly": "{{#label}} must be a valid relative uri",
113
- "string.uppercase": "{{#label}} must only contain uppercase characters",
114
- "symbol.base": "{{#label}} must be a symbol",
115
- "symbol.map": "{{#label}} must be one of {{#map}}"
116
- }
1
+ {
2
+ "alternatives.all": "{{#label}} does not match all of the required types",
3
+ "alternatives.any": "{{#label}} does not match any of the allowed types",
4
+ "alternatives.match": "{{#label}} does not match any of the allowed types",
5
+ "alternatives.one": "{{#label}} matches more than one allowed type",
6
+ "alternatives.types": "{{#label}} must be one of {{#types}}",
7
+ "any.custom": "{{#label}} failed custom validation because {{#error.message}}",
8
+ "any.default": "{{#label}} threw an error when running default method",
9
+ "any.failover": "{{#label}} threw an error when running failover method",
10
+ "any.invalid": "{{#label}} contains an invalid value",
11
+ "any.only": "{{#label}} must be {if(#valids.length == 1, \"\", \"one of \")}{{#valids}}",
12
+ "any.ref": "{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}",
13
+ "any.required": "{{#label}} is required",
14
+ "any.unknown": "{{#label}} is not allowed",
15
+ "array.base": "{{#label}} must be an array",
16
+ "array.excludes": "{{#label}} contains an excluded value",
17
+ "array.hasKnown": "{{#label}} does not contain at least one required match for type {:#patternLabel}",
18
+ "array.hasUnknown": "{{#label}} does not contain at least one required match",
19
+ "array.includes": "{{#label}} does not match any of the allowed types",
20
+ "array.includesRequiredBoth": "{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)",
21
+ "array.includesRequiredKnowns": "{{#label}} does not contain {{#knownMisses}}",
22
+ "array.includesRequiredUnknowns": "{{#label}} does not contain {{#unknownMisses}} required value(s)",
23
+ "array.length": "{{#label}} must contain {{#limit}} items",
24
+ "array.max": "{{#label}} must contain less than or equal to {{#limit}} items",
25
+ "array.min": "{{#label}} must contain at least {{#limit}} items",
26
+ "array.orderedLength": "{{#label}} must contain at most {{#limit}} items",
27
+ "array.sort": "{{#label}} must be sorted in {#order} order by {{#by}}",
28
+ "array.sort.mismatching": "{{#label}} cannot be sorted due to mismatching types",
29
+ "array.sort.unsupported": "{{#label}} cannot be sorted due to unsupported type {#type}",
30
+ "array.sparse": "{{#label}} must not be a sparse array item",
31
+ "array.unique": "{{#label}} contains a duplicate value",
32
+ "binary.base": "{{#label}} must be a buffer or a string",
33
+ "binary.length": "{{#label}} must be {{#limit}} bytes",
34
+ "binary.max": "{{#label}} must be less than or equal to {{#limit}} bytes",
35
+ "binary.min": "{{#label}} must be at least {{#limit}} bytes",
36
+ "boolean.base": "{{#label}} must be a boolean",
37
+ "date.base": "{{#label}} must be a valid date",
38
+ "date.format": "{{#label}} must be in {msg(\"date.format.\" + #format) || #format} format",
39
+ "date.greater": "{{#label}} must be greater than {{:#limit}}",
40
+ "date.less": "{{#label}} must be less than {{:#limit}}",
41
+ "date.max": "{{#label}} must be less than or equal to {{:#limit}}",
42
+ "date.min": "{{#label}} must be greater than or equal to {{:#limit}}",
43
+ "date.format.iso": "ISO 8601 date",
44
+ "date.format.javascript": "timestamp or number of milliseconds",
45
+ "date.format.unix": "timestamp or number of seconds",
46
+ "function.arity": "{{#label}} must have an arity of {{#n}}",
47
+ "function.class": "{{#label}} must be a class",
48
+ "function.maxArity": "{{#label}} must have an arity lesser or equal to {{#n}}",
49
+ "function.minArity": "{{#label}} must have an arity greater or equal to {{#n}}",
50
+ "object.and": "{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}",
51
+ "object.assert": "{{#label}} is invalid because {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
+ "object.base": "{{#label}} must be of type {{#type}}",
53
+ "object.instance": "{{#label}} must be an instance of {{:#type}}",
54
+ "object.length": "{{#label}} must have {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
55
+ "object.max": "{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
56
+ "object.min": "{{#label}} must have at least {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
57
+ "object.missing": "{{#label}} must contain at least one of {{#peersWithLabels}}",
58
+ "object.nand": "{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}",
59
+ "object.oxor": "{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}",
60
+ "object.pattern.match": "{{#label}} keys failed to match pattern requirements",
61
+ "object.refType": "{{#label}} must be a Joi reference",
62
+ "object.regex": "{{#label}} must be a RegExp object",
63
+ "object.rename.multiple": "{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}",
64
+ "object.rename.override": "{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists",
65
+ "object.schema": "{{#label}} must be a Joi schema of {{#type}} type",
66
+ "object.unknown": "{{#label}} is not allowed",
67
+ "object.with": "{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}",
68
+ "object.without": "{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}",
69
+ "object.xor": "{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}",
70
+ "number.base": "{{#label}} must be a number",
71
+ "number.greater": "{{#label}} must be greater than {{#limit}}",
72
+ "number.infinity": "{{#label}} cannot be infinity",
73
+ "number.integer": "{{#label}} must be an integer",
74
+ "number.less": "{{#label}} must be less than {{#limit}}",
75
+ "number.max": "{{#label}} must be less than or equal to {{#limit}}",
76
+ "number.min": "{{#label}} must be greater than or equal to {{#limit}}",
77
+ "number.multiple": "{{#label}} must be a multiple of {{#multiple}}",
78
+ "number.negative": "{{#label}} must be a negative number",
79
+ "number.port": "{{#label}} must be a valid port",
80
+ "number.positive": "{{#label}} must be a positive number",
81
+ "number.precision": "{{#label}} must have no more than {{#limit}} decimal places",
82
+ "number.unsafe": "{{#label}} must be a safe number",
83
+ "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
+ "string.base": "{{#label}} must be a string",
85
+ "string.base64": "{{#label}} must be a valid base64 string",
86
+ "string.creditCard": "{{#label}} must be a credit card",
87
+ "string.dataUri": "{{#label}} must be a valid dataUri string",
88
+ "string.domain": "{{#label}} must contain a valid domain name",
89
+ "string.email": "{{#label}} must be a valid email",
90
+ "string.empty": "{{#label}} is not allowed to be empty",
91
+ "string.guid": "{{#label}} must be a valid GUID",
92
+ "string.hex": "{{#label}} must only contain hexadecimal characters",
93
+ "string.hexAlign": "{{#label}} hex decoded representation must be byte aligned",
94
+ "string.hostname": "{{#label}} must be a valid hostname",
95
+ "string.ip": "{{#label}} must be a valid ip address with a {{#cidr}} CIDR",
96
+ "string.ipVersion": "{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR",
97
+ "string.isoDate": "{{#label}} must be in iso format",
98
+ "string.isoDuration": "{{#label}} must be a valid ISO 8601 duration",
99
+ "string.length": "{{#label}} length must be {{#limit}} characters long",
100
+ "string.lowercase": "{{#label}} must only contain lowercase characters",
101
+ "string.max": "{{#label}} length must be less than or equal to {{#limit}} characters long",
102
+ "string.min": "{{#label}} length must be at least {{#limit}} characters long",
103
+ "string.normalize": "{{#label}} must be unicode normalized in the {{#form}} form",
104
+ "string.token": "{{#label}} must only contain alpha-numeric and underscore characters",
105
+ "string.pattern.base": "{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}",
106
+ "string.pattern.name": "{{#label}} with value {:[.]} fails to match the {{#name}} pattern",
107
+ "string.pattern.invert.base": "{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}",
108
+ "string.pattern.invert.name": "{{#label}} with value {:[.]} matches the inverted {{#name}} pattern",
109
+ "string.trim": "{{#label}} must not have leading or trailing whitespace",
110
+ "string.uri": "{{#label}} must be a valid uri",
111
+ "string.uriCustomScheme": "{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern",
112
+ "string.uriRelativeOnly": "{{#label}} must be a valid relative uri",
113
+ "string.uppercase": "{{#label}} must only contain uppercase characters",
114
+ "symbol.base": "{{#label}} must be a symbol",
115
+ "symbol.map": "{{#label}} must be one of {{#map}}"
116
+ }
@@ -1,116 +1,116 @@
1
- {
2
- "alternatives.all": "{{#label}} 不能匹配上所以可选项",
3
- "alternatives.any": "{{#label}} 不能匹配上任何可选项",
4
- "alternatives.match": "{{#label}} 不能匹配上任何可选项",
5
- "alternatives.one": "{{#label}} 匹配超过一个可选项",
6
- "alternatives.types": "{{#label}} 必须是 {{#types}}",
7
- "any.custom": "{{#label}} 自定义校验失败,原因为 {{#error.message}}",
8
- "any.default": "{{#label}} 运行默认函数时出错",
9
- "any.failover": "{{#label}} 运行 failover 函数时出错",
10
- "any.invalid": "{{#label}} 不是可选值",
11
- "any.only": "{{#label}} 必须是 {{#valids}} {if(#valids.length == 1, \"\", \"中的一个\")}",
12
- "any.ref": "{{#label}} {{#arg}} 引用 {{:#ref}} 其中 {{#reason}}",
13
- "any.required": "{{#label}} 不能为空",
14
- "any.unknown": "{{#label}} 参数错误",
15
- "array.base": "{{#label}} 必须是数组",
16
- "array.excludes": "{{#label}} 包含非法的值",
17
- "array.hasKnown": "{{#label}} 中至少一个类型为 {:#patternLabel} 的选项",
18
- "array.hasUnknown": "{{#label}} 中至少有一个选项",
19
- "array.includes": "{{#label}} 不能匹配任何可选项",
20
- "array.includesRequiredBoth": "{{#label}} 不包含 {{#knownMisses}} 及 {{#unknownMisses}} 个必选项",
21
- "array.includesRequiredKnowns": "{{#label}} 不包含 {{#knownMisses}} 等必选项",
22
- "array.includesRequiredUnknowns": "{{#label}} 不包含 {{#unknownMisses}} 个必选项",
23
- "array.length": "{{#label}} 必须正好包含 {{#limit}} 个成员",
24
- "array.max": "{{#label}} 最多包含 {{#limit}} 个成员",
25
- "array.min": "{{#label}} 至少包含 {{#limit}} 个成员",
26
- "array.orderedLength": "{{#label}} 必须至少包含 {{#limit}} 个成员",
27
- "array.sort": "{{#label}} 必须按 {#order} 顺序按 {{#by}} 排序",
28
- "array.sort.mismatching": "{{#label}} 由于类型不匹配而无法排序",
29
- "array.sort.unsupported": "{{#label}} 类型 {#type} 不支持排序",
30
- "array.sparse": "{{#label}} 不能包含未定义成员",
31
- "array.unique": "{{#label}} 是重复的成员",
32
- "binary.base": "{{#label}} 必须是一段内容",
33
- "binary.length": "{{#label}} 至少包含 {{#limit}} 个字节",
34
- "binary.max": "{{#label}} 最多包含 {{#limit}} 个字节",
35
- "binary.min": "{{#label}} 至少包含 {{#limit}} 个字节",
36
- "boolean.base": "{{#label}} 必须是 bool 值",
37
- "date.base": "{{#label}} 必须是毫秒数或者有效的时间字符串",
38
- "date.format": "{{#label}} 必须是以下格式的字符串 {msg(\"date.format.\" + #format) || #format}",
39
- "date.greater": "{{#label}} 必须晚于 {{:#limit}}",
40
- "date.less": "{{#label}} 必须早于 {{:#limit}}",
41
- "date.max": "{{#label}} 必须早于 {{:#limit}}",
42
- "date.min": "{{#label}} 必须晚于 {{:#limit}}",
43
- "date.format.iso": "必须是有效的\"ISO 8601\"格式的时间",
44
- "date.format.javascript": "必须是有效的时间戳或者毫秒数",
45
- "date.format.unix": "必须是有效的时间戳或者秒数",
46
- "function.arity": "{{#label}} 必须正好拥有 {{#n}} 个参数",
47
- "function.class": "{{#label}} 必须是对象类",
48
- "function.maxArity": "{{#label}} 必须最多拥有 {{#n}} 个参数",
49
- "function.minArity": "{{#label}} 必须至少拥有 {{#n}} 个参数",
50
- "object.and": "{{#label}} 当前 {{#presentWithLabels}} 需要有对应的 {{#missingWithLabels}}",
51
- "object.assert": "{{#label}} 无效,原因为 {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
- "object.base": "{{#label}} 必须是一个对象 {{#type}}",
53
- "object.instance": "{{#label}} 必须是一个 {{:#type}} 的实例",
54
- "object.length": "{{#label}} 必须正好包含 {{#limit}} 个子对象",
55
- "object.max": "{{#label}} 最多包含 {{#limit}} 个子对象",
56
- "object.min": "{{#label}} 至少包含 {{#limit}} 个子对象",
57
- "object.missing": "{{#label}} 没有对应的 {{#peersWithLabels}}",
58
- "object.nand": "{{:#mainWithLabel}} 不得与 {{#peersWithLabels}} 同时存在",
59
- "object.oxor": "{{#label}} 和 {{#peerWithLabels}} 有冲突",
60
- "object.pattern.match": "{{#label}} 键匹配失败",
61
- "object.refType": "{{#label}} 必须是 Joi 引用",
62
- "object.regex": "{{#label}} 必须是正则对象",
63
- "object.rename.multiple": "{{#label}} 无法重命名 {{:#from}} 因为多次重命名被禁用并且另一个键已经重命名为 {{:#to}}",
64
- "object.rename.override": "{{#label}} 无法重命名 {{:#from}} 因为覆盖被禁用并且目标 {{:#to}} 存在",
65
- "object.schema": "{{#label}} 必须是 {{#type}} 类型的 Joi Schema",
66
- "object.unknown": "{{#label}} 不被允许",
67
- "object.with": "{{:#mainWithLabel}} 缺少必需的对等方 {{:#peerWithLabel}}",
68
- "object.without": "{{:#mainWithLabel}} 与禁止的节点冲突 {{:#peerWithLabel}}",
69
- "object.xor": "{{#label}} 包含独占对等体之间的冲突 {{#peersWithLabels}}",
70
- "number.base": "{{#label}} 必须是数值",
71
- "number.greater": "{{#label}} 必须大于 {{#limit}}",
72
- "number.infinity": "{{#label}} 不能是无穷大",
73
- "number.integer": "{{#label}} 必须是整数",
74
- "number.less": "{{#label}} 必须小于 {{#limit}}",
75
- "number.max": "{{#label}} 必须小于或等于 {{#limit}}",
76
- "number.min": "{{#label}} 必须大于或等于 {{#limit}}",
77
- "number.multiple": "{{#label}} 必须是 {{#multiple}} 的倍数",
78
- "number.negative": "{{#label}} 必须是负数",
79
- "number.port": "{{#label}} 必须是有效的端口号",
80
- "number.positive": "{{#label}} 必须是正数",
81
- "number.precision": "{{#label}} 必须有 {{#limit}} 位小数",
82
- "number.unsafe": "{{#label}} 必须是安全号码",
83
- "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
- "string.base": "{{#label}} 必须是字符串",
85
- "string.base64": "{{#label}} 必须是有效的 base64 字符串",
86
- "string.creditCard": "{{#label}} 必须是有效的信用卡号",
87
- "string.dataUri": "{{#label}} 必须是有效的 dataUri 字符串",
88
- "string.domain": "{{#label}} 必须包含有效的域名",
89
- "string.email": "{{#label}} 必须是有效的电子邮件",
90
- "string.empty": "{{#label}} 不能为空",
91
- "string.guid": "{{#label}} 必须是有效的 GUID",
92
- "string.hex": "{{#label}} 只能包含十六进制字符",
93
- "string.hexAlign": "{{#label}} 十六进制解码表示必须字节对齐",
94
- "string.hostname": "{{#label}} 必须是有效的主机名",
95
- "string.ip": "{{#label}} 必须是具有 {{#cidr}} CIDR 的有效 IP 地址",
96
- "string.ipVersion": "{{#label}} 必须是以下版本之一的有效 IP 地址 {{#version}} 和 {{#cidr}} CIDR",
97
- "string.isoDate": "{{#label}} 必须是 iso 格式",
98
- "string.isoDuration": "{{#label}} 必须是有效的 ISO 8601 持续时间",
99
- "string.length": "{{#label}} 长度必须为 {{#limit}} 个字符长",
100
- "string.lowercase": "{{#label}} 只能包含小写字符",
101
- "string.max": "{{#label}} 长度必须小于或等于 {{#limit}} 个字符长",
102
- "string.min": "{{#label}} 长度必须至少为 {{#limit}} 个字符长",
103
- "string.normalize": "{{#label}} 必须以 {{#form}} 形式进行 unicode 规范化",
104
- "string.token": "{{#label}} 只能包含字母数字和下划线字符",
105
- "string.pattern.base": "{{#label}} 的值为 {:[.]} 未能匹配所需的模式:{{#regex}}",
106
- "string.pattern.name": "{{#label}} 值为 {:[.]} 未能匹配 {{#name}} 模式",
107
- "string.pattern.invert.base": "{{#label}} 与值 {:[.]} 匹配反转模式:{{#regex}}",
108
- "string.pattern.invert.name": "{{#label}} 与值 {:[.]} 匹配倒置的 {{#name}} 模式",
109
- "string.trim": "{{#label}} 不得前后空格",
110
- "string.uri": "{{#label}} 必须是有效的 uri",
111
- "string.uriCustomScheme": "{{#label}} 必须是有效的 uri,其方案与 {{#scheme}} 模式匹配",
112
- "string.uriRelativeOnly": "{{#label}} 必须是有效的相对 uri",
113
- "string.uppercase": "{{#label}} 只能包含大写字符",
114
- "symbol.base": "{{#label}} 必须是符号",
115
- "symbol.map": "{{#label}} 必须是 {{#map}} 之一"
116
- }
1
+ {
2
+ "alternatives.all": "{{#label}} 不能匹配上所以可选项",
3
+ "alternatives.any": "{{#label}} 不能匹配上任何可选项",
4
+ "alternatives.match": "{{#label}} 不能匹配上任何可选项",
5
+ "alternatives.one": "{{#label}} 匹配超过一个可选项",
6
+ "alternatives.types": "{{#label}} 必须是 {{#types}}",
7
+ "any.custom": "{{#label}} 自定义校验失败,原因为 {{#error.message}}",
8
+ "any.default": "{{#label}} 运行默认函数时出错",
9
+ "any.failover": "{{#label}} 运行 failover 函数时出错",
10
+ "any.invalid": "{{#label}} 不是可选值",
11
+ "any.only": "{{#label}} 必须是 {{#valids}} {if(#valids.length == 1, \"\", \"中的一个\")}",
12
+ "any.ref": "{{#label}} {{#arg}} 引用 {{:#ref}} 其中 {{#reason}}",
13
+ "any.required": "{{#label}} 不能为空",
14
+ "any.unknown": "{{#label}} 参数错误",
15
+ "array.base": "{{#label}} 必须是数组",
16
+ "array.excludes": "{{#label}} 包含非法的值",
17
+ "array.hasKnown": "{{#label}} 中至少一个类型为 {:#patternLabel} 的选项",
18
+ "array.hasUnknown": "{{#label}} 中至少有一个选项",
19
+ "array.includes": "{{#label}} 不能匹配任何可选项",
20
+ "array.includesRequiredBoth": "{{#label}} 不包含 {{#knownMisses}} 及 {{#unknownMisses}} 个必选项",
21
+ "array.includesRequiredKnowns": "{{#label}} 不包含 {{#knownMisses}} 等必选项",
22
+ "array.includesRequiredUnknowns": "{{#label}} 不包含 {{#unknownMisses}} 个必选项",
23
+ "array.length": "{{#label}} 必须正好包含 {{#limit}} 个成员",
24
+ "array.max": "{{#label}} 最多包含 {{#limit}} 个成员",
25
+ "array.min": "{{#label}} 至少包含 {{#limit}} 个成员",
26
+ "array.orderedLength": "{{#label}} 必须至少包含 {{#limit}} 个成员",
27
+ "array.sort": "{{#label}} 必须按 {#order} 顺序按 {{#by}} 排序",
28
+ "array.sort.mismatching": "{{#label}} 由于类型不匹配而无法排序",
29
+ "array.sort.unsupported": "{{#label}} 类型 {#type} 不支持排序",
30
+ "array.sparse": "{{#label}} 不能包含未定义成员",
31
+ "array.unique": "{{#label}} 是重复的成员",
32
+ "binary.base": "{{#label}} 必须是一段内容",
33
+ "binary.length": "{{#label}} 至少包含 {{#limit}} 个字节",
34
+ "binary.max": "{{#label}} 最多包含 {{#limit}} 个字节",
35
+ "binary.min": "{{#label}} 至少包含 {{#limit}} 个字节",
36
+ "boolean.base": "{{#label}} 必须是 bool 值",
37
+ "date.base": "{{#label}} 必须是毫秒数或者有效的时间字符串",
38
+ "date.format": "{{#label}} 必须是以下格式的字符串 {msg(\"date.format.\" + #format) || #format}",
39
+ "date.greater": "{{#label}} 必须晚于 {{:#limit}}",
40
+ "date.less": "{{#label}} 必须早于 {{:#limit}}",
41
+ "date.max": "{{#label}} 必须早于 {{:#limit}}",
42
+ "date.min": "{{#label}} 必须晚于 {{:#limit}}",
43
+ "date.format.iso": "必须是有效的\"ISO 8601\"格式的时间",
44
+ "date.format.javascript": "必须是有效的时间戳或者毫秒数",
45
+ "date.format.unix": "必须是有效的时间戳或者秒数",
46
+ "function.arity": "{{#label}} 必须正好拥有 {{#n}} 个参数",
47
+ "function.class": "{{#label}} 必须是对象类",
48
+ "function.maxArity": "{{#label}} 必须最多拥有 {{#n}} 个参数",
49
+ "function.minArity": "{{#label}} 必须至少拥有 {{#n}} 个参数",
50
+ "object.and": "{{#label}} 当前 {{#presentWithLabels}} 需要有对应的 {{#missingWithLabels}}",
51
+ "object.assert": "{{#label}} 无效,原因为 {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
+ "object.base": "{{#label}} 必须是一个对象 {{#type}}",
53
+ "object.instance": "{{#label}} 必须是一个 {{:#type}} 的实例",
54
+ "object.length": "{{#label}} 必须正好包含 {{#limit}} 个子对象",
55
+ "object.max": "{{#label}} 最多包含 {{#limit}} 个子对象",
56
+ "object.min": "{{#label}} 至少包含 {{#limit}} 个子对象",
57
+ "object.missing": "{{#label}} 没有对应的 {{#peersWithLabels}}",
58
+ "object.nand": "{{:#mainWithLabel}} 不得与 {{#peersWithLabels}} 同时存在",
59
+ "object.oxor": "{{#label}} 和 {{#peerWithLabels}} 有冲突",
60
+ "object.pattern.match": "{{#label}} 键匹配失败",
61
+ "object.refType": "{{#label}} 必须是 Joi 引用",
62
+ "object.regex": "{{#label}} 必须是正则对象",
63
+ "object.rename.multiple": "{{#label}} 无法重命名 {{:#from}} 因为多次重命名被禁用并且另一个键已经重命名为 {{:#to}}",
64
+ "object.rename.override": "{{#label}} 无法重命名 {{:#from}} 因为覆盖被禁用并且目标 {{:#to}} 存在",
65
+ "object.schema": "{{#label}} 必须是 {{#type}} 类型的 Joi Schema",
66
+ "object.unknown": "{{#label}} 不被允许",
67
+ "object.with": "{{:#mainWithLabel}} 缺少必需的对等方 {{:#peerWithLabel}}",
68
+ "object.without": "{{:#mainWithLabel}} 与禁止的节点冲突 {{:#peerWithLabel}}",
69
+ "object.xor": "{{#label}} 包含独占对等体之间的冲突 {{#peersWithLabels}}",
70
+ "number.base": "{{#label}} 必须是数值",
71
+ "number.greater": "{{#label}} 必须大于 {{#limit}}",
72
+ "number.infinity": "{{#label}} 不能是无穷大",
73
+ "number.integer": "{{#label}} 必须是整数",
74
+ "number.less": "{{#label}} 必须小于 {{#limit}}",
75
+ "number.max": "{{#label}} 必须小于或等于 {{#limit}}",
76
+ "number.min": "{{#label}} 必须大于或等于 {{#limit}}",
77
+ "number.multiple": "{{#label}} 必须是 {{#multiple}} 的倍数",
78
+ "number.negative": "{{#label}} 必须是负数",
79
+ "number.port": "{{#label}} 必须是有效的端口号",
80
+ "number.positive": "{{#label}} 必须是正数",
81
+ "number.precision": "{{#label}} 必须有 {{#limit}} 位小数",
82
+ "number.unsafe": "{{#label}} 必须是安全号码",
83
+ "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
+ "string.base": "{{#label}} 必须是字符串",
85
+ "string.base64": "{{#label}} 必须是有效的 base64 字符串",
86
+ "string.creditCard": "{{#label}} 必须是有效的信用卡号",
87
+ "string.dataUri": "{{#label}} 必须是有效的 dataUri 字符串",
88
+ "string.domain": "{{#label}} 必须包含有效的域名",
89
+ "string.email": "{{#label}} 必须是有效的电子邮件",
90
+ "string.empty": "{{#label}} 不能为空",
91
+ "string.guid": "{{#label}} 必须是有效的 GUID",
92
+ "string.hex": "{{#label}} 只能包含十六进制字符",
93
+ "string.hexAlign": "{{#label}} 十六进制解码表示必须字节对齐",
94
+ "string.hostname": "{{#label}} 必须是有效的主机名",
95
+ "string.ip": "{{#label}} 必须是具有 {{#cidr}} CIDR 的有效 IP 地址",
96
+ "string.ipVersion": "{{#label}} 必须是以下版本之一的有效 IP 地址 {{#version}} 和 {{#cidr}} CIDR",
97
+ "string.isoDate": "{{#label}} 必须是 iso 格式",
98
+ "string.isoDuration": "{{#label}} 必须是有效的 ISO 8601 持续时间",
99
+ "string.length": "{{#label}} 长度必须为 {{#limit}} 个字符长",
100
+ "string.lowercase": "{{#label}} 只能包含小写字符",
101
+ "string.max": "{{#label}} 长度必须小于或等于 {{#limit}} 个字符长",
102
+ "string.min": "{{#label}} 长度必须至少为 {{#limit}} 个字符长",
103
+ "string.normalize": "{{#label}} 必须以 {{#form}} 形式进行 unicode 规范化",
104
+ "string.token": "{{#label}} 只能包含字母数字和下划线字符",
105
+ "string.pattern.base": "{{#label}} 的值为 {:[.]} 未能匹配所需的模式:{{#regex}}",
106
+ "string.pattern.name": "{{#label}} 值为 {:[.]} 未能匹配 {{#name}} 模式",
107
+ "string.pattern.invert.base": "{{#label}} 与值 {:[.]} 匹配反转模式:{{#regex}}",
108
+ "string.pattern.invert.name": "{{#label}} 与值 {:[.]} 匹配倒置的 {{#name}} 模式",
109
+ "string.trim": "{{#label}} 不得前后空格",
110
+ "string.uri": "{{#label}} 必须是有效的 uri",
111
+ "string.uriCustomScheme": "{{#label}} 必须是有效的 uri,其方案与 {{#scheme}} 模式匹配",
112
+ "string.uriRelativeOnly": "{{#label}} 必须是有效的相对 uri",
113
+ "string.uppercase": "{{#label}} 只能包含大写字符",
114
+ "symbol.base": "{{#label}} 必须是符号",
115
+ "symbol.map": "{{#label}} 必须是 {{#map}} 之一"
116
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/validator",
3
- "version": "3.4.8",
3
+ "version": "3.4.11",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
18
18
  },
19
19
  "dependencies": {
20
- "@anncic-api/core": "^3.4.8",
20
+ "@anncic-api/core": "^3.4.11",
21
21
  "@joi/date": "^2.1.0",
22
22
  "joi": "^17.11.0"
23
23
  },
@@ -26,5 +26,5 @@
26
26
  "javascript-obfuscator": "^4.0.2",
27
27
  "typescript": "^5.1.3"
28
28
  },
29
- "gitHead": "c9399a8f895a70af0f97577ca5c2e1107d159065"
29
+ "gitHead": "369834bf30838528573209b34e6b3d83bb18d3ce"
30
30
  }