@anncic-api/validator 1.0.11 → 1.0.14

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,15 +1,15 @@
1
1
  declare const _default: {
2
- validate: {
2
+ validator: {
3
3
  errorStatus: number;
4
4
  validationOptions: {};
5
5
  };
6
6
  i18n: {
7
7
  localeTable: {
8
8
  en_US: {
9
- validate: any;
9
+ validator: any;
10
10
  };
11
11
  zh_CN: {
12
- validate: any;
12
+ validator: any;
13
13
  };
14
14
  };
15
15
  };
@@ -1 +1 @@
1
- 'use strict';const a0_0x4c49da=a0_0x42ed;(function(_0x1a116c,_0x924d01){const _0x23865d=a0_0x42ed,_0x1b1759=_0x1a116c();while(!![]){try{const _0x7ced1=-parseInt(_0x23865d(0xaf))/0x1+parseInt(_0x23865d(0xb3))/0x2*(parseInt(_0x23865d(0xab))/0x3)+-parseInt(_0x23865d(0xb9))/0x4*(parseInt(_0x23865d(0xb1))/0x5)+parseInt(_0x23865d(0xb4))/0x6*(parseInt(_0x23865d(0xac))/0x7)+-parseInt(_0x23865d(0xb2))/0x8+-parseInt(_0x23865d(0xaa))/0x9+parseInt(_0x23865d(0xb0))/0xa;if(_0x7ced1===_0x924d01)break;else _0x1b1759['push'](_0x1b1759['shift']());}catch(_0x395062){_0x1b1759['push'](_0x1b1759['shift']());}}}(a0_0x1887,0x4a24a));function a0_0x42ed(_0x494ba3,_0x36789c){const _0x1887d0=a0_0x1887();return a0_0x42ed=function(_0x42ed21,_0x5c38a6){_0x42ed21=_0x42ed21-0xaa;let _0x29d2e4=_0x1887d0[_0x42ed21];return _0x29d2e4;},a0_0x42ed(_0x494ba3,_0x36789c);}function a0_0x1887(){const _0x5b5069=['../exception/ValidatorError','../../locales/zh_CN.json','523273PChfcJ','9943170HjlqYa','5fDYFoa','469512hHnFsT','59476XgljpZ','12uozdnm','__esModule','ValidatorError','defineProperty','../../locales/en_US.json','2260252SMBgtO','3510684ZzMWOE','57zdQQzs','985082WisysV'];a0_0x1887=function(){return _0x5b5069;};return a0_0x1887();}Object[a0_0x4c49da(0xb7)](exports,a0_0x4c49da(0xb5),{'value':!![]});const ValidatorError_1=require(a0_0x4c49da(0xad));exports['default']={'validate':{'errorStatus':ValidatorError_1[a0_0x4c49da(0xb6)]['PARAMS'],'validationOptions':{}},'i18n':{'localeTable':{'en_US':{'validate':require(a0_0x4c49da(0xb8))},'zh_CN':{'validate':require(a0_0x4c49da(0xae))}}}};
1
+ 'use strict';function a0_0x269f(){const _0x30f4dc=['3439350JbTCMW','ValidatorError','1632762zGZgFI','645092VhxGpo','17950eSfubJ','PARAMS','19534031TFMcRg','35dXqYzR','defineProperty','12ZKWObx','734517TBHaQt','16IUCpjM','../../locales/zh_CN.json','../exception/ValidatorError','390uAYivY','47PcMHMn','159677oshSDs'];a0_0x269f=function(){return _0x30f4dc;};return a0_0x269f();}const a0_0x5ed4d5=a0_0x202e;(function(_0x145b98,_0x5a2bb6){const _0x3301fa=a0_0x202e,_0x1088a4=_0x145b98();while(!![]){try{const _0x583309=-parseInt(_0x3301fa(0x176))/0x1*(parseInt(_0x3301fa(0x17c))/0x2)+-parseInt(_0x3301fa(0x17a))/0x3+parseInt(_0x3301fa(0x17b))/0x4*(parseInt(_0x3301fa(0x16e))/0x5)+-parseInt(_0x3301fa(0x175))/0x6*(parseInt(_0x3301fa(0x177))/0x7)+-parseInt(_0x3301fa(0x172))/0x8*(-parseInt(_0x3301fa(0x171))/0x9)+parseInt(_0x3301fa(0x178))/0xa+-parseInt(_0x3301fa(0x16d))/0xb*(-parseInt(_0x3301fa(0x170))/0xc);if(_0x583309===_0x5a2bb6)break;else _0x1088a4['push'](_0x1088a4['shift']());}catch(_0x2b8986){_0x1088a4['push'](_0x1088a4['shift']());}}}(a0_0x269f,0xeb21b));function a0_0x202e(_0x1d639a,_0x3e9b45){const _0x269f5b=a0_0x269f();return a0_0x202e=function(_0x202ec7,_0x1c1265){_0x202ec7=_0x202ec7-0x16d;let _0x2cd288=_0x269f5b[_0x202ec7];return _0x2cd288;},a0_0x202e(_0x1d639a,_0x3e9b45);}Object[a0_0x5ed4d5(0x16f)](exports,'__esModule',{'value':!![]});const ValidatorError_1=require(a0_0x5ed4d5(0x174));exports['default']={'validator':{'errorStatus':ValidatorError_1[a0_0x5ed4d5(0x179)][a0_0x5ed4d5(0x17d)],'validationOptions':{}},'i18n':{'localeTable':{'en_US':{'validator':require('../../locales/en_US.json')},'zh_CN':{'validator':require(a0_0x5ed4d5(0x173))}}}};
@@ -1 +1 @@
1
- 'use strict';const a1_0x24b95d=a1_0xa4f8;(function(_0x122733,_0x335f9c){const _0x3bf7f1=a1_0xa4f8,_0x134871=_0x122733();while(!![]){try{const _0x14b281=parseInt(_0x3bf7f1(0x1b4))/0x1+parseInt(_0x3bf7f1(0x1df))/0x2*(-parseInt(_0x3bf7f1(0x1d0))/0x3)+parseInt(_0x3bf7f1(0x1d2))/0x4+parseInt(_0x3bf7f1(0x1cc))/0x5*(-parseInt(_0x3bf7f1(0x1b8))/0x6)+-parseInt(_0x3bf7f1(0x1ea))/0x7*(-parseInt(_0x3bf7f1(0x1d3))/0x8)+-parseInt(_0x3bf7f1(0x1c5))/0x9+parseInt(_0x3bf7f1(0x1dc))/0xa;if(_0x14b281===_0x335f9c)break;else _0x134871['push'](_0x134871['shift']());}catch(_0x3d64ee){_0x134871['push'](_0x134871['shift']());}}}(a1_0x2f85,0x75b8f));function a1_0x2f85(){const _0x3b3867=['getOwnPropertyDescriptor','@midwayjs/core','1206qZhHFC','ValidatorService','1650456QQtovT','2499304oLxvKS','method','__decorate','anncic-api:validator','@anncic-api/core','defineProperty','req','REQUEST_OBJ_CTX_KEY','splice','2271770ctwMpK','validateWithSchema','object','620pYLNnw','./service/ValidatorService','target','registerMethodHandler','metadata','CustomConfiguration','design:type','I18N_ATTR_KEY','undefined','@midwayjs/decorator','locale','7dQqoJH','prototype','length','__esModule','438253DZuHQw','getMethodParamTypes','params','VALIDATE_KEY','840156wZjONI','methodArgs','getAttr','find','Configuration','args','decorate','bound\x20dispatch','__metadata','decorator','getClassMetadata','@midwayjs/i18n','Inject','4532346LUifRp','param','res','request','MidwayDecoratorService','./config/config.default','function','10OsvkPU','body'];a1_0x2f85=function(){return _0x3b3867;};return a1_0x2f85();}function a1_0xa4f8(_0xbc305e,_0x2923eb){const _0x2f8507=a1_0x2f85();return a1_0xa4f8=function(_0xa4f88,_0x3f1dc3){_0xa4f88=_0xa4f88-0x1b1;let _0x42f1e7=_0x2f8507[_0xa4f88];return _0x42f1e7;},a1_0xa4f8(_0xbc305e,_0x2923eb);}var __decorate=this&&this[a1_0x24b95d(0x1d5)]||function(_0x5362e4,_0x35dff1,_0x40a6ed,_0x3b2e70){const _0x3770b9=a1_0x24b95d;var _0xaf21ca=arguments['length'],_0x409f05=_0xaf21ca<0x3?_0x35dff1:_0x3b2e70===null?_0x3b2e70=Object[_0x3770b9(0x1ce)](_0x35dff1,_0x40a6ed):_0x3b2e70,_0x73539a;if(typeof Reflect===_0x3770b9(0x1de)&&typeof Reflect[_0x3770b9(0x1be)]===_0x3770b9(0x1cb))_0x409f05=Reflect[_0x3770b9(0x1be)](_0x5362e4,_0x35dff1,_0x40a6ed,_0x3b2e70);else{for(var _0x324fc7=_0x5362e4[_0x3770b9(0x1b2)]-0x1;_0x324fc7>=0x0;_0x324fc7--)if(_0x73539a=_0x5362e4[_0x324fc7])_0x409f05=(_0xaf21ca<0x3?_0x73539a(_0x409f05):_0xaf21ca>0x3?_0x73539a(_0x35dff1,_0x40a6ed,_0x409f05):_0x73539a(_0x35dff1,_0x40a6ed))||_0x409f05;}return _0xaf21ca>0x3&&_0x409f05&&Object[_0x3770b9(0x1d8)](_0x35dff1,_0x40a6ed,_0x409f05),_0x409f05;},__metadata=this&&this[a1_0x24b95d(0x1c0)]||function(_0x467745,_0x4d3250){const _0x2e8798=a1_0x24b95d;if(typeof Reflect===_0x2e8798(0x1de)&&typeof Reflect[_0x2e8798(0x1e3)]===_0x2e8798(0x1cb))return Reflect[_0x2e8798(0x1e3)](_0x467745,_0x4d3250);};Object['defineProperty'](exports,a1_0x24b95d(0x1b3),{'value':!![]}),exports[a1_0x24b95d(0x1e4)]=void 0x0;const i18n_1=require(a1_0x24b95d(0x1c3)),core_1=require(a1_0x24b95d(0x1cf)),decorator_1=require(a1_0x24b95d(0x1e8)),interface_1=require('./interface'),ValidatorService_1=require(a1_0x24b95d(0x1e0)),i18n=require(a1_0x24b95d(0x1c3)),anncic=require(a1_0x24b95d(0x1d7)),ConfigDefault=require(a1_0x24b95d(0x1ca));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x47e848=a1_0x24b95d;this[_0x47e848(0x1c1)][_0x47e848(0x1e2)](interface_1[_0x47e848(0x1b7)],_0x3ec4e4=>{const _0x307fa1=_0x47e848,_0xda7ab0=_0x3ec4e4['metadata'],_0x323a3c=(0x0,decorator_1[_0x307fa1(0x1b5)])(_0x3ec4e4[_0x307fa1(0x1e1)],_0x3ec4e4['propertyName']);return{'before':_0x306a94=>{const _0x588b5f=_0x307fa1;var _0x483bdc,_0x185b23,_0x1f88b5,_0x446a54,_0x20a897,_0x5cecc7,_0x3ba3ea,_0x5637ab,_0x57f3f7,_0x38d294,_0x48eaf5,_0x4ab1ec,_0x28b565;const _0x1163b6=_0x306a94[_0x588b5f(0x1e1)][core_1[_0x588b5f(0x1da)]],_0x2524ac=Object['assign']({},((_0x483bdc=_0x1163b6===null||_0x1163b6===void 0x0?void 0x0:_0x1163b6[_0x588b5f(0x1c8)])===null||_0x483bdc===void 0x0?void 0x0:_0x483bdc['query'])||{},((_0x185b23=_0x1163b6===null||_0x1163b6===void 0x0?void 0x0:_0x1163b6['request'])===null||_0x185b23===void 0x0?void 0x0:_0x185b23[_0x588b5f(0x1cd)])||{}),_0x35d3ac=((0x0,decorator_1[_0x588b5f(0x1c2)])(interface_1['VALIDATE_KEY'],_0x306a94[_0x588b5f(0x1e1)])||[])[_0x588b5f(0x1bb)](_0x206d7c=>_0x206d7c[_0x588b5f(0x1d4)]==_0x306a94['methodName']);!(_0xda7ab0===null||_0xda7ab0===void 0x0?void 0x0:_0xda7ab0[_0x588b5f(0x1e9)])&&_0x1163b6&&_0x1163b6['getAttr']&&(_0xda7ab0[_0x588b5f(0x1e9)]=_0x1163b6[_0x588b5f(0x1ba)](i18n_1[_0x588b5f(0x1e6)]));for(let _0x216003=0x0;_0x216003<_0x323a3c[_0x588b5f(0x1b2)];_0x216003++){const _0x395374=_0x323a3c[_0x216003],_0xe2e2ba=this[_0x588b5f(0x1d1)]['getSchema'](_0x395374);if(_0xe2e2ba){if(typeof _0x306a94['args'][_0x216003]==_0x588b5f(0x1e7)||((_0x1f88b5=_0x306a94[_0x588b5f(0x1bd)][_0x216003])===null||_0x1f88b5===void 0x0?void 0x0:_0x1f88b5[_0x588b5f(0x1c8)])&&((_0x446a54=_0x306a94[_0x588b5f(0x1bd)][_0x216003])===null||_0x446a54===void 0x0?void 0x0:_0x446a54[_0x588b5f(0x1c7)])&&((_0x20a897=_0x306a94[_0x588b5f(0x1bd)][_0x216003])===null||_0x20a897===void 0x0?void 0x0:_0x20a897[_0x588b5f(0x1d9)]))_0x306a94[_0x588b5f(0x1bd)][_0x216003]=_0x2524ac;else((_0x5cecc7=_0x306a94['args'][_0x216003])===null||_0x5cecc7===void 0x0?void 0x0:_0x5cecc7['name'])==_0x588b5f(0x1bf)&&_0x306a94[_0x588b5f(0x1bd)][_0x588b5f(0x1db)](_0x216003,0x0,_0x2524ac);const _0x20c428=this[_0x588b5f(0x1d1)][_0x588b5f(0x1dd)](_0xe2e2ba,_0x306a94[_0x588b5f(0x1bd)][_0x216003],_0xda7ab0);_0x20c428&&(_0x306a94[_0x588b5f(0x1bd)][_0x216003]=_0x20c428);}else{if((_0x35d3ac===null||_0x35d3ac===void 0x0?void 0x0:_0x35d3ac[_0x588b5f(0x1b9)][_0x216003])&&((_0x3ba3ea=_0x306a94['args'][_0x216003])===null||_0x3ba3ea===void 0x0?void 0x0:_0x3ba3ea[_0x588b5f(0x1b6)])&&typeof _0x306a94['args'][_0x216003][_0x588b5f(0x1c6)]==_0x588b5f(0x1cb)&&((_0x5637ab=_0x1163b6===null||_0x1163b6===void 0x0?void 0x0:_0x1163b6[_0x588b5f(0x1b6)])===null||_0x5637ab===void 0x0?void 0x0:_0x5637ab[_0x35d3ac['methodArgs'][_0x216003]]))_0x306a94[_0x588b5f(0x1bd)][_0x216003]=_0x395374((_0x57f3f7=_0x1163b6===null||_0x1163b6===void 0x0?void 0x0:_0x1163b6['params'])===null||_0x57f3f7===void 0x0?void 0x0:_0x57f3f7[_0x35d3ac['methodArgs'][_0x216003]]);else(_0x35d3ac===null||_0x35d3ac===void 0x0?void 0x0:_0x35d3ac[_0x588b5f(0x1b9)][_0x216003])&&((_0x48eaf5=(_0x38d294=_0x306a94['args'][_0x216003])===null||_0x38d294===void 0x0?void 0x0:_0x38d294['params'])===null||_0x48eaf5===void 0x0?void 0x0:_0x48eaf5[_0x35d3ac[_0x588b5f(0x1b9)][_0x216003]])&&(_0x306a94['args'][_0x216003]=(_0x28b565=(_0x4ab1ec=_0x306a94[_0x588b5f(0x1bd)][_0x216003])===null||_0x4ab1ec===void 0x0?void 0x0:_0x4ab1ec[_0x588b5f(0x1b6)])===null||_0x28b565===void 0x0?void 0x0:_0x28b565[_0x35d3ac[_0x588b5f(0x1b9)][_0x216003]]);}}},'afterThrow':(_0x2fd820,_0x4b7876)=>{throw _0x4b7876;}};});}};__decorate([(0x0,decorator_1[a1_0x24b95d(0x1c4)])(),__metadata(a1_0x24b95d(0x1e5),core_1[a1_0x24b95d(0x1c9)])],CustomConfiguration[a1_0x24b95d(0x1b1)],a1_0x24b95d(0x1c1),void 0x0),__decorate([(0x0,decorator_1[a1_0x24b95d(0x1c4)])(),__metadata(a1_0x24b95d(0x1e5),ValidatorService_1[a1_0x24b95d(0x1d1)])],CustomConfiguration['prototype'],a1_0x24b95d(0x1d1),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x24b95d(0x1bc)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x24b95d(0x1d6),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x24b95d(0x1e4)]=CustomConfiguration;
1
+ 'use strict';const a1_0xbec577=a1_0x4b4c;(function(_0x495491,_0x5c332f){const _0x598c15=a1_0x4b4c,_0x43e3bc=_0x495491();while(!![]){try{const _0x2f892e=parseInt(_0x598c15(0x1db))/0x1+-parseInt(_0x598c15(0x1da))/0x2*(-parseInt(_0x598c15(0x1e1))/0x3)+-parseInt(_0x598c15(0x1cc))/0x4*(parseInt(_0x598c15(0x1d4))/0x5)+-parseInt(_0x598c15(0x1c8))/0x6+parseInt(_0x598c15(0x1c3))/0x7+parseInt(_0x598c15(0x1ec))/0x8+-parseInt(_0x598c15(0x1df))/0x9*(parseInt(_0x598c15(0x1d2))/0xa);if(_0x2f892e===_0x5c332f)break;else _0x43e3bc['push'](_0x43e3bc['shift']());}catch(_0x50b741){_0x43e3bc['push'](_0x43e3bc['shift']());}}}(a1_0x5359,0x72f88));function a1_0x4b4c(_0x4d6b21,_0x371feb){const _0x5359d=a1_0x5359();return a1_0x4b4c=function(_0x4b4ca5,_0x1f4165){_0x4b4ca5=_0x4b4ca5-0x1b8;let _0x16e3cc=_0x5359d[_0x4b4ca5];return _0x16e3cc;},a1_0x4b4c(_0x4d6b21,_0x371feb);}var __decorate=this&&this[a1_0xbec577(0x1cd)]||function(_0x307aef,_0x4a3fb8,_0x50b8d2,_0x2cd77b){const _0xb4f49a=a1_0xbec577;var _0x48f101=arguments[_0xb4f49a(0x1d0)],_0x21a06d=_0x48f101<0x3?_0x4a3fb8:_0x2cd77b===null?_0x2cd77b=Object['getOwnPropertyDescriptor'](_0x4a3fb8,_0x50b8d2):_0x2cd77b,_0x9d774e;if(typeof Reflect===_0xb4f49a(0x1d3)&&typeof Reflect[_0xb4f49a(0x1bb)]===_0xb4f49a(0x1dc))_0x21a06d=Reflect[_0xb4f49a(0x1bb)](_0x307aef,_0x4a3fb8,_0x50b8d2,_0x2cd77b);else{for(var _0x4e6543=_0x307aef[_0xb4f49a(0x1d0)]-0x1;_0x4e6543>=0x0;_0x4e6543--)if(_0x9d774e=_0x307aef[_0x4e6543])_0x21a06d=(_0x48f101<0x3?_0x9d774e(_0x21a06d):_0x48f101>0x3?_0x9d774e(_0x4a3fb8,_0x50b8d2,_0x21a06d):_0x9d774e(_0x4a3fb8,_0x50b8d2))||_0x21a06d;}return _0x48f101>0x3&&_0x21a06d&&Object[_0xb4f49a(0x1ea)](_0x4a3fb8,_0x50b8d2,_0x21a06d),_0x21a06d;},__metadata=this&&this[a1_0xbec577(0x1ef)]||function(_0x35e382,_0x636843){const _0x2c5c7b=a1_0xbec577;if(typeof Reflect==='object'&&typeof Reflect[_0x2c5c7b(0x1b9)]===_0x2c5c7b(0x1dc))return Reflect['metadata'](_0x35e382,_0x636843);};Object[a1_0xbec577(0x1ea)](exports,a1_0xbec577(0x1c4),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x5359(){const _0x330ab0=['Inject','splice','metadata','target','decorate','args','res','REQUEST_OBJ_CTX_KEY','req','./interface','getClassMetadata','methodName','5514670iLFVNP','__esModule','@anncic-api/core','I18N_ATTR_KEY','@midwayjs/decorator','2572134zCZKbi','method','assign','design:type','12whHWbX','__decorate','decorator','prototype','length','onReady','200GAdvvP','object','132875rwRkwN','bound\x20dispatch','locale','registerMethodHandler','./service/ValidatorService','getMethodParamTypes','138APiyql','941367MLpYGQ','function','methodArgs','undefined','852282ATjUGk','propertyName','30081PIFUSK','Configuration','@midwayjs/core','getAttr','request','validator','ValidatorService','@midwayjs/i18n','body','defineProperty','params','3618032noupcS','MidwayDecoratorService','query','__metadata','VALIDATOR_KEY','getSchema'];a1_0x5359=function(){return _0x330ab0;};return a1_0x5359();}const i18n_1=require(a1_0xbec577(0x1e8)),core_1=require(a1_0xbec577(0x1e3)),decorator_1=require(a1_0xbec577(0x1c7)),interface_1=require(a1_0xbec577(0x1c0)),ValidatorService_1=require(a1_0xbec577(0x1d8)),i18n=require(a1_0xbec577(0x1e8)),anncic=require(a1_0xbec577(0x1c5)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async[a1_0xbec577(0x1d1)](){const _0x5e13b3=a1_0xbec577;this[_0x5e13b3(0x1ce)][_0x5e13b3(0x1d7)](interface_1[_0x5e13b3(0x1f0)],_0x493021=>{const _0x48fcee=_0x5e13b3,_0x14d5c0=_0x493021[_0x48fcee(0x1b9)],_0x450826=(0x0,decorator_1[_0x48fcee(0x1d9)])(_0x493021[_0x48fcee(0x1ba)],_0x493021[_0x48fcee(0x1e0)]);return{'before':_0xaf2d77=>{const _0x45bfd0=_0x48fcee;var _0x33b90b,_0xba3f94,_0x4b0492,_0x106fdb,_0x2034c3,_0x44f113,_0x4fdd95,_0x1593ba,_0x29e011,_0xc6330c,_0x4205c4,_0x1f5fec,_0x51d39c;const _0x4d2816=_0xaf2d77[_0x45bfd0(0x1ba)][core_1[_0x45bfd0(0x1be)]],_0x534ebf=Object[_0x45bfd0(0x1ca)]({},((_0x33b90b=_0x4d2816===null||_0x4d2816===void 0x0?void 0x0:_0x4d2816['request'])===null||_0x33b90b===void 0x0?void 0x0:_0x33b90b[_0x45bfd0(0x1ee)])||{},((_0xba3f94=_0x4d2816===null||_0x4d2816===void 0x0?void 0x0:_0x4d2816[_0x45bfd0(0x1e5)])===null||_0xba3f94===void 0x0?void 0x0:_0xba3f94[_0x45bfd0(0x1e9)])||{}),_0xc36db9=((0x0,decorator_1[_0x45bfd0(0x1c1)])(interface_1[_0x45bfd0(0x1f0)],_0xaf2d77[_0x45bfd0(0x1ba)])||[])['find'](_0x5d257b=>_0x5d257b[_0x45bfd0(0x1c9)]==_0xaf2d77[_0x45bfd0(0x1c2)]);!(_0x14d5c0===null||_0x14d5c0===void 0x0?void 0x0:_0x14d5c0[_0x45bfd0(0x1d6)])&&_0x4d2816&&_0x4d2816[_0x45bfd0(0x1e4)]&&(_0x14d5c0[_0x45bfd0(0x1d6)]=_0x4d2816['getAttr'](i18n_1[_0x45bfd0(0x1c6)]));for(let _0x25632d=0x0;_0x25632d<_0x450826[_0x45bfd0(0x1d0)];_0x25632d++){const _0xcdc68e=_0x450826[_0x25632d],_0x57bf2d=this[_0x45bfd0(0x1e7)][_0x45bfd0(0x1f1)](_0xcdc68e);if(_0x57bf2d){if(typeof _0xaf2d77['args'][_0x25632d]==_0x45bfd0(0x1de)||((_0x4b0492=_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d])===null||_0x4b0492===void 0x0?void 0x0:_0x4b0492[_0x45bfd0(0x1e5)])&&((_0x106fdb=_0xaf2d77['args'][_0x25632d])===null||_0x106fdb===void 0x0?void 0x0:_0x106fdb[_0x45bfd0(0x1bd)])&&((_0x2034c3=_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d])===null||_0x2034c3===void 0x0?void 0x0:_0x2034c3[_0x45bfd0(0x1bf)]))_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d]=_0x534ebf;else((_0x44f113=_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d])===null||_0x44f113===void 0x0?void 0x0:_0x44f113['name'])==_0x45bfd0(0x1d5)&&_0xaf2d77[_0x45bfd0(0x1bc)][_0x45bfd0(0x1b8)](_0x25632d,0x0,_0x534ebf);const _0x261f7b=this[_0x45bfd0(0x1e7)][_0x45bfd0(0x1e6)](_0x57bf2d,_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d],_0x14d5c0);_0x261f7b&&(_0xaf2d77['args'][_0x25632d]=_0x261f7b);}else{if((_0xc36db9===null||_0xc36db9===void 0x0?void 0x0:_0xc36db9[_0x45bfd0(0x1dd)][_0x25632d])&&((_0x4fdd95=_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d])===null||_0x4fdd95===void 0x0?void 0x0:_0x4fdd95[_0x45bfd0(0x1eb)])&&typeof _0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d]['param']=='function'&&((_0x1593ba=_0x4d2816===null||_0x4d2816===void 0x0?void 0x0:_0x4d2816['params'])===null||_0x1593ba===void 0x0?void 0x0:_0x1593ba[_0xc36db9[_0x45bfd0(0x1dd)][_0x25632d]]))_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d]=_0xcdc68e((_0x29e011=_0x4d2816===null||_0x4d2816===void 0x0?void 0x0:_0x4d2816[_0x45bfd0(0x1eb)])===null||_0x29e011===void 0x0?void 0x0:_0x29e011[_0xc36db9[_0x45bfd0(0x1dd)][_0x25632d]]);else(_0xc36db9===null||_0xc36db9===void 0x0?void 0x0:_0xc36db9['methodArgs'][_0x25632d])&&((_0x4205c4=(_0xc6330c=_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d])===null||_0xc6330c===void 0x0?void 0x0:_0xc6330c[_0x45bfd0(0x1eb)])===null||_0x4205c4===void 0x0?void 0x0:_0x4205c4[_0xc36db9['methodArgs'][_0x25632d]])&&(_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d]=(_0x51d39c=(_0x1f5fec=_0xaf2d77[_0x45bfd0(0x1bc)][_0x25632d])===null||_0x1f5fec===void 0x0?void 0x0:_0x1f5fec[_0x45bfd0(0x1eb)])===null||_0x51d39c===void 0x0?void 0x0:_0x51d39c[_0xc36db9[_0x45bfd0(0x1dd)][_0x25632d]]);}}},'afterThrow':(_0x24fbb8,_0x3a8c3e)=>{throw _0x3a8c3e;}};});}};__decorate([(0x0,decorator_1[a1_0xbec577(0x1f2)])(),__metadata(a1_0xbec577(0x1cb),core_1[a1_0xbec577(0x1ed)])],CustomConfiguration[a1_0xbec577(0x1cf)],a1_0xbec577(0x1ce),void 0x0),__decorate([(0x0,decorator_1[a1_0xbec577(0x1f2)])(),__metadata(a1_0xbec577(0x1cb),ValidatorService_1[a1_0xbec577(0x1e7)])],CustomConfiguration[a1_0xbec577(0x1cf)],a1_0xbec577(0x1e7),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a1_0xbec577(0x1e2)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':'anncic-api:validator','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x35366e=a2_0x89ea;(function(_0x2d248e,_0x3d4faa){const _0x542e5b=a2_0x89ea,_0x153c4c=_0x2d248e();while(!![]){try{const _0x25d86d=parseInt(_0x542e5b(0x141))/0x1*(parseInt(_0x542e5b(0x12f))/0x2)+-parseInt(_0x542e5b(0x126))/0x3*(parseInt(_0x542e5b(0x13a))/0x4)+parseInt(_0x542e5b(0x135))/0x5+-parseInt(_0x542e5b(0x12d))/0x6*(parseInt(_0x542e5b(0x132))/0x7)+-parseInt(_0x542e5b(0x133))/0x8+parseInt(_0x542e5b(0x12a))/0x9+parseInt(_0x542e5b(0x13d))/0xa;if(_0x25d86d===_0x3d4faa)break;else _0x153c4c['push'](_0x153c4c['shift']());}catch(_0x3cbc71){_0x153c4c['push'](_0x153c4c['shift']());}}}(a2_0x3533,0xcfce5));Object[a2_0x35366e(0x13c)](exports,a2_0x35366e(0x128),{'value':!![]}),exports[a2_0x35366e(0x12e)]=exports[a2_0x35366e(0x12c)]=void 0x0;function a2_0x3533(){const _0x4c4d83=['186VKdrKT','Rule','46bIobgk','default','getPropertyType','248108mCKqgr','1538440bZglqr','name','1769535fQhWKp','label','@joi/date','attachClassMetadata','function','6876HvWLXN','isSchema','defineProperty','10674160RSOpoA','items','meta','Array','41486CTBxEm','array','RULES_KEY','../interface','2391EbyUUJ','getClassMetadata','__esModule','joi','10231056duxhyZ','description','RuleType'];a2_0x3533=function(){return _0x4c4d83;};return a2_0x3533();}const joi=require(a2_0x35366e(0x129)),date_1=require(a2_0x35366e(0x137)),decorator_1=require('@midwayjs/decorator'),interface_1=require(a2_0x35366e(0x144));exports[a2_0x35366e(0x12c)]=joi['extend'](date_1[a2_0x35366e(0x130)]);function Rule(_0x11a02e,_0x27dc57,_0xd5f425=''){return(_0x4c2c48,_0x36430d)=>{const _0x2daa62=a2_0x89ea;!joi['isSchema'](_0x27dc57)&&(_0x27dc57===null||_0x27dc57===void 0x0?void 0x0:_0x27dc57[_0x2daa62(0x134)])&&(_0x27dc57=joi['object']((0x0,decorator_1[_0x2daa62(0x127)])(interface_1[_0x2daa62(0x143)],_0x27dc57))[_0x2daa62(0x13f)]({'id':_0x27dc57[_0x2daa62(0x134)]}),(0x0,decorator_1[_0x2daa62(0x131)])(_0x4c2c48,_0x36430d)[_0x2daa62(0x134)]===_0x2daa62(0x140)&&(_0x27dc57=joi[_0x2daa62(0x142)]()[_0x2daa62(0x13e)](_0x27dc57))),joi[_0x2daa62(0x13b)](_0x27dc57)&&(_0x11a02e&&typeof(_0x27dc57===null||_0x27dc57===void 0x0?void 0x0:_0x27dc57[_0x2daa62(0x136)])==_0x2daa62(0x139)&&(_0x27dc57=_0x27dc57['label'](_0x11a02e)),_0xd5f425&&typeof(_0x27dc57===null||_0x27dc57===void 0x0?void 0x0:_0x27dc57[_0x2daa62(0x12b)])==_0x2daa62(0x139)&&(_0x27dc57=_0x27dc57[_0x2daa62(0x12b)](_0xd5f425)),(0x0,decorator_1[_0x2daa62(0x138)])(interface_1[_0x2daa62(0x143)],_0x27dc57,_0x4c2c48,_0x36430d));};}function a2_0x89ea(_0x376611,_0x24d648){const _0x353301=a2_0x3533();return a2_0x89ea=function(_0x89ea3f,_0x2c0da6){_0x89ea3f=_0x89ea3f-0x126;let _0x147b20=_0x353301[_0x89ea3f];return _0x147b20;},a2_0x89ea(_0x376611,_0x24d648);}exports[a2_0x35366e(0x12e)]=Rule;
1
+ 'use strict';const a2_0x12ac20=a2_0x3c3c;(function(_0x26de72,_0x6d8732){const _0x376745=a2_0x3c3c,_0x16b50e=_0x26de72();while(!![]){try{const _0x495c3e=parseInt(_0x376745(0x9e))/0x1+parseInt(_0x376745(0xa2))/0x2+parseInt(_0x376745(0x9f))/0x3*(parseInt(_0x376745(0xb3))/0x4)+parseInt(_0x376745(0x9a))/0x5*(parseInt(_0x376745(0xb7))/0x6)+-parseInt(_0x376745(0x9d))/0x7*(-parseInt(_0x376745(0xa5))/0x8)+-parseInt(_0x376745(0xb0))/0x9*(parseInt(_0x376745(0x99))/0xa)+-parseInt(_0x376745(0xb6))/0xb;if(_0x495c3e===_0x6d8732)break;else _0x16b50e['push'](_0x16b50e['shift']());}catch(_0x9b4c05){_0x16b50e['push'](_0x16b50e['shift']());}}}(a2_0x42a6,0x609fb));function a2_0x3c3c(_0x5e71b6,_0x368b47){const _0x42a696=a2_0x42a6();return a2_0x3c3c=function(_0x3c3c0d,_0x539b4d){_0x3c3c0d=_0x3c3c0d-0x99;let _0x1ea311=_0x42a696[_0x3c3c0d];return _0x1ea311;},a2_0x3c3c(_0x5e71b6,_0x368b47);}function a2_0x42a6(){const _0x4bb09a=['8530DELgGC','104275OuaeJR','__esModule','array','14Rtqbuh','293145McFDUC','27999sLrZqO','RULES_KEY','getClassMetadata','1515264WEVHBR','label','joi','1954968UCyZLZ','RuleType','attachClassMetadata','@midwayjs/decorator','description','meta','name','default','getPropertyType','Rule','defineProperty','8109ucSJFA','isSchema','function','168xFIrIr','extend','items','16468166NgNsip','210iDGuoh','Array','@joi/date'];a2_0x42a6=function(){return _0x4bb09a;};return a2_0x42a6();}Object[a2_0x12ac20(0xaf)](exports,a2_0x12ac20(0x9b),{'value':!![]}),exports[a2_0x12ac20(0xae)]=exports[a2_0x12ac20(0xa6)]=void 0x0;const joi=require(a2_0x12ac20(0xa4)),date_1=require(a2_0x12ac20(0xb9)),decorator_1=require(a2_0x12ac20(0xa8)),interface_1=require('../interface');exports[a2_0x12ac20(0xa6)]=joi[a2_0x12ac20(0xb4)](date_1[a2_0x12ac20(0xac)]);function Rule(_0xfa11dc,_0xbb0a1,_0x1227f3=''){return(_0x5f02d4,_0x10d7fc)=>{const _0x35278a=a2_0x3c3c;!joi['isSchema'](_0xbb0a1)&&(_0xbb0a1===null||_0xbb0a1===void 0x0?void 0x0:_0xbb0a1['name'])&&(_0xbb0a1=joi['object']((0x0,decorator_1[_0x35278a(0xa1)])(interface_1[_0x35278a(0xa0)],_0xbb0a1))[_0x35278a(0xaa)]({'id':_0xbb0a1[_0x35278a(0xab)]}),(0x0,decorator_1[_0x35278a(0xad)])(_0x5f02d4,_0x10d7fc)[_0x35278a(0xab)]===_0x35278a(0xb8)&&(_0xbb0a1=joi[_0x35278a(0x9c)]()[_0x35278a(0xb5)](_0xbb0a1))),joi[_0x35278a(0xb1)](_0xbb0a1)&&(_0xfa11dc&&typeof(_0xbb0a1===null||_0xbb0a1===void 0x0?void 0x0:_0xbb0a1[_0x35278a(0xa3)])=='function'&&(_0xbb0a1=_0xbb0a1[_0x35278a(0xa3)](_0xfa11dc)),_0x1227f3&&typeof(_0xbb0a1===null||_0xbb0a1===void 0x0?void 0x0:_0xbb0a1[_0x35278a(0xa9)])==_0x35278a(0xb2)&&(_0xbb0a1=_0xbb0a1[_0x35278a(0xa9)](_0x1227f3)),(0x0,decorator_1[_0x35278a(0xa7)])(interface_1[_0x35278a(0xa0)],_0xbb0a1,_0x5f02d4,_0x10d7fc));};}exports[a2_0x12ac20(0xae)]=Rule;
@@ -1,3 +1,3 @@
1
- import { ValidateOptions } from '../interface';
2
- export declare function Validator(options?: ValidateOptions): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => void;
1
+ import { ValidatorOptions } from '../interface';
2
+ export declare function Validator(options?: ValidatorOptions): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => void;
3
3
  export declare function getFuncArgs(fn: Function): string[];
@@ -1 +1 @@
1
- 'use strict';const a3_0xec331f=a3_0x3e53;function a3_0x2735(){const _0x21d88f=['__esModule','indexOf','getFuncArgs','39950fwdNhz','match','6dguCKW','function','259128njNmXZ','toString','70MdyBIe','replace','prototype','59459NIxYtt','281484nZjZQK','constructor','389286fAWvAR','slice','createCustomMethodDecorator','15126zTDbSU','2YWxYPB','627lvidrg','Validator','../interface','117625iOpIiK','VALIDATE_KEY'];a3_0x2735=function(){return _0x21d88f;};return a3_0x2735();}(function(_0x40fada,_0xbb2e8f){const _0x337b40=a3_0x3e53,_0x569b1e=_0x40fada();while(!![]){try{const _0x4af565=parseInt(_0x337b40(0xa4))/0x1*(-parseInt(_0x337b40(0xab))/0x2)+-parseInt(_0x337b40(0xb6))/0x3*(parseInt(_0x337b40(0xa5))/0x4)+-parseInt(_0x337b40(0xaf))/0x5+-parseInt(_0x337b40(0xaa))/0x6*(-parseInt(_0x337b40(0xba))/0x7)+parseInt(_0x337b40(0xb8))/0x8+parseInt(_0x337b40(0xa7))/0x9+parseInt(_0x337b40(0xb4))/0xa*(parseInt(_0x337b40(0xac))/0xb);if(_0x4af565===_0xbb2e8f)break;else _0x569b1e['push'](_0x569b1e['shift']());}catch(_0x264469){_0x569b1e['push'](_0x569b1e['shift']());}}}(a3_0x2735,0x1998c));Object['defineProperty'](exports,a3_0xec331f(0xb1),{'value':!![]}),exports[a3_0xec331f(0xb3)]=exports[a3_0xec331f(0xad)]=void 0x0;function a3_0x3e53(_0x3a081f,_0x2ae560){const _0x27353e=a3_0x2735();return a3_0x3e53=function(_0x3e5376,_0x1eee4b){_0x3e5376=_0x3e5376-0xa4;let _0x176e09=_0x27353e[_0x3e5376];return _0x176e09;},a3_0x3e53(_0x3a081f,_0x2ae560);}const decorator_1=require('@midwayjs/decorator'),interface_1=require(a3_0xec331f(0xae));function Validator(_0x243417={}){return(_0x4feee2,_0x3f359b,_0x4e28e0)=>{const _0x3f25f7=a3_0x3e53,_0x58696d=getFuncArgs(_0x4feee2[_0x3f359b]);(0x0,decorator_1['attachClassMetadata'])(interface_1[_0x3f25f7(0xb0)],{'method':_0x3f359b,'methodArgs':_0x58696d},_0x4feee2),(0x0,decorator_1[_0x3f25f7(0xa9)])(interface_1[_0x3f25f7(0xb0)],_0x243417)(_0x4feee2,_0x3f359b,_0x4e28e0);};}exports['Validator']=Validator;function getFuncArgs(_0x27c8be){const _0xf16da5=a3_0xec331f;if(typeof _0x27c8be==_0xf16da5(0xb7)){const _0x106b63=/=>.*$/mg,_0x532ab4=/=[^,)]+/mg,_0xb67293=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x4f8e4d=(_0x27c8be[_0xf16da5(0xbc)]?_0x27c8be['prototype'][_0xf16da5(0xa6)][_0xf16da5(0xb9)]():_0x27c8be[_0xf16da5(0xb9)]())[_0xf16da5(0xbb)](_0xb67293,'')[_0xf16da5(0xbb)](_0x106b63,'')[_0xf16da5(0xbb)](_0x532ab4,''),_0x6bf0a=_0x4f8e4d[_0xf16da5(0xa8)](_0x4f8e4d[_0xf16da5(0xb2)]('(')+0x1,_0x4f8e4d[_0xf16da5(0xb2)](')'))[_0xf16da5(0xb5)](/([^\s,]+)/g)||[];return _0x6bf0a;}}exports[a3_0xec331f(0xb3)]=getFuncArgs;
1
+ 'use strict';const a3_0x307282=a3_0x1564;(function(_0x305972,_0x1e729d){const _0x4bd3f9=a3_0x1564,_0x48cd14=_0x305972();while(!![]){try{const _0x26080f=parseInt(_0x4bd3f9(0x164))/0x1*(-parseInt(_0x4bd3f9(0x162))/0x2)+parseInt(_0x4bd3f9(0x16e))/0x3+parseInt(_0x4bd3f9(0x16f))/0x4*(parseInt(_0x4bd3f9(0x171))/0x5)+-parseInt(_0x4bd3f9(0x16b))/0x6+-parseInt(_0x4bd3f9(0x174))/0x7+-parseInt(_0x4bd3f9(0x172))/0x8*(parseInt(_0x4bd3f9(0x167))/0x9)+parseInt(_0x4bd3f9(0x169))/0xa*(parseInt(_0x4bd3f9(0x165))/0xb);if(_0x26080f===_0x1e729d)break;else _0x48cd14['push'](_0x48cd14['shift']());}catch(_0x204fd6){_0x48cd14['push'](_0x48cd14['shift']());}}}(a3_0x421f,0x57d2c));Object[a3_0x307282(0x163)](exports,'__esModule',{'value':!![]}),exports['getFuncArgs']=exports[a3_0x307282(0x173)]=void 0x0;const decorator_1=require(a3_0x307282(0x168)),interface_1=require('../interface');function a3_0x1564(_0x161c58,_0x2c8aec){const _0x421f23=a3_0x421f();return a3_0x1564=function(_0x15646e,_0x2ada30){_0x15646e=_0x15646e-0x15d;let _0xd2f8f9=_0x421f23[_0x15646e];return _0xd2f8f9;},a3_0x1564(_0x161c58,_0x2c8aec);}function a3_0x421f(){const _0x388d0c=['constructor','1912923FwRBDg','36GEqgtK','match','225130pKkrLP','8qCpCKd','Validator','1759751SpTBHz','replace','function','getFuncArgs','VALIDATOR_KEY','slice','1397826zCLcCb','defineProperty','1WjcKBr','6404464hEOkXU','indexOf','2515554ByCQYV','@midwayjs/decorator','20tWuVyh','toString','3706722YbiRaI','prototype'];a3_0x421f=function(){return _0x388d0c;};return a3_0x421f();}function Validator(_0x1c03bd={}){return(_0x2fe0a9,_0x1887bb,_0x1acf85)=>{const _0x3d87c4=a3_0x1564,_0x1db98b=getFuncArgs(_0x2fe0a9[_0x1887bb]);(0x0,decorator_1['attachClassMetadata'])(interface_1[_0x3d87c4(0x160)],{'method':_0x1887bb,'methodArgs':_0x1db98b},_0x2fe0a9),(0x0,decorator_1['createCustomMethodDecorator'])(interface_1['VALIDATOR_KEY'],_0x1c03bd)(_0x2fe0a9,_0x1887bb,_0x1acf85);};}exports['Validator']=Validator;function getFuncArgs(_0x3cb9e0){const _0x119d64=a3_0x307282;if(typeof _0x3cb9e0==_0x119d64(0x15e)){const _0x5949d8=/=>.*$/mg,_0x328041=/=[^,)]+/mg,_0x16637e=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x115cdb=(_0x3cb9e0[_0x119d64(0x16c)]?_0x3cb9e0[_0x119d64(0x16c)][_0x119d64(0x16d)][_0x119d64(0x16a)]():_0x3cb9e0['toString']())['replace'](_0x16637e,'')[_0x119d64(0x15d)](_0x5949d8,'')[_0x119d64(0x15d)](_0x328041,''),_0x45df00=_0x115cdb[_0x119d64(0x161)](_0x115cdb[_0x119d64(0x166)]('(')+0x1,_0x115cdb[_0x119d64(0x166)](')'))[_0x119d64(0x170)](/([^\s,]+)/g)||[];return _0x45df00;}}exports[a3_0x307282(0x15f)]=getFuncArgs;
@@ -1,3 +1,4 @@
1
1
  export declare class ValidatorError {
2
- static readonly PARAMS = 102001;
2
+ static readonly NOFIND_SCHEMA = 102001;
3
+ static readonly PARAMS = 102002;
3
4
  }
