@anncic-api/typeorm 1.4.4 → 1.4.5

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
- 'use strict';const a0_0x124d69=a0_0x5a6a;(function(_0x174506,_0x5da917){const _0xae0620=a0_0x5a6a,_0x5ca83a=_0x174506();while(!![]){try{const _0x3d8a31=parseInt(_0xae0620(0x1d6))/0x1+parseInt(_0xae0620(0x1b2))/0x2+parseInt(_0xae0620(0x1ae))/0x3+parseInt(_0xae0620(0x1bb))/0x4+parseInt(_0xae0620(0x1b7))/0x5*(parseInt(_0xae0620(0x1b8))/0x6)+-parseInt(_0xae0620(0x1da))/0x7*(-parseInt(_0xae0620(0x1d2))/0x8)+-parseInt(_0xae0620(0x1cb))/0x9;if(_0x3d8a31===_0x5da917)break;else _0x5ca83a['push'](_0x5ca83a['shift']());}catch(_0x3b45b6){_0x5ca83a['push'](_0x5ca83a['shift']());}}}(a0_0x4fd1,0x57229));var __decorate=this&&this[a0_0x124d69(0x1ad)]||function(_0x155c4e,_0x4ae4ef,_0x4c733e,_0x2326a8){const _0x3beccd=a0_0x124d69;var _0x2365aa=arguments[_0x3beccd(0x1a9)],_0x1deaab=_0x2365aa<0x3?_0x4ae4ef:_0x2326a8===null?_0x2326a8=Object[_0x3beccd(0x1cf)](_0x4ae4ef,_0x4c733e):_0x2326a8,_0x3d53e5;if(typeof Reflect===_0x3beccd(0x1af)&&typeof Reflect[_0x3beccd(0x1ba)]==='function')_0x1deaab=Reflect['decorate'](_0x155c4e,_0x4ae4ef,_0x4c733e,_0x2326a8);else{for(var _0x5473b1=_0x155c4e['length']-0x1;_0x5473b1>=0x0;_0x5473b1--)if(_0x3d53e5=_0x155c4e[_0x5473b1])_0x1deaab=(_0x2365aa<0x3?_0x3d53e5(_0x1deaab):_0x2365aa>0x3?_0x3d53e5(_0x4ae4ef,_0x4c733e,_0x1deaab):_0x3d53e5(_0x4ae4ef,_0x4c733e))||_0x1deaab;}return _0x2365aa>0x3&&_0x1deaab&&Object[_0x3beccd(0x1aa)](_0x4ae4ef,_0x4c733e,_0x1deaab),_0x1deaab;},__metadata=this&&this[a0_0x124d69(0x1c5)]||function(_0x1dc2a1,_0x2c038c){const _0x5e49e6=a0_0x124d69;if(typeof Reflect===_0x5e49e6(0x1af)&&typeof Reflect[_0x5e49e6(0x1bf)]==='function')return Reflect[_0x5e49e6(0x1bf)](_0x1dc2a1,_0x2c038c);};Object[a0_0x124d69(0x1aa)](exports,'__esModule',{'value':!![]}),exports[a0_0x124d69(0x1d7)]=void 0x0;const typeorm_1=require(a0_0x124d69(0x1b3)),core_1=require('@midwayjs/core'),core_2=require(a0_0x124d69(0x1cc)),typeorm_2=require(a0_0x124d69(0x1ac)),Repository_1=require(a0_0x124d69(0x1d1)),interface_1=require('./interface'),typeorm=require(a0_0x124d69(0x1b3));function a0_0x4fd1(){const _0x406eec=['getDataSource','name','getRepository','15520MvKbAB','354NTCHPh','Repository','decorate','1131092sWCFjw','Inject','body','message','metadata','MidwayConfigService','prototype','getEnv','useMiddleware','push','__metadata','find','config','getAsync','getDataSourceNameByModel','middlewareError','16268301lTUSgq','@midwayjs/core','target','\x20is\x20not\x20ProvideRepository\x20Entify','getOwnPropertyDescriptor','design:type','./definition/Repository','16UZZJtg','typeorm\x20Error\x20','registerPropertyHandler','handlercache','468933lmInhr','CustomConfiguration','decorator','MidwayDecoratorService','2356634yFhEIF','warn','length','defineProperty','EntityNotFoundError','typeorm','__decorate','431472kIrqjT','object','ENTIFY_KEY','production','825008YTQtxJ','@midwayjs/typeorm'];a0_0x4fd1=function(){return _0x406eec;};return a0_0x4fd1();}let CustomConfiguration=class CustomConfiguration{constructor(){const _0x1a4a7d=a0_0x124d69;this[_0x1a4a7d(0x1d5)]=[];}async['onReady'](_0x34970d,_0x3b983a){const _0x35e125=a0_0x124d69,_0x376051=await _0x34970d[_0x35e125(0x1c8)](typeorm_1['TypeORMDataSourceManager']);this[_0x35e125(0x1d8)][_0x35e125(0x1d4)](interface_1[_0x35e125(0x1b0)],(_0x42a1b9,{entity:_0x572662,connection:_0x9e296a})=>{const _0x45d656=_0x35e125;let _0xfdb7ee=this[_0x45d656(0x1d5)]['find'](_0x56f9ce=>_0x56f9ce[_0x45d656(0x1cd)]===_0x572662);return!_0xfdb7ee&&(_0xfdb7ee=new Repository_1[(_0x45d656(0x1b9))](_0x3b983a,_0x34970d,_0x376051['getDataSource'](_0x9e296a||_0x376051['getDataSourceNameByModel'](_0x572662))['getRepository'](_0x572662)),this['handlercache'][_0x45d656(0x1c4)](_0xfdb7ee)),_0xfdb7ee;}),this['decorator'][_0x35e125(0x1d4)](interface_1['REPOSITORY_KEY'],(_0x23c33b,{repository:_0x2bc592,connection:_0x542106})=>{const _0x4ade81=_0x35e125,{entity:_0x4a00bf}=(0x0,core_1['getClassMetadata'])(interface_1['REPOSITORY_KEY'],_0x2bc592)||{};if(!_0x4a00bf)throw new Error(_0x4ade81(0x1d3)+((_0x2bc592===null||_0x2bc592===void 0x0?void 0x0:_0x2bc592[_0x4ade81(0x1b5)])||_0x2bc592)+_0x4ade81(0x1ce));let _0x3a0966=this[_0x4ade81(0x1d5)][_0x4ade81(0x1c6)](_0x948a70=>_0x948a70===_0x2bc592);return!_0x3a0966&&(_0x3a0966=new _0x2bc592(_0x3b983a,_0x34970d,_0x376051[_0x4ade81(0x1b4)](_0x542106||_0x376051[_0x4ade81(0x1c9)](_0x4a00bf))[_0x4ade81(0x1b6)](_0x4a00bf)),this[_0x4ade81(0x1d5)][_0x4ade81(0x1c4)](_0x3a0966)),_0x3a0966;}),_0x3b983a[_0x35e125(0x1c3)](this['middlewareError'](_0x3b983a));}[a0_0x124d69(0x1ca)](_0x3191cd){return async(_0x3fb806,_0x3d5585)=>{const _0x4da252=a0_0x5a6a;try{await _0x3d5585();}catch(_0x384806){if(_0x384806 instanceof typeorm_2['TypeORMError'])_0x384806 instanceof typeorm_2[_0x4da252(0x1ab)]?_0x3fb806[_0x4da252(0x1bd)]={'code':0x194,'msg':'数据不存在'}:(_0x3fb806[_0x4da252(0x1bd)]={'code':0x1f4,'msg':_0x384806[_0x4da252(0x1be)]},_0x3191cd[_0x4da252(0x1c2)]()!=_0x4da252(0x1b1)&&console[_0x4da252(0x1db)](_0x384806));else throw _0x384806;}};}};function a0_0x5a6a(_0x58629e,_0x3f7648){const _0x4fd19e=a0_0x4fd1();return a0_0x5a6a=function(_0x5a6a76,_0x562974){_0x5a6a76=_0x5a6a76-0x1a9;let _0x570c11=_0x4fd19e[_0x5a6a76];return _0x570c11;},a0_0x5a6a(_0x58629e,_0x3f7648);}__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x124d69(0x1d0),core_2[a0_0x124d69(0x1c0)])],CustomConfiguration[a0_0x124d69(0x1c1)],a0_0x124d69(0x1c7),void 0x0),__decorate([(0x0,core_1[a0_0x124d69(0x1bc)])(),__metadata(a0_0x124d69(0x1d0),core_2[a0_0x124d69(0x1d9)])],CustomConfiguration[a0_0x124d69(0x1c1)],a0_0x124d69(0x1d8),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
1
+ 'use strict';function a0_0x52b7(_0x1dfffd,_0x8670bd){const _0xaa27db=a0_0xaa27();return a0_0x52b7=function(_0x52b7f5,_0x327fa6){_0x52b7f5=_0x52b7f5-0x182;let _0xd9768=_0xaa27db[_0x52b7f5];return _0xd9768;},a0_0x52b7(_0x1dfffd,_0x8670bd);}const a0_0xadc311=a0_0x52b7;(function(_0x51e4a4,_0x27472c){const _0x1486c4=a0_0x52b7,_0x12e0b7=_0x51e4a4();while(!![]){try{const _0x2ad8d2=-parseInt(_0x1486c4(0x1ac))/0x1+parseInt(_0x1486c4(0x191))/0x2*(-parseInt(_0x1486c4(0x183))/0x3)+parseInt(_0x1486c4(0x18c))/0x4*(-parseInt(_0x1486c4(0x1a7))/0x5)+-parseInt(_0x1486c4(0x18f))/0x6*(parseInt(_0x1486c4(0x1a8))/0x7)+-parseInt(_0x1486c4(0x1a3))/0x8+parseInt(_0x1486c4(0x198))/0x9+parseInt(_0x1486c4(0x1a2))/0xa;if(_0x2ad8d2===_0x27472c)break;else _0x12e0b7['push'](_0x12e0b7['shift']());}catch(_0x481f3a){_0x12e0b7['push'](_0x12e0b7['shift']());}}}(a0_0xaa27,0x9ee89));var __decorate=this&&this[a0_0xadc311(0x184)]||function(_0x4b4ae0,_0x509904,_0x2f8792,_0x59ce4b){const _0x22c683=a0_0xadc311;var _0x1aaec0=arguments[_0x22c683(0x18e)],_0x37f542=_0x1aaec0<0x3?_0x509904:_0x59ce4b===null?_0x59ce4b=Object['getOwnPropertyDescriptor'](_0x509904,_0x2f8792):_0x59ce4b,_0xa857fc;if(typeof Reflect===_0x22c683(0x18a)&&typeof Reflect['decorate']===_0x22c683(0x1a0))_0x37f542=Reflect[_0x22c683(0x1ab)](_0x4b4ae0,_0x509904,_0x2f8792,_0x59ce4b);else{for(var _0x53206a=_0x4b4ae0[_0x22c683(0x18e)]-0x1;_0x53206a>=0x0;_0x53206a--)if(_0xa857fc=_0x4b4ae0[_0x53206a])_0x37f542=(_0x1aaec0<0x3?_0xa857fc(_0x37f542):_0x1aaec0>0x3?_0xa857fc(_0x509904,_0x2f8792,_0x37f542):_0xa857fc(_0x509904,_0x2f8792))||_0x37f542;}return _0x1aaec0>0x3&&_0x37f542&&Object[_0x22c683(0x1b0)](_0x509904,_0x2f8792,_0x37f542),_0x37f542;},__metadata=this&&this['__metadata']||function(_0x256af4,_0x223af6){const _0x1f9865=a0_0xadc311;if(typeof Reflect===_0x1f9865(0x18a)&&typeof Reflect[_0x1f9865(0x1a1)]==='function')return Reflect[_0x1f9865(0x1a1)](_0x256af4,_0x223af6);};function a0_0xaa27(){const _0x5af813=['TypeORMError','getClassMetadata','decorator','function','metadata','30864840KGqACa','6920344CgILbj','handlercache','MidwayConfigService','onReady','4610jlyCZO','3138415cJHzDB','middlewareError','body','decorate','357373oqPhym','typeorm\x20Error\x20','CustomConfiguration','TypeORMDataSourceManager','defineProperty','Configuration','typeorm','warn','EntityNotFoundError','getEnv','production','getDataSource','__esModule','3CtPxoG','__decorate','design:type','\x20is\x20not\x20ProvideRepository\x20Entify','target','name','useMiddleware','object','find','676pfrCve','MidwayDecoratorService','length','6YAZLPv','getRepository','1906172davQgP','ENTIFY_KEY','@midwayjs/core','@midwayjs/typeorm','push','数据不存在','prototype','3096630glWCez','getAsync','registerPropertyHandler','Repository','REPOSITORY_KEY'];a0_0xaa27=function(){return _0x5af813;};return a0_0xaa27();}Object[a0_0xadc311(0x1b0)](exports,a0_0xadc311(0x182),{'value':!![]}),exports[a0_0xadc311(0x1ae)]=void 0x0;const typeorm_1=require(a0_0xadc311(0x194)),core_1=require(a0_0xadc311(0x193)),core_2=require('@midwayjs/core'),typeorm_2=require(a0_0xadc311(0x1b2)),Repository_1=require('./definition/Repository'),interface_1=require('./interface'),typeorm=require('@midwayjs/typeorm');let CustomConfiguration=class CustomConfiguration{constructor(){const _0x58da15=a0_0xadc311;this[_0x58da15(0x1a4)]=[];}async[a0_0xadc311(0x1a6)](_0x3f9552,_0x2ad7d6){const _0x4575fa=a0_0xadc311,_0x800420=await _0x3f9552[_0x4575fa(0x199)](typeorm_1[_0x4575fa(0x1af)]);this[_0x4575fa(0x19f)][_0x4575fa(0x19a)](interface_1[_0x4575fa(0x192)],(_0x324211,{entity:_0x4baaf5,connection:_0x4c63e2})=>{const _0x12c061=_0x4575fa;let _0x483ed8=this[_0x12c061(0x1a4)]['find'](_0x1576ee=>_0x1576ee[_0x12c061(0x187)]===_0x4baaf5);return!_0x483ed8&&(_0x483ed8=new Repository_1[(_0x12c061(0x19b))](_0x2ad7d6,_0x3f9552,_0x800420[_0x12c061(0x1b7)](_0x4c63e2||_0x800420['getDataSourceNameByModel'](_0x4baaf5))[_0x12c061(0x190)](_0x4baaf5)),this[_0x12c061(0x1a4)][_0x12c061(0x195)](_0x483ed8)),_0x483ed8;}),this[_0x4575fa(0x19f)][_0x4575fa(0x19a)](interface_1[_0x4575fa(0x19c)],(_0x24cb4e,{repository:_0x2ace88,connection:_0xa3e3b4})=>{const _0x48aa3d=_0x4575fa,{entity:_0x5ac026}=(0x0,core_1[_0x48aa3d(0x19e)])(interface_1[_0x48aa3d(0x19c)],_0x2ace88)||{};if(!_0x5ac026)throw new Error(_0x48aa3d(0x1ad)+((_0x2ace88===null||_0x2ace88===void 0x0?void 0x0:_0x2ace88[_0x48aa3d(0x188)])||_0x2ace88)+_0x48aa3d(0x186));let _0xf48297=this[_0x48aa3d(0x1a4)][_0x48aa3d(0x18b)](_0x544889=>_0x544889===_0x2ace88);return!_0xf48297&&(_0xf48297=new _0x2ace88(_0x2ad7d6,_0x3f9552,_0x800420[_0x48aa3d(0x1b7)](_0xa3e3b4||_0x800420['getDataSourceNameByModel'](_0x5ac026))[_0x48aa3d(0x190)](_0x5ac026)),this[_0x48aa3d(0x1a4)]['push'](_0xf48297)),_0xf48297;}),_0x2ad7d6[_0x4575fa(0x189)](this[_0x4575fa(0x1a9)](_0x2ad7d6));}[a0_0xadc311(0x1a9)](_0x2201ae){return async(_0x4acc24,_0xb341f5)=>{const _0x40b225=a0_0x52b7;try{await _0xb341f5();}catch(_0x57ad80){if(_0x57ad80 instanceof typeorm_2[_0x40b225(0x19d)])_0x57ad80 instanceof typeorm_2[_0x40b225(0x1b4)]?_0x4acc24[_0x40b225(0x1aa)]={'code':0x194,'msg':_0x40b225(0x196)}:(_0x4acc24[_0x40b225(0x1aa)]={'code':0x1f4,'msg':_0x57ad80['message']},_0x2201ae[_0x40b225(0x1b5)]()!=_0x40b225(0x1b6)&&console[_0x40b225(0x1b3)](_0x57ad80));else throw _0x57ad80;}};}};__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0xadc311(0x185),core_2[a0_0xadc311(0x1a5)])],CustomConfiguration[a0_0xadc311(0x197)],'config',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a0_0xadc311(0x18d)])],CustomConfiguration['prototype'],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0xadc311(0x1b1)])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration),exports[a0_0xadc311(0x1ae)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a1_0x3432be=a1_0x4c8a;(function(_0x5cdbb2,_0x5aee20){const _0x28d7fc=a1_0x4c8a,_0x557b74=_0x5cdbb2();while(!![]){try{const _0x1dc8b2=-parseInt(_0x28d7fc(0x134))/0x1+parseInt(_0x28d7fc(0x12d))/0x2+parseInt(_0x28d7fc(0x131))/0x3+-parseInt(_0x28d7fc(0x12b))/0x4*(-parseInt(_0x28d7fc(0x12e))/0x5)+-parseInt(_0x28d7fc(0x135))/0x6+-parseInt(_0x28d7fc(0x130))/0x7+parseInt(_0x28d7fc(0x12a))/0x8;if(_0x1dc8b2===_0x5aee20)break;else _0x557b74['push'](_0x557b74['shift']());}catch(_0x39c353){_0x557b74['push'](_0x557b74['shift']());}}}(a1_0x28df,0xb11da));function a1_0x28df(){const _0x47f3bb=['createCustomPropertyDecorator','default','1168110kstwFD','7233744hPlXRE','../interface','11084320qRfySs','5516fgTIao','defineProperty','2461230iyqOrB','4420ZmZxKF','InjectEntity','8956374dRgnkQ','1630473AFTlVz'];a1_0x28df=function(){return _0x47f3bb;};return a1_0x28df();}function a1_0x4c8a(_0x1f5446,_0x552ea2){const _0x28df54=a1_0x28df();return a1_0x4c8a=function(_0x4c8ac7,_0x40765d){_0x4c8ac7=_0x4c8ac7-0x129;let _0x460b7f=_0x28df54[_0x4c8ac7];return _0x460b7f;},a1_0x4c8a(_0x1f5446,_0x552ea2);}Object[a1_0x3432be(0x12c)](exports,'__esModule',{'value':!![]}),exports[a1_0x3432be(0x12f)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a1_0x3432be(0x129));function InjectEntity(_0x2aafb7,_0x3f7ffd=a1_0x3432be(0x133)){const _0x6d6869=a1_0x3432be;return(0x0,core_1[_0x6d6869(0x132)])(interface_1['ENTIFY_KEY'],{'entity':_0x2aafb7,'connection':_0x3f7ffd});}exports['InjectEntity']=InjectEntity;
1
+ 'use strict';const a1_0x457f3f=a1_0x2451;function a1_0x2451(_0x3625c0,_0x1f9a0a){const _0x57d9fb=a1_0x57d9();return a1_0x2451=function(_0x245128,_0x251541){_0x245128=_0x245128-0x9c;let _0x4ddbff=_0x57d9fb[_0x245128];return _0x4ddbff;},a1_0x2451(_0x3625c0,_0x1f9a0a);}function a1_0x57d9(){const _0x91ca41=['2fsOCoZ','93191yOKfFK','ENTIFY_KEY','3044572YqxdRa','default','InjectEntity','__esModule','createCustomPropertyDecorator','../interface','@midwayjs/core','1074780pnoCSA','8xgzfYu','10354599jDGCxg','defineProperty','198wPTWOm','2281398Njjqpj','7BBNYpg','2837080SVrrfV','6040740kTwNto'];a1_0x57d9=function(){return _0x91ca41;};return a1_0x57d9();}(function(_0x3467ec,_0x2fdbe8){const _0x5366bb=a1_0x2451,_0x1744c6=_0x3467ec();while(!![]){try{const _0x1cea0e=-parseInt(_0x5366bb(0xad))/0x1+parseInt(_0x5366bb(0xac))/0x2*(-parseInt(_0x5366bb(0xa8))/0x3)+parseInt(_0x5366bb(0x9c))/0x4+parseInt(_0x5366bb(0xaa))/0x5+parseInt(_0x5366bb(0xab))/0x6*(parseInt(_0x5366bb(0xa9))/0x7)+parseInt(_0x5366bb(0xa4))/0x8*(parseInt(_0x5366bb(0xa5))/0x9)+parseInt(_0x5366bb(0xa3))/0xa*(-parseInt(_0x5366bb(0xa7))/0xb);if(_0x1cea0e===_0x2fdbe8)break;else _0x1744c6['push'](_0x1744c6['shift']());}catch(_0x4f454b){_0x1744c6['push'](_0x1744c6['shift']());}}}(a1_0x57d9,0xaa4ff));Object[a1_0x457f3f(0xa6)](exports,a1_0x457f3f(0x9f),{'value':!![]}),exports[a1_0x457f3f(0x9e)]=void 0x0;const core_1=require(a1_0x457f3f(0xa2)),interface_1=require(a1_0x457f3f(0xa1));function InjectEntity(_0x1fc569,_0x3f3b72=a1_0x457f3f(0x9d)){const _0x4df80c=a1_0x457f3f;return(0x0,core_1[_0x4df80c(0xa0)])(interface_1[_0x4df80c(0xae)],{'entity':_0x1fc569,'connection':_0x3f3b72});}exports[a1_0x457f3f(0x9e)]=InjectEntity;
@@ -1 +1 @@
1
- 'use strict';const a2_0xd8e14e=a2_0x58ee;(function(_0x5bbae8,_0xbef75c){const _0x10f722=a2_0x58ee,_0x14abf3=_0x5bbae8();while(!![]){try{const _0x5414f6=-parseInt(_0x10f722(0x9b))/0x1*(parseInt(_0x10f722(0x99))/0x2)+parseInt(_0x10f722(0x9a))/0x3*(-parseInt(_0x10f722(0x98))/0x4)+parseInt(_0x10f722(0x90))/0x5+parseInt(_0x10f722(0x93))/0x6+parseInt(_0x10f722(0x97))/0x7+-parseInt(_0x10f722(0x9c))/0x8*(parseInt(_0x10f722(0x91))/0x9)+parseInt(_0x10f722(0x95))/0xa;if(_0x5414f6===_0xbef75c)break;else _0x14abf3['push'](_0x14abf3['shift']());}catch(_0x358397){_0x14abf3['push'](_0x14abf3['shift']());}}}(a2_0x416d,0xd845e));Object[a2_0xd8e14e(0x9e)](exports,a2_0xd8e14e(0x96),{'value':!![]}),exports[a2_0xd8e14e(0x94)]=void 0x0;function a2_0x58ee(_0x5bd9d1,_0x48d0dc){const _0x416db2=a2_0x416d();return a2_0x58ee=function(_0x58eea9,_0x19f772){_0x58eea9=_0x58eea9-0x8e;let _0x708a1b=_0x416db2[_0x58eea9];return _0x708a1b;},a2_0x58ee(_0x5bd9d1,_0x48d0dc);}const core_1=require(a2_0xd8e14e(0x92)),interface_1=require(a2_0xd8e14e(0x8f));function a2_0x416d(){const _0x468e14=['8xxerTP','139012sHEUOV','1583031xpiTUe','21coOBby','50536uWDxKj','default','defineProperty','createCustomPropertyDecorator','../interface','7847145dOzKry','2403EdNRGP','@midwayjs/core','8180904veablY','InjectRepository','3989520fqlPva','__esModule','12289256xvVZbl'];a2_0x416d=function(){return _0x468e14;};return a2_0x416d();}function InjectRepository(_0x12ef11,_0x542f64=a2_0xd8e14e(0x9d)){const _0xfdbed1=a2_0xd8e14e;return(0x0,core_1[_0xfdbed1(0x8e)])(interface_1['REPOSITORY_KEY'],{'repository':_0x12ef11,'connection':_0x542f64});}exports[a2_0xd8e14e(0x94)]=InjectRepository;
1
+ 'use strict';const a2_0x3f629b=a2_0x27b2;(function(_0x3ab54e,_0x47fb26){const _0x260544=a2_0x27b2,_0x36e054=_0x3ab54e();while(!![]){try{const _0x12996b=parseInt(_0x260544(0x19a))/0x1+parseInt(_0x260544(0x190))/0x2*(parseInt(_0x260544(0x199))/0x3)+-parseInt(_0x260544(0x18f))/0x4*(parseInt(_0x260544(0x198))/0x5)+-parseInt(_0x260544(0x191))/0x6+parseInt(_0x260544(0x192))/0x7*(-parseInt(_0x260544(0x196))/0x8)+-parseInt(_0x260544(0x195))/0x9*(-parseInt(_0x260544(0x19f))/0xa)+parseInt(_0x260544(0x19d))/0xb;if(_0x12996b===_0x47fb26)break;else _0x36e054['push'](_0x36e054['shift']());}catch(_0x4c44d7){_0x36e054['push'](_0x36e054['shift']());}}}(a2_0x3e71,0x30a31));Object['defineProperty'](exports,a2_0x3f629b(0x18e),{'value':!![]}),exports[a2_0x3f629b(0x19c)]=void 0x0;function a2_0x27b2(_0x28eb9f,_0x5bdc53){const _0x3e7143=a2_0x3e71();return a2_0x27b2=function(_0x27b260,_0x3b17b7){_0x27b260=_0x27b260-0x18e;let _0x523d02=_0x3e7143[_0x27b260];return _0x523d02;},a2_0x27b2(_0x28eb9f,_0x5bdc53);}const core_1=require(a2_0x3f629b(0x197)),interface_1=require(a2_0x3f629b(0x19e));function InjectRepository(_0x3de288,_0x31f8ef=a2_0x3f629b(0x193)){const _0x447933=a2_0x3f629b;return(0x0,core_1[_0x447933(0x194)])(interface_1[_0x447933(0x19b)],{'repository':_0x3de288,'connection':_0x31f8ef});}function a2_0x3e71(){const _0x2d1e7e=['../interface','10CfEvKn','__esModule','5684vnkbRX','137700pYSavi','1873188hbhEKa','2541CtaldB','default','createCustomPropertyDecorator','428931nPuQlg','744LgeemK','@midwayjs/core','715fmAuVz','3UTkaZn','167212XyEEhq','REPOSITORY_KEY','InjectRepository','5111216AydWSx'];a2_0x3e71=function(){return _0x2d1e7e;};return a2_0x3e71();}exports[a2_0x3f629b(0x19c)]=InjectRepository;
@@ -1 +1 @@
1
- 'use strict';const a3_0x2044f3=a3_0x8e68;function a3_0xadfc(){const _0x5e64e9=['push','7sHSoah','string','saveClassMetadata','12062413tcKnsX','ENTIFY_MODULE','__esModule','ENTIFY_MODULE_SOURCE','1633784CQklZw','2152944pUXYVf','199945vXiUsW','typeorm','1367709IUpUnG','default','2ohYSnW','10xTYpGr','Entity','9230712FCSQwB','1780720Omdhih','20tQNYvG','dataSource','ProvideEntity','tableName'];a3_0xadfc=function(){return _0x5e64e9;};return a3_0xadfc();}(function(_0x25e4e0,_0x94799b){const _0x4dbecb=a3_0x8e68,_0x436ba7=_0x25e4e0();while(!![]){try{const _0x7d180f=parseInt(_0x4dbecb(0x191))/0x1+parseInt(_0x4dbecb(0x195))/0x2*(-parseInt(_0x4dbecb(0x193))/0x3)+parseInt(_0x4dbecb(0x1a6))/0x4*(parseInt(_0x4dbecb(0x19a))/0x5)+-parseInt(_0x4dbecb(0x198))/0x6+parseInt(_0x4dbecb(0x19f))/0x7*(-parseInt(_0x4dbecb(0x199))/0x8)+parseInt(_0x4dbecb(0x190))/0x9+-parseInt(_0x4dbecb(0x196))/0xa*(-parseInt(_0x4dbecb(0x1a2))/0xb);if(_0x7d180f===_0x94799b)break;else _0x436ba7['push'](_0x436ba7['shift']());}catch(_0x1737e5){_0x436ba7['push'](_0x436ba7['shift']());}}}(a3_0xadfc,0xe8907));Object['defineProperty'](exports,a3_0x2044f3(0x1a4),{'value':!![]}),exports[a3_0x2044f3(0x19c)]=void 0x0;function a3_0x8e68(_0x2f8425,_0x47d57a){const _0xadfcfc=a3_0xadfc();return a3_0x8e68=function(_0x8e68fc,_0xf28afc){_0x8e68fc=_0x8e68fc-0x190;let _0x3ff35b=_0xadfcfc[_0x8e68fc];return _0x3ff35b;},a3_0x8e68(_0x2f8425,_0x47d57a);}const typeorm_1=require(a3_0x2044f3(0x192)),core_1=require('@midwayjs/core'),interface_1=require('../interface');function ProvideEntity(_0x4b59ed,_0x1080c4={}){return _0x19753d=>{const _0x3cf0f6=a3_0x8e68;_0x1080c4['name']=_0x4b59ed[_0x3cf0f6(0x19d)];const _0x5db335=[];if(!(_0x4b59ed===null||_0x4b59ed===void 0x0?void 0x0:_0x4b59ed[_0x3cf0f6(0x19b)]))_0x5db335[_0x3cf0f6(0x19e)](_0x3cf0f6(0x194));else{if(typeof(_0x4b59ed===null||_0x4b59ed===void 0x0?void 0x0:_0x4b59ed[_0x3cf0f6(0x19b)])==_0x3cf0f6(0x1a0))_0x5db335[_0x3cf0f6(0x19e)](_0x4b59ed===null||_0x4b59ed===void 0x0?void 0x0:_0x4b59ed[_0x3cf0f6(0x19b)]);else{if(Array['isArray'](_0x4b59ed===null||_0x4b59ed===void 0x0?void 0x0:_0x4b59ed[_0x3cf0f6(0x19b)]))for(let _0x1cc617 of _0x4b59ed[_0x3cf0f6(0x19b)]||[_0x3cf0f6(0x194)]){_0x5db335[_0x3cf0f6(0x19e)](_0x1cc617);}}}(0x0,core_1['saveModule'])(interface_1[_0x3cf0f6(0x1a3)],_0x19753d),(0x0,core_1[_0x3cf0f6(0x1a1)])(interface_1[_0x3cf0f6(0x1a5)],{'tableName':_0x4b59ed[_0x3cf0f6(0x19d)],'dataSource':_0x5db335},_0x19753d),(0x0,typeorm_1[_0x3cf0f6(0x197)])(_0x4b59ed['tableName'],_0x1080c4)(_0x19753d);};}exports[a3_0x2044f3(0x19c)]=ProvideEntity;
1
+ 'use strict';function a3_0x27ec(_0x51d7d0,_0x2f3156){const _0x296edd=a3_0x296e();return a3_0x27ec=function(_0x27ec11,_0xe93a6e){_0x27ec11=_0x27ec11-0x161;let _0xfa4f93=_0x296edd[_0x27ec11];return _0xfa4f93;},a3_0x27ec(_0x51d7d0,_0x2f3156);}const a3_0x5c20d9=a3_0x27ec;(function(_0x11d8c4,_0x518e65){const _0x515802=a3_0x27ec,_0x3f3fe1=_0x11d8c4();while(!![]){try{const _0x562793=parseInt(_0x515802(0x165))/0x1*(parseInt(_0x515802(0x16f))/0x2)+-parseInt(_0x515802(0x17a))/0x3*(parseInt(_0x515802(0x164))/0x4)+-parseInt(_0x515802(0x166))/0x5+-parseInt(_0x515802(0x174))/0x6*(-parseInt(_0x515802(0x16c))/0x7)+parseInt(_0x515802(0x175))/0x8*(parseInt(_0x515802(0x169))/0x9)+parseInt(_0x515802(0x167))/0xa+parseInt(_0x515802(0x178))/0xb;if(_0x562793===_0x518e65)break;else _0x3f3fe1['push'](_0x3f3fe1['shift']());}catch(_0x28921b){_0x3f3fe1['push'](_0x3f3fe1['shift']());}}}(a3_0x296e,0x3c025));Object['defineProperty'](exports,a3_0x5c20d9(0x168),{'value':!![]}),exports[a3_0x5c20d9(0x173)]=void 0x0;const typeorm_1=require('typeorm'),core_1=require(a3_0x5c20d9(0x161)),interface_1=require(a3_0x5c20d9(0x16e));function a3_0x296e(){const _0x2e22b4=['saveClassMetadata','22560DUPbHj','67394yrFcol','1664075oytdbu','701100SdgPtN','__esModule','261ykCHhM','push','ENTIFY_MODULE','21oWDmdL','tableName','../interface','2fnKJQw','string','isArray','name','ProvideEntity','136854WNHuhw','21440YkMfBu','saveModule','Entity','7277171VLRmOU','default','195GGTQvD','@midwayjs/core','dataSource'];a3_0x296e=function(){return _0x2e22b4;};return a3_0x296e();}function ProvideEntity(_0x2c2b98,_0x59994b={}){return _0x5063dc=>{const _0x133514=a3_0x27ec;_0x59994b[_0x133514(0x172)]=_0x2c2b98[_0x133514(0x16d)];const _0x1f4177=[];if(!(_0x2c2b98===null||_0x2c2b98===void 0x0?void 0x0:_0x2c2b98['dataSource']))_0x1f4177[_0x133514(0x16a)](_0x133514(0x179));else{if(typeof(_0x2c2b98===null||_0x2c2b98===void 0x0?void 0x0:_0x2c2b98['dataSource'])==_0x133514(0x170))_0x1f4177[_0x133514(0x16a)](_0x2c2b98===null||_0x2c2b98===void 0x0?void 0x0:_0x2c2b98['dataSource']);else{if(Array[_0x133514(0x171)](_0x2c2b98===null||_0x2c2b98===void 0x0?void 0x0:_0x2c2b98['dataSource']))for(let _0x2cad0d of _0x2c2b98[_0x133514(0x162)]||[_0x133514(0x179)]){_0x1f4177[_0x133514(0x16a)](_0x2cad0d);}}}(0x0,core_1[_0x133514(0x176)])(interface_1[_0x133514(0x16b)],_0x5063dc),(0x0,core_1[_0x133514(0x163)])(interface_1['ENTIFY_MODULE_SOURCE'],{'tableName':_0x2c2b98[_0x133514(0x16d)],'dataSource':_0x1f4177},_0x5063dc),(0x0,typeorm_1[_0x133514(0x177)])(_0x2c2b98[_0x133514(0x16d)],_0x59994b)(_0x5063dc);};}exports[a3_0x5c20d9(0x173)]=ProvideEntity;
@@ -1 +1 @@
1
- 'use strict';const a4_0x5161ef=a4_0x4dc0;(function(_0x32bc99,_0x5f1486){const _0x2e54e7=a4_0x4dc0,_0x3ecc61=_0x32bc99();while(!![]){try{const _0x5a7ee5=parseInt(_0x2e54e7(0x1b0))/0x1+parseInt(_0x2e54e7(0x1b9))/0x2+-parseInt(_0x2e54e7(0x1af))/0x3*(parseInt(_0x2e54e7(0x1b7))/0x4)+parseInt(_0x2e54e7(0x1ac))/0x5+-parseInt(_0x2e54e7(0x1ae))/0x6+-parseInt(_0x2e54e7(0x1b3))/0x7+parseInt(_0x2e54e7(0x1b6))/0x8;if(_0x5a7ee5===_0x5f1486)break;else _0x3ecc61['push'](_0x3ecc61['shift']());}catch(_0x165642){_0x3ecc61['push'](_0x3ecc61['shift']());}}}(a4_0xf11e,0x5ec20));Object['defineProperty'](exports,a4_0x5161ef(0x1b1),{'value':!![]}),exports['ProvideRepository']=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a4_0x5161ef(0x1ad));function ProvideRepository(_0x11cdd4){return _0x446baf=>{const _0x1271f0=a4_0x4dc0;(0x0,core_1[_0x1271f0(0x1b2)])(core_1['ScopeEnum'][_0x1271f0(0x1b4)],{'allowDowngrade':!![]})(_0x446baf),((0x0,core_1[_0x1271f0(0x1b8)])()(_0x446baf),(0x0,core_1['saveClassMetadata'])(interface_1[_0x1271f0(0x1b5)],{'entity':_0x11cdd4},_0x446baf));};}function a4_0x4dc0(_0x3f41f2,_0x2db910){const _0xf11ed5=a4_0xf11e();return a4_0x4dc0=function(_0x4dc00d,_0x266bdb){_0x4dc00d=_0x4dc00d-0x1ac;let _0x327694=_0xf11ed5[_0x4dc00d];return _0x327694;},a4_0x4dc0(_0x3f41f2,_0x2db910);}exports['ProvideRepository']=ProvideRepository;function a4_0xf11e(){const _0x3473b1=['REPOSITORY_KEY','17842568lvoSbZ','1348vkGJwq','Provide','140988tCtmrG','124450ZNjxPa','../interface','4191906BDYpWq','5226XmXPmK','87114FtOSUx','__esModule','Scope','5172902VamMXr','Request'];a4_0xf11e=function(){return _0x3473b1;};return a4_0xf11e();}
1
+ 'use strict';const a4_0x1f1fdc=a4_0x3075;function a4_0x46a7(){const _0x46ba72=['14229105VfmPrQ','365643DDVDJY','35670Xhciap','695EIZFFs','@midwayjs/core','../interface','41064xMyHVc','Scope','17977GveLhC','Request','1673PDMzXV','3280905VtnKms','100rWkBtN','943512laudmw','saveClassMetadata','ProvideRepository','REPOSITORY_KEY','74sqFjhj'];a4_0x46a7=function(){return _0x46ba72;};return a4_0x46a7();}(function(_0x3d4d7f,_0x1245f1){const _0x1cf5a6=a4_0x3075,_0x5ace80=_0x3d4d7f();while(!![]){try{const _0x32bd91=-parseInt(_0x1cf5a6(0x70))/0x1*(-parseInt(_0x1cf5a6(0x79))/0x2)+parseInt(_0x1cf5a6(0x73))/0x3+parseInt(_0x1cf5a6(0x75))/0x4+parseInt(_0x1cf5a6(0x7d))/0x5*(parseInt(_0x1cf5a6(0x7c))/0x6)+-parseInt(_0x1cf5a6(0x72))/0x7*(parseInt(_0x1cf5a6(0x80))/0x8)+parseInt(_0x1cf5a6(0x7b))/0x9*(parseInt(_0x1cf5a6(0x74))/0xa)+-parseInt(_0x1cf5a6(0x7a))/0xb;if(_0x32bd91===_0x1245f1)break;else _0x5ace80['push'](_0x5ace80['shift']());}catch(_0x162317){_0x5ace80['push'](_0x5ace80['shift']());}}}(a4_0x46a7,0xac981));function a4_0x3075(_0x251b48,_0x2bdb5b){const _0x46a7a6=a4_0x46a7();return a4_0x3075=function(_0x307576,_0x18e615){_0x307576=_0x307576-0x70;let _0x41b724=_0x46a7a6[_0x307576];return _0x41b724;},a4_0x3075(_0x251b48,_0x2bdb5b);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x1f1fdc(0x77)]=void 0x0;const core_1=require(a4_0x1f1fdc(0x7e)),interface_1=require(a4_0x1f1fdc(0x7f));function ProvideRepository(_0x57e1c6){return _0x1a2170=>{const _0x22495c=a4_0x3075;(0x0,core_1[_0x22495c(0x81)])(core_1['ScopeEnum'][_0x22495c(0x71)],{'allowDowngrade':!![]})(_0x1a2170),((0x0,core_1['Provide'])()(_0x1a2170),(0x0,core_1[_0x22495c(0x76)])(interface_1[_0x22495c(0x78)],{'entity':_0x57e1c6},_0x1a2170));};}exports['ProvideRepository']=ProvideRepository;
@@ -1,2 +1,3 @@
1
1
  export declare function ProvideSearch(model: any): ClassDecorator;