@@ -1 +1 @@
1
- 'use strict';function a4_0x492c(){var _0x3ad65b=['1WZsPyq','40UpIIzv','defineProperty','length','1197234irfttZ','538465LVjsCg','5728086AKOIme','2321KnAsUx','137604yKQyjn','__esModule','644ekExbR','metadata','16AYSvYD','803697ZbYltY','getOwnPropertyDescriptor','@anncic-api/core','ValidatorError','function','1284308mjFeTy','object','AnnErrorMsg','decorate','59176yNJLBu'];a4_0x492c=function(){return _0x3ad65b;};return a4_0x492c();}var a4_0x2b6940=a4_0xcbe4;(function(_0x4fa0ab,_0x3f66d4){var _0x2d8bf3=a4_0xcbe4,_0x4caab2=_0x4fa0ab();while(!![]){try{var _0x1e5c1b=-parseInt(_0x2d8bf3(0xef))/0x1*(parseInt(_0x2d8bf3(0xea))/0x2)+parseInt(_0x2d8bf3(0xe5))/0x3+-parseInt(_0x2d8bf3(0xe4))/0x4*(parseInt(_0x2d8bf3(0xf4))/0x5)+-parseInt(_0x2d8bf3(0xde))/0x6+parseInt(_0x2d8bf3(0xe2))/0x7*(-parseInt(_0x2d8bf3(0xee))/0x8)+-parseInt(_0x2d8bf3(0xf3))/0x9*(-parseInt(_0x2d8bf3(0xf0))/0xa)+parseInt(_0x2d8bf3(0xdf))/0xb*(parseInt(_0x2d8bf3(0xe0))/0xc);if(_0x1e5c1b===_0x3f66d4)break;else _0x4caab2['push'](_0x4caab2['shift']());}catch(_0x58b1be){_0x4caab2['push'](_0x4caab2['shift']());}}}(a4_0x492c,0x7cdb1));var __decorate=this&&this['__decorate']||function(_0x62d21a,_0x3f08b3,_0x5e0900,_0x52f17f){var _0x2ded62=a4_0xcbe4,_0x3e2b6e=arguments[_0x2ded62(0xf2)],_0x1de1a6=_0x3e2b6e<0x3?_0x3f08b3:_0x52f17f===null?_0x52f17f=Object[_0x2ded62(0xe6)](_0x3f08b3,_0x5e0900):_0x52f17f,_0x108abb;if(typeof Reflect===_0x2ded62(0xeb)&&typeof Reflect[_0x2ded62(0xed)]===_0x2ded62(0xe9))_0x1de1a6=Reflect['decorate'](_0x62d21a,_0x3f08b3,_0x5e0900,_0x52f17f);else{for(var _0x4ff5f2=_0x62d21a['length']-0x1;_0x4ff5f2>=0x0;_0x4ff5f2--)if(_0x108abb=_0x62d21a[_0x4ff5f2])_0x1de1a6=(_0x3e2b6e<0x3?_0x108abb(_0x1de1a6):_0x3e2b6e>0x3?_0x108abb(_0x3f08b3,_0x5e0900,_0x1de1a6):_0x108abb(_0x3f08b3,_0x5e0900))||_0x1de1a6;}return _0x3e2b6e>0x3&&_0x1de1a6&&Object['defineProperty'](_0x3f08b3,_0x5e0900,_0x1de1a6),_0x1de1a6;},__metadata=this&&this['__metadata']||function(_0xf649bc,_0x20dd7e){var _0x226f53=a4_0xcbe4;if(typeof Reflect===_0x226f53(0xeb)&&typeof Reflect[_0x226f53(0xe3)]===_0x226f53(0xe9))return Reflect[_0x226f53(0xe3)](_0xf649bc,_0x20dd7e);};Object[a4_0x2b6940(0xf1)](exports,a4_0x2b6940(0xe1),{'value':!![]}),exports['ValidatorError']=void 0x0;const core_1=require(a4_0x2b6940(0xe7));class ValidatorError{}function a4_0xcbe4(_0xbeaa2a,_0x298651){var _0x492cd7=a4_0x492c();return a4_0xcbe4=function(_0xcbe46,_0x25634f){_0xcbe46=_0xcbe46-0xde;var _0x450797=_0x492cd7[_0xcbe46];return _0x450797;},a4_0xcbe4(_0xbeaa2a,_0x298651);}ValidatorError['PARAMS']=0x18e71,__decorate([(0x0,core_1[a4_0x2b6940(0xec)])('参数验证失败'),__metadata('design:type',Object)],ValidatorError,'PARAMS',void 0x0),exports[a4_0x2b6940(0xe8)]=ValidatorError;
1
+ 'use strict';var a4_0x1fb43a=a4_0x550d;function a4_0x550d(_0x211088,_0xe9fbcb){var _0x523281=a4_0x5232();return a4_0x550d=function(_0x550d6d,_0x2a32ea){_0x550d6d=_0x550d6d-0x9e;var _0x4a77d6=_0x523281[_0x550d6d];return _0x4a77d6;},a4_0x550d(_0x211088,_0xe9fbcb);}function a4_0x5232(){var _0x24c27e=['object','defineProperty','1740DpjXeG','7ylYURN','getOwnPropertyDescriptor','40139jSklOA','12ABphkV','function','37sZccfu','参数验证失败','2840MNvvlj','__esModule','30598XWnFfj','__metadata','@anncic-api/core','metadata','__decorate','length','1212594kIJing','design:type','decorate','9393840UvCMZy','232285cxVvkK','PARAMS','3114882eYmJDc','18594aPiapO'];a4_0x5232=function(){return _0x24c27e;};return a4_0x5232();}(function(_0x514be4,_0x524419){var _0x2ef984=a4_0x550d,_0x10aac3=_0x514be4();while(!![]){try{var _0x4eebc8=-parseInt(_0x2ef984(0xa1))/0x1*(-parseInt(_0x2ef984(0xa5))/0x2)+parseInt(_0x2ef984(0xb1))/0x3+-parseInt(_0x2ef984(0x9f))/0x4*(parseInt(_0x2ef984(0xaf))/0x5)+parseInt(_0x2ef984(0xab))/0x6*(-parseInt(_0x2ef984(0xb6))/0x7)+-parseInt(_0x2ef984(0xa3))/0x8*(-parseInt(_0x2ef984(0xb2))/0x9)+-parseInt(_0x2ef984(0xb5))/0xa*(parseInt(_0x2ef984(0x9e))/0xb)+-parseInt(_0x2ef984(0xae))/0xc;if(_0x4eebc8===_0x524419)break;else _0x10aac3['push'](_0x10aac3['shift']());}catch(_0x5ca4ee){_0x10aac3['push'](_0x10aac3['shift']());}}}(a4_0x5232,0x8d40b));var __decorate=this&&this[a4_0x1fb43a(0xa9)]||function(_0x1a2419,_0x3de41d,_0x4382e0,_0x37f6cd){var _0x2e6250=a4_0x1fb43a,_0xe85b0f=arguments[_0x2e6250(0xaa)],_0x1c06e3=_0xe85b0f<0x3?_0x3de41d:_0x37f6cd===null?_0x37f6cd=Object[_0x2e6250(0xb7)](_0x3de41d,_0x4382e0):_0x37f6cd,_0x55b35a;if(typeof Reflect===_0x2e6250(0xb3)&&typeof Reflect[_0x2e6250(0xad)]===_0x2e6250(0xa0))_0x1c06e3=Reflect[_0x2e6250(0xad)](_0x1a2419,_0x3de41d,_0x4382e0,_0x37f6cd);else{for(var _0x597527=_0x1a2419['length']-0x1;_0x597527>=0x0;_0x597527--)if(_0x55b35a=_0x1a2419[_0x597527])_0x1c06e3=(_0xe85b0f<0x3?_0x55b35a(_0x1c06e3):_0xe85b0f>0x3?_0x55b35a(_0x3de41d,_0x4382e0,_0x1c06e3):_0x55b35a(_0x3de41d,_0x4382e0))||_0x1c06e3;}return _0xe85b0f>0x3&&_0x1c06e3&&Object[_0x2e6250(0xb4)](_0x3de41d,_0x4382e0,_0x1c06e3),_0x1c06e3;},__metadata=this&&this[a4_0x1fb43a(0xa6)]||function(_0x5b5be9,_0x229099){var _0x139e6d=a4_0x1fb43a;if(typeof Reflect===_0x139e6d(0xb3)&&typeof Reflect[_0x139e6d(0xa8)]===_0x139e6d(0xa0))return Reflect['metadata'](_0x5b5be9,_0x229099);};Object[a4_0x1fb43a(0xb4)](exports,a4_0x1fb43a(0xa4),{'value':!![]}),exports['ValidatorError']=void 0x0;const core_1=require(a4_0x1fb43a(0xa7));class ValidatorError{}ValidatorError['NOFIND_SCHEMA']=0x18e71,ValidatorError[a4_0x1fb43a(0xb0)]=0x18e72,__decorate([(0x0,core_1['AnnErrorMsg'])('参数验证失败'),__metadata(a4_0x1fb43a(0xac),Object)],ValidatorError,'NOFIND_SCHEMA',void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x1fb43a(0xa2)),__metadata('design:type',Object)],ValidatorError,a4_0x1fb43a(0xb0),void 0x0),exports['ValidatorError']=ValidatorError;
@@ -1 +1 @@
1
- 'use strict';const a5_0x55c24a=a5_0x15fd;(function(_0x2ca3ce,_0x37be26){const _0x339463=a5_0x15fd,_0x431a97=_0x2ca3ce();while(!![]){try{const _0x1f4f42=parseInt(_0x339463(0x114))/0x1*(-parseInt(_0x339463(0x107))/0x2)+parseInt(_0x339463(0x10d))/0x3+parseInt(_0x339463(0x118))/0x4*(-parseInt(_0x339463(0x116))/0x5)+parseInt(_0x339463(0x10e))/0x6+parseInt(_0x339463(0x108))/0x7*(-parseInt(_0x339463(0x10f))/0x8)+parseInt(_0x339463(0x109))/0x9+parseInt(_0x339463(0x112))/0xa*(parseInt(_0x339463(0x119))/0xb);if(_0x1f4f42===_0x37be26)break;else _0x431a97['push'](_0x431a97['shift']());}catch(_0xcf90df){_0x431a97['push'](_0x431a97['shift']());}}}(a5_0x5b56,0xa15e7));function a5_0x5b56(){const _0x30150d=['64vWAklk','getClassExtendedMetadata','@midwayjs/decorator','10xwYedI','RULES_KEY','1iDaeKo','PickDto','15vRgCLz','__esModule','204404kEEgvL','3726041JqsVnV','assign','OmitDto','2310954NLOkNY','867552pDXPIx','10777545CiVSwQ','prototype','../interface','saveClassMetadata','2521227ZapopQ','3507540pnVIFr'];a5_0x5b56=function(){return _0x30150d;};return a5_0x5b56();}Object['defineProperty'](exports,a5_0x55c24a(0x117),{'value':!![]}),exports['OmitDto']=exports[a5_0x55c24a(0x115)]=void 0x0;const decorator_1=require(a5_0x55c24a(0x111)),interface_1=require(a5_0x55c24a(0x10b));function PickDto(_0x34176d,_0x4a418e){const _0x4d4f49=a5_0x55c24a,_0x46d550=function(){};_0x46d550[_0x4d4f49(0x10a)]=_0x34176d[_0x4d4f49(0x10a)];const _0x1cdef8=(0x0,decorator_1[_0x4d4f49(0x110)])(interface_1[_0x4d4f49(0x113)],_0x34176d),_0x4107a5={};for(const _0x614c6b of _0x4a418e){_0x1cdef8[_0x614c6b]&&(_0x4107a5[_0x614c6b]=_0x1cdef8[_0x614c6b]);}return(0x0,decorator_1[_0x4d4f49(0x10c)])(interface_1[_0x4d4f49(0x113)],_0x4107a5,_0x46d550),_0x46d550;}function a5_0x15fd(_0x56cce4,_0x5ccd2c){const _0x5b56a6=a5_0x5b56();return a5_0x15fd=function(_0x15fd98,_0xdfca78){_0x15fd98=_0x15fd98-0x107;let _0x287750=_0x5b56a6[_0x15fd98];return _0x287750;},a5_0x15fd(_0x56cce4,_0x5ccd2c);}exports[a5_0x55c24a(0x115)]=PickDto;function OmitDto(_0x557ca6,_0x2e9df1){const _0x3ce5e4=a5_0x55c24a,_0x172946=function(){};_0x172946['prototype']=_0x557ca6[_0x3ce5e4(0x10a)];const _0x1a7781=(0x0,decorator_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x557ca6),_0x37d9eb=Object[_0x3ce5e4(0x11a)]({},_0x1a7781);for(const _0x3a0deb of _0x2e9df1){delete _0x37d9eb[_0x3a0deb];}return(0x0,decorator_1[_0x3ce5e4(0x10c)])(interface_1[_0x3ce5e4(0x113)],_0x37d9eb,_0x172946),_0x172946;}exports[a5_0x55c24a(0x11b)]=OmitDto;
1
+ 'use strict';const a5_0x210dd9=a5_0x3901;(function(_0x5c4c4c,_0x14ba94){const _0x4757ca=a5_0x3901,_0x53adba=_0x5c4c4c();while(!![]){try{const _0x405939=-parseInt(_0x4757ca(0x91))/0x1+-parseInt(_0x4757ca(0x9c))/0x2+parseInt(_0x4757ca(0x98))/0x3*(-parseInt(_0x4757ca(0x99))/0x4)+-parseInt(_0x4757ca(0x90))/0x5+-parseInt(_0x4757ca(0x8f))/0x6*(-parseInt(_0x4757ca(0x94))/0x7)+-parseInt(_0x4757ca(0x9d))/0x8+parseInt(_0x4757ca(0x93))/0x9;if(_0x405939===_0x14ba94)break;else _0x53adba['push'](_0x53adba['shift']());}catch(_0x4de686){_0x53adba['push'](_0x53adba['shift']());}}}(a5_0x124b,0xd3fa9));Object[a5_0x210dd9(0x9f)](exports,a5_0x210dd9(0x92),{'value':!![]}),exports[a5_0x210dd9(0x9e)]=exports[a5_0x210dd9(0xa0)]=void 0x0;const decorator_1=require(a5_0x210dd9(0x96)),interface_1=require(a5_0x210dd9(0x97));function PickDto(_0x724db6,_0x41f0db){const _0xd34ae0=a5_0x210dd9,_0xde6ee2=function(){};_0xde6ee2[_0xd34ae0(0x9a)]=_0x724db6[_0xd34ae0(0x9a)];const _0x7b7cd=(0x0,decorator_1[_0xd34ae0(0x8e)])(interface_1[_0xd34ae0(0x95)],_0x724db6),_0x6a4df8={};for(const _0x4ae2a8 of _0x41f0db){_0x7b7cd[_0x4ae2a8]&&(_0x6a4df8[_0x4ae2a8]=_0x7b7cd[_0x4ae2a8]);}return(0x0,decorator_1['saveClassMetadata'])(interface_1['RULES_KEY'],_0x6a4df8,_0xde6ee2),_0xde6ee2;}function a5_0x124b(){const _0xc89c6b=['30243663HNploX','5658478cmzjTM','RULES_KEY','@midwayjs/decorator','../interface','3GEFBiD','1142132kmHILa','prototype','assign','2938514XyQawj','10950296ZOmVxS','OmitDto','defineProperty','PickDto','getClassExtendedMetadata','12tRpxEo','317390uvGOFG','921795CsXSvk','__esModule'];a5_0x124b=function(){return _0xc89c6b;};return a5_0x124b();}function a5_0x3901(_0x2d376f,_0x23d824){const _0x124b1e=a5_0x124b();return a5_0x3901=function(_0x39017f,_0x2997dc){_0x39017f=_0x39017f-0x8e;let _0x577447=_0x124b1e[_0x39017f];return _0x577447;},a5_0x3901(_0x2d376f,_0x23d824);}exports[a5_0x210dd9(0xa0)]=PickDto;function OmitDto(_0x5e0738,_0x5c9a94){const _0x24a01d=a5_0x210dd9,_0xdb12da=function(){};_0xdb12da[_0x24a01d(0x9a)]=_0x5e0738[_0x24a01d(0x9a)];const _0x27f72f=(0x0,decorator_1[_0x24a01d(0x8e)])(interface_1[_0x24a01d(0x95)],_0x5e0738),_0x38e302=Object[_0x24a01d(0x9b)]({},_0x27f72f);for(const _0x5eb5d0 of _0x5c9a94){delete _0x38e302[_0x5eb5d0];}return(0x0,decorator_1['saveClassMetadata'])(interface_1[_0x24a01d(0x95)],_0x38e302,_0xdb12da),_0xdb12da;}exports[a5_0x210dd9(0x9e)]=OmitDto;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a7_0x59552b=a7_0x3118;(function(_0x502b84,_0x25e501){var _0x1bda79=a7_0x3118,_0x231085=_0x502b84();while(!![]){try{var _0x1a10dc=-parseInt(_0x1bda79(0x7f))/0x1*(parseInt(_0x1bda79(0x80))/0x2)+parseInt(_0x1bda79(0x95))/0x3*(-parseInt(_0x1bda79(0x8f))/0x4)+parseInt(_0x1bda79(0x8c))/0x5+parseInt(_0x1bda79(0x83))/0x6*(parseInt(_0x1bda79(0x87))/0x7)+parseInt(_0x1bda79(0x92))/0x8+-parseInt(_0x1bda79(0x9b))/0x9+-parseInt(_0x1bda79(0x81))/0xa;if(_0x1a10dc===_0x25e501)break;else _0x231085['push'](_0x231085['shift']());}catch(_0x49a746){_0x231085['push'](_0x231085['shift']());}}}(a7_0x1adf,0x7d7ca));function a7_0x3118(_0x241ab1,_0x4642d0){var _0x1adf5a=a7_0x1adf();return a7_0x3118=function(_0x3118dd,_0x30faea){_0x3118dd=_0x3118dd-0x7f;var _0x4f179d=_0x1adf5a[_0x3118dd];return _0x4f179d;},a7_0x3118(_0x241ab1,_0x4642d0);}var __createBinding=this&&this[a7_0x59552b(0x84)]||(Object[a7_0x59552b(0x86)]?function(_0x53d815,_0x561c94,_0x1885dc,_0x2b4ea4){var _0x4937b4=a7_0x59552b;if(_0x2b4ea4===undefined)_0x2b4ea4=_0x1885dc;var _0x4e830f=Object[_0x4937b4(0x9e)](_0x561c94,_0x1885dc);(!_0x4e830f||(_0x4937b4(0x97)in _0x4e830f?!_0x561c94[_0x4937b4(0x82)]:_0x4e830f['writable']||_0x4e830f[_0x4937b4(0x8a)]))&&(_0x4e830f={'enumerable':!![],'get':function(){return _0x561c94[_0x1885dc];}}),Object[_0x4937b4(0x8b)](_0x53d815,_0x2b4ea4,_0x4e830f);}:function(_0x180ce9,_0x2f660f,_0x2b8906,_0x503fa0){if(_0x503fa0===undefined)_0x503fa0=_0x2b8906;_0x180ce9[_0x503fa0]=_0x2f660f[_0x2b8906];}),__exportStar=this&&this['__exportStar']||function(_0x9aad2,_0x1b7a9e){var _0x1ab7a2=a7_0x59552b;for(var _0x431c45 in _0x9aad2)if(_0x431c45!==_0x1ab7a2(0x9d)&&!Object[_0x1ab7a2(0x88)][_0x1ab7a2(0x94)][_0x1ab7a2(0x8d)](_0x1b7a9e,_0x431c45))__createBinding(_0x1b7a9e,_0x9aad2,_0x431c45);};Object[a7_0x59552b(0x8b)](exports,'__esModule',{'value':!![]}),exports['Configuration']=exports[a7_0x59552b(0x96)]=exports[a7_0x59552b(0x98)]=exports[a7_0x59552b(0x9a)]=exports[a7_0x59552b(0x8e)]=exports['Validator']=void 0x0,__exportStar(require(a7_0x59552b(0x9f)),exports),__exportStar(require(a7_0x59552b(0x85)),exports);var Validator_1=require(a7_0x59552b(0x90));Object['defineProperty'](exports,a7_0x59552b(0x99),{'enumerable':!![],'get':function(){var _0x525ea1=a7_0x59552b;return Validator_1[_0x525ea1(0x99)];}});var Rule_1=require(a7_0x59552b(0x93));Object['defineProperty'](exports,'Rule',{'enumerable':!![],'get':function(){var _0x5e1b23=a7_0x59552b;return Rule_1[_0x5e1b23(0x8e)];}}),Object[a7_0x59552b(0x8b)](exports,a7_0x59552b(0x9a),{'enumerable':!![],'get':function(){return Rule_1['RuleType'];}});var ValidatorError_1=require(a7_0x59552b(0x91));Object[a7_0x59552b(0x8b)](exports,a7_0x59552b(0x98),{'enumerable':!![],'get':function(){var _0x1fea0b=a7_0x59552b;return ValidatorError_1[_0x1fea0b(0x98)];}});var ValidatorService_1=require('./service/ValidatorService');function a7_0x1adf(){var _0xe1b1cc=['CustomConfiguration','default','getOwnPropertyDescriptor','./interface','299JSBRLQ','4094Pqkefq','967610KrRPpU','__esModule','6KdYHxu','__createBinding','./helper/dtoHelper','create','4669049rvhwTF','prototype','Configuration','configurable','defineProperty','2586030jKTVYJ','call','Rule','7412iISuaG','./decorator/Validator','./exception/ValidatorError','3130432VFIidx','./decorator/Rule','hasOwnProperty','123LJnrKH','ValidatorService','get','ValidatorError','Validator','RuleType','2490624THwQnz'];a7_0x1adf=function(){return _0xe1b1cc;};return a7_0x1adf();}Object[a7_0x59552b(0x8b)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x55ecaf=a7_0x59552b;return ValidatorService_1[_0x55ecaf(0x96)];}});var configuration_1=require('./configuration');Object[a7_0x59552b(0x8b)](exports,a7_0x59552b(0x89),{'enumerable':!![],'get':function(){var _0x493ad1=a7_0x59552b;return configuration_1[_0x493ad1(0x9c)];}});
1
+ 'use strict';var a6_0x4801b3=a6_0x26b8;(function(_0x1ad5cb,_0x399c86){var _0x1106e8=a6_0x26b8,_0x5495ac=_0x1ad5cb();while(!![]){try{var _0x130a6a=parseInt(_0x1106e8(0xba))/0x1+parseInt(_0x1106e8(0xb6))/0x2+parseInt(_0x1106e8(0xa0))/0x3*(parseInt(_0x1106e8(0xab))/0x4)+-parseInt(_0x1106e8(0xa4))/0x5*(-parseInt(_0x1106e8(0xa8))/0x6)+parseInt(_0x1106e8(0xa3))/0x7*(-parseInt(_0x1106e8(0xbd))/0x8)+parseInt(_0x1106e8(0xb2))/0x9*(-parseInt(_0x1106e8(0xaa))/0xa)+-parseInt(_0x1106e8(0xbc))/0xb*(-parseInt(_0x1106e8(0xb5))/0xc);if(_0x130a6a===_0x399c86)break;else _0x5495ac['push'](_0x5495ac['shift']());}catch(_0xd7fbbc){_0x5495ac['push'](_0x5495ac['shift']());}}}(a6_0x13b7,0x1bd67));var __createBinding=this&&this[a6_0x4801b3(0xaf)]||(Object['create']?function(_0x5a07c8,_0x515b71,_0x664a55,_0x41a240){var _0x2ff1fb=a6_0x4801b3;if(_0x41a240===undefined)_0x41a240=_0x664a55;var _0x221f30=Object[_0x2ff1fb(0x9f)](_0x515b71,_0x664a55);(!_0x221f30||(_0x2ff1fb(0xa9)in _0x221f30?!_0x515b71[_0x2ff1fb(0xb3)]:_0x221f30[_0x2ff1fb(0xb1)]||_0x221f30[_0x2ff1fb(0xb7)]))&&(_0x221f30={'enumerable':!![],'get':function(){return _0x515b71[_0x664a55];}}),Object['defineProperty'](_0x5a07c8,_0x41a240,_0x221f30);}:function(_0xc461b3,_0x476353,_0x1e7ad9,_0x105a05){if(_0x105a05===undefined)_0x105a05=_0x1e7ad9;_0xc461b3[_0x105a05]=_0x476353[_0x1e7ad9];}),__exportStar=this&&this[a6_0x4801b3(0xae)]||function(_0x4b0d5b,_0x435878){var _0xa5dc6c=a6_0x4801b3;for(var _0x18a94d in _0x4b0d5b)if(_0x18a94d!==_0xa5dc6c(0xa5)&&!Object[_0xa5dc6c(0xa6)][_0xa5dc6c(0xa2)]['call'](_0x435878,_0x18a94d))__createBinding(_0x435878,_0x4b0d5b,_0x18a94d);};Object[a6_0x4801b3(0xb4)](exports,a6_0x4801b3(0xb3),{'value':!![]}),exports[a6_0x4801b3(0xa7)]=exports[a6_0x4801b3(0xad)]=exports[a6_0x4801b3(0xb8)]=exports['RuleType']=exports[a6_0x4801b3(0xb9)]=exports[a6_0x4801b3(0xbe)]=void 0x0,__exportStar(require(a6_0x4801b3(0xc1)),exports),__exportStar(require(a6_0x4801b3(0xbb)),exports);var Validator_1=require(a6_0x4801b3(0x9e));function a6_0x26b8(_0x2cbb22,_0x380a53){var _0x13b7a8=a6_0x13b7();return a6_0x26b8=function(_0x26b864,_0x758c87){_0x26b864=_0x26b864-0x9e;var _0x20a792=_0x13b7a8[_0x26b864];return _0x20a792;},a6_0x26b8(_0x2cbb22,_0x380a53);}Object['defineProperty'](exports,a6_0x4801b3(0xbe),{'enumerable':!![],'get':function(){var _0x2ea3e1=a6_0x4801b3;return Validator_1[_0x2ea3e1(0xbe)];}});var Rule_1=require(a6_0x4801b3(0xb0));Object[a6_0x4801b3(0xb4)](exports,a6_0x4801b3(0xb9),{'enumerable':!![],'get':function(){var _0x1c67de=a6_0x4801b3;return Rule_1[_0x1c67de(0xb9)];}}),Object['defineProperty'](exports,a6_0x4801b3(0xa1),{'enumerable':!![],'get':function(){var _0x2ee8c5=a6_0x4801b3;return Rule_1[_0x2ee8c5(0xa1)];}});var ValidatorError_1=require('./exception/ValidatorError');Object[a6_0x4801b3(0xb4)](exports,a6_0x4801b3(0xb8),{'enumerable':!![],'get':function(){return ValidatorError_1['ValidatorError'];}});var ValidatorService_1=require(a6_0x4801b3(0xc0));function a6_0x13b7(){var _0xaed9be=['2331xvDpiy','__esModule','defineProperty','284268LwSHpJ','50320KuYigL','configurable','ValidatorError','Rule','1989NJKbED','./helper/dtoHelper','11tkJxrD','8SxFSVE','Validator','./configuration','./service/ValidatorService','./interface','./decorator/Validator','getOwnPropertyDescriptor','834AtVmEQ','RuleType','hasOwnProperty','978362MlcTiw','221755CLtAyz','default','prototype','Configuration','6PdIcNY','get','220DFSToj','2364fqPPgo','CustomConfiguration','ValidatorService','__exportStar','__createBinding','./decorator/Rule','writable'];a6_0x13b7=function(){return _0xaed9be;};return a6_0x13b7();}Object[a6_0x4801b3(0xb4)](exports,a6_0x4801b3(0xad),{'enumerable':!![],'get':function(){return ValidatorService_1['ValidatorService'];}});var configuration_1=require(a6_0x4801b3(0xbf));Object[a6_0x4801b3(0xb4)](exports,a6_0x4801b3(0xa7),{'enumerable':!![],'get':function(){var _0x156664=a6_0x4801b3;return configuration_1[_0x156664(0xac)];}});
@@ -1,7 +1,7 @@
1
1
  import * as Joi from 'joi';
2
- export declare const RULES_KEY = "anncic-api:validate:rules";
3
- export declare const VALIDATE_KEY = "anncic-api:validate:validate";
4
- export interface ValidateOptions {
2
+ export declare const RULES_KEY = "anncic-api:validator:rules";
3
+ export declare const VALIDATOR_KEY = "anncic-api:validator:validator";
4
+ export interface ValidatorOptions {
5
5
  locale?: string;
6
6
  description?: string;
7
7
  errorStatus?: number;
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a8_0x1958a7=a8_0x15cb;function a8_0x1b94(){var _0x334ba9=['6ZRIsnv','VALIDATE_KEY','RULES_KEY','1187865sDQYyQ','6082616YuPsaq','1185KRLbTR','833zRIMTY','__esModule','713995xRbrZj','10itJekJ','15157615Olwrmu','2165625YOmqJO','1798PBFkuz','9188GrQAba','anncic-api:validate:rules'];a8_0x1b94=function(){return _0x334ba9;};return a8_0x1b94();}(function(_0x30f322,_0x1ce6fd){var _0x55a1cd=a8_0x15cb,_0x575955=_0x30f322();while(!![]){try{var _0x31f314=-parseInt(_0x55a1cd(0x1f4))/0x1*(parseInt(_0x55a1cd(0x1eb))/0x2)+-parseInt(_0x55a1cd(0x1f3))/0x3*(parseInt(_0x55a1cd(0x1ec))/0x4)+-parseInt(_0x55a1cd(0x1f6))/0x5*(parseInt(_0x55a1cd(0x1ee))/0x6)+parseInt(_0x55a1cd(0x1ea))/0x7+parseInt(_0x55a1cd(0x1f2))/0x8+-parseInt(_0x55a1cd(0x1f1))/0x9+parseInt(_0x55a1cd(0x1f7))/0xa*(parseInt(_0x55a1cd(0x1f8))/0xb);if(_0x31f314===_0x1ce6fd)break;else _0x575955['push'](_0x575955['shift']());}catch(_0x34ce74){_0x575955['push'](_0x575955['shift']());}}}(a8_0x1b94,0x7e25d));function a8_0x15cb(_0x1da50b,_0x23ebe6){var _0x1b945e=a8_0x1b94();return a8_0x15cb=function(_0x15cb2b,_0x3083de){_0x15cb2b=_0x15cb2b-0x1ea;var _0x2ed45c=_0x1b945e[_0x15cb2b];return _0x2ed45c;},a8_0x15cb(_0x1da50b,_0x23ebe6);}Object['defineProperty'](exports,a8_0x1958a7(0x1f5),{'value':!![]}),exports[a8_0x1958a7(0x1ef)]=exports[a8_0x1958a7(0x1f0)]=void 0x0,exports[a8_0x1958a7(0x1f0)]=a8_0x1958a7(0x1ed),exports['VALIDATE_KEY']='anncic-api:validate:validate';
1
+ 'use strict';var a7_0x30f39a=a7_0x276e;(function(_0x1aff6d,_0x2962cf){var _0x466640=a7_0x276e,_0x293a25=_0x1aff6d();while(!![]){try{var _0x5a3ce5=-parseInt(_0x466640(0xf2))/0x1*(parseInt(_0x466640(0xf7))/0x2)+parseInt(_0x466640(0xf1))/0x3*(-parseInt(_0x466640(0xfd))/0x4)+parseInt(_0x466640(0xf9))/0x5*(parseInt(_0x466640(0xfb))/0x6)+parseInt(_0x466640(0xfa))/0x7+-parseInt(_0x466640(0xfc))/0x8*(parseInt(_0x466640(0xfe))/0x9)+-parseInt(_0x466640(0xf6))/0xa+parseInt(_0x466640(0xf4))/0xb;if(_0x5a3ce5===_0x2962cf)break;else _0x293a25['push'](_0x293a25['shift']());}catch(_0x4d6506){_0x293a25['push'](_0x293a25['shift']());}}}(a7_0x2d6f,0x528a8));function a7_0x276e(_0x155a53,_0x22a77b){var _0x2d6f4a=a7_0x2d6f();return a7_0x276e=function(_0x276ef4,_0x325b5f){_0x276ef4=_0x276ef4-0xef;var _0x145e45=_0x2d6f4a[_0x276ef4];return _0x145e45;},a7_0x276e(_0x155a53,_0x22a77b);}function a7_0x2d6f(){var _0x23d93f=['1800856TxJGVZ','2764ulcTOl','9jegdyF','anncic-api:validator:rules','RULES_KEY','__esModule','1020sfdRdn','4rfFBTL','VALIDATOR_KEY','5537873MvfNtB','anncic-api:validator:validator','4120870AuTEPe','12596VAtFED','defineProperty','16535hTpStC','1443106iRzOmt','954GAyafn'];a7_0x2d6f=function(){return _0x23d93f;};return a7_0x2d6f();}Object[a7_0x30f39a(0xf8)](exports,a7_0x30f39a(0xf0),{'value':!![]}),exports[a7_0x30f39a(0xf3)]=exports[a7_0x30f39a(0xef)]=void 0x0,exports[a7_0x30f39a(0xef)]=a7_0x30f39a(0xff),exports[a7_0x30f39a(0xf3)]=a7_0x30f39a(0xf5);
@@ -2,19 +2,14 @@ import * as Joi from "joi";
2
2
  import { MidwayI18nServiceSingleton } from '@midwayjs/i18n';
3
3
  export declare class ValidatorService {
4
4
  protected i18nConfig: any;
5
- protected validateConfig: any;
5
+ protected validatorConfig: any;
6
6
  protected i18nService: MidwayI18nServiceSingleton;
7
7
  protected messages: {};
8
- function(): Promise<void>;
8
+ init(): Promise<void>;
9
9
  getSchema<T extends new (...args: any[]) => any>(ClzType: T): Joi.ObjectSchema<any> | undefined;
10
- validateWithSchema<T>(schema: Joi.ObjectSchema<any>, value: any, options?: {
11
- locale?: string;
12
- errorStatus?: number;
13
- validationOptions?: Joi.ValidationOptions;
14
- }): any | undefined;
15
- validate<T extends new (...args: any[]) => any>(ClzType: T, value: any, options?: {
10
+ validator<T extends new (...args: any[]) => any>(ClzType: T | Joi.ObjectSchema<any>, value: any, options?: {
16
11
  errorStatus?: number;
17
12
  locale?: string;
18
13
  validationOptions?: Joi.ValidationOptions;
19
- }): any | undefined;
14
+ }): any;
20
15
  }
@@ -1 +1 @@
1
- 'use strict';const a10_0x4b07bd=a10_0x27fb;(function(_0x34ad56,_0x48fd55){const _0xc8cb54=a10_0x27fb,_0x207008=_0x34ad56();while(!![]){try{const _0x130095=-parseInt(_0xc8cb54(0x1b3))/0x1*(-parseInt(_0xc8cb54(0x1da))/0x2)+parseInt(_0xc8cb54(0x1aa))/0x3+-parseInt(_0xc8cb54(0x1c8))/0x4*(-parseInt(_0xc8cb54(0x1dd))/0x5)+parseInt(_0xc8cb54(0x1c4))/0x6*(parseInt(_0xc8cb54(0x1d0))/0x7)+parseInt(_0xc8cb54(0x1b9))/0x8*(-parseInt(_0xc8cb54(0x1cb))/0x9)+-parseInt(_0xc8cb54(0x1af))/0xa*(-parseInt(_0xc8cb54(0x1a8))/0xb)+-parseInt(_0xc8cb54(0x1b5))/0xc;if(_0x130095===_0x48fd55)break;else _0x207008['push'](_0x207008['shift']());}catch(_0x224693){_0x207008['push'](_0x207008['shift']());}}}(a10_0x3523,0x42c24));var __decorate=this&&this[a10_0x4b07bd(0x1d1)]||function(_0x560215,_0x2a958a,_0x3df4b9,_0x110447){const _0x15773b=a10_0x4b07bd;var _0x58da40=arguments[_0x15773b(0x1cc)],_0x129334=_0x58da40<0x3?_0x2a958a:_0x110447===null?_0x110447=Object[_0x15773b(0x1ca)](_0x2a958a,_0x3df4b9):_0x110447,_0x55e813;if(typeof Reflect===_0x15773b(0x1b7)&&typeof Reflect[_0x15773b(0x1df)]==='function')_0x129334=Reflect[_0x15773b(0x1df)](_0x560215,_0x2a958a,_0x3df4b9,_0x110447);else{for(var _0x5a1d09=_0x560215[_0x15773b(0x1cc)]-0x1;_0x5a1d09>=0x0;_0x5a1d09--)if(_0x55e813=_0x560215[_0x5a1d09])_0x129334=(_0x58da40<0x3?_0x55e813(_0x129334):_0x58da40>0x3?_0x55e813(_0x2a958a,_0x3df4b9,_0x129334):_0x55e813(_0x2a958a,_0x3df4b9))||_0x129334;}return _0x58da40>0x3&&_0x129334&&Object['defineProperty'](_0x2a958a,_0x3df4b9,_0x129334),_0x129334;},__metadata=this&&this['__metadata']||function(_0x3af5c1,_0x179a3e){const _0x3f049e=a10_0x4b07bd;if(typeof Reflect==='object'&&typeof Reflect[_0x3f049e(0x1d3)]==='function')return Reflect['metadata'](_0x3af5c1,_0x179a3e);};function a10_0x3523(){const _0x52529e=['getAvailableLocale','validateWithSchema','fromEntries','defaultLocale','$_terms','6Biusvl','i18nService','messages','assign','29948MFGbmC','formatLocale','getOwnPropertyDescriptor','18dbHFsE','length','ValidatorService','../interface','defineProperty','1699530QTSYmr','__decorate','__esModule','metadata','function','type','MidwayI18nServiceSingleton','prototype','schema','key','237492aJRRhO','getSchema','locale','145wKXQSJ','Inject','decorate','Singleton','joi','language','design:type','value','i18n','errors','keys','_flags','validate','203797iLxrUH','../exception/ValidatorError','897654tCkxTi','YYYY-MM-DD\x20HH:mm:ss','Provide','Config','RULES_KEY','30qcfyKa','Scope','@midwayjs/decorator','validateConfig','2isITux','Init','2877552PnNTHJ','design:paramtypes','object','format','2155856aSoAJp','i18nConfig','@midwayjs/i18n','localeTable','validationOptions','PARAMS'];a10_0x3523=function(){return _0x52529e;};return a10_0x3523();}Object[a10_0x4b07bd(0x1cf)](exports,a10_0x4b07bd(0x1d2),{'value':!![]}),exports[a10_0x4b07bd(0x1cd)]=void 0x0;const Joi=require(a10_0x4b07bd(0x1e1)),i18n_1=require(a10_0x4b07bd(0x1bb)),decorator_1=require(a10_0x4b07bd(0x1b1)),interface_1=require(a10_0x4b07bd(0x1ce)),ValidatorError_1=require(a10_0x4b07bd(0x1a9));function a10_0x27fb(_0x41095b,_0xaffa36){const _0x35232e=a10_0x3523();return a10_0x27fb=function(_0x27fb51,_0x458862){_0x27fb51=_0x27fb51-0x1a3;let _0xae6ad7=_0x35232e[_0x27fb51];return _0xae6ad7;},a10_0x27fb(_0x41095b,_0xaffa36);}let ValidatorService=class ValidatorService{constructor(){this['messages']={};}async[a10_0x4b07bd(0x1d4)](){const _0x4555f9=a10_0x4b07bd,_0xae04eb=Object['keys'](this[_0x4555f9(0x1ba)][_0x4555f9(0x1bc)]);_0xae04eb['forEach'](_0x173775=>{const _0x4b0f3f=_0x4555f9;this['messages'][(0x0,i18n_1['formatLocale'])(_0x173775)]=Object[_0x4b0f3f(0x1c1)](this[_0x4b0f3f(0x1c5)]['getLocaleMapping'](_0x173775,'validate'));});}[a10_0x4b07bd(0x1db)](_0x338dca){const _0x2ef37b=a10_0x4b07bd,_0x4c05db=(0x0,decorator_1['getClassExtendedMetadata'])(interface_1[_0x2ef37b(0x1ae)],_0x338dca);return _0x4c05db?Joi[_0x2ef37b(0x1b7)](_0x4c05db):undefined;}[a10_0x4b07bd(0x1c0)](_0x5a9f11,_0x5dd6e2,_0x3dbc95={}){const _0x396b45=a10_0x4b07bd;var _0x4a3472,_0x456c54;_0x3dbc95[_0x396b45(0x1bd)]=Object[_0x396b45(0x1c7)]((_0x4a3472=this['validateConfig'][_0x396b45(0x1bd)])!==null&&_0x4a3472!==void 0x0?_0x4a3472:{},{'messages':this[_0x396b45(0x1c6)]},_0x3dbc95['validationOptions']||{}),_0x3dbc95[_0x396b45(0x1bd)]['errors']=_0x3dbc95[_0x396b45(0x1bd)][_0x396b45(0x1a4)]||{},_0x3dbc95[_0x396b45(0x1bd)][_0x396b45(0x1a4)]['language']=(0x0,i18n_1[_0x396b45(0x1c9)])(this[_0x396b45(0x1c5)][_0x396b45(0x1bf)](_0x3dbc95[_0x396b45(0x1bd)]['errors'][_0x396b45(0x1e2)]||_0x3dbc95[_0x396b45(0x1dc)]||this[_0x396b45(0x1ba)][_0x396b45(0x1c2)],_0x396b45(0x1a7)));const _0x234d96=_0x5a9f11[_0x396b45(0x1a7)](_0x5dd6e2,_0x3dbc95[_0x396b45(0x1bd)]);if(_0x234d96===null||_0x234d96===void 0x0?void 0x0:_0x234d96['error'])throw new AnnError(ValidatorError_1['ValidatorError'][_0x396b45(0x1be)],{'validator':_0x234d96['error']});else{if(_0x234d96===null||_0x234d96===void 0x0?void 0x0:_0x234d96['value']){const _0x35fd6a=(_0x456c54=_0x5a9f11===null||_0x5a9f11===void 0x0?void 0x0:_0x5a9f11[_0x396b45(0x1c3)])===null||_0x456c54===void 0x0?void 0x0:_0x456c54[_0x396b45(0x1a5)],_0x46370d=function(_0x2bdfbd,_0x4450a1){const _0x3c7d1e=_0x396b45;var _0x363616,_0xccfffa,_0x34ebb1,_0x1c5695,_0x2c4676,_0x371698,_0x4b4baf,_0x518e82,_0x4634db,_0x4b4158,_0x5d9a14;for(let _0x434a85 in _0x2bdfbd){if(_0x4450a1[(_0x363616=_0x2bdfbd[_0x434a85])===null||_0x363616===void 0x0?void 0x0:_0x363616['key']]&&((_0x34ebb1=(_0xccfffa=_0x2bdfbd[_0x434a85])===null||_0xccfffa===void 0x0?void 0x0:_0xccfffa[_0x3c7d1e(0x1d8)])===null||_0x34ebb1===void 0x0?void 0x0:_0x34ebb1[_0x3c7d1e(0x1d5)])){if(((_0x2c4676=(_0x1c5695=_0x2bdfbd[_0x434a85])===null||_0x1c5695===void 0x0?void 0x0:_0x1c5695[_0x3c7d1e(0x1d8)])===null||_0x2c4676===void 0x0?void 0x0:_0x2c4676[_0x3c7d1e(0x1d5)])==_0x3c7d1e(0x1b7))_0x4450a1[_0x2bdfbd[_0x434a85][_0x3c7d1e(0x1d9)]]=_0x46370d((_0x4b4baf=(_0x371698=_0x2bdfbd[_0x434a85])===null||_0x371698===void 0x0?void 0x0:_0x371698[_0x3c7d1e(0x1d8)][_0x3c7d1e(0x1c3)])===null||_0x4b4baf===void 0x0?void 0x0:_0x4b4baf['keys'],_0x4450a1[_0x2bdfbd[_0x434a85]['key']]);else{if(_0x2bdfbd[_0x434a85][_0x3c7d1e(0x1d8)][_0x3c7d1e(0x1d5)]=='date'&&_0x234d96[_0x3c7d1e(0x1e4)][(_0x518e82=_0x2bdfbd[_0x434a85])===null||_0x518e82===void 0x0?void 0x0:_0x518e82[_0x3c7d1e(0x1d9)]]){const _0x1be987=((_0x5d9a14=(_0x4b4158=(_0x4634db=_0x2bdfbd[_0x434a85])===null||_0x4634db===void 0x0?void 0x0:_0x4634db[_0x3c7d1e(0x1d8)])===null||_0x4b4158===void 0x0?void 0x0:_0x4b4158[_0x3c7d1e(0x1a6)])===null||_0x5d9a14===void 0x0?void 0x0:_0x5d9a14[_0x3c7d1e(0x1b8)])||_0x3c7d1e(0x1ab);_0x4450a1[_0x2bdfbd[_0x434a85][_0x3c7d1e(0x1d9)]]=dayjs(_0x234d96[_0x3c7d1e(0x1e4)][_0x2bdfbd[_0x434a85]['key']])[_0x3c7d1e(0x1b8)](_0x1be987);}}}}return _0x4450a1;};return _0x46370d(_0x35fd6a,_0x234d96[_0x396b45(0x1e4)]);}}return undefined;}['validate'](_0x568d08,_0x5a9f0f,_0x2f2f01={}){const _0x7f48c6=a10_0x4b07bd,_0x25d35c=this[_0x7f48c6(0x1db)](_0x568d08);return _0x25d35c?this[_0x7f48c6(0x1c0)](_0x25d35c,_0x5a9f0f,_0x2f2f01):undefined;}};__decorate([(0x0,decorator_1['Config'])(a10_0x4b07bd(0x1a3)),__metadata(a10_0x4b07bd(0x1e3),Object)],ValidatorService[a10_0x4b07bd(0x1d7)],'i18nConfig',void 0x0),__decorate([(0x0,decorator_1[a10_0x4b07bd(0x1ad)])(a10_0x4b07bd(0x1a7)),__metadata(a10_0x4b07bd(0x1e3),Object)],ValidatorService[a10_0x4b07bd(0x1d7)],a10_0x4b07bd(0x1b2),void 0x0),__decorate([(0x0,decorator_1[a10_0x4b07bd(0x1de)])(),__metadata('design:type',i18n_1[a10_0x4b07bd(0x1d6)])],ValidatorService[a10_0x4b07bd(0x1d7)],a10_0x4b07bd(0x1c5),void 0x0),__decorate([(0x0,decorator_1[a10_0x4b07bd(0x1b4)])(),__metadata('design:type',Function),__metadata(a10_0x4b07bd(0x1b6),[]),__metadata('design:returntype',Promise)],ValidatorService['prototype'],a10_0x4b07bd(0x1d4),null),ValidatorService=__decorate([(0x0,decorator_1[a10_0x4b07bd(0x1ac)])(a10_0x4b07bd(0x1a7)),(0x0,decorator_1[a10_0x4b07bd(0x1b0)])(decorator_1['ScopeEnum'][a10_0x4b07bd(0x1e0)])],ValidatorService),exports[a10_0x4b07bd(0x1cd)]=ValidatorService;
1
+ 'use strict';const a8_0x16e72b=a8_0x2d37;(function(_0x29261f,_0x5c9566){const _0x27a2b1=a8_0x2d37,_0x4f5939=_0x29261f();while(!![]){try{const _0x2ca395=parseInt(_0x27a2b1(0x1fb))/0x1*(-parseInt(_0x27a2b1(0x207))/0x2)+parseInt(_0x27a2b1(0x1e2))/0x3+-parseInt(_0x27a2b1(0x20d))/0x4+-parseInt(_0x27a2b1(0x210))/0x5*(-parseInt(_0x27a2b1(0x1da))/0x6)+parseInt(_0x27a2b1(0x1f4))/0x7*(-parseInt(_0x27a2b1(0x1f6))/0x8)+-parseInt(_0x27a2b1(0x201))/0x9*(parseInt(_0x27a2b1(0x1e8))/0xa)+parseInt(_0x27a2b1(0x1ff))/0xb;if(_0x2ca395===_0x5c9566)break;else _0x4f5939['push'](_0x4f5939['shift']());}catch(_0xb8ed6d){_0x4f5939['push'](_0x4f5939['shift']());}}}(a8_0x5462,0x79bff));var __decorate=this&&this[a8_0x16e72b(0x200)]||function(_0x220bcb,_0x315642,_0x4835f2,_0x42c2cc){const _0x20e13e=a8_0x16e72b;var _0x2abb9c=arguments[_0x20e13e(0x1fe)],_0x293ca3=_0x2abb9c<0x3?_0x315642:_0x42c2cc===null?_0x42c2cc=Object[_0x20e13e(0x1d8)](_0x315642,_0x4835f2):_0x42c2cc,_0x39d3d5;if(typeof Reflect===_0x20e13e(0x1f1)&&typeof Reflect[_0x20e13e(0x1ef)]===_0x20e13e(0x20e))_0x293ca3=Reflect[_0x20e13e(0x1ef)](_0x220bcb,_0x315642,_0x4835f2,_0x42c2cc);else{for(var _0x147da1=_0x220bcb[_0x20e13e(0x1fe)]-0x1;_0x147da1>=0x0;_0x147da1--)if(_0x39d3d5=_0x220bcb[_0x147da1])_0x293ca3=(_0x2abb9c<0x3?_0x39d3d5(_0x293ca3):_0x2abb9c>0x3?_0x39d3d5(_0x315642,_0x4835f2,_0x293ca3):_0x39d3d5(_0x315642,_0x4835f2))||_0x293ca3;}return _0x2abb9c>0x3&&_0x293ca3&&Object['defineProperty'](_0x315642,_0x4835f2,_0x293ca3),_0x293ca3;},__metadata=this&&this[a8_0x16e72b(0x1e0)]||function(_0x5ee029,_0x21d995){const _0x31723d=a8_0x16e72b;if(typeof Reflect===_0x31723d(0x1f1)&&typeof Reflect['metadata']===_0x31723d(0x20e))return Reflect[_0x31723d(0x1f2)](_0x5ee029,_0x21d995);};Object['defineProperty'](exports,a8_0x16e72b(0x1e3),{'value':!![]}),exports[a8_0x16e72b(0x1e7)]=void 0x0;const Joi=require(a8_0x16e72b(0x1fa)),i18n_1=require(a8_0x16e72b(0x1f7)),decorator_1=require(a8_0x16e72b(0x209)),interface_1=require(a8_0x16e72b(0x1ea)),ValidatorError_1=require(a8_0x16e72b(0x212));let ValidatorService=class ValidatorService{constructor(){const _0x5927ab=a8_0x16e72b;this[_0x5927ab(0x206)]={};}async[a8_0x16e72b(0x1f8)](){const _0x448128=a8_0x16e72b,_0x3aa9fe=Object[_0x448128(0x1f5)](this['i18nConfig']['localeTable']);_0x3aa9fe[_0x448128(0x1e9)](_0x296a7b=>{const _0x51c6d6=_0x448128;this[_0x51c6d6(0x206)][(0x0,i18n_1[_0x51c6d6(0x1df)])(_0x296a7b)]=Object[_0x51c6d6(0x1ed)](this[_0x51c6d6(0x211)]['getLocaleMapping'](_0x296a7b,'validator'));});}[a8_0x16e72b(0x20c)](_0x5a2c97){const _0x46eb32=a8_0x16e72b,_0x5a7b74=(0x0,decorator_1[_0x46eb32(0x20b)])(interface_1['RULES_KEY'],_0x5a2c97);return _0x5a7b74?Joi[_0x46eb32(0x1f1)](_0x5a7b74):undefined;}['validator'](_0x688721,_0x88b4bd,_0x581e46={}){const _0x13e120=a8_0x16e72b;var _0x3ee90f,_0x23905c;const _0x2f9e1c=Joi['isSchema'](_0x688721)?_0x688721:this[_0x13e120(0x20c)](_0x688721);if(!_0x2f9e1c)throw new AnnError(ValidatorError_1[_0x13e120(0x1d6)][_0x13e120(0x20f)]);_0x581e46[_0x13e120(0x213)]=Object[_0x13e120(0x202)]((_0x3ee90f=this['validatorConfig']['validationOptions'])!==null&&_0x3ee90f!==void 0x0?_0x3ee90f:{},{'messages':this[_0x13e120(0x206)]},_0x581e46[_0x13e120(0x213)]||{}),_0x581e46[_0x13e120(0x213)]['errors']=_0x581e46[_0x13e120(0x213)][_0x13e120(0x1fc)]||{},_0x581e46[_0x13e120(0x213)][_0x13e120(0x1fc)][_0x13e120(0x208)]=(0x0,i18n_1[_0x13e120(0x1df)])(this[_0x13e120(0x211)][_0x13e120(0x1db)](_0x581e46[_0x13e120(0x213)][_0x13e120(0x1fc)][_0x13e120(0x208)]||_0x581e46[_0x13e120(0x1e6)]||this['i18nConfig'][_0x13e120(0x204)],_0x13e120(0x1ec)));const _0x221abe=_0x2f9e1c[_0x13e120(0x1e4)](_0x88b4bd,_0x581e46[_0x13e120(0x213)]);if(_0x221abe===null||_0x221abe===void 0x0?void 0x0:_0x221abe[_0x13e120(0x1dd)])throw new AnnError(ValidatorError_1[_0x13e120(0x1d6)][_0x13e120(0x1dc)],{'validator':_0x221abe[_0x13e120(0x1dd)]});if(_0x221abe===null||_0x221abe===void 0x0?void 0x0:_0x221abe[_0x13e120(0x205)]){const _0x3cc53a=(_0x23905c=_0x2f9e1c===null||_0x2f9e1c===void 0x0?void 0x0:_0x2f9e1c[_0x13e120(0x1e5)])===null||_0x23905c===void 0x0?void 0x0:_0x23905c[_0x13e120(0x1f5)],_0x3e9ed9=function(_0x190348,_0x3d0d70){const _0x3011a4=_0x13e120;var _0xdc1c82,_0x4c5e44,_0x12c293,_0x8ac207,_0x261a28,_0x8d4eb5,_0x12a09c,_0x281679,_0x31750b,_0xecbfe0,_0x2232ea;for(let _0xbd70b2 in _0x190348){if(_0x3d0d70[(_0xdc1c82=_0x190348[_0xbd70b2])===null||_0xdc1c82===void 0x0?void 0x0:_0xdc1c82[_0x3011a4(0x1f9)]]&&((_0x12c293=(_0x4c5e44=_0x190348[_0xbd70b2])===null||_0x4c5e44===void 0x0?void 0x0:_0x4c5e44[_0x3011a4(0x1e1)])===null||_0x12c293===void 0x0?void 0x0:_0x12c293[_0x3011a4(0x214)])){if(((_0x261a28=(_0x8ac207=_0x190348[_0xbd70b2])===null||_0x8ac207===void 0x0?void 0x0:_0x8ac207[_0x3011a4(0x1e1)])===null||_0x261a28===void 0x0?void 0x0:_0x261a28['type'])=='object')_0x3d0d70[_0x190348[_0xbd70b2][_0x3011a4(0x1f9)]]=_0x3e9ed9((_0x12a09c=(_0x8d4eb5=_0x190348[_0xbd70b2])===null||_0x8d4eb5===void 0x0?void 0x0:_0x8d4eb5['schema']['$_terms'])===null||_0x12a09c===void 0x0?void 0x0:_0x12a09c[_0x3011a4(0x1f5)],_0x3d0d70[_0x190348[_0xbd70b2][_0x3011a4(0x1f9)]]);else{if(_0x190348[_0xbd70b2]['schema'][_0x3011a4(0x214)]==_0x3011a4(0x1fd)&&_0x221abe[_0x3011a4(0x205)][(_0x281679=_0x190348[_0xbd70b2])===null||_0x281679===void 0x0?void 0x0:_0x281679[_0x3011a4(0x1f9)]]){const _0x216ed3=((_0x2232ea=(_0xecbfe0=(_0x31750b=_0x190348[_0xbd70b2])===null||_0x31750b===void 0x0?void 0x0:_0x31750b['schema'])===null||_0xecbfe0===void 0x0?void 0x0:_0xecbfe0[_0x3011a4(0x1f0)])===null||_0x2232ea===void 0x0?void 0x0:_0x2232ea[_0x3011a4(0x1eb)])||'YYYY-MM-DD\x20HH:mm:ss';_0x3d0d70[_0x190348[_0xbd70b2][_0x3011a4(0x1f9)]]=dayjs(_0x221abe[_0x3011a4(0x205)][_0x190348[_0xbd70b2]['key']])['format'](_0x216ed3);}}}}return _0x3d0d70;};return _0x3e9ed9(_0x3cc53a,_0x221abe[_0x13e120(0x205)]);}throw new AnnError(ValidatorError_1[_0x13e120(0x1d6)][_0x13e120(0x1dc)]);}};function a8_0x5462(){const _0x466804=['validator','fromEntries','validatorConfig','decorate','_flags','object','metadata','MidwayI18nServiceSingleton','1946avKyLo','keys','23680epVeHj','@midwayjs/i18n','init','key','joi','677SRteAV','errors','date','length','30260813okeAmu','__decorate','446175nkCybK','assign','i18n','defaultLocale','value','messages','2676TBDMlI','language','@midwayjs/decorator','i18nConfig','getClassExtendedMetadata','getSchema','3809644aLwrMS','function','NOFIND_SCHEMA','119725whpOxG','i18nService','../exception/ValidatorError','validationOptions','type','Scope','ScopeEnum','ValidatorError','design:type','getOwnPropertyDescriptor','prototype','126DnnOVs','getAvailableLocale','PARAMS','error','Inject','formatLocale','__metadata','schema','1413903SoHZMa','__esModule','validate','$_terms','locale','ValidatorService','110NrJCBM','forEach','../interface','format'];a8_0x5462=function(){return _0x466804;};return a8_0x5462();}function a8_0x2d37(_0x1e0162,_0x1aa87f){const _0x54622b=a8_0x5462();return a8_0x2d37=function(_0x2d374e,_0x3ff615){_0x2d374e=_0x2d374e-0x1d5;let _0x1edc1b=_0x54622b[_0x2d374e];return _0x1edc1b;},a8_0x2d37(_0x1e0162,_0x1aa87f);}__decorate([(0x0,decorator_1['Config'])(a8_0x16e72b(0x203)),__metadata(a8_0x16e72b(0x1d7),Object)],ValidatorService['prototype'],a8_0x16e72b(0x20a),void 0x0),__decorate([(0x0,decorator_1['Config'])(a8_0x16e72b(0x1ec)),__metadata(a8_0x16e72b(0x1d7),Object)],ValidatorService['prototype'],a8_0x16e72b(0x1ee),void 0x0),__decorate([(0x0,decorator_1[a8_0x16e72b(0x1de)])(),__metadata(a8_0x16e72b(0x1d7),i18n_1[a8_0x16e72b(0x1f3)])],ValidatorService[a8_0x16e72b(0x1d9)],a8_0x16e72b(0x211),void 0x0),__decorate([(0x0,decorator_1['Init'])(),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ValidatorService[a8_0x16e72b(0x1d9)],a8_0x16e72b(0x1f8),null),ValidatorService=__decorate([(0x0,decorator_1['Provide'])(a8_0x16e72b(0x1ec)),(0x0,decorator_1[a8_0x16e72b(0x215)])(decorator_1[a8_0x16e72b(0x1d5)]['Singleton'])],ValidatorService),exports[a8_0x16e72b(0x1e7)]=ValidatorService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/validator",
3
- "version": "1.0.11",
3
+ "version": "1.0.14",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
16
16
  },
17
17
  "dependencies": {
18
- "@anncic-api/core": "^1.0.11",
18
+ "@anncic-api/core": "^1.0.14",
19
19
  "@joi/date": "^2.1.0",
20
20
  "joi": "^17.6.0"
21
21
  },
@@ -24,5 +24,5 @@
24
24
  "javascript-obfuscator": "2.19.0",
25
25
  "typescript": "^4.7.4"
26
26
  },
27
- "gitHead": "17c114c579d7fe94caf96b0d4c89892c4813c11f"
27
+ "gitHead": "4fafd881b309bad6e9162c857d8a230dc290ce7b"
28
28
  }
@@ -1,5 +0,0 @@
1
- export interface Dto<T> extends Function {
2
- new (): T;
3
- }
4
- export declare function PickDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Pick<T, typeof keys[number]>>;
5
- export declare function OmitDto<T, K extends keyof T>(dto: Dto<T>, keys: K[]): Dto<Omit<T, typeof keys[number]>>;