2
- export declare function Search(field: string, comment?: string): MethodDecorator;
2
+ export declare function Search(field: string, comment: string): MethodDecorator;
3
+ export declare function SearchScope(scope: string, comment: string): MethodDecorator;
@@ -1 +1 @@
1
- 'use strict';const a5_0x43fcff=a5_0x4298;(function(_0x27a88b,_0x3c8c9e){const _0x43d17e=a5_0x4298,_0xdd1199=_0x27a88b();while(!![]){try{const _0x242b98=-parseInt(_0x43d17e(0x1c2))/0x1+-parseInt(_0x43d17e(0x1b8))/0x2+parseInt(_0x43d17e(0x1b6))/0x3+-parseInt(_0x43d17e(0x1bd))/0x4+parseInt(_0x43d17e(0x1ba))/0x5*(-parseInt(_0x43d17e(0x1c4))/0x6)+parseInt(_0x43d17e(0x1c1))/0x7*(-parseInt(_0x43d17e(0x1c0))/0x8)+parseInt(_0x43d17e(0x1b5))/0x9*(parseInt(_0x43d17e(0x1be))/0xa);if(_0x242b98===_0x3c8c9e)break;else _0xdd1199['push'](_0xdd1199['shift']());}catch(_0x31c726){_0xdd1199['push'](_0xdd1199['shift']());}}}(a5_0xce75,0xe3940));Object[a5_0x43fcff(0x1bf)](exports,a5_0x43fcff(0x1c3),{'value':!![]}),exports[a5_0x43fcff(0x1b9)]=exports[a5_0x43fcff(0x1bc)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a5_0x43fcff(0x1b2));function ProvideSearch(_0x4c392b){return _0x48a0f4=>{const _0x218249=a5_0x4298;(0x0,core_1[_0x218249(0x1b7)])(interface_1[_0x218249(0x1c5)],_0x48a0f4),(0x0,core_1[_0x218249(0x1c6)])(core_1['ScopeEnum'][_0x218249(0x1bb)])(_0x48a0f4),(0x0,core_1[_0x218249(0x1b4)])(interface_1[_0x218249(0x1c5)],_0x4c392b,_0x48a0f4);};}exports['ProvideSearch']=ProvideSearch;function a5_0x4298(_0x5e4991,_0x423d1e){const _0xce7511=a5_0xce75();return a5_0x4298=function(_0x4298da,_0x16ed86){_0x4298da=_0x4298da-0x1b2;let _0x2e9c9c=_0xce7511[_0x4298da];return _0x2e9c9c;},a5_0x4298(_0x5e4991,_0x423d1e);}function a5_0xce75(){const _0x4eb59d=['ProvideSearch','6986052HndhuV','1193690XDPzRy','defineProperty','6220664qZIRCy','7SWmqQP','384057ZJntTn','__esModule','32244pCNrrJ','MODEL_KEY','Scope','../interface','MODEL_SEARCH_KEY','attachClassMetadata','279wUKKEK','4824225PUdyDB','saveModule','733062SdZKPJ','Search','1025qwerBQ','Singleton'];a5_0xce75=function(){return _0x4eb59d;};return a5_0xce75();}function Search(_0x2b15ad,_0x3b3889){return(_0x226cfa,_0x396e50,_0x1c60e7)=>{const _0x226039=a5_0x4298;(0x0,core_1[_0x226039(0x1b4)])(interface_1[_0x226039(0x1b3)],{'field':_0x2b15ad,'comment':_0x3b3889,'target':_0x226cfa,'methodName':_0x396e50,'descriptor':_0x1c60e7},_0x226cfa);};}exports[a5_0x43fcff(0x1b9)]=Search;
1
+ 'use strict';function a5_0x2837(){const _0x4c7ba6=['ScopeEnum','Scope','MODEL_SEARCH_SCOPE_KEY','@midwayjs/core','3717759PKSHIL','10EbVpwV','16ecNGfQ','8107MIOkBo','../interface','attachClassMetadata','4908780NJggYk','ProvideSearch','169317ANvrSh','2510pCmZgB','__esModule','8508759maBoud','SearchScope','MODEL_KEY','125arNcJG','saveModule','Search','118250wGQxCD','251964Uxlgwu'];a5_0x2837=function(){return _0x4c7ba6;};return a5_0x2837();}const a5_0x4fc8f4=a5_0x1eec;function a5_0x1eec(_0x17b23c,_0x31e38c){const _0x283791=a5_0x2837();return a5_0x1eec=function(_0x1eecbc,_0x46d0b8){_0x1eecbc=_0x1eecbc-0x8d;let _0x31bfbd=_0x283791[_0x1eecbc];return _0x31bfbd;},a5_0x1eec(_0x17b23c,_0x31e38c);}(function(_0x2df01c,_0x31d9f2){const _0x3839a0=a5_0x1eec,_0x3e6b29=_0x2df01c();while(!![]){try{const _0x4c5bc8=-parseInt(_0x3839a0(0x98))/0x1*(-parseInt(_0x3839a0(0x9f))/0x2)+parseInt(_0x3839a0(0x9e))/0x3+-parseInt(_0x3839a0(0x8d))/0x4+parseInt(_0x3839a0(0x95))/0x5*(-parseInt(_0x3839a0(0x99))/0x6)+parseInt(_0x3839a0(0x92))/0x7+parseInt(_0x3839a0(0xa0))/0x8*(parseInt(_0x3839a0(0x8f))/0x9)+-parseInt(_0x3839a0(0x90))/0xa*(parseInt(_0x3839a0(0xa1))/0xb);if(_0x4c5bc8===_0x31d9f2)break;else _0x3e6b29['push'](_0x3e6b29['shift']());}catch(_0x18ab43){_0x3e6b29['push'](_0x3e6b29['shift']());}}}(a5_0x2837,0x97c42));Object['defineProperty'](exports,a5_0x4fc8f4(0x91),{'value':!![]}),exports[a5_0x4fc8f4(0x93)]=exports[a5_0x4fc8f4(0x97)]=exports[a5_0x4fc8f4(0x8e)]=void 0x0;const core_1=require(a5_0x4fc8f4(0x9d)),interface_1=require(a5_0x4fc8f4(0xa2));function ProvideSearch(_0x54bd9c){return _0x557393=>{const _0x143bc5=a5_0x1eec;(0x0,core_1[_0x143bc5(0x96)])(interface_1[_0x143bc5(0x94)],_0x557393),(0x0,core_1[_0x143bc5(0x9b)])(core_1[_0x143bc5(0x9a)]['Singleton'])(_0x557393),(0x0,core_1[_0x143bc5(0xa3)])(interface_1[_0x143bc5(0x94)],_0x54bd9c,_0x557393);};}exports['ProvideSearch']=ProvideSearch;function Search(_0x1c3ec5,_0x2fb71f){return(_0x457fec,_0x153502,_0x537d96)=>{(0x0,core_1['attachClassMetadata'])(interface_1['MODEL_SEARCH_KEY'],{'field':_0x1c3ec5,'comment':_0x2fb71f,'target':_0x457fec,'methodName':_0x153502,'descriptor':_0x537d96},_0x457fec);};}exports[a5_0x4fc8f4(0x97)]=Search;function SearchScope(_0x324f4f,_0x1a0332){return(_0x21e564,_0x28503b,_0x48d865)=>{const _0x55d463=a5_0x1eec;(0x0,core_1['attachClassMetadata'])(interface_1[_0x55d463(0x9c)],{'scope':_0x324f4f,'comment':_0x1a0332,'target':_0x21e564,'methodName':_0x28503b,'descriptor':_0x48d865},_0x21e564);};}exports[a5_0x4fc8f4(0x93)]=SearchScope;
@@ -1 +1 @@
1
- 'use strict';const a6_0x40d403=a6_0x139d;(function(_0x27e1f8,_0x5d6be7){const _0x20aab2=a6_0x139d,_0x568d9d=_0x27e1f8();while(!![]){try{const _0x469370=parseInt(_0x20aab2(0xf4))/0x1*(parseInt(_0x20aab2(0xfe))/0x2)+parseInt(_0x20aab2(0xff))/0x3*(parseInt(_0x20aab2(0xf2))/0x4)+-parseInt(_0x20aab2(0xf6))/0x5*(parseInt(_0x20aab2(0xef))/0x6)+-parseInt(_0x20aab2(0xf1))/0x7+-parseInt(_0x20aab2(0xed))/0x8+parseInt(_0x20aab2(0xf7))/0x9*(-parseInt(_0x20aab2(0xfc))/0xa)+-parseInt(_0x20aab2(0xee))/0xb*(-parseInt(_0x20aab2(0xfa))/0xc);if(_0x469370===_0x5d6be7)break;else _0x568d9d['push'](_0x568d9d['shift']());}catch(_0x1beaeb){_0x568d9d['push'](_0x568d9d['shift']());}}}(a6_0x1367,0x2a99a));Object[a6_0x40d403(0xfb)](exports,a6_0x40d403(0xf3),{'value':!![]}),exports[a6_0x40d403(0xf9)]=void 0x0;function a6_0x139d(_0x53969f,_0xdad847){const _0x13674f=a6_0x1367();return a6_0x139d=function(_0x139d00,_0x520148){_0x139d00=_0x139d00-0xed;let _0x2dc717=_0x13674f[_0x139d00];return _0x2dc717;},a6_0x139d(_0x53969f,_0xdad847);}const core_1=require('@midwayjs/core'),interface_1=require(a6_0x40d403(0xfd));function a6_0x1367(){const _0x198922=['2056304SRTXPf','1661lxpcBP','12xoNxky','ENTITY_VIRTUAL_COLUMN_KEY','1084069nBRdtG','44jxQpov','__esModule','281651LlRtvw','getClassMetadata','789985aKYecN','9ppZvba','saveClassMetadata','VirtualColumn','49020IQAZdo','defineProperty','2736050eiyxZw','../interface','2VURuel','75684LEWazn'];a6_0x1367=function(){return _0x198922;};return a6_0x1367();}function VirtualColumn(_0x572d3f,_0x1d7965){return(_0x7cb5d0,_0x42ccb6)=>{const _0x191f9c=a6_0x139d,_0x1b6db0=(0x0,core_1[_0x191f9c(0xf5)])(interface_1[_0x191f9c(0xf0)],_0x7cb5d0)||{};_0x1b6db0[_0x42ccb6]={'comment':_0x572d3f,..._0x1d7965},(0x0,core_1[_0x191f9c(0xf8)])(interface_1['ENTITY_VIRTUAL_COLUMN_KEY'],_0x1b6db0,_0x7cb5d0);};}exports['VirtualColumn']=VirtualColumn;
1
+ 'use strict';const a6_0x2a071b=a6_0x471e;(function(_0x5c3847,_0xc7c4d6){const _0x1783fc=a6_0x471e,_0x4659e1=_0x5c3847();while(!![]){try{const _0xcb15fc=parseInt(_0x1783fc(0xb0))/0x1*(parseInt(_0x1783fc(0xa9))/0x2)+parseInt(_0x1783fc(0xba))/0x3*(parseInt(_0x1783fc(0xb2))/0x4)+-parseInt(_0x1783fc(0xaf))/0x5+parseInt(_0x1783fc(0xb9))/0x6*(-parseInt(_0x1783fc(0xb7))/0x7)+-parseInt(_0x1783fc(0xac))/0x8+-parseInt(_0x1783fc(0xb4))/0x9+parseInt(_0x1783fc(0xb1))/0xa*(parseInt(_0x1783fc(0xad))/0xb);if(_0xcb15fc===_0xc7c4d6)break;else _0x4659e1['push'](_0x4659e1['shift']());}catch(_0x2b12a4){_0x4659e1['push'](_0x4659e1['shift']());}}}(a6_0x1773,0x1cc6f));function a6_0x471e(_0x131afe,_0x327da9){const _0x1773f8=a6_0x1773();return a6_0x471e=function(_0x471e33,_0x2a87a8){_0x471e33=_0x471e33-0xa9;let _0x3a30c4=_0x1773f8[_0x471e33];return _0x3a30c4;},a6_0x471e(_0x131afe,_0x327da9);}Object[a6_0x2a071b(0xaa)](exports,a6_0x2a071b(0xb5),{'value':!![]}),exports[a6_0x2a071b(0xae)]=void 0x0;const core_1=require(a6_0x2a071b(0xb8)),interface_1=require(a6_0x2a071b(0xbb));function VirtualColumn(_0x2ab911,_0x3dbadd){return(_0x2b0d80,_0x2633b5)=>{const _0x50240a=a6_0x471e,_0x97a4c2=(0x0,core_1[_0x50240a(0xb6)])(interface_1['ENTITY_VIRTUAL_COLUMN_KEY'],_0x2b0d80)||{};_0x97a4c2[_0x2633b5]={'comment':_0x2ab911,..._0x3dbadd},(0x0,core_1[_0x50240a(0xb3)])(interface_1[_0x50240a(0xab)],_0x97a4c2,_0x2b0d80);};}exports[a6_0x2a071b(0xae)]=VirtualColumn;function a6_0x1773(){const _0x4c76e8=['994pfJOaW','@midwayjs/core','7134aoKjMV','411uPIiWI','../interface','628SwsvPO','defineProperty','ENTITY_VIRTUAL_COLUMN_KEY','418632tLcEpD','671BqKkar','VirtualColumn','862465uAgBxE','158htucet','56890OjaLOV','5692OQjDEU','saveClassMetadata','720549WLNSSS','__esModule','getClassMetadata'];a6_0x1773=function(){return _0x4c76e8;};return a6_0x1773();}
@@ -4,6 +4,7 @@ import { SearchParams, SearchPaginate, SearchOptions } from "../interface";
4
4
  interface modelSearch {
5
5
  model: any;
6
6
  searchs: any[];
7
+ searchScopes: any[];
7
8
  }
8
9
  declare type IsolationLevel = "READ UNCOMMITTED" | "READ COMMITTED" | "REPEATABLE READ" | "SERIALIZABLE";
9
10
  export declare class Repository<Entity extends ObjectLiteral> extends BaseRepository<Entity> {
@@ -1 +1 @@
1
- 'use strict';const a7_0x66a442=a7_0x1c62;(function(_0x3e6835,_0x57d2c7){const _0xe9b1db=a7_0x1c62,_0x2d9a2d=_0x3e6835();while(!![]){try{const _0x79ec7b=-parseInt(_0xe9b1db(0x118))/0x1+-parseInt(_0xe9b1db(0xe2))/0x2+parseInt(_0xe9b1db(0xd2))/0x3*(parseInt(_0xe9b1db(0x108))/0x4)+-parseInt(_0xe9b1db(0xe3))/0x5*(parseInt(_0xe9b1db(0xf3))/0x6)+-parseInt(_0xe9b1db(0xec))/0x7*(-parseInt(_0xe9b1db(0xd5))/0x8)+parseInt(_0xe9b1db(0x10c))/0x9+-parseInt(_0xe9b1db(0x107))/0xa*(parseInt(_0xe9b1db(0xf4))/0xb);if(_0x79ec7b===_0x57d2c7)break;else _0x2d9a2d['push'](_0x2d9a2d['shift']());}catch(_0x5f0f67){_0x2d9a2d['push'](_0x2d9a2d['shift']());}}}(a7_0x17e7,0x5bdd8));Object[a7_0x66a442(0xe8)](exports,a7_0x66a442(0x106),{'value':!![]}),exports[a7_0x66a442(0xd9)]=void 0x0;const core_1=require(a7_0x66a442(0x10d)),typeorm_1=require(a7_0x66a442(0xeb)),interface_1=require(a7_0x66a442(0xdc));function a7_0x1c62(_0x4133e0,_0x2547f6){const _0x17e7cd=a7_0x17e7();return a7_0x1c62=function(_0x1c6242,_0x5e8928){_0x1c6242=_0x1c6242-0xce;let _0x97c5ef=_0x17e7cd[_0x1c6242];return _0x97c5ef;},a7_0x1c62(_0x4133e0,_0x2547f6);}class Repository extends typeorm_1[a7_0x66a442(0xd9)]{constructor(_0x42f64f,_0x138fe7,_0x4a0d9a){const _0x545c50=a7_0x66a442;super(_0x4a0d9a[_0x545c50(0xe4)],_0x4a0d9a[_0x545c50(0xd0)],_0x4a0d9a[_0x545c50(0xf0)]),this['modelSearchs']=[];for(const _0x4b1d4a of(0x0,core_1['getClassMetadata'])(interface_1[_0x545c50(0xe1)],this[_0x545c50(0xe4)])||[]){const _0x2a86d2={'model':_0x4b1d4a,'searchs':[]};for(const _0x43875a of(0x0,core_1[_0x545c50(0x114)])(interface_1['MODEL_SEARCH_KEY'],_0x4b1d4a)||[]){_0x2a86d2[_0x545c50(0xea)][_0x545c50(0xce)](_0x43875a);}this[_0x545c50(0xfe)][_0x545c50(0xce)](_0x2a86d2);}this[_0x545c50(0xe6)]=_0x42f64f,this['container']=_0x138fe7;}async[a7_0x66a442(0x103)](_0xdd9711,_0x373c13,_0x5f20e7={}){const _0x5089c3=a7_0x66a442;var _0xb716e9,_0x43cf65,_0x32a7c6,_0x1d191b,_0x45331d,_0x260938;const _0x420ef3=this[_0x5089c3(0xd4)](undefined,_0x5f20e7===null||_0x5f20e7===void 0x0?void 0x0:_0x5f20e7['queryRunner']),_0x13cc32=[];for(const _0x17e8bb of this[_0x5089c3(0xfe)]){if(_0x17e8bb===null||_0x17e8bb===void 0x0?void 0x0:_0x17e8bb[_0x5089c3(0x11b)]){const _0x596174=await this[_0x5089c3(0xe6)]['getApplicationContext']()[_0x5089c3(0xd1)](_0x17e8bb[_0x5089c3(0x11b)]);if(_0x596174){typeof _0x596174[_0x5089c3(0x102)]==_0x5089c3(0x105)&&await _0x596174['__initialize'][_0x5089c3(0xef)](_0x596174)(_0x420ef3,_0xdd9711,{'paginate':_0x373c13,'queryRunner':_0x5f20e7===null||_0x5f20e7===void 0x0?void 0x0:_0x5f20e7[_0x5089c3(0xf0)]});for(const _0x29fa2f of(_0x17e8bb===null||_0x17e8bb===void 0x0?void 0x0:_0x17e8bb[_0x5089c3(0xea)])||[]){(_0x29fa2f===null||_0x29fa2f===void 0x0?void 0x0:_0x29fa2f[_0x5089c3(0x10f)])&&(_0x29fa2f===null||_0x29fa2f===void 0x0?void 0x0:_0x29fa2f[_0x5089c3(0xf5)])&&typeof _0x596174[_0x29fa2f[_0x5089c3(0xf5)]]==_0x5089c3(0x105)&&(typeof(_0xdd9711===null||_0xdd9711===void 0x0?void 0x0:_0xdd9711[_0x29fa2f[_0x5089c3(0x10f)]])!=_0x5089c3(0xe9)&&!((_0xb716e9=_0xdd9711===null||_0xdd9711===void 0x0?void 0x0:_0xdd9711[_0x29fa2f[_0x5089c3(0x10f)]])===null||_0xb716e9===void 0x0?void 0x0:_0xb716e9['hasOwnProperty'](_0x5089c3(0xf2)))&&(_0x13cc32[_0x5089c3(0x111)](_0x29fa2f[_0x5089c3(0x10f)])==-0x1&&_0x13cc32[_0x5089c3(0xce)](_0x29fa2f[_0x5089c3(0x10f)]),await _0x596174[_0x29fa2f['methodName']][_0x5089c3(0xef)](_0x596174)(_0x420ef3,_0xdd9711[_0x29fa2f[_0x5089c3(0x10f)]],_0xdd9711,{'paginate':_0x373c13,'queryRunner':_0x5f20e7===null||_0x5f20e7===void 0x0?void 0x0:_0x5f20e7[_0x5089c3(0xf0)]})));}}}}for(const _0x36fcbf in _0xdd9711){if(typeof _0xdd9711[_0x36fcbf]==_0x5089c3(0xe9))continue;if(_0x13cc32[_0x5089c3(0x111)](_0x36fcbf)!=-0x1)continue;const _0xdbf570=this['metadata'][_0x5089c3(0xf8)](_0x36fcbf);if(!_0xdbf570)continue;if((_0x43cf65=_0xdd9711===null||_0xdd9711===void 0x0?void 0x0:_0xdd9711[_0x36fcbf])===null||_0x43cf65===void 0x0?void 0x0:_0x43cf65['hasOwnProperty'](_0x5089c3(0xf2))){const _0x3239df=(_0x32a7c6=_0xdd9711[_0x36fcbf])===null||_0x32a7c6===void 0x0?void 0x0:_0x32a7c6[_0x5089c3(0x11a)],_0xefa78c=(_0x1d191b=_0xdd9711[_0x36fcbf])===null||_0x1d191b===void 0x0?void 0x0:_0x1d191b['operator']['trim']()['toUpperCase'](),_0x48c51e=_0x5089c3(0xf1)+_0x36fcbf+'_'+Math[_0x5089c3(0x10b)](Math['random']()*0xa)+Math[_0x5089c3(0x10b)](Math[_0x5089c3(0xcf)]()*0xa)+Math['ceil'](Math[_0x5089c3(0xcf)]()*0xa)+Math['ceil'](Math[_0x5089c3(0xcf)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x5089c3(0x100),_0x5089c3(0x104)][_0x5089c3(0x111)](_0xefa78c)!=-0x1)typeof _0x3239df!=_0x5089c3(0xe9)&&_0x420ef3['andWhere'](_0x420ef3[_0x5089c3(0x116)]+'.'+_0x36fcbf+'\x20'+_0xefa78c+'\x20:'+_0x48c51e,{[_0x48c51e]:_0x3239df});else{if(['IN',_0x5089c3(0xed)][_0x5089c3(0x111)](_0xefa78c)!=-0x1){if(typeof _0x3239df!=_0x5089c3(0xe9)){const _0x22f958=Array[_0x5089c3(0xe0)](_0x3239df)?_0x3239df:typeof _0x3239df==_0x5089c3(0xe7)?_0x3239df[_0x5089c3(0xf6)](','):[_0x3239df];_0x22f958['length']==0x0?_0x420ef3[_0x5089c3(0xdb)](_0x5089c3(0xfc)):_0x420ef3['andWhere'](_0x420ef3[_0x5089c3(0x116)]+'.'+_0x36fcbf+'\x20'+_0xefa78c+'(:...'+_0x48c51e+')',{[_0x48c51e]:_0x22f958});}}else{if([_0x5089c3(0xdd),'NOT\x20FIND\x20IN\x20SET']['indexOf'](_0xefa78c)!=-0x1)typeof _0x3239df!=_0x5089c3(0xe9)&&_0x420ef3[_0x5089c3(0xdb)](_0xefa78c+'(:'+_0x48c51e+','+_0x420ef3[_0x5089c3(0x116)]+'.'+_0x36fcbf+')',{[_0x48c51e]:_0x3239df});else{if([_0x5089c3(0xd3),'NOT\x20BETWEEN'][_0x5089c3(0x111)](_0xefa78c)!=-0x1){if(typeof _0x3239df!=_0x5089c3(0xe9)){const _0x54ffcb=Array[_0x5089c3(0xe0)](_0x3239df)?_0x3239df:typeof _0x3239df=='string'?_0x3239df['split'](','):[_0x3239df];_0x54ffcb[_0x5089c3(0x119)]>0x1&&_0x420ef3[_0x5089c3(0xdb)](_0x420ef3['alias']+'.'+_0x36fcbf+'\x20'+_0xefa78c+'\x20:'+_0x48c51e+_0x5089c3(0xfd)+_0x48c51e+'_2',{[''+_0x48c51e]:_0x54ffcb[0x0],[_0x48c51e+'_2']:_0x54ffcb[0x1]});}}else['ISNULL',_0x5089c3(0x112)]['indexOf'](_0xefa78c)!=-0x1&&_0x420ef3['andWhere'](_0xefa78c+'('+_0x420ef3[_0x5089c3(0x116)]+'.'+_0x36fcbf+')');}}}}else{const _0x39b677=((_0x260938=typeof _0xdbf570[_0x5089c3(0xda)]=='function'?(_0x45331d=_0xdbf570===null||_0xdbf570===void 0x0?void 0x0:_0xdbf570['type'])===null||_0x45331d===void 0x0?void 0x0:_0x45331d['name']:_0xdbf570[_0x5089c3(0xda)][_0x5089c3(0x115)]())===null||_0x260938===void 0x0?void 0x0:_0x260938[_0x5089c3(0xee)]())||undefined;if(_0x39b677){if(Array[_0x5089c3(0xe0)](_0xdd9711[_0x36fcbf]))_0xdd9711[_0x36fcbf][_0x5089c3(0x119)]==0x0?_0x420ef3['andWhere'](_0x5089c3(0xfc)):_0x420ef3[_0x5089c3(0xdb)](_0x420ef3[_0x5089c3(0x116)]+'.'+_0x36fcbf+'\x20IN(:..._auto_'+_0x36fcbf+')',{[_0x5089c3(0xf1)+_0x36fcbf]:_0xdd9711[_0x36fcbf]});else _0x39b677=='string'?_0x420ef3[_0x5089c3(0xdb)](_0x420ef3[_0x5089c3(0x116)]+'.'+_0x36fcbf+_0x5089c3(0xfb)+_0x36fcbf,{['_auto_'+_0x36fcbf]:'%'+_0xdd9711[_0x36fcbf]+'%'}):_0x420ef3[_0x5089c3(0xdb)](_0x420ef3['alias']+'.'+_0x36fcbf+_0x5089c3(0xd6)+_0x36fcbf,{[_0x5089c3(0xf1)+_0x36fcbf]:_0xdd9711[_0x36fcbf]});}}}(_0x373c13===null||_0x373c13===void 0x0?void 0x0:_0x373c13[_0x5089c3(0x110)])&&_0x420ef3['take'](Math[_0x5089c3(0xdf)](_0x373c13['_size']));(_0x373c13===null||_0x373c13===void 0x0?void 0x0:_0x373c13[_0x5089c3(0xff)])&&(_0x373c13===null||_0x373c13===void 0x0?void 0x0:_0x373c13[_0x5089c3(0x110)])&&_0x420ef3[_0x5089c3(0x10a)]((Math[_0x5089c3(0xdf)](_0x373c13['_page'])-0x1)*Math[_0x5089c3(0xdf)](_0x373c13['_size']));if(_0x373c13===null||_0x373c13===void 0x0?void 0x0:_0x373c13[_0x5089c3(0xf9)]){if(_0x373c13[_0x5089c3(0xf9)][_0x5089c3(0x111)]('.')!==-0x1)_0x420ef3[_0x5089c3(0xde)](''+_0x373c13['_order'],(_0x373c13===null||_0x373c13===void 0x0?void 0x0:_0x373c13[_0x5089c3(0x113)])?_0x5089c3(0xd8):_0x5089c3(0x10e));else _0x13cc32['indexOf'](_0x373c13[_0x5089c3(0xf9)])==-0x1&&(this[_0x5089c3(0xd7)][_0x5089c3(0xf8)](_0x373c13['_order'])?_0x420ef3[_0x5089c3(0xde)](_0x420ef3['alias']+'.'+_0x373c13[_0x5089c3(0xf9)],(_0x373c13===null||_0x373c13===void 0x0?void 0x0:_0x373c13['_isreverse'])?'ASC':_0x5089c3(0x10e)):_0x420ef3[_0x5089c3(0xde)](''+_0x373c13[_0x5089c3(0xf9)],(_0x373c13===null||_0x373c13===void 0x0?void 0x0:_0x373c13['_isreverse'])?_0x5089c3(0xd8):_0x5089c3(0x10e)));}return typeof(_0x5f20e7===null||_0x5f20e7===void 0x0?void 0x0:_0x5f20e7[_0x5089c3(0xe5)])==_0x5089c3(0x105)&&await(_0x5f20e7===null||_0x5f20e7===void 0x0?void 0x0:_0x5f20e7[_0x5089c3(0xe5)](_0x420ef3)),_0x420ef3;}async['mergeSave'](_0x3c6ef7,..._0x5d3355){const _0x2fd3a9=a7_0x66a442,_0x548a89=this[_0x2fd3a9(0x109)](_0x3c6ef7,..._0x5d3355);return await this[_0x2fd3a9(0xf7)](_0x548a89);}async[a7_0x66a442(0x101)](_0x4d0b01,..._0x526216){const _0xcc8341=a7_0x66a442,_0x16f769=this[_0xcc8341(0x109)](this[_0xcc8341(0xfa)](_0x4d0b01),..._0x526216);return await this[_0xcc8341(0xf7)](_0x16f769);}async[a7_0x66a442(0x117)](_0x4e7b60,_0x3ef797){const _0x1e8d3f=a7_0x66a442;return this[_0x1e8d3f(0xd0)][_0x1e8d3f(0x117)](_0x4e7b60,_0x3ef797);}}function a7_0x17e7(){const _0x4f4698=['NOT\x20ISNULL','_isreverse','getClassMetadata','toString','alias','transaction','1251sVmRjd','length','condition','model','push','random','manager','getAsync','1272ETSwOn','BETWEEN','createQueryBuilder','5581384DvHGhE','\x20=\x20:_auto_','metadata','ASC','Repository','type','andWhere','../interface','FIND\x20IN\x20SET','orderBy','abs','isArray','MODEL_KEY','9490pixeBU','5tuJCrU','target','excess','app','string','defineProperty','undefined','searchs','typeorm','7MtTqLV','NOT\x20IN','toLowerCase','bind','queryRunner','_auto_','operator','1619412VilXea','11801119qhdzGU','methodName','split','save','findColumnWithPropertyName','_order','create','\x20like\x20:_auto_','1\x20=\x202','\x20AND\x20:','modelSearchs','_page','LIKE','createSave','__initialize','search','NOT\x20LIKE','function','__esModule','10WenHEy','5192NULPzk','merge','skip','ceil','4292838LEwKBh','@midwayjs/core','DESC','field','_size','indexOf'];a7_0x17e7=function(){return _0x4f4698;};return a7_0x17e7();}exports[a7_0x66a442(0xd9)]=Repository;
1
+ 'use strict';const a7_0x38460c=a7_0x59c7;(function(_0x34ebcd,_0x18617f){const _0x1f2536=a7_0x59c7,_0x5c76b2=_0x34ebcd();while(!![]){try{const _0x3458e5=parseInt(_0x1f2536(0x1d3))/0x1*(-parseInt(_0x1f2536(0x204))/0x2)+-parseInt(_0x1f2536(0x1d1))/0x3+-parseInt(_0x1f2536(0x1cc))/0x4*(parseInt(_0x1f2536(0x212))/0x5)+-parseInt(_0x1f2536(0x1ef))/0x6+-parseInt(_0x1f2536(0x1e9))/0x7+parseInt(_0x1f2536(0x1f0))/0x8*(parseInt(_0x1f2536(0x1ca))/0x9)+parseInt(_0x1f2536(0x1d7))/0xa;if(_0x3458e5===_0x18617f)break;else _0x5c76b2['push'](_0x5c76b2['shift']());}catch(_0x1cea8d){_0x5c76b2['push'](_0x5c76b2['shift']());}}}(a7_0x3a89,0x7de37));Object['defineProperty'](exports,a7_0x38460c(0x1ce),{'value':!![]}),exports[a7_0x38460c(0x1dd)]=void 0x0;function a7_0x59c7(_0x1917b2,_0x6e7b95){const _0x3a896d=a7_0x3a89();return a7_0x59c7=function(_0x59c7a4,_0x429c40){_0x59c7a4=_0x59c7a4-0x1c9;let _0x7ec66f=_0x3a896d[_0x59c7a4];return _0x7ec66f;},a7_0x59c7(_0x1917b2,_0x6e7b95);}const core_1=require(a7_0x38460c(0x216)),typeorm_1=require(a7_0x38460c(0x20d)),interface_1=require('../interface');function a7_0x3a89(){const _0x35b12c=['ASC','_size','undefined','manager','target','_order','scope','trim','searchScopes','operator','split','_page','abs','20578wRtcER','createQueryBuilder','getApplicationContext','\x20AND\x20:','random','_auto_','orderBy','transaction','container','typeorm','NOT\x20IN','model','toString','type','3212735sYuuDU','LIKE','indexOf','excess','@midwayjs/core','push','searchs','\x20=\x20:_auto_','21672JeWpRh','length','4heZVPp','MODEL_KEY','__esModule','function','andWhere','2827326ZSdxNM','__initialize','51KPeUdF','bind','\x20like\x20:_auto_','1\x20=\x202','19383420Ntbusz','NOT\x20ISNULL','NOT\x20BETWEEN','BETWEEN','NOT\x20FIND\x20IN\x20SET','isArray','Repository','field','DESC','toUpperCase','queryRunner','alias','\x20IN(:..._auto_','ceil','create','findColumnWithPropertyName','methodName','modelSearchs','754614vsrnqn','(:...','_isreverse','merge','getAsync','createSave','966894UXlGuQ','3176fHmFXD','NOT\x20LIKE','save','name','getClassMetadata','string','app'];a7_0x3a89=function(){return _0x35b12c;};return a7_0x3a89();}class Repository extends typeorm_1[a7_0x38460c(0x1dd)]{constructor(_0x227f76,_0x561497,_0x45a439){const _0x109d57=a7_0x38460c;super(_0x45a439[_0x109d57(0x1fb)],_0x45a439[_0x109d57(0x1fa)],_0x45a439[_0x109d57(0x1e1)]),this['modelSearchs']=[];for(const _0x284fa1 of(0x0,core_1[_0x109d57(0x1f4)])(interface_1[_0x109d57(0x1cd)],this[_0x109d57(0x1fb)])||[]){const _0x1c95a3={'model':_0x284fa1,'searchs':[],'searchScopes':[]};for(const _0x24dd94 of(0x0,core_1[_0x109d57(0x1f4)])(interface_1['MODEL_SEARCH_KEY'],_0x284fa1)||[]){_0x1c95a3['searchs'][_0x109d57(0x217)](_0x24dd94);}for(const _0x2744e8 of(0x0,core_1['getClassMetadata'])(interface_1['MODEL_SEARCH_SCOPE_KEY'],_0x284fa1)||[]){_0x1c95a3[_0x109d57(0x1ff)]['push'](_0x2744e8);}this[_0x109d57(0x1e8)]['push'](_0x1c95a3);}this[_0x109d57(0x1f6)]=_0x227f76,this[_0x109d57(0x20c)]=_0x561497;}async['search'](_0xaa81f5,_0xf591c0,_0xa98630={}){const _0xe28a8f=a7_0x38460c;var _0x3819c6,_0x163a4a,_0x39f6da,_0x30efe7,_0x4e2f81,_0x3d1c34;const _0x529bbc=this[_0xe28a8f(0x205)](undefined,_0xa98630===null||_0xa98630===void 0x0?void 0x0:_0xa98630['queryRunner']),_0x30abb2=[];for(const _0x5f0471 of this[_0xe28a8f(0x1e8)]){if(_0x5f0471===null||_0x5f0471===void 0x0?void 0x0:_0x5f0471[_0xe28a8f(0x20f)]){const _0x1f0335=await this[_0xe28a8f(0x1f6)][_0xe28a8f(0x206)]()[_0xe28a8f(0x1ed)](_0x5f0471[_0xe28a8f(0x20f)]);if(_0x1f0335){typeof _0x1f0335[_0xe28a8f(0x1d2)]==_0xe28a8f(0x1cf)&&await _0x1f0335[_0xe28a8f(0x1d2)][_0xe28a8f(0x1d4)](_0x1f0335)(_0x529bbc,_0xaa81f5,{'paginate':_0xf591c0,'queryRunner':_0xa98630===null||_0xa98630===void 0x0?void 0x0:_0xa98630[_0xe28a8f(0x1e1)]});if(_0xa98630===null||_0xa98630===void 0x0?void 0x0:_0xa98630[_0xe28a8f(0x1fd)]){const _0x380f05=Array[_0xe28a8f(0x1dc)](_0xa98630['scope'])?_0xa98630[_0xe28a8f(0x1fd)]:[_0xa98630['scope']];for(const _0x1d5f25 of(_0x5f0471===null||_0x5f0471===void 0x0?void 0x0:_0x5f0471[_0xe28a8f(0x1ff)])||[]){(_0x1d5f25===null||_0x1d5f25===void 0x0?void 0x0:_0x1d5f25[_0xe28a8f(0x1fd)])&&_0x380f05[_0xe28a8f(0x214)](_0x1d5f25[_0xe28a8f(0x1fd)])!=-0x1&&(_0x1d5f25===null||_0x1d5f25===void 0x0?void 0x0:_0x1d5f25[_0xe28a8f(0x1e7)])&&typeof _0x1f0335[_0x1d5f25[_0xe28a8f(0x1e7)]]==_0xe28a8f(0x1cf)&&await _0x1f0335[_0x1d5f25[_0xe28a8f(0x1e7)]]['bind'](_0x1f0335)(_0x529bbc,_0xaa81f5,{'paginate':_0xf591c0,'queryRunner':_0xa98630===null||_0xa98630===void 0x0?void 0x0:_0xa98630[_0xe28a8f(0x1e1)]});}}if(_0xaa81f5)for(const _0xf7256c of(_0x5f0471===null||_0x5f0471===void 0x0?void 0x0:_0x5f0471[_0xe28a8f(0x218)])||[]){(_0xf7256c===null||_0xf7256c===void 0x0?void 0x0:_0xf7256c['field'])&&(_0xf7256c===null||_0xf7256c===void 0x0?void 0x0:_0xf7256c[_0xe28a8f(0x1e7)])&&typeof _0x1f0335[_0xf7256c[_0xe28a8f(0x1e7)]]==_0xe28a8f(0x1cf)&&(typeof(_0xaa81f5===null||_0xaa81f5===void 0x0?void 0x0:_0xaa81f5[_0xf7256c[_0xe28a8f(0x1de)]])!='undefined'&&!((_0x3819c6=_0xaa81f5===null||_0xaa81f5===void 0x0?void 0x0:_0xaa81f5[_0xf7256c[_0xe28a8f(0x1de)]])===null||_0x3819c6===void 0x0?void 0x0:_0x3819c6['hasOwnProperty'](_0xe28a8f(0x200)))&&(_0x30abb2[_0xe28a8f(0x214)](_0xf7256c[_0xe28a8f(0x1de)])==-0x1&&_0x30abb2[_0xe28a8f(0x217)](_0xf7256c['field']),await _0x1f0335[_0xf7256c['methodName']]['bind'](_0x1f0335)(_0x529bbc,_0xaa81f5[_0xf7256c[_0xe28a8f(0x1de)]],_0xaa81f5,{'paginate':_0xf591c0,'queryRunner':_0xa98630===null||_0xa98630===void 0x0?void 0x0:_0xa98630[_0xe28a8f(0x1e1)]})));}}}}for(const _0x553bc6 in _0xaa81f5){if(typeof _0xaa81f5[_0x553bc6]==_0xe28a8f(0x1f9))continue;if(_0x30abb2[_0xe28a8f(0x214)](_0x553bc6)!=-0x1)continue;const _0x35d208=this['metadata'][_0xe28a8f(0x1e6)](_0x553bc6);if(!_0x35d208)continue;if((_0x163a4a=_0xaa81f5===null||_0xaa81f5===void 0x0?void 0x0:_0xaa81f5[_0x553bc6])===null||_0x163a4a===void 0x0?void 0x0:_0x163a4a['hasOwnProperty']('operator')){const _0x5beef7=(_0x39f6da=_0xaa81f5[_0x553bc6])===null||_0x39f6da===void 0x0?void 0x0:_0x39f6da['condition'],_0x4b4959=(_0x30efe7=_0xaa81f5[_0x553bc6])===null||_0x30efe7===void 0x0?void 0x0:_0x30efe7[_0xe28a8f(0x200)][_0xe28a8f(0x1fe)]()[_0xe28a8f(0x1e0)](),_0x2a2d82=_0xe28a8f(0x209)+_0x553bc6+'_'+Math[_0xe28a8f(0x1e4)](Math[_0xe28a8f(0x208)]()*0xa)+Math[_0xe28a8f(0x1e4)](Math[_0xe28a8f(0x208)]()*0xa)+Math[_0xe28a8f(0x1e4)](Math['random']()*0xa)+Math[_0xe28a8f(0x1e4)](Math[_0xe28a8f(0x208)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0xe28a8f(0x213),_0xe28a8f(0x1f1)][_0xe28a8f(0x214)](_0x4b4959)!=-0x1)typeof _0x5beef7!=_0xe28a8f(0x1f9)&&_0x529bbc[_0xe28a8f(0x1d0)](_0x529bbc[_0xe28a8f(0x1e2)]+'.'+_0x553bc6+'\x20'+_0x4b4959+'\x20:'+_0x2a2d82,{[_0x2a2d82]:_0x5beef7});else{if(['IN',_0xe28a8f(0x20e)]['indexOf'](_0x4b4959)!=-0x1){if(typeof _0x5beef7!=_0xe28a8f(0x1f9)){const _0x1e1c16=Array[_0xe28a8f(0x1dc)](_0x5beef7)?_0x5beef7:typeof _0x5beef7==_0xe28a8f(0x1f5)?_0x5beef7[_0xe28a8f(0x201)](','):[_0x5beef7];_0x1e1c16['length']==0x0?_0x529bbc[_0xe28a8f(0x1d0)](_0xe28a8f(0x1d6)):_0x529bbc['andWhere'](_0x529bbc[_0xe28a8f(0x1e2)]+'.'+_0x553bc6+'\x20'+_0x4b4959+_0xe28a8f(0x1ea)+_0x2a2d82+')',{[_0x2a2d82]:_0x1e1c16});}}else{if(['FIND\x20IN\x20SET',_0xe28a8f(0x1db)][_0xe28a8f(0x214)](_0x4b4959)!=-0x1)typeof _0x5beef7!='undefined'&&_0x529bbc[_0xe28a8f(0x1d0)](_0x4b4959+'(:'+_0x2a2d82+','+_0x529bbc[_0xe28a8f(0x1e2)]+'.'+_0x553bc6+')',{[_0x2a2d82]:_0x5beef7});else{if([_0xe28a8f(0x1da),_0xe28a8f(0x1d9)][_0xe28a8f(0x214)](_0x4b4959)!=-0x1){if(typeof _0x5beef7!=_0xe28a8f(0x1f9)){const _0x46623f=Array[_0xe28a8f(0x1dc)](_0x5beef7)?_0x5beef7:typeof _0x5beef7==_0xe28a8f(0x1f5)?_0x5beef7[_0xe28a8f(0x201)](','):[_0x5beef7];_0x46623f['length']>0x1&&_0x529bbc[_0xe28a8f(0x1d0)](_0x529bbc['alias']+'.'+_0x553bc6+'\x20'+_0x4b4959+'\x20:'+_0x2a2d82+_0xe28a8f(0x207)+_0x2a2d82+'_2',{[''+_0x2a2d82]:_0x46623f[0x0],[_0x2a2d82+'_2']:_0x46623f[0x1]});}}else['ISNULL',_0xe28a8f(0x1d8)][_0xe28a8f(0x214)](_0x4b4959)!=-0x1&&_0x529bbc['andWhere'](_0x4b4959+'('+_0x529bbc[_0xe28a8f(0x1e2)]+'.'+_0x553bc6+')');}}}}else{const _0x29b3cc=((_0x3d1c34=typeof _0x35d208['type']==_0xe28a8f(0x1cf)?(_0x4e2f81=_0x35d208===null||_0x35d208===void 0x0?void 0x0:_0x35d208[_0xe28a8f(0x211)])===null||_0x4e2f81===void 0x0?void 0x0:_0x4e2f81[_0xe28a8f(0x1f3)]:_0x35d208[_0xe28a8f(0x211)][_0xe28a8f(0x210)]())===null||_0x3d1c34===void 0x0?void 0x0:_0x3d1c34['toLowerCase']())||undefined;if(_0x29b3cc){if(Array[_0xe28a8f(0x1dc)](_0xaa81f5[_0x553bc6]))_0xaa81f5[_0x553bc6][_0xe28a8f(0x1cb)]==0x0?_0x529bbc[_0xe28a8f(0x1d0)](_0xe28a8f(0x1d6)):_0x529bbc[_0xe28a8f(0x1d0)](_0x529bbc[_0xe28a8f(0x1e2)]+'.'+_0x553bc6+_0xe28a8f(0x1e3)+_0x553bc6+')',{[_0xe28a8f(0x209)+_0x553bc6]:_0xaa81f5[_0x553bc6]});else _0x29b3cc==_0xe28a8f(0x1f5)?_0x529bbc[_0xe28a8f(0x1d0)](_0x529bbc['alias']+'.'+_0x553bc6+_0xe28a8f(0x1d5)+_0x553bc6,{[_0xe28a8f(0x209)+_0x553bc6]:'%'+_0xaa81f5[_0x553bc6]+'%'}):_0x529bbc[_0xe28a8f(0x1d0)](_0x529bbc[_0xe28a8f(0x1e2)]+'.'+_0x553bc6+_0xe28a8f(0x1c9)+_0x553bc6,{[_0xe28a8f(0x209)+_0x553bc6]:_0xaa81f5[_0x553bc6]});}}}(_0xf591c0===null||_0xf591c0===void 0x0?void 0x0:_0xf591c0[_0xe28a8f(0x1f8)])&&_0x529bbc['take'](Math[_0xe28a8f(0x203)](_0xf591c0[_0xe28a8f(0x1f8)]));(_0xf591c0===null||_0xf591c0===void 0x0?void 0x0:_0xf591c0[_0xe28a8f(0x202)])&&(_0xf591c0===null||_0xf591c0===void 0x0?void 0x0:_0xf591c0[_0xe28a8f(0x1f8)])&&_0x529bbc['skip']((Math[_0xe28a8f(0x203)](_0xf591c0['_page'])-0x1)*Math[_0xe28a8f(0x203)](_0xf591c0[_0xe28a8f(0x1f8)]));if(_0xf591c0===null||_0xf591c0===void 0x0?void 0x0:_0xf591c0[_0xe28a8f(0x1fc)]){if(_0xf591c0[_0xe28a8f(0x1fc)][_0xe28a8f(0x214)]('.')!==-0x1)_0x529bbc[_0xe28a8f(0x20a)](''+_0xf591c0[_0xe28a8f(0x1fc)],(_0xf591c0===null||_0xf591c0===void 0x0?void 0x0:_0xf591c0[_0xe28a8f(0x1eb)])?_0xe28a8f(0x1f7):_0xe28a8f(0x1df));else _0x30abb2[_0xe28a8f(0x214)](_0xf591c0[_0xe28a8f(0x1fc)])==-0x1&&(this['metadata'][_0xe28a8f(0x1e6)](_0xf591c0[_0xe28a8f(0x1fc)])?_0x529bbc[_0xe28a8f(0x20a)](_0x529bbc[_0xe28a8f(0x1e2)]+'.'+_0xf591c0['_order'],(_0xf591c0===null||_0xf591c0===void 0x0?void 0x0:_0xf591c0['_isreverse'])?_0xe28a8f(0x1f7):'DESC'):_0x529bbc['orderBy'](''+_0xf591c0[_0xe28a8f(0x1fc)],(_0xf591c0===null||_0xf591c0===void 0x0?void 0x0:_0xf591c0[_0xe28a8f(0x1eb)])?_0xe28a8f(0x1f7):_0xe28a8f(0x1df)));}return typeof(_0xa98630===null||_0xa98630===void 0x0?void 0x0:_0xa98630['excess'])==_0xe28a8f(0x1cf)&&await(_0xa98630===null||_0xa98630===void 0x0?void 0x0:_0xa98630[_0xe28a8f(0x215)](_0x529bbc)),_0x529bbc;}async['mergeSave'](_0x1b37fd,..._0x5e70b3){const _0x1e0eb5=a7_0x38460c,_0x1ad436=this[_0x1e0eb5(0x1ec)](_0x1b37fd,..._0x5e70b3);return await this['save'](_0x1ad436);}async[a7_0x38460c(0x1ee)](_0x2f25df,..._0x15ea9b){const _0x34faa5=a7_0x38460c,_0xf8e09e=this[_0x34faa5(0x1ec)](this[_0x34faa5(0x1e5)](_0x2f25df),..._0x15ea9b);return await this[_0x34faa5(0x1f2)](_0xf8e09e);}async[a7_0x38460c(0x20b)](_0x5e1e31,_0x1d6d70){const _0x45f9d2=a7_0x38460c;return this[_0x45f9d2(0x1fa)][_0x45f9d2(0x20b)](_0x5e1e31,_0x1d6d70);}}exports[a7_0x38460c(0x1dd)]=Repository;
@@ -1 +1 @@
1
- 'use strict';const a8_0x20db2f=a8_0x5c91;(function(_0x58d184,_0x1ab85a){const _0xb4141e=a8_0x5c91,_0x5c35d0=_0x58d184();while(!![]){try{const _0x1ba3e3=-parseInt(_0xb4141e(0x123))/0x1+parseInt(_0xb4141e(0x114))/0x2+parseInt(_0xb4141e(0x112))/0x3*(parseInt(_0xb4141e(0x120))/0x4)+parseInt(_0xb4141e(0x11b))/0x5*(parseInt(_0xb4141e(0x119))/0x6)+parseInt(_0xb4141e(0x116))/0x7*(parseInt(_0xb4141e(0x11c))/0x8)+parseInt(_0xb4141e(0x11f))/0x9*(parseInt(_0xb4141e(0x111))/0xa)+-parseInt(_0xb4141e(0x11e))/0xb*(parseInt(_0xb4141e(0x125))/0xc);if(_0x1ba3e3===_0x1ab85a)break;else _0x5c35d0['push'](_0x5c35d0['shift']());}catch(_0x4fda51){_0x5c35d0['push'](_0x5c35d0['shift']());}}}(a8_0x305c,0x1fcb5));function a8_0x305c(){const _0x508e03=['getClassMetadata','default','1554402tHowZu','getDataSourceEntity','5zGcnkP','232nYQdwm','ENTIFY_MODULE_SOURCE','2338171DVkfzW','243XaaIEc','14188pyhEwl','@midwayjs/core','find','43665JjRxDF','listModule','36HPcbYm','ENTIFY_MODULE','../interface','12710FHEuaM','192oKCfYu','defineProperty','225496SHrGBL','dataSource','43071JDLOTV'];a8_0x305c=function(){return _0x508e03;};return a8_0x305c();}Object[a8_0x20db2f(0x113)](exports,'__esModule',{'value':!![]}),exports[a8_0x20db2f(0x11a)]=void 0x0;const core_1=require(a8_0x20db2f(0x121)),interface_1=require(a8_0x20db2f(0x127));function getDataSourceEntity(_0x143739=a8_0x20db2f(0x118)){const _0x165fb1=a8_0x20db2f;var _0x5c1400;const _0x291e31=[];for(const _0x881219 of(0x0,core_1[_0x165fb1(0x124)])(interface_1[_0x165fb1(0x126)])){const _0x43bb91=(0x0,core_1[_0x165fb1(0x117)])(interface_1[_0x165fb1(0x11d)],_0x881219);((_0x5c1400=_0x43bb91===null||_0x43bb91===void 0x0?void 0x0:_0x43bb91[_0x165fb1(0x115)])===null||_0x5c1400===void 0x0?void 0x0:_0x5c1400[_0x165fb1(0x122)](_0x2c2b64=>_0x2c2b64==_0x143739))&&_0x291e31['push'](_0x881219);}return _0x291e31;}function a8_0x5c91(_0x5517f6,_0x296b0f){const _0x305c19=a8_0x305c();return a8_0x5c91=function(_0x5c910c,_0x2a0ec1){_0x5c910c=_0x5c910c-0x111;let _0x434b00=_0x305c19[_0x5c910c];return _0x434b00;},a8_0x5c91(_0x5517f6,_0x296b0f);}exports[a8_0x20db2f(0x11a)]=getDataSourceEntity;
1
+ 'use strict';function a8_0x33bc(_0x20383d,_0x20efc2){const _0x29a9a4=a8_0x29a9();return a8_0x33bc=function(_0x33bc7e,_0x56a092){_0x33bc7e=_0x33bc7e-0xe7;let _0x2cc4c8=_0x29a9a4[_0x33bc7e];return _0x2cc4c8;},a8_0x33bc(_0x20383d,_0x20efc2);}const a8_0x307d61=a8_0x33bc;(function(_0x2ed18a,_0x3b2e14){const _0x136015=a8_0x33bc,_0x44ec98=_0x2ed18a();while(!![]){try{const _0x2f4503=-parseInt(_0x136015(0xee))/0x1*(-parseInt(_0x136015(0xed))/0x2)+parseInt(_0x136015(0xf5))/0x3*(-parseInt(_0x136015(0xfb))/0x4)+parseInt(_0x136015(0xe7))/0x5+parseInt(_0x136015(0xf9))/0x6*(parseInt(_0x136015(0xfa))/0x7)+parseInt(_0x136015(0xe8))/0x8+parseInt(_0x136015(0xf8))/0x9*(-parseInt(_0x136015(0xef))/0xa)+-parseInt(_0x136015(0xf7))/0xb*(-parseInt(_0x136015(0xf0))/0xc);if(_0x2f4503===_0x3b2e14)break;else _0x44ec98['push'](_0x44ec98['shift']());}catch(_0x1d1203){_0x44ec98['push'](_0x44ec98['shift']());}}}(a8_0x29a9,0x565f1));Object['defineProperty'](exports,a8_0x307d61(0xe9),{'value':!![]}),exports[a8_0x307d61(0xf6)]=void 0x0;function a8_0x29a9(){const _0x395ea0=['223422aCwIRE','35RlrqUU','433816EmLphe','default','884805McaHWE','3069048dmArer','__esModule','find','@midwayjs/core','dataSource','68VkGlHx','53UGvbht','579170ppqOCw','5964icvFSI','ENTIFY_MODULE_SOURCE','../interface','push','ENTIFY_MODULE','18mkCiRj','getDataSourceEntity','8228UZzRNO','18SdSQKn'];a8_0x29a9=function(){return _0x395ea0;};return a8_0x29a9();}const core_1=require(a8_0x307d61(0xeb)),interface_1=require(a8_0x307d61(0xf2));function getDataSourceEntity(_0x462496=a8_0x307d61(0xfc)){const _0x127a71=a8_0x307d61;var _0x184ed1;const _0x35edee=[];for(const _0x3cc229 of(0x0,core_1['listModule'])(interface_1[_0x127a71(0xf4)])){const _0x30455c=(0x0,core_1['getClassMetadata'])(interface_1[_0x127a71(0xf1)],_0x3cc229);((_0x184ed1=_0x30455c===null||_0x30455c===void 0x0?void 0x0:_0x30455c[_0x127a71(0xec)])===null||_0x184ed1===void 0x0?void 0x0:_0x184ed1[_0x127a71(0xea)](_0x289de7=>_0x289de7==_0x462496))&&_0x35edee[_0x127a71(0xf3)](_0x3cc229);}return _0x35edee;}exports['getDataSourceEntity']=getDataSourceEntity;
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { InjectEntity } from './decorator/InjectEntity';
6
6
  export { InjectRepository } from './decorator/InjectRepository';
7
7
  export { ProvideEntity } from './decorator/ProvideEntity';
8
8
  export { ProvideRepository } from './decorator/ProvideRepository';
9
- export { ProvideSearch, Search } from "./decorator/ProvideSearch";
9
+ export { ProvideSearch, Search, SearchScope } from "./decorator/ProvideSearch";
10
10
  export { getDataSourceEntity } from './helper/getDataSourceEntity';
11
11
  export { CustomConfiguration as Configuration } from './configuration';
12
12
  export { Provide, Inject, Scope, ScopeEnum } from "@midwayjs/core";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a9_0x272c(_0x23e8b0,_0x27e1a8){var _0x46f759=a9_0x46f7();return a9_0x272c=function(_0x272ca5,_0x1a2bb8){_0x272ca5=_0x272ca5-0x109;var _0x1659b1=_0x46f759[_0x272ca5];return _0x1659b1;},a9_0x272c(_0x23e8b0,_0x27e1a8);}var a9_0x7351db=a9_0x272c;(function(_0x297ffa,_0x1656b0){var _0x4ff93e=a9_0x272c,_0x207f78=_0x297ffa();while(!![]){try{var _0x135a6f=-parseInt(_0x4ff93e(0x113))/0x1+parseInt(_0x4ff93e(0x112))/0x2+-parseInt(_0x4ff93e(0x10d))/0x3*(-parseInt(_0x4ff93e(0x132))/0x4)+-parseInt(_0x4ff93e(0x115))/0x5*(-parseInt(_0x4ff93e(0x136))/0x6)+parseInt(_0x4ff93e(0x114))/0x7*(parseInt(_0x4ff93e(0x11c))/0x8)+-parseInt(_0x4ff93e(0x134))/0x9*(parseInt(_0x4ff93e(0x10e))/0xa)+parseInt(_0x4ff93e(0x109))/0xb*(-parseInt(_0x4ff93e(0x12c))/0xc);if(_0x135a6f===_0x1656b0)break;else _0x207f78['push'](_0x207f78['shift']());}catch(_0x2c3c00){_0x207f78['push'](_0x207f78['shift']());}}}(a9_0x46f7,0x5e50b));function a9_0x46f7(){var _0x953a97=['./definition/Repository','__createBinding','1135846fgbVkw','637027IPyHnZ','2272235jXaQYe','3313550lyyFxK','InjectRepository','ProvideEntity','./helper/getDataSourceEntity','VirtualColumn','defineProperty','./decorator/ProvideSearch','16XiEPlp','CustomConfiguration','create','Provide','./decorator/VirtualColumn','./decorator/ProvideRepository','Scope','./interface','Inject','default','InjectEntity','ScopeEnum','Search','typeorm','ProvideRepository','./decorator/InjectEntity','13272696Dzmigt','./configuration','call','Repository','get','Configuration','1888TGRaxN','@midwayjs/core','27MfLArm','getOwnPropertyDescriptor','6TVWcrL','getDataSourceEntity','11afydVn','./decorator/ProvideEntity','ProvideSearch','__esModule','2976dsOVlJ','728890dlfMLF','writable'];a9_0x46f7=function(){return _0x953a97;};return a9_0x46f7();}var __createBinding=this&&this[a9_0x7351db(0x111)]||(Object[a9_0x7351db(0x11e)]?function(_0x13c5e7,_0x4f510c,_0x3c71a3,_0x5b71bd){var _0xe44e50=a9_0x7351db;if(_0x5b71bd===undefined)_0x5b71bd=_0x3c71a3;var _0xf4761b=Object[_0xe44e50(0x135)](_0x4f510c,_0x3c71a3);(!_0xf4761b||(_0xe44e50(0x130)in _0xf4761b?!_0x4f510c[_0xe44e50(0x10c)]:_0xf4761b[_0xe44e50(0x10f)]||_0xf4761b['configurable']))&&(_0xf4761b={'enumerable':!![],'get':function(){return _0x4f510c[_0x3c71a3];}}),Object['defineProperty'](_0x13c5e7,_0x5b71bd,_0xf4761b);}:function(_0x2cfe90,_0x4b4c82,_0x3904ce,_0x10d8f1){if(_0x10d8f1===undefined)_0x10d8f1=_0x3904ce;_0x2cfe90[_0x10d8f1]=_0x4b4c82[_0x3904ce];}),__exportStar=this&&this['__exportStar']||function(_0x26ae1d,_0x587f0b){var _0x53b99c=a9_0x7351db;for(var _0x48a75d in _0x26ae1d)if(_0x48a75d!==_0x53b99c(0x125)&&!Object['prototype']['hasOwnProperty'][_0x53b99c(0x12e)](_0x587f0b,_0x48a75d))__createBinding(_0x587f0b,_0x26ae1d,_0x48a75d);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ScopeEnum']=exports[a9_0x7351db(0x122)]=exports[a9_0x7351db(0x124)]=exports[a9_0x7351db(0x11f)]=exports[a9_0x7351db(0x131)]=exports[a9_0x7351db(0x137)]=exports['Search']=exports[a9_0x7351db(0x10b)]=exports[a9_0x7351db(0x12a)]=exports[a9_0x7351db(0x117)]=exports['InjectRepository']=exports[a9_0x7351db(0x126)]=exports[a9_0x7351db(0x119)]=exports[a9_0x7351db(0x12f)]=void 0x0,__exportStar(require(a9_0x7351db(0x129)),exports),__exportStar(require(a9_0x7351db(0x123)),exports);var Repository_1=require(a9_0x7351db(0x110));Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x12f),{'enumerable':!![],'get':function(){var _0x2e85f7=a9_0x7351db;return Repository_1[_0x2e85f7(0x12f)];}});var VirtualColumn_1=require(a9_0x7351db(0x120));Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x119),{'enumerable':!![],'get':function(){var _0x3f801b=a9_0x7351db;return VirtualColumn_1[_0x3f801b(0x119)];}});var InjectEntity_1=require(a9_0x7351db(0x12b));Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x126),{'enumerable':!![],'get':function(){return InjectEntity_1['InjectEntity'];}});var InjectRepository_1=require('./decorator/InjectRepository');Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x116),{'enumerable':!![],'get':function(){var _0x194e2e=a9_0x7351db;return InjectRepository_1[_0x194e2e(0x116)];}});var ProvideEntity_1=require(a9_0x7351db(0x10a));Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x117),{'enumerable':!![],'get':function(){return ProvideEntity_1['ProvideEntity'];}});var ProvideRepository_1=require(a9_0x7351db(0x121));Object['defineProperty'](exports,a9_0x7351db(0x12a),{'enumerable':!![],'get':function(){return ProvideRepository_1['ProvideRepository'];}});var ProvideSearch_1=require(a9_0x7351db(0x11b));Object['defineProperty'](exports,a9_0x7351db(0x10b),{'enumerable':!![],'get':function(){var _0x61b07c=a9_0x7351db;return ProvideSearch_1[_0x61b07c(0x10b)];}}),Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x128),{'enumerable':!![],'get':function(){var _0x339927=a9_0x7351db;return ProvideSearch_1[_0x339927(0x128)];}});var getDataSourceEntity_1=require(a9_0x7351db(0x118));Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x137),{'enumerable':!![],'get':function(){var _0x4fc016=a9_0x7351db;return getDataSourceEntity_1[_0x4fc016(0x137)];}});var configuration_1=require(a9_0x7351db(0x12d));Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x131),{'enumerable':!![],'get':function(){var _0x118f64=a9_0x7351db;return configuration_1[_0x118f64(0x11d)];}});var core_1=require(a9_0x7351db(0x133));Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x11f),{'enumerable':!![],'get':function(){var _0x4e999a=a9_0x7351db;return core_1[_0x4e999a(0x11f)];}}),Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x124),{'enumerable':!![],'get':function(){var _0x1db7c1=a9_0x7351db;return core_1[_0x1db7c1(0x124)];}}),Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x122),{'enumerable':!![],'get':function(){var _0x10bcf6=a9_0x7351db;return core_1[_0x10bcf6(0x122)];}}),Object[a9_0x7351db(0x11a)](exports,a9_0x7351db(0x127),{'enumerable':!![],'get':function(){return core_1['ScopeEnum'];}});
1
+ 'use strict';var a9_0x3cfd81=a9_0x3587;(function(_0x528ad1,_0x185745){var _0x42b0de=a9_0x3587,_0x3f4024=_0x528ad1();while(!![]){try{var _0x1a07f5=parseInt(_0x42b0de(0xde))/0x1*(-parseInt(_0x42b0de(0xe2))/0x2)+-parseInt(_0x42b0de(0xcd))/0x3+parseInt(_0x42b0de(0xce))/0x4+parseInt(_0x42b0de(0xd0))/0x5*(parseInt(_0x42b0de(0xe8))/0x6)+-parseInt(_0x42b0de(0xef))/0x7+parseInt(_0x42b0de(0xd6))/0x8+-parseInt(_0x42b0de(0xf3))/0x9;if(_0x1a07f5===_0x185745)break;else _0x3f4024['push'](_0x3f4024['shift']());}catch(_0x21dbdf){_0x3f4024['push'](_0x3f4024['shift']());}}}(a9_0x232a,0x778a8));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x12789a,_0x11d5ad,_0x4d1a8d,_0x41d156){var _0x593ab0=a9_0x3587;if(_0x41d156===undefined)_0x41d156=_0x4d1a8d;var _0x177136=Object[_0x593ab0(0xea)](_0x11d5ad,_0x4d1a8d);(!_0x177136||(_0x593ab0(0xd5)in _0x177136?!_0x11d5ad[_0x593ab0(0xcf)]:_0x177136[_0x593ab0(0xda)]||_0x177136[_0x593ab0(0xcc)]))&&(_0x177136={'enumerable':!![],'get':function(){return _0x11d5ad[_0x4d1a8d];}}),Object[_0x593ab0(0xd2)](_0x12789a,_0x41d156,_0x177136);}:function(_0x84a283,_0x4a18d1,_0x1ffc9d,_0x26d18f){if(_0x26d18f===undefined)_0x26d18f=_0x1ffc9d;_0x84a283[_0x26d18f]=_0x4a18d1[_0x1ffc9d];}),__exportStar=this&&this[a9_0x3cfd81(0xe3)]||function(_0x17b554,_0x64e27d){var _0xf2dc1c=a9_0x3cfd81;for(var _0x26eacf in _0x17b554)if(_0x26eacf!==_0xf2dc1c(0xd8)&&!Object[_0xf2dc1c(0xe6)][_0xf2dc1c(0xdc)][_0xf2dc1c(0xdd)](_0x64e27d,_0x26eacf))__createBinding(_0x64e27d,_0x17b554,_0x26eacf);};Object[a9_0x3cfd81(0xd2)](exports,'__esModule',{'value':!![]}),exports[a9_0x3cfd81(0xdb)]=exports[a9_0x3cfd81(0xd3)]=exports[a9_0x3cfd81(0xed)]=exports[a9_0x3cfd81(0xf2)]=exports['Configuration']=exports[a9_0x3cfd81(0xe7)]=exports['SearchScope']=exports[a9_0x3cfd81(0xe5)]=exports[a9_0x3cfd81(0xd9)]=exports['ProvideRepository']=exports[a9_0x3cfd81(0xe4)]=exports[a9_0x3cfd81(0xee)]=exports['InjectEntity']=exports[a9_0x3cfd81(0xd4)]=exports[a9_0x3cfd81(0xd1)]=void 0x0,__exportStar(require('typeorm'),exports),__exportStar(require('./interface'),exports);var Repository_1=require(a9_0x3cfd81(0xec));Object[a9_0x3cfd81(0xd2)](exports,a9_0x3cfd81(0xd1),{'enumerable':!![],'get':function(){var _0x436fb2=a9_0x3cfd81;return Repository_1[_0x436fb2(0xd1)];}});var VirtualColumn_1=require(a9_0x3cfd81(0xdf));Object[a9_0x3cfd81(0xd2)](exports,a9_0x3cfd81(0xd4),{'enumerable':!![],'get':function(){var _0x6850d4=a9_0x3cfd81;return VirtualColumn_1[_0x6850d4(0xd4)];}});function a9_0x3587(_0x1af1f0,_0x145d9b){var _0x232ad6=a9_0x232a();return a9_0x3587=function(_0x358774,_0x491c0b){_0x358774=_0x358774-0xcc;var _0x1ee386=_0x232ad6[_0x358774];return _0x1ee386;},a9_0x3587(_0x1af1f0,_0x145d9b);}var InjectEntity_1=require(a9_0x3cfd81(0xf1));Object['defineProperty'](exports,'InjectEntity',{'enumerable':!![],'get':function(){var _0x4ffeec=a9_0x3cfd81;return InjectEntity_1[_0x4ffeec(0xf0)];}});var InjectRepository_1=require(a9_0x3cfd81(0xeb));Object[a9_0x3cfd81(0xd2)](exports,a9_0x3cfd81(0xee),{'enumerable':!![],'get':function(){var _0x51d10b=a9_0x3cfd81;return InjectRepository_1[_0x51d10b(0xee)];}});var ProvideEntity_1=require(a9_0x3cfd81(0xe0));function a9_0x232a(){var _0x57511f=['ProvideSearch','writable','ScopeEnum','hasOwnProperty','call','3ToRVft','./decorator/VirtualColumn','./decorator/ProvideEntity','./decorator/ProvideSearch','424628ssRYyG','__exportStar','ProvideEntity','Search','prototype','getDataSourceEntity','3449934jaovuH','SearchScope','getOwnPropertyDescriptor','./decorator/InjectRepository','./definition/Repository','Inject','InjectRepository','2226896aPKEOG','InjectEntity','./decorator/InjectEntity','Provide','4492170SWilpv','configurable','281352DuKhUc','3914860kzmvfF','__esModule','5qBMaYY','Repository','defineProperty','Scope','VirtualColumn','get','3871360xlohdW','Configuration','default'];a9_0x232a=function(){return _0x57511f;};return a9_0x232a();}Object['defineProperty'](exports,'ProvideEntity',{'enumerable':!![],'get':function(){var _0x5faa11=a9_0x3cfd81;return ProvideEntity_1[_0x5faa11(0xe4)];}});var ProvideRepository_1=require('./decorator/ProvideRepository');Object['defineProperty'](exports,'ProvideRepository',{'enumerable':!![],'get':function(){return ProvideRepository_1['ProvideRepository'];}});var ProvideSearch_1=require(a9_0x3cfd81(0xe1));Object['defineProperty'](exports,a9_0x3cfd81(0xd9),{'enumerable':!![],'get':function(){var _0x3b8fc5=a9_0x3cfd81;return ProvideSearch_1[_0x3b8fc5(0xd9)];}}),Object[a9_0x3cfd81(0xd2)](exports,a9_0x3cfd81(0xe5),{'enumerable':!![],'get':function(){var _0x5b2ec5=a9_0x3cfd81;return ProvideSearch_1[_0x5b2ec5(0xe5)];}}),Object[a9_0x3cfd81(0xd2)](exports,a9_0x3cfd81(0xe9),{'enumerable':!![],'get':function(){var _0x46f18c=a9_0x3cfd81;return ProvideSearch_1[_0x46f18c(0xe9)];}});var getDataSourceEntity_1=require('./helper/getDataSourceEntity');Object[a9_0x3cfd81(0xd2)](exports,'getDataSourceEntity',{'enumerable':!![],'get':function(){var _0x4f1f98=a9_0x3cfd81;return getDataSourceEntity_1[_0x4f1f98(0xe7)];}});var configuration_1=require('./configuration');Object[a9_0x3cfd81(0xd2)](exports,a9_0x3cfd81(0xd7),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object[a9_0x3cfd81(0xd2)](exports,a9_0x3cfd81(0xf2),{'enumerable':!![],'get':function(){var _0x45d306=a9_0x3cfd81;return core_1[_0x45d306(0xf2)];}}),Object['defineProperty'](exports,a9_0x3cfd81(0xed),{'enumerable':!![],'get':function(){return core_1['Inject'];}}),Object[a9_0x3cfd81(0xd2)](exports,a9_0x3cfd81(0xd3),{'enumerable':!![],'get':function(){var _0x2d6e76=a9_0x3cfd81;return core_1[_0x2d6e76(0xd3)];}}),Object[a9_0x3cfd81(0xd2)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x21c720=a9_0x3cfd81;return core_1[_0x21c720(0xdb)];}});
@@ -6,6 +6,7 @@ export declare const ENTIFY_MODULE_SOURCE = "decorator:anncic-api:typeorm:entify
6
6
  export declare const REPOSITORY_KEY = "decorator:anncic-api:typeorm:repository";
7
7
  export declare const MODEL_KEY = "decorator:anncic-api:typeorm:model";
8
8
  export declare const MODEL_SEARCH_KEY = "decorator:anncic-api:typeorm:model:search";
9
+ export declare const MODEL_SEARCH_SCOPE_KEY = "decorator:anncic-api:typeorm:model:search:scope";
9
10
  export declare const ENTITY_VIRTUAL_COLUMN_KEY = "decorator:anncic-api:typeorm:entity:virtual:column";
10
11
  export declare type SearchParams<Entity> = {
11
12
  [P in keyof Entity]?: {
@@ -34,5 +35,6 @@ export declare class SearchPaginate {
34
35
  }
35
36
  export interface SearchOptions {
36
37
  queryRunner?: QueryRunner;
38
+ scope?: string | string[];
37
39
  excess?: <Entity extends ObjectLiteral>(search: SelectQueryBuilder<Entity>) => void;
38
40
  }
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a10_0x2553(_0x281305,_0xb2f307){const _0x4bf265=a10_0x4bf2();return a10_0x2553=function(_0x2553ab,_0x244f4d){_0x2553ab=_0x2553ab-0xd6;let _0x20ef79=_0x4bf265[_0x2553ab];return _0x20ef79;},a10_0x2553(_0x281305,_0xb2f307);}const a10_0x411996=a10_0x2553;function a10_0x4bf2(){const _0x395ffb=['name','2693820WTRxqc','5745117GkEJSN','getManyAndCount','decorator:anncic-api:typeorm:entify:module:source','SelectQueryBuilder','4851JBVXQQ','mainAlias','hasOwnProperty','ENTIFY_MODULE_SOURCE','getClassMetadata','decorator:anncic-api:typeorm:repository','SearchPaginate','findOneByOrFail','findOne','ENTITY_VIRTUAL_COLUMN_KEY','getRawAndEntities','resolve','ENTIFY_MODULE','lockMode','74935yGmPNW','typeorm','30hFVIgL','reject','default','updateDateColumn','12jXZtGu','180168dXEGgL','getEntityValue','optimistic','20312cJwPWl','MODEL_KEY','REPOSITORY_KEY','getCount','decorator:anncic-api:typeorm:model','expressionMap','__esModule','versionColumn','then','MODEL_SEARCH_KEY','OptimisticLockCanNotBeUsedError','EntityManager','decorator:anncic-api:typeorm:entity:virtual:column','430748wEaVLs','prototype','ENTIFY_KEY','decorator:anncic-api:typeorm:entify:module','getMany','@midwayjs/core','EntityNotFoundError','getTime','lockVersion','getOne','2033620kGFTjS'];a10_0x4bf2=function(){return _0x395ffb;};return a10_0x4bf2();}(function(_0x3ed65e,_0x468129){const _0x1f49c0=a10_0x2553,_0x2d2207=_0x3ed65e();while(!![]){try{const _0x305d62=parseInt(_0x1f49c0(0xea))/0x1*(-parseInt(_0x1f49c0(0xe9))/0x2)+parseInt(_0x1f49c0(0x106))/0x3+parseInt(_0x1f49c0(0xfa))/0x4+parseInt(_0x1f49c0(0xe3))/0x5*(parseInt(_0x1f49c0(0xe5))/0x6)+-parseInt(_0x1f49c0(0x107))/0x7+parseInt(_0x1f49c0(0xed))/0x8*(parseInt(_0x1f49c0(0x10b))/0x9)+parseInt(_0x1f49c0(0x104))/0xa;if(_0x305d62===_0x468129)break;else _0x2d2207['push'](_0x2d2207['shift']());}catch(_0x42adc9){_0x2d2207['push'](_0x2d2207['shift']());}}}(a10_0x4bf2,0xb7472));Object['defineProperty'](exports,a10_0x411996(0xf3),{'value':!![]}),exports[a10_0x411996(0xdb)]=exports['ENTITY_VIRTUAL_COLUMN_KEY']=exports[a10_0x411996(0xf6)]=exports[a10_0x411996(0xee)]=exports[a10_0x411996(0xef)]=exports[a10_0x411996(0xd8)]=exports[a10_0x411996(0xe1)]=exports[a10_0x411996(0xfc)]=void 0x0;const core_1=require(a10_0x411996(0xff)),typeorm_1=require(a10_0x411996(0xe4)),typeorm_2=require(a10_0x411996(0xe4));exports['ENTIFY_KEY']='decorator:anncic-api:typeorm:entify',exports['ENTIFY_MODULE']=a10_0x411996(0xfd),exports[a10_0x411996(0xd8)]=a10_0x411996(0x109),exports[a10_0x411996(0xef)]=a10_0x411996(0xda),exports['MODEL_KEY']=a10_0x411996(0xf1),exports['MODEL_SEARCH_KEY']='decorator:anncic-api:typeorm:model:search',exports[a10_0x411996(0xde)]=a10_0x411996(0xf9);class SearchPaginate{}exports['SearchPaginate']=SearchPaginate,typeorm_2[a10_0x411996(0xf8)][a10_0x411996(0xfb)]['findOneOrFail']=async function(_0x2cda97,_0x4c85c0){const _0x143297=a10_0x411996;return this[_0x143297(0xdd)](_0x2cda97,_0x4c85c0)['then'](_0x363a74=>{const _0x45fa28=_0x143297;if(_0x363a74===null||_0x363a74===undefined)return Promise[_0x45fa28(0xe6)](new typeorm_2[(_0x45fa28(0x100))](_0x2cda97,_0x4c85c0));return Promise[_0x45fa28(0xe0)](_0x363a74);});},typeorm_2[a10_0x411996(0xf8)][a10_0x411996(0xfb)][a10_0x411996(0xdc)]=async function(_0x374f29,_0x4e9d33){const _0x344c98=a10_0x411996;return this['findOneBy'](_0x374f29,_0x4e9d33)[_0x344c98(0xf5)](_0x5cda64=>{const _0x16fc96=_0x344c98;if(_0x5cda64===null||_0x5cda64===undefined)return Promise[_0x16fc96(0xe6)](new typeorm_2[(_0x16fc96(0x100))](_0x374f29,_0x4e9d33));return Promise[_0x16fc96(0xe0)](_0x5cda64);});},typeorm_1['SelectQueryBuilder'][a10_0x411996(0xfb)][a10_0x411996(0xfe)]=async function(){const _0x286582=a10_0x411996;if(this[_0x286582(0xf2)]['lockMode']===_0x286582(0xec))throw new typeorm_1[(_0x286582(0xf7))]();const {entities:_0x27f543,raw:_0x1c7f01}=await this['getRawAndEntities']();return _0x27f543['map']((_0x55b2c5,_0x10d69f)=>{const _0x2bcf48=_0x286582;var _0x5e4796;const _0x13f0a6=(0x0,core_1[_0x2bcf48(0xd9)])(exports[_0x2bcf48(0xde)],_0x55b2c5)||{};for(const _0x27dbb7 in _0x13f0a6){_0x1c7f01[_0x10d69f]&&_0x1c7f01[_0x10d69f][_0x2bcf48(0xd7)](_0x27dbb7)&&(_0x55b2c5[_0x27dbb7]=_0x1c7f01[_0x10d69f][_0x27dbb7]||((_0x5e4796=_0x13f0a6[_0x27dbb7])===null||_0x5e4796===void 0x0?void 0x0:_0x5e4796[_0x2bcf48(0xe7)])||'');}return _0x55b2c5;});},typeorm_1[a10_0x411996(0x10a)]['prototype'][a10_0x411996(0x108)]=async function(){const _0x1cc114=a10_0x411996;return[await this[_0x1cc114(0xfe)](),await this[_0x1cc114(0xf0)]()];},typeorm_1[a10_0x411996(0x10a)][a10_0x411996(0xfb)][a10_0x411996(0x103)]=async function(){const _0x2f55fa=a10_0x411996;var _0x517ba8;const {entities:_0x250eeb,raw:_0x5d2be7}=await this[_0x2f55fa(0xdf)]();if(_0x250eeb[0x0]&&this[_0x2f55fa(0xf2)][_0x2f55fa(0xe2)]===_0x2f55fa(0xec)&&this['expressionMap'][_0x2f55fa(0x102)]){const _0x2a6f70=this['expressionMap'][_0x2f55fa(0xd6)]['metadata'];if(this['expressionMap'][_0x2f55fa(0x102)]instanceof Date){const _0x1f60c2=_0x2a6f70[_0x2f55fa(0xe8)]['getEntityValue'](_0x250eeb[0x0]);if(_0x1f60c2[_0x2f55fa(0x101)]()!==this['expressionMap'][_0x2f55fa(0x102)]['getTime']())throw new typeorm_1['OptimisticLockVersionMismatchError'](_0x2a6f70[_0x2f55fa(0x105)],this[_0x2f55fa(0xf2)][_0x2f55fa(0x102)],_0x1f60c2);}else{const _0x2a8df4=_0x2a6f70[_0x2f55fa(0xf4)][_0x2f55fa(0xeb)](_0x250eeb[0x0]);if(_0x2a8df4!==this[_0x2f55fa(0xf2)][_0x2f55fa(0x102)])throw new typeorm_1['OptimisticLockVersionMismatchError'](_0x2a6f70['name'],this['expressionMap'][_0x2f55fa(0x102)],_0x2a8df4);}}if(_0x250eeb[0x0]&&_0x5d2be7[0x0]){const _0x273894=(0x0,core_1[_0x2f55fa(0xd9)])(exports[_0x2f55fa(0xde)],_0x250eeb[0x0]);for(const _0x2b882b in _0x273894){_0x5d2be7[0x0][_0x2f55fa(0xd7)](_0x2b882b)&&(_0x250eeb[0x0][_0x2b882b]=_0x5d2be7[0x0][_0x2b882b]||((_0x517ba8=_0x273894[_0x2b882b])===null||_0x517ba8===void 0x0?void 0x0:_0x517ba8[_0x2f55fa(0xe7)])||'');}}return _0x250eeb[0x0]||null;};
1
+ 'use strict';const a10_0x107131=a10_0x5274;(function(_0x388315,_0x5efb25){const _0x57496e=a10_0x5274,_0x181684=_0x388315();while(!![]){try{const _0x28928f=-parseInt(_0x57496e(0x12e))/0x1+parseInt(_0x57496e(0x123))/0x2+-parseInt(_0x57496e(0x125))/0x3*(parseInt(_0x57496e(0x138))/0x4)+-parseInt(_0x57496e(0x14d))/0x5+-parseInt(_0x57496e(0x13d))/0x6*(-parseInt(_0x57496e(0x13f))/0x7)+parseInt(_0x57496e(0x124))/0x8+parseInt(_0x57496e(0x134))/0x9;if(_0x28928f===_0x5efb25)break;else _0x181684['push'](_0x181684['shift']());}catch(_0x46069a){_0x181684['push'](_0x181684['shift']());}}}(a10_0x15ac,0x2fd82));Object['defineProperty'](exports,a10_0x107131(0x147),{'value':!![]}),exports[a10_0x107131(0x152)]=exports[a10_0x107131(0x135)]=exports[a10_0x107131(0x150)]=exports['MODEL_SEARCH_KEY']=exports['MODEL_KEY']=exports[a10_0x107131(0x121)]=exports[a10_0x107131(0x12c)]=exports[a10_0x107131(0x122)]=exports[a10_0x107131(0x12a)]=void 0x0;function a10_0x5274(_0x6e6a1d,_0x1b6bd7){const _0x15ac1d=a10_0x15ac();return a10_0x5274=function(_0x527435,_0xdeae17){_0x527435=_0x527435-0x11e;let _0x146a7e=_0x15ac1d[_0x527435];return _0x146a7e;},a10_0x5274(_0x6e6a1d,_0x1b6bd7);}const core_1=require(a10_0x107131(0x11e)),typeorm_1=require('typeorm'),typeorm_2=require(a10_0x107131(0x13e));exports['ENTIFY_KEY']=a10_0x107131(0x11f),exports['ENTIFY_MODULE']='decorator:anncic-api:typeorm:entify:module',exports[a10_0x107131(0x12c)]=a10_0x107131(0x129),exports['REPOSITORY_KEY']='decorator:anncic-api:typeorm:repository',exports[a10_0x107131(0x144)]=a10_0x107131(0x13a),exports[a10_0x107131(0x14b)]=a10_0x107131(0x14a),exports[a10_0x107131(0x150)]=a10_0x107131(0x145),exports[a10_0x107131(0x135)]=a10_0x107131(0x140);function a10_0x15ac(){const _0x214c86=['398780cVxmzl','663280mzEoJZ','6NlrJPW','default','getMany','map','decorator:anncic-api:typeorm:entify:module:source','ENTIFY_KEY','SelectQueryBuilder','ENTIFY_MODULE_SOURCE','expressionMap','391887CBTFMy','getCount','name','findOne','OptimisticLockCanNotBeUsedError','lockMode','2145078IKuszQ','ENTITY_VIRTUAL_COLUMN_KEY','updateDateColumn','getManyAndCount','301844ceqnto','metadata','decorator:anncic-api:typeorm:model','findOneByOrFail','getOne','18XMOWHN','typeorm','702205ziOQTd','decorator:anncic-api:typeorm:entity:virtual:column','lockVersion','optimistic','EntityManager','MODEL_KEY','decorator:anncic-api:typeorm:model:search:scope','getClassMetadata','__esModule','then','reject','decorator:anncic-api:typeorm:model:search','MODEL_SEARCH_KEY','versionColumn','414040lEZpXo','getRawAndEntities','prototype','MODEL_SEARCH_SCOPE_KEY','EntityNotFoundError','SearchPaginate','hasOwnProperty','@midwayjs/core','decorator:anncic-api:typeorm:entify','OptimisticLockVersionMismatchError','REPOSITORY_KEY','ENTIFY_MODULE'];a10_0x15ac=function(){return _0x214c86;};return a10_0x15ac();}class SearchPaginate{}exports[a10_0x107131(0x152)]=SearchPaginate,typeorm_2[a10_0x107131(0x143)][a10_0x107131(0x14f)]['findOneOrFail']=async function(_0xfac094,_0x3d2f00){const _0xa318ab=a10_0x107131;return this[_0xa318ab(0x131)](_0xfac094,_0x3d2f00)[_0xa318ab(0x148)](_0x5b5ada=>{const _0x4a231f=_0xa318ab;if(_0x5b5ada===null||_0x5b5ada===undefined)return Promise['reject'](new typeorm_2[(_0x4a231f(0x151))](_0xfac094,_0x3d2f00));return Promise['resolve'](_0x5b5ada);});},typeorm_2[a10_0x107131(0x143)][a10_0x107131(0x14f)][a10_0x107131(0x13b)]=async function(_0x3c5e32,_0x2425e4){const _0x50cbd9=a10_0x107131;return this['findOneBy'](_0x3c5e32,_0x2425e4)[_0x50cbd9(0x148)](_0x2b52e7=>{const _0x2234a9=_0x50cbd9;if(_0x2b52e7===null||_0x2b52e7===undefined)return Promise[_0x2234a9(0x149)](new typeorm_2[(_0x2234a9(0x151))](_0x3c5e32,_0x2425e4));return Promise['resolve'](_0x2b52e7);});},typeorm_1[a10_0x107131(0x12b)][a10_0x107131(0x14f)]['getMany']=async function(){const _0x1ed624=a10_0x107131;if(this[_0x1ed624(0x12d)][_0x1ed624(0x133)]===_0x1ed624(0x142))throw new typeorm_1[(_0x1ed624(0x132))]();const {entities:_0x3f2c51,raw:_0x38839e}=await this[_0x1ed624(0x14e)]();return _0x3f2c51[_0x1ed624(0x128)]((_0x3d1bcf,_0x3c84e1)=>{const _0x2b55b8=_0x1ed624;var _0x5617a0;const _0x3099a1=(0x0,core_1[_0x2b55b8(0x146)])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x3d1bcf)||{};for(const _0x435bdf in _0x3099a1){_0x38839e[_0x3c84e1]&&_0x38839e[_0x3c84e1][_0x2b55b8(0x153)](_0x435bdf)&&(_0x3d1bcf[_0x435bdf]=_0x38839e[_0x3c84e1][_0x435bdf]||((_0x5617a0=_0x3099a1[_0x435bdf])===null||_0x5617a0===void 0x0?void 0x0:_0x5617a0[_0x2b55b8(0x126)])||'');}return _0x3d1bcf;});},typeorm_1[a10_0x107131(0x12b)][a10_0x107131(0x14f)][a10_0x107131(0x137)]=async function(){const _0x5f520d=a10_0x107131;return[await this[_0x5f520d(0x127)](),await this[_0x5f520d(0x12f)]()];},typeorm_1[a10_0x107131(0x12b)]['prototype'][a10_0x107131(0x13c)]=async function(){const _0x558b65=a10_0x107131;var _0x5decce;const {entities:_0x4b61ef,raw:_0x57ebca}=await this[_0x558b65(0x14e)]();if(_0x4b61ef[0x0]&&this[_0x558b65(0x12d)][_0x558b65(0x133)]===_0x558b65(0x142)&&this[_0x558b65(0x12d)][_0x558b65(0x141)]){const _0x281072=this['expressionMap']['mainAlias'][_0x558b65(0x139)];if(this['expressionMap'][_0x558b65(0x141)]instanceof Date){const _0x5df8d8=_0x281072[_0x558b65(0x136)]['getEntityValue'](_0x4b61ef[0x0]);if(_0x5df8d8['getTime']()!==this[_0x558b65(0x12d)][_0x558b65(0x141)]['getTime']())throw new typeorm_1[(_0x558b65(0x120))](_0x281072['name'],this[_0x558b65(0x12d)][_0x558b65(0x141)],_0x5df8d8);}else{const _0x7fcb52=_0x281072[_0x558b65(0x14c)]['getEntityValue'](_0x4b61ef[0x0]);if(_0x7fcb52!==this[_0x558b65(0x12d)][_0x558b65(0x141)])throw new typeorm_1[(_0x558b65(0x120))](_0x281072[_0x558b65(0x130)],this[_0x558b65(0x12d)][_0x558b65(0x141)],_0x7fcb52);}}if(_0x4b61ef[0x0]&&_0x57ebca[0x0]){const _0x1f919b=(0x0,core_1[_0x558b65(0x146)])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x4b61ef[0x0]);for(const _0x1ca681 in _0x1f919b){_0x57ebca[0x0][_0x558b65(0x153)](_0x1ca681)&&(_0x4b61ef[0x0][_0x1ca681]=_0x57ebca[0x0][_0x1ca681]||((_0x5decce=_0x1f919b[_0x1ca681])===null||_0x5decce===void 0x0?void 0x0:_0x5decce[_0x558b65(0x126)])||'');}}return _0x4b61ef[0x0]||null;};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/typeorm",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -22,5 +22,5 @@
22
22
  "javascript-obfuscator": "2.19.0",
23
23
  "typescript": "^4.7.4"
24
24
  },
25
- "gitHead": "864964ba61f2a0edc08575c25cc548d2c9cad87d"
25
+ "gitHead": "804809f0521c31790e9c08e84fc82c0dd2d8c9c5"
26
26
  }