@anncic-api/typeorm 3.4.32 → 3.4.34

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,8 +1,8 @@
1
- import { MidwayConfigService, MidwayDecoratorService, IMidwayContainer, IMidwayApplication } from '@midwayjs/core';
2
- import { Repository as IRepository } from "./definition/Repository";
3
- export declare class CustomConfiguration {
4
- config: MidwayConfigService;
5
- decorator: MidwayDecoratorService;
6
- protected handlercache: Map<any, IRepository<any>>;
7
- onReady(container: IMidwayContainer, app: IMidwayApplication): Promise<void>;
8
- }
1
+ import { MidwayConfigService, MidwayDecoratorService, IMidwayContainer, IMidwayApplication } from '@midwayjs/core';
2
+ import { Repository as IRepository } from "./definition/Repository";
3
+ export declare class CustomConfiguration {
4
+ config: MidwayConfigService;
5
+ decorator: MidwayDecoratorService;
6
+ protected handlercache: Map<any, IRepository<any>>;
7
+ onReady(container: IMidwayContainer, app: IMidwayApplication): Promise<void>;
8
+ }
@@ -1 +1 @@
1
- const a0_0x7b024a=a0_0x2aeb;(function(_0x380f24,_0x446d25){const _0x438a7a=a0_0x2aeb,_0x30692a=_0x380f24();while(!![]){try{const _0x5830bf=parseInt(_0x438a7a(0x186))/0x1+parseInt(_0x438a7a(0x19a))/0x2*(-parseInt(_0x438a7a(0x1a4))/0x3)+parseInt(_0x438a7a(0x1a1))/0x4*(-parseInt(_0x438a7a(0x1a6))/0x5)+parseInt(_0x438a7a(0x18d))/0x6+parseInt(_0x438a7a(0x17d))/0x7+parseInt(_0x438a7a(0x1aa))/0x8*(-parseInt(_0x438a7a(0x17e))/0x9)+-parseInt(_0x438a7a(0x18c))/0xa;if(_0x5830bf===_0x446d25)break;else _0x30692a['push'](_0x30692a['shift']());}catch(_0x20f23e){_0x30692a['push'](_0x30692a['shift']());}}}(a0_0xf708,0xc7301));const a0_0x109867=(function(){let _0x192825=!![];return function(_0xca2843,_0x155c1f){const _0x438371=_0x192825?function(){const _0x277069=a0_0x2aeb;if(_0x155c1f){const _0x1abb6d=_0x155c1f[_0x277069(0x180)](_0xca2843,arguments);return _0x155c1f=null,_0x1abb6d;}}:function(){};return _0x192825=![],_0x438371;};}()),a0_0x25d0e2=a0_0x109867(this,function(){const _0x40e22c=a0_0x2aeb;return a0_0x25d0e2[_0x40e22c(0x17f)]()[_0x40e22c(0x1a0)](_0x40e22c(0x188))[_0x40e22c(0x17f)]()['constructor'](a0_0x25d0e2)[_0x40e22c(0x1a0)](_0x40e22c(0x188));});a0_0x25d0e2();'use strict';var __decorate=this&&this[a0_0x7b024a(0x1a9)]||function(_0x2b8355,_0x39edb3,_0x1a87cb,_0x55d33c){const _0x4574e2=a0_0x7b024a;var _0x3f028b=arguments[_0x4574e2(0x18a)],_0x5a77da=_0x3f028b<0x3?_0x39edb3:_0x55d33c===null?_0x55d33c=Object[_0x4574e2(0x199)](_0x39edb3,_0x1a87cb):_0x55d33c,_0x732f25;if(typeof Reflect===_0x4574e2(0x19c)&&typeof Reflect['decorate']==='function')_0x5a77da=Reflect[_0x4574e2(0x18b)](_0x2b8355,_0x39edb3,_0x1a87cb,_0x55d33c);else{for(var _0x16d667=_0x2b8355['length']-0x1;_0x16d667>=0x0;_0x16d667--)if(_0x732f25=_0x2b8355[_0x16d667])_0x5a77da=(_0x3f028b<0x3?_0x732f25(_0x5a77da):_0x3f028b>0x3?_0x732f25(_0x39edb3,_0x1a87cb,_0x5a77da):_0x732f25(_0x39edb3,_0x1a87cb))||_0x5a77da;}return _0x3f028b>0x3&&_0x5a77da&&Object[_0x4574e2(0x184)](_0x39edb3,_0x1a87cb,_0x5a77da),_0x5a77da;},__metadata=this&&this['__metadata']||function(_0x33b604,_0x401ded){const _0x3c03b2=a0_0x7b024a;if(typeof Reflect===_0x3c03b2(0x19c)&&typeof Reflect['metadata']===_0x3c03b2(0x198))return Reflect[_0x3c03b2(0x191)](_0x33b604,_0x401ded);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x7b024a(0x1a8)]=void 0x0;function a0_0xf708(){const _0x3f0be9=['has','function','getOwnPropertyDescriptor','14IQeghH','MidwayConfigService','object','prototype','name','Repository','search','4082116kIFwJz','config','./interface','26262havbfU','\x20is\x20not\x20ProvideRepository\x20Entify','5nklbfi','getClassMetadata','CustomConfiguration','__decorate','8rDXSxk','getDataSource','10967208eZalae','5157423mpjkJb','toString','apply','get','Inject','registerPropertyHandler','defineProperty','MidwayDecoratorService','508507bYoRsB','REPOSITORY_KEY','(((.+)+)+)+$','onReady','length','decorate','10161900fsFUky','8469996LCTvUf','@midwayjs/typeorm','typeorm\x20Error\x20','decorator','metadata','getRepository','@midwayjs/core','set','getDataSourceNameByModel','handlercache'];a0_0xf708=function(){return _0x3f0be9;};return a0_0xf708();}const typeorm_1=require('@midwayjs/typeorm'),core_1=require(a0_0x7b024a(0x193)),core_2=require(a0_0x7b024a(0x193)),Repository_1=require('./definition/Repository'),interface_1=require(a0_0x7b024a(0x1a3)),typeorm=require(a0_0x7b024a(0x18e));function a0_0x2aeb(_0x428c71,_0x42f44e){const _0x1a0a0e=a0_0xf708();return a0_0x2aeb=function(_0x25d0e2,_0x109867){_0x25d0e2=_0x25d0e2-0x17d;let _0xf7082e=_0x1a0a0e[_0x25d0e2];return _0xf7082e;},a0_0x2aeb(_0x428c71,_0x42f44e);}let CustomConfiguration=class CustomConfiguration{constructor(){const _0x3209e7=a0_0x7b024a;this[_0x3209e7(0x196)]=new Map();}async[a0_0x7b024a(0x189)](_0x5eead7,_0x3b0e93){const _0x2dc460=a0_0x7b024a,_0x4db3ae=await _0x5eead7['getAsync'](typeorm_1['TypeORMDataSourceManager']);this['decorator']['registerPropertyHandler'](interface_1['ENTIFY_KEY'],(_0x4a28ab,{entity:_0x3140fb,connection:_0x583d14})=>{const _0x440a3c=a0_0x2aeb;if(!this[_0x440a3c(0x196)][_0x440a3c(0x197)](_0x3140fb)){const _0x254c50=_0x5eead7[_0x440a3c(0x181)](Repository_1[_0x440a3c(0x19f)],[_0x3b0e93,_0x5eead7,_0x4db3ae[_0x440a3c(0x1ab)](_0x583d14||_0x4db3ae['getDataSourceNameByModel'](_0x3140fb))[_0x440a3c(0x192)](_0x3140fb)]);this[_0x440a3c(0x196)][_0x440a3c(0x194)](_0x3140fb,_0x254c50);}return this['handlercache'][_0x440a3c(0x181)](_0x3140fb);}),this[_0x2dc460(0x190)][_0x2dc460(0x183)](interface_1[_0x2dc460(0x187)],(_0x1d72d0,{repository:_0x333f6d,connection:_0x1774b6})=>{const _0x320647=_0x2dc460;if(!_0x333f6d)throw new Error('typeorm\x20Error\x20propertyName\x20is\x20not\x20InjectRepository\x20repository');const {entity:_0x269c00}=(0x0,core_1[_0x320647(0x1a7)])(interface_1['REPOSITORY_KEY'],_0x333f6d)||{};if(!_0x269c00)throw new Error(_0x320647(0x18f)+((_0x333f6d===null||_0x333f6d===void 0x0?void 0x0:_0x333f6d[_0x320647(0x19e)])||_0x333f6d)+_0x320647(0x1a5));if(!this[_0x320647(0x196)][_0x320647(0x197)](_0x333f6d)){const _0x589ac5=_0x5eead7[_0x320647(0x181)](_0x333f6d,[_0x3b0e93,_0x5eead7,_0x4db3ae['getDataSource'](_0x1774b6||_0x4db3ae[_0x320647(0x195)](_0x269c00))[_0x320647(0x192)](_0x269c00)]);this[_0x320647(0x196)]['set'](_0x333f6d,_0x589ac5);}return this[_0x320647(0x196)]['get'](_0x333f6d);});}};exports[a0_0x7b024a(0x1a8)]=CustomConfiguration,__decorate([(0x0,core_1[a0_0x7b024a(0x182)])(),__metadata('design:type',core_2[a0_0x7b024a(0x19b)])],CustomConfiguration[a0_0x7b024a(0x19d)],a0_0x7b024a(0x1a2),void 0x0),__decorate([(0x0,core_1[a0_0x7b024a(0x182)])(),__metadata('design:type',core_2[a0_0x7b024a(0x185)])],CustomConfiguration[a0_0x7b024a(0x19d)],a0_0x7b024a(0x190),void 0x0),exports[a0_0x7b024a(0x1a8)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration);
1
+ const a0_0x1d1fca=a0_0x3dd3;(function(_0x197a91,_0x1f507c){const _0x31062a=a0_0x3dd3,_0x3f02d6=_0x197a91();while(!![]){try{const _0x24719f=parseInt(_0x31062a(0xee))/0x1*(parseInt(_0x31062a(0xe3))/0x2)+parseInt(_0x31062a(0xf7))/0x3+parseInt(_0x31062a(0x100))/0x4+parseInt(_0x31062a(0xeb))/0x5*(parseInt(_0x31062a(0x109))/0x6)+-parseInt(_0x31062a(0x104))/0x7*(-parseInt(_0x31062a(0x111))/0x8)+-parseInt(_0x31062a(0x105))/0x9+-parseInt(_0x31062a(0x110))/0xa;if(_0x24719f===_0x1f507c)break;else _0x3f02d6['push'](_0x3f02d6['shift']());}catch(_0x13fd2f){_0x3f02d6['push'](_0x3f02d6['shift']());}}}(a0_0xcca8,0xc0a6d));const a0_0x5956eb=(function(){let _0x557183=!![];return function(_0x3e8fe0,_0x4aa800){const _0x4fa01e=_0x557183?function(){const _0x7ee6c6=a0_0x3dd3;if(_0x4aa800){const _0x46bbc8=_0x4aa800[_0x7ee6c6(0xe0)](_0x3e8fe0,arguments);return _0x4aa800=null,_0x46bbc8;}}:function(){};return _0x557183=![],_0x4fa01e;};}()),a0_0x2b2f87=a0_0x5956eb(this,function(){const _0x575b91=a0_0x3dd3;return a0_0x2b2f87[_0x575b91(0xf2)]()[_0x575b91(0xe4)](_0x575b91(0xe7))[_0x575b91(0xf2)]()[_0x575b91(0x101)](a0_0x2b2f87)[_0x575b91(0xe4)](_0x575b91(0xe7));});a0_0x2b2f87();'use strict';var __decorate=this&&this[a0_0x1d1fca(0xf8)]||function(_0x441e15,_0x51cf02,_0x466fd2,_0x1a8256){const _0x63622b=a0_0x1d1fca;var _0x3f0334=arguments[_0x63622b(0xdd)],_0x3a3b3f=_0x3f0334<0x3?_0x51cf02:_0x1a8256===null?_0x1a8256=Object[_0x63622b(0xe9)](_0x51cf02,_0x466fd2):_0x1a8256,_0x300012;if(typeof Reflect===_0x63622b(0xf4)&&typeof Reflect[_0x63622b(0xf0)]===_0x63622b(0xea))_0x3a3b3f=Reflect[_0x63622b(0xf0)](_0x441e15,_0x51cf02,_0x466fd2,_0x1a8256);else{for(var _0xd4db98=_0x441e15[_0x63622b(0xdd)]-0x1;_0xd4db98>=0x0;_0xd4db98--)if(_0x300012=_0x441e15[_0xd4db98])_0x3a3b3f=(_0x3f0334<0x3?_0x300012(_0x3a3b3f):_0x3f0334>0x3?_0x300012(_0x51cf02,_0x466fd2,_0x3a3b3f):_0x300012(_0x51cf02,_0x466fd2))||_0x3a3b3f;}return _0x3f0334>0x3&&_0x3a3b3f&&Object[_0x63622b(0xfb)](_0x51cf02,_0x466fd2,_0x3a3b3f),_0x3a3b3f;},__metadata=this&&this[a0_0x1d1fca(0xfa)]||function(_0x39d66f,_0x5f53fa){const _0x34c2d5=a0_0x1d1fca;if(typeof Reflect===_0x34c2d5(0xf4)&&typeof Reflect[_0x34c2d5(0xed)]==='function')return Reflect[_0x34c2d5(0xed)](_0x39d66f,_0x5f53fa);};Object[a0_0x1d1fca(0xfb)](exports,a0_0x1d1fca(0x103),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const typeorm_1=require(a0_0x1d1fca(0xe5)),core_1=require(a0_0x1d1fca(0xfd)),core_2=require('@midwayjs/core'),Repository_1=require(a0_0x1d1fca(0x10f)),interface_1=require(a0_0x1d1fca(0xf9)),typeorm=require(a0_0x1d1fca(0xe5));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x5218b2=a0_0x1d1fca;this[_0x5218b2(0x10d)]=new Map();}async[a0_0x1d1fca(0x10c)](_0x38ee56,_0x2129f6){const _0x182ca6=a0_0x1d1fca,_0x50d815=await _0x38ee56['getAsync'](typeorm_1[_0x182ca6(0xfc)]);this[_0x182ca6(0xdf)][_0x182ca6(0x108)](interface_1[_0x182ca6(0xe2)],(_0x27ac62,{entity:_0x5a660e,connection:_0x17466e})=>{const _0x477d53=_0x182ca6;if(!this[_0x477d53(0x10d)]['has'](_0x5a660e)){const _0x368930=_0x38ee56['get'](Repository_1['Repository'],[_0x2129f6,_0x38ee56,_0x50d815[_0x477d53(0xe8)](_0x17466e||_0x50d815[_0x477d53(0x106)](_0x5a660e))['getRepository'](_0x5a660e)]);this[_0x477d53(0x10d)][_0x477d53(0xe6)](_0x5a660e,_0x368930);}return this[_0x477d53(0x10d)]['get'](_0x5a660e);}),this['decorator']['registerPropertyHandler'](interface_1[_0x182ca6(0x102)],(_0x917e09,{repository:_0x428b63,connection:_0x2decd8})=>{const _0x1f4e69=_0x182ca6;if(!_0x428b63)throw new Error('typeorm\x20Error\x20propertyName\x20is\x20not\x20InjectRepository\x20repository');const {entity:_0x7b5738}=(0x0,core_1[_0x1f4e69(0xf1)])(interface_1['REPOSITORY_KEY'],_0x428b63)||{};if(!_0x7b5738)throw new Error('typeorm\x20Error\x20'+((_0x428b63===null||_0x428b63===void 0x0?void 0x0:_0x428b63[_0x1f4e69(0xec)])||_0x428b63)+_0x1f4e69(0xde));if(!this[_0x1f4e69(0x10d)][_0x1f4e69(0xff)](_0x428b63)){const _0x5a0402=_0x38ee56['get'](_0x428b63,[_0x2129f6,_0x38ee56,_0x50d815[_0x1f4e69(0xe8)](_0x2decd8||_0x50d815[_0x1f4e69(0x106)](_0x7b5738))[_0x1f4e69(0xe1)](_0x7b5738)]);this[_0x1f4e69(0x10d)]['set'](_0x428b63,_0x5a0402);}return this[_0x1f4e69(0x10d)][_0x1f4e69(0x10b)](_0x428b63);});}};__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x1d1fca(0x10a),core_2[a0_0x1d1fca(0x107)])],CustomConfiguration['prototype'],a0_0x1d1fca(0xfe),void 0x0),__decorate([(0x0,core_1[a0_0x1d1fca(0xf6)])(),__metadata(a0_0x1d1fca(0x10a),core_2[a0_0x1d1fca(0x112)])],CustomConfiguration[a0_0x1d1fca(0x10e)],a0_0x1d1fca(0xdf),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x1d1fca(0xf5)])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x1d1fca(0xf3)})],CustomConfiguration),exports[a0_0x1d1fca(0xef)]=CustomConfiguration;function a0_0x3dd3(_0x347d03,_0x640a7f){const _0x1edbe6=a0_0xcca8();return a0_0x3dd3=function(_0x2b2f87,_0x5956eb){_0x2b2f87=_0x2b2f87-0xdd;let _0xcca819=_0x1edbe6[_0x2b2f87];return _0xcca819;},a0_0x3dd3(_0x347d03,_0x640a7f);}function a0_0xcca8(){const _0xcef679=['length','\x20is\x20not\x20ProvideRepository\x20Entify','decorator','apply','getRepository','ENTIFY_KEY','108PpYooD','search','@midwayjs/typeorm','set','(((.+)+)+)+$','getDataSource','getOwnPropertyDescriptor','function','65MKwJZx','name','metadata','28087nilieb','CustomConfiguration','decorate','getClassMetadata','toString','anncic-api:typeorm','object','Configuration','Inject','82140CnDUlI','__decorate','./interface','__metadata','defineProperty','TypeORMDataSourceManager','@midwayjs/core','config','has','1020924ksuhwZ','constructor','REPOSITORY_KEY','__esModule','2081177kOpOrY','580113jNzcTk','getDataSourceNameByModel','MidwayConfigService','registerPropertyHandler','117282rIDHZX','design:type','get','onReady','handlercache','prototype','./definition/Repository','14971730zUhoTo','8cBipab','MidwayDecoratorService'];a0_0xcca8=function(){return _0xcef679;};return a0_0xcca8();}
@@ -1 +1 @@
1
- export declare function InjectEntity(entity: any, connection?: string): any;
1
+ export declare function InjectEntity(entity: any, connection?: string): any;
@@ -1 +1 @@
1
- const a1_0x4b18e4=a1_0x4fb1;(function(_0x4d2ae2,_0x463e80){const _0x59e5d2=a1_0x4fb1,_0x484522=_0x4d2ae2();while(!![]){try{const _0x794d84=parseInt(_0x59e5d2(0x149))/0x1+parseInt(_0x59e5d2(0x14c))/0x2+parseInt(_0x59e5d2(0x141))/0x3+parseInt(_0x59e5d2(0x142))/0x4+parseInt(_0x59e5d2(0x148))/0x5+-parseInt(_0x59e5d2(0x146))/0x6+-parseInt(_0x59e5d2(0x13f))/0x7;if(_0x794d84===_0x463e80)break;else _0x484522['push'](_0x484522['shift']());}catch(_0x257686){_0x484522['push'](_0x484522['shift']());}}}(a1_0x51d5,0xc7874));const a1_0x2482b3=(function(){let _0x5b7f39=!![];return function(_0x1cf37f,_0x1ff2af){const _0x568c7f=_0x5b7f39?function(){const _0x42e327=a1_0x4fb1;if(_0x1ff2af){const _0x32c1d7=_0x1ff2af[_0x42e327(0x13e)](_0x1cf37f,arguments);return _0x1ff2af=null,_0x32c1d7;}}:function(){};return _0x5b7f39=![],_0x568c7f;};}()),a1_0x41521c=a1_0x2482b3(this,function(){const _0x4bfae4=a1_0x4fb1;return a1_0x41521c[_0x4bfae4(0x145)]()['search'](_0x4bfae4(0x14b))[_0x4bfae4(0x145)]()[_0x4bfae4(0x14a)](a1_0x41521c)[_0x4bfae4(0x140)]('(((.+)+)+)+$');});a1_0x41521c();'use strict';function a1_0x4fb1(_0x5736b4,_0x1ee90f){const _0x1dcbf5=a1_0x51d5();return a1_0x4fb1=function(_0x41521c,_0x2482b3){_0x41521c=_0x41521c-0x13e;let _0x51d53b=_0x1dcbf5[_0x41521c];return _0x51d53b;},a1_0x4fb1(_0x5736b4,_0x1ee90f);}Object[a1_0x4b18e4(0x144)](exports,'__esModule',{'value':!![]}),exports['InjectEntity']=void 0x0;const core_1=require(a1_0x4b18e4(0x147)),interface_1=require('../interface');function a1_0x51d5(){const _0x5c8210=['16996987vWxATl','search','3929769QbIoGT','1415616Iuhdgs','InjectEntity','defineProperty','toString','5971362LcCzLH','@midwayjs/core','1366070wmENjq','1488095ZoyWqt','constructor','(((.+)+)+)+$','1631000PDyLCA','default','apply'];a1_0x51d5=function(){return _0x5c8210;};return a1_0x51d5();}function InjectEntity(_0x378cfb,_0x454348=a1_0x4b18e4(0x14d)){return(0x0,core_1['createCustomPropertyDecorator'])(interface_1['ENTIFY_KEY'],{'entity':_0x378cfb,'connection':_0x454348});}exports[a1_0x4b18e4(0x143)]=InjectEntity;
1
+ const a1_0x4905cb=a1_0x569a;(function(_0x4b4f03,_0x381b73){const _0x5743e7=a1_0x569a,_0x2b5369=_0x4b4f03();while(!![]){try{const _0x3f46a8=-parseInt(_0x5743e7(0xc5))/0x1+parseInt(_0x5743e7(0xc1))/0x2+parseInt(_0x5743e7(0xc9))/0x3+parseInt(_0x5743e7(0xd0))/0x4+-parseInt(_0x5743e7(0xc3))/0x5*(-parseInt(_0x5743e7(0xce))/0x6)+parseInt(_0x5743e7(0xd1))/0x7+-parseInt(_0x5743e7(0xcb))/0x8;if(_0x3f46a8===_0x381b73)break;else _0x2b5369['push'](_0x2b5369['shift']());}catch(_0xab7e9c){_0x2b5369['push'](_0x2b5369['shift']());}}}(a1_0x3751,0xa804a));const a1_0x45acf3=(function(){let _0x40a31c=!![];return function(_0x3e778f,_0x3f48b6){const _0x58003b=_0x40a31c?function(){const _0x32b890=a1_0x569a;if(_0x3f48b6){const _0x4908e1=_0x3f48b6[_0x32b890(0xcc)](_0x3e778f,arguments);return _0x3f48b6=null,_0x4908e1;}}:function(){};return _0x40a31c=![],_0x58003b;};}()),a1_0x3a6883=a1_0x45acf3(this,function(){const _0x47854d=a1_0x569a;return a1_0x3a6883[_0x47854d(0xbe)]()[_0x47854d(0xca)](_0x47854d(0xc4))[_0x47854d(0xbe)]()[_0x47854d(0xc0)](a1_0x3a6883)[_0x47854d(0xca)](_0x47854d(0xc4));});a1_0x3a6883();'use strict';function a1_0x3751(){const _0x190954=['../interface','InjectEntity','1344882YhVLBS','search','23996600rKFuNc','apply','@midwayjs/core','3922998DrfBHa','defineProperty','2486912bCPRho','6144446sUidva','__esModule','toString','default','constructor','2592510sYIuoH','createCustomPropertyDecorator','5rhmXTK','(((.+)+)+)+$','210111jAcdUc','ENTIFY_KEY'];a1_0x3751=function(){return _0x190954;};return a1_0x3751();}Object[a1_0x4905cb(0xcf)](exports,a1_0x4905cb(0xd2),{'value':!![]}),exports['InjectEntity']=void 0x0;const core_1=require(a1_0x4905cb(0xcd)),interface_1=require(a1_0x4905cb(0xc7));function InjectEntity(_0x106afe,_0x256ab7=a1_0x4905cb(0xbf)){const _0x463e0b=a1_0x4905cb;return(0x0,core_1[_0x463e0b(0xc2)])(interface_1[_0x463e0b(0xc6)],{'entity':_0x106afe,'connection':_0x256ab7});}function a1_0x569a(_0x29d4aa,_0x5e5b26){const _0x1eb4e8=a1_0x3751();return a1_0x569a=function(_0x3a6883,_0x45acf3){_0x3a6883=_0x3a6883-0xbe;let _0x3751f0=_0x1eb4e8[_0x3a6883];return _0x3751f0;},a1_0x569a(_0x29d4aa,_0x5e5b26);}exports[a1_0x4905cb(0xc8)]=InjectEntity;
@@ -1,8 +1,8 @@
1
- import { IMidwayApplication, IMidwayContainer } from '@midwayjs/core';
2
- import { Repository as BaseRepository, ObjectLiteral } from "typeorm";
3
- import { Repository } from '../definition/Repository';
4
- interface RepositoryOption<Entity extends ObjectLiteral> {
5
- new (app: IMidwayApplication, container: IMidwayContainer, repository: BaseRepository<Entity>): Repository<Entity>;
6
- }
7
- export declare function InjectRepository<T extends ObjectLiteral>(repository: RepositoryOption<T>, connection?: string): any;
8
- export {};
1
+ import { IMidwayApplication, IMidwayContainer } from '@midwayjs/core';
2
+ import { Repository as BaseRepository, ObjectLiteral } from "typeorm";
3
+ import { Repository } from '../definition/Repository';
4
+ interface RepositoryOption<Entity extends ObjectLiteral> {
5
+ new (app: IMidwayApplication, container: IMidwayContainer, repository: BaseRepository<Entity>): Repository<Entity>;
6
+ }
7
+ export declare function InjectRepository<T extends ObjectLiteral>(repository: RepositoryOption<T>, connection?: string): any;
8
+ export {};
@@ -1 +1 @@
1
- const a2_0x33a0cc=a2_0x23d0;(function(_0x197e06,_0x3c35f2){const _0x591e5e=a2_0x23d0,_0x33e1ba=_0x197e06();while(!![]){try{const _0x298406=parseInt(_0x591e5e(0x1d6))/0x1*(-parseInt(_0x591e5e(0x1e0))/0x2)+parseInt(_0x591e5e(0x1dc))/0x3+-parseInt(_0x591e5e(0x1d8))/0x4*(-parseInt(_0x591e5e(0x1ce))/0x5)+parseInt(_0x591e5e(0x1d3))/0x6+-parseInt(_0x591e5e(0x1d5))/0x7*(-parseInt(_0x591e5e(0x1e1))/0x8)+parseInt(_0x591e5e(0x1d1))/0x9+-parseInt(_0x591e5e(0x1dd))/0xa;if(_0x298406===_0x3c35f2)break;else _0x33e1ba['push'](_0x33e1ba['shift']());}catch(_0x5573a1){_0x33e1ba['push'](_0x33e1ba['shift']());}}}(a2_0x1526,0xa2eae));function a2_0x23d0(_0x3a64d4,_0xf35665){const _0x33f21e=a2_0x1526();return a2_0x23d0=function(_0x4d7e54,_0x3f7c5b){_0x4d7e54=_0x4d7e54-0x1cc;let _0x15264f=_0x33f21e[_0x4d7e54];return _0x15264f;},a2_0x23d0(_0x3a64d4,_0xf35665);}function a2_0x1526(){const _0x32786f=['(((.+)+)+)+$','../interface','10680039bheJoR','InjectRepository','4027872AUuoBK','apply','308XIEngq','7BoauKt','default','4079108Bgpboy','REPOSITORY_KEY','constructor','toString','2194227sYjCTG','39668900AxxDoV','defineProperty','createCustomPropertyDecorator','52270bCLIcJ','219632tsJKoP','search','@midwayjs/core','5LbjHRa'];a2_0x1526=function(){return _0x32786f;};return a2_0x1526();}const a2_0x3f7c5b=(function(){let _0x4b0910=!![];return function(_0x2c14b5,_0x2e4c39){const _0x43f88c=_0x4b0910?function(){const _0x2cc9a9=a2_0x23d0;if(_0x2e4c39){const _0x401de0=_0x2e4c39[_0x2cc9a9(0x1d4)](_0x2c14b5,arguments);return _0x2e4c39=null,_0x401de0;}}:function(){};return _0x4b0910=![],_0x43f88c;};}()),a2_0x4d7e54=a2_0x3f7c5b(this,function(){const _0x479d31=a2_0x23d0;return a2_0x4d7e54['toString']()[_0x479d31(0x1cc)]('(((.+)+)+)+$')[_0x479d31(0x1db)]()[_0x479d31(0x1da)](a2_0x4d7e54)[_0x479d31(0x1cc)](_0x479d31(0x1cf));});a2_0x4d7e54();'use strict';Object[a2_0x33a0cc(0x1de)](exports,'__esModule',{'value':!![]}),exports[a2_0x33a0cc(0x1d2)]=void 0x0;const core_1=require(a2_0x33a0cc(0x1cd)),interface_1=require(a2_0x33a0cc(0x1d0));function InjectRepository(_0x481602,_0x124911=a2_0x33a0cc(0x1d7)){const _0x209b43=a2_0x33a0cc;return(0x0,core_1[_0x209b43(0x1df)])(interface_1[_0x209b43(0x1d9)],{'repository':_0x481602,'connection':_0x124911});}exports[a2_0x33a0cc(0x1d2)]=InjectRepository;
1
+ const a2_0xa1f67e=a2_0x54c3;(function(_0x2e8d06,_0x2216b2){const _0x2d1e34=a2_0x54c3,_0x334899=_0x2e8d06();while(!![]){try{const _0x18dbec=-parseInt(_0x2d1e34(0x170))/0x1+parseInt(_0x2d1e34(0x16b))/0x2*(parseInt(_0x2d1e34(0x163))/0x3)+-parseInt(_0x2d1e34(0x160))/0x4+-parseInt(_0x2d1e34(0x164))/0x5*(-parseInt(_0x2d1e34(0x167))/0x6)+parseInt(_0x2d1e34(0x16c))/0x7*(parseInt(_0x2d1e34(0x16d))/0x8)+-parseInt(_0x2d1e34(0x161))/0x9*(parseInt(_0x2d1e34(0x169))/0xa)+parseInt(_0x2d1e34(0x162))/0xb*(parseInt(_0x2d1e34(0x173))/0xc);if(_0x18dbec===_0x2216b2)break;else _0x334899['push'](_0x334899['shift']());}catch(_0x33d759){_0x334899['push'](_0x334899['shift']());}}}(a2_0x24d5,0x50e97));const a2_0x5486c0=(function(){let _0x24b45b=!![];return function(_0x113842,_0x16f01c){const _0x172477=_0x24b45b?function(){const _0x5a155b=a2_0x54c3;if(_0x16f01c){const _0x127c8a=_0x16f01c[_0x5a155b(0x16f)](_0x113842,arguments);return _0x16f01c=null,_0x127c8a;}}:function(){};return _0x24b45b=![],_0x172477;};}()),a2_0x566a2a=a2_0x5486c0(this,function(){const _0x37292a=a2_0x54c3;return a2_0x566a2a[_0x37292a(0x168)]()[_0x37292a(0x166)]('(((.+)+)+)+$')[_0x37292a(0x168)]()[_0x37292a(0x15f)](a2_0x566a2a)['search'](_0x37292a(0x16a));});a2_0x566a2a();'use strict';function a2_0x24d5(){const _0x1f0b80=['1564040NkRQUC','9EDTsFD','587785JeInBF','454845AUeaFr','64470HLeMpt','../interface','search','12zHnqoS','toString','2158010cwXUDf','(((.+)+)+)+$','6bcYrQP','35oKqGFs','591832OYkeHg','defineProperty','apply','179477XqnzKb','InjectRepository','@midwayjs/core','60uojhvZ','__esModule','constructor'];a2_0x24d5=function(){return _0x1f0b80;};return a2_0x24d5();}function a2_0x54c3(_0x3e7550,_0x323e0f){const _0x7fb4a2=a2_0x24d5();return a2_0x54c3=function(_0x566a2a,_0x5486c0){_0x566a2a=_0x566a2a-0x15f;let _0x24d542=_0x7fb4a2[_0x566a2a];return _0x24d542;},a2_0x54c3(_0x3e7550,_0x323e0f);}Object[a2_0xa1f67e(0x16e)](exports,a2_0xa1f67e(0x174),{'value':!![]}),exports[a2_0xa1f67e(0x171)]=void 0x0;const core_1=require(a2_0xa1f67e(0x172)),interface_1=require(a2_0xa1f67e(0x165));function InjectRepository(_0x2af8af,_0x42a07a='default'){return(0x0,core_1['createCustomPropertyDecorator'])(interface_1['REPOSITORY_KEY'],{'repository':_0x2af8af,'connection':_0x42a07a});}exports[a2_0xa1f67e(0x171)]=InjectRepository;
@@ -1,5 +1,5 @@
1
- import { EntityOptions } from "typeorm";
2
- export declare function ProvideEntity(table: {
3
- tableName: string;
4
- dataSource?: string | string[];
5
- }, option?: EntityOptions): ClassDecorator;
1
+ import { EntityOptions } from "typeorm";
2
+ export declare function ProvideEntity(table: {
3
+ tableName: string;
4
+ dataSource?: string | string[];
5
+ }, option?: EntityOptions): ClassDecorator;
@@ -1 +1 @@
1
- const a3_0x45531a=a3_0x1509;(function(_0x596f1f,_0x3361d1){const _0x108ea3=a3_0x1509,_0x132e04=_0x596f1f();while(!![]){try{const _0xdb723a=parseInt(_0x108ea3(0x85))/0x1*(parseInt(_0x108ea3(0x89))/0x2)+parseInt(_0x108ea3(0x74))/0x3+-parseInt(_0x108ea3(0x82))/0x4*(-parseInt(_0x108ea3(0x6b))/0x5)+-parseInt(_0x108ea3(0x83))/0x6*(parseInt(_0x108ea3(0x71))/0x7)+-parseInt(_0x108ea3(0x6c))/0x8+-parseInt(_0x108ea3(0x80))/0x9+-parseInt(_0x108ea3(0x81))/0xa*(-parseInt(_0x108ea3(0x7a))/0xb);if(_0xdb723a===_0x3361d1)break;else _0x132e04['push'](_0x132e04['shift']());}catch(_0x25bdb6){_0x132e04['push'](_0x132e04['shift']());}}}(a3_0x1387,0x4ad40));const a3_0x4ce8e5=(function(){let _0x914df1=!![];return function(_0x35c98a,_0x3b6044){const _0x26763e=_0x914df1?function(){const _0x3f9a4f=a3_0x1509;if(_0x3b6044){const _0x50191d=_0x3b6044[_0x3f9a4f(0x77)](_0x35c98a,arguments);return _0x3b6044=null,_0x50191d;}}:function(){};return _0x914df1=![],_0x26763e;};}()),a3_0x58d824=a3_0x4ce8e5(this,function(){const _0x3895f5=a3_0x1509;return a3_0x58d824['toString']()[_0x3895f5(0x7e)](_0x3895f5(0x6f))[_0x3895f5(0x8a)]()[_0x3895f5(0x72)](a3_0x58d824)[_0x3895f5(0x7e)](_0x3895f5(0x6f));});a3_0x58d824();'use strict';function a3_0x1509(_0x9d6d10,_0x3dd008){const _0x266789=a3_0x1387();return a3_0x1509=function(_0x58d824,_0x4ce8e5){_0x58d824=_0x58d824-0x6b;let _0x1387c9=_0x266789[_0x58d824];return _0x1387c9;},a3_0x1509(_0x9d6d10,_0x3dd008);}Object[a3_0x45531a(0x70)](exports,a3_0x45531a(0x88),{'value':!![]}),exports[a3_0x45531a(0x6d)]=void 0x0;const typeorm_1=require('typeorm'),core_1=require(a3_0x45531a(0x7f)),interface_1=require(a3_0x45531a(0x7b));function ProvideEntity(_0x1cdcef,_0x15a2d3={}){return _0x2d2051=>{const _0x3deed8=a3_0x1509;_0x15a2d3[_0x3deed8(0x87)]=_0x1cdcef[_0x3deed8(0x86)];const _0x1d67e2=[];if(!(_0x1cdcef===null||_0x1cdcef===void 0x0?void 0x0:_0x1cdcef['dataSource']))_0x1d67e2['push']('default');else{if(typeof(_0x1cdcef===null||_0x1cdcef===void 0x0?void 0x0:_0x1cdcef['dataSource'])==_0x3deed8(0x7c))_0x1d67e2[_0x3deed8(0x84)](_0x1cdcef===null||_0x1cdcef===void 0x0?void 0x0:_0x1cdcef[_0x3deed8(0x76)]);else{if(Array[_0x3deed8(0x75)](_0x1cdcef===null||_0x1cdcef===void 0x0?void 0x0:_0x1cdcef[_0x3deed8(0x76)]))for(let _0x203683 of _0x1cdcef[_0x3deed8(0x76)]||['default']){_0x1d67e2[_0x3deed8(0x84)](_0x203683);}}}(0x0,core_1[_0x3deed8(0x6e)])(interface_1[_0x3deed8(0x7d)],_0x2d2051),(0x0,core_1[_0x3deed8(0x79)])(interface_1[_0x3deed8(0x73)],{'tableName':_0x1cdcef[_0x3deed8(0x86)],'dataSource':_0x1d67e2},_0x2d2051),(0x0,typeorm_1[_0x3deed8(0x78)])(_0x1cdcef['tableName'],_0x15a2d3)(_0x2d2051);};}function a3_0x1387(){const _0x1122b9=['4FYOnEc','24uTSyXg','push','66PCYEBp','tableName','name','__esModule','4492MOfzjM','toString','2113210LmwHvm','1799888EFOvCI','ProvideEntity','saveModule','(((.+)+)+)+$','defineProperty','76468etZFTk','constructor','ENTIFY_MODULE_SOURCE','76404kBlGDd','isArray','dataSource','apply','Entity','saveClassMetadata','352joBDEH','../interface','string','ENTIFY_MODULE','search','@midwayjs/core','3102768zKccTd','101120YmhzOF'];a3_0x1387=function(){return _0x1122b9;};return a3_0x1387();}exports[a3_0x45531a(0x6d)]=ProvideEntity;
1
+ function a3_0x1a25(_0x3963dc,_0x41d1fc){const _0x5e9f76=a3_0x4127();return a3_0x1a25=function(_0x497fe7,_0x116b21){_0x497fe7=_0x497fe7-0x1e5;let _0x412745=_0x5e9f76[_0x497fe7];return _0x412745;},a3_0x1a25(_0x3963dc,_0x41d1fc);}function a3_0x4127(){const _0x3151a4=['1704ZvRUZE','Entity','string','push','isArray','toString','10702710mcEhES','default','constructor','apply','6671796gVTnLZ','25529JRPdOl','tableName','defineProperty','2005948adHAzl','3190839tGVlqm','ProvideEntity','saveClassMetadata','../interface','saveModule','dataSource','__esModule','841235IrcnmP','(((.+)+)+)+$','5iYkwiJ','4ACOqKX','ENTIFY_MODULE_SOURCE','23012830bjLrkN'];a3_0x4127=function(){return _0x3151a4;};return a3_0x4127();}const a3_0x2a988b=a3_0x1a25;(function(_0x18372c,_0x1777e8){const _0x476bc6=a3_0x1a25,_0x3d4239=_0x18372c();while(!![]){try{const _0x1f7bc3=-parseInt(_0x476bc6(0x1ed))/0x1*(-parseInt(_0x476bc6(0x1f0))/0x2)+-parseInt(_0x476bc6(0x1e6))/0x3+parseInt(_0x476bc6(0x1e5))/0x4*(-parseInt(_0x476bc6(0x1ef))/0x5)+-parseInt(_0x476bc6(0x1fd))/0x6+parseInt(_0x476bc6(0x1fe))/0x7*(parseInt(_0x476bc6(0x1f3))/0x8)+-parseInt(_0x476bc6(0x1f9))/0x9+parseInt(_0x476bc6(0x1f2))/0xa;if(_0x1f7bc3===_0x1777e8)break;else _0x3d4239['push'](_0x3d4239['shift']());}catch(_0x1ef266){_0x3d4239['push'](_0x3d4239['shift']());}}}(a3_0x4127,0xda564));const a3_0x116b21=(function(){let _0x41fe90=!![];return function(_0x22ff63,_0xa50f2c){const _0x4f5195=_0x41fe90?function(){const _0x1d2e03=a3_0x1a25;if(_0xa50f2c){const _0x17197e=_0xa50f2c[_0x1d2e03(0x1fc)](_0x22ff63,arguments);return _0xa50f2c=null,_0x17197e;}}:function(){};return _0x41fe90=![],_0x4f5195;};}()),a3_0x497fe7=a3_0x116b21(this,function(){const _0x3ca759=a3_0x1a25;return a3_0x497fe7[_0x3ca759(0x1f8)]()['search'](_0x3ca759(0x1ee))[_0x3ca759(0x1f8)]()[_0x3ca759(0x1fb)](a3_0x497fe7)['search']('(((.+)+)+)+$');});a3_0x497fe7();'use strict';Object[a3_0x2a988b(0x200)](exports,a3_0x2a988b(0x1ec),{'value':!![]}),exports[a3_0x2a988b(0x1e7)]=void 0x0;const typeorm_1=require('typeorm'),core_1=require('@midwayjs/core'),interface_1=require(a3_0x2a988b(0x1e9));function ProvideEntity(_0x4d37df,_0x103832={}){return _0x2b536f=>{const _0x2afba4=a3_0x1a25;_0x103832['name']=_0x4d37df[_0x2afba4(0x1ff)];const _0x1b5343=[];if(!(_0x4d37df===null||_0x4d37df===void 0x0?void 0x0:_0x4d37df[_0x2afba4(0x1eb)]))_0x1b5343[_0x2afba4(0x1f6)]('default');else{if(typeof(_0x4d37df===null||_0x4d37df===void 0x0?void 0x0:_0x4d37df['dataSource'])==_0x2afba4(0x1f5))_0x1b5343[_0x2afba4(0x1f6)](_0x4d37df===null||_0x4d37df===void 0x0?void 0x0:_0x4d37df[_0x2afba4(0x1eb)]);else{if(Array[_0x2afba4(0x1f7)](_0x4d37df===null||_0x4d37df===void 0x0?void 0x0:_0x4d37df[_0x2afba4(0x1eb)]))for(let _0x578a3e of _0x4d37df[_0x2afba4(0x1eb)]||[_0x2afba4(0x1fa)]){_0x1b5343[_0x2afba4(0x1f6)](_0x578a3e);}}}(0x0,core_1[_0x2afba4(0x1ea)])(interface_1['ENTIFY_MODULE'],_0x2b536f),(0x0,core_1[_0x2afba4(0x1e8)])(interface_1[_0x2afba4(0x1f1)],{'tableName':_0x4d37df[_0x2afba4(0x1ff)],'dataSource':_0x1b5343},_0x2b536f),(0x0,typeorm_1[_0x2afba4(0x1f4)])(_0x4d37df[_0x2afba4(0x1ff)],_0x103832)(_0x2b536f);};}exports[a3_0x2a988b(0x1e7)]=ProvideEntity;
@@ -1,2 +1,2 @@
1
- import { EntitySchema } from "typeorm";
2
- export declare function ProvideObserve(entity?: Function | EntitySchema<any>): ClassDecorator;
1
+ import { EntitySchema } from "typeorm";
2
+ export declare function ProvideObserve(entity?: Function | EntitySchema<any>): ClassDecorator;
@@ -1 +1 @@
1
- const a4_0x1c6cc3=a4_0x2eb9;(function(_0x2a8c7e,_0x87b0a2){const _0x886141=a4_0x2eb9,_0x1a7efe=_0x2a8c7e();while(!![]){try{const _0x6a1163=-parseInt(_0x886141(0xbe))/0x1+parseInt(_0x886141(0xbf))/0x2*(-parseInt(_0x886141(0xb8))/0x3)+parseInt(_0x886141(0xa9))/0x4+parseInt(_0x886141(0xbb))/0x5*(parseInt(_0x886141(0xb1))/0x6)+-parseInt(_0x886141(0xad))/0x7*(-parseInt(_0x886141(0xb5))/0x8)+parseInt(_0x886141(0xa7))/0x9*(parseInt(_0x886141(0xac))/0xa)+parseInt(_0x886141(0xae))/0xb*(-parseInt(_0x886141(0xb0))/0xc);if(_0x6a1163===_0x87b0a2)break;else _0x1a7efe['push'](_0x1a7efe['shift']());}catch(_0x4911e7){_0x1a7efe['push'](_0x1a7efe['shift']());}}}(a4_0x3621,0xd0c11));const a4_0x54dcc1=(function(){let _0x233d5f=!![];return function(_0x5ac715,_0x99eeba){const _0x43a466=_0x233d5f?function(){const _0x2983b8=a4_0x2eb9;if(_0x99eeba){const _0x40f405=_0x99eeba[_0x2983b8(0xb2)](_0x5ac715,arguments);return _0x99eeba=null,_0x40f405;}}:function(){};return _0x233d5f=![],_0x43a466;};}()),a4_0xc8e16c=a4_0x54dcc1(this,function(){const _0x46f553=a4_0x2eb9;return a4_0xc8e16c[_0x46f553(0xbd)]()[_0x46f553(0xa3)](_0x46f553(0xbc))[_0x46f553(0xbd)]()[_0x46f553(0xa5)](a4_0xc8e16c)['search'](_0x46f553(0xbc));});function a4_0x3621(){const _0x3672b1=['178890MSJTZV','329uHHLsG','308YryHgF','Scope','688068cJpHQp','12sEYOLb','apply','ProvideObserve','EventSubscriber','236432yBncTT','prototype','../interface','24009BzdbIF','saveModule','Singleton','491065mtIWWH','(((.+)+)+)+$','toString','79585EGftwP','164peoEPj','undefined','search','REPOSITORY_OBSERVE_KEY','constructor','__esModule','747hADQKe','defineProperty','504516hdasOw','ScopeEnum','Provide'];a4_0x3621=function(){return _0x3672b1;};return a4_0x3621();}a4_0xc8e16c();'use strict';Object[a4_0x1c6cc3(0xa8)](exports,a4_0x1c6cc3(0xa6),{'value':!![]}),exports[a4_0x1c6cc3(0xb3)]=void 0x0;const typeorm_1=require('typeorm'),core_1=require('@midwayjs/core'),interface_1=require(a4_0x1c6cc3(0xb7));function a4_0x2eb9(_0x147ced,_0x4a54fa){const _0x3cd4c4=a4_0x3621();return a4_0x2eb9=function(_0xc8e16c,_0x54dcc1){_0xc8e16c=_0xc8e16c-0xa3;let _0x362164=_0x3cd4c4[_0xc8e16c];return _0x362164;},a4_0x2eb9(_0x147ced,_0x4a54fa);}function ProvideObserve(_0x1ff095){return _0x4ef4d7=>{const _0x444755=a4_0x2eb9;_0x1ff095&&typeof _0x4ef4d7[_0x444755(0xb6)]['listenTo']==_0x444755(0xc0)&&(_0x4ef4d7[_0x444755(0xb6)]['listenTo']=()=>_0x1ff095),(0x0,typeorm_1[_0x444755(0xb4)])()(_0x4ef4d7),(0x0,core_1[_0x444755(0xb9)])(interface_1[_0x444755(0xa4)],_0x4ef4d7),((0x0,core_1[_0x444755(0xab)])()(_0x4ef4d7),(0x0,core_1[_0x444755(0xaf)])(core_1[_0x444755(0xaa)][_0x444755(0xba)])(_0x4ef4d7));};}exports['ProvideObserve']=ProvideObserve;
1
+ const a4_0x51242b=a4_0x1077;function a4_0x5bc3(){const _0x5ef3c8=['12EehzZm','1327797SsDPjR','undefined','3926000BuNSdh','prototype','11003553juHrNA','542318bzbwFK','3404380QFXIjK','Provide','ProvideObserve','../interface','ScopeEnum','typeorm','search','REPOSITORY_OBSERVE_KEY','144350ZtxikA','constructor','__esModule','Scope','listenTo','@midwayjs/core','48gdQGbh','apply','EventSubscriber','(((.+)+)+)+$','1962544MMIWUW','toString'];a4_0x5bc3=function(){return _0x5ef3c8;};return a4_0x5bc3();}(function(_0x3ef5ff,_0x83db87){const _0x2bb408=a4_0x1077,_0x2f041e=_0x3ef5ff();while(!![]){try{const _0x1b28d1=-parseInt(_0x2bb408(0x69))/0x1*(parseInt(_0x2bb408(0x75))/0x2)+parseInt(_0x2bb408(0x76))/0x3+parseInt(_0x2bb408(0x7c))/0x4+-parseInt(_0x2bb408(0x78))/0x5+parseInt(_0x2bb408(0x6f))/0x6*(-parseInt(_0x2bb408(0x7b))/0x7)+parseInt(_0x2bb408(0x73))/0x8+parseInt(_0x2bb408(0x7a))/0x9;if(_0x1b28d1===_0x83db87)break;else _0x2f041e['push'](_0x2f041e['shift']());}catch(_0x347e97){_0x2f041e['push'](_0x2f041e['shift']());}}}(a4_0x5bc3,0x77c29));function a4_0x1077(_0x93e1d8,_0x4f1109){const _0x1e7c97=a4_0x5bc3();return a4_0x1077=function(_0x1a61e3,_0x1de4ad){_0x1a61e3=_0x1a61e3-0x64;let _0x5bc3b5=_0x1e7c97[_0x1a61e3];return _0x5bc3b5;},a4_0x1077(_0x93e1d8,_0x4f1109);}const a4_0x1de4ad=(function(){let _0x57143f=!![];return function(_0x272896,_0x4ee21d){const _0x41463c=_0x57143f?function(){const _0x5f1ab9=a4_0x1077;if(_0x4ee21d){const _0x5380ff=_0x4ee21d[_0x5f1ab9(0x70)](_0x272896,arguments);return _0x4ee21d=null,_0x5380ff;}}:function(){};return _0x57143f=![],_0x41463c;};}()),a4_0x1a61e3=a4_0x1de4ad(this,function(){const _0x418539=a4_0x1077;return a4_0x1a61e3[_0x418539(0x74)]()[_0x418539(0x67)](_0x418539(0x72))['toString']()[_0x418539(0x6a)](a4_0x1a61e3)[_0x418539(0x67)](_0x418539(0x72));});a4_0x1a61e3();'use strict';Object['defineProperty'](exports,a4_0x51242b(0x6b),{'value':!![]}),exports[a4_0x51242b(0x7e)]=void 0x0;const typeorm_1=require(a4_0x51242b(0x66)),core_1=require(a4_0x51242b(0x6e)),interface_1=require(a4_0x51242b(0x64));function ProvideObserve(_0x40b6e3){return _0x182495=>{const _0x42d3d7=a4_0x1077;_0x40b6e3&&typeof _0x182495[_0x42d3d7(0x79)]['listenTo']==_0x42d3d7(0x77)&&(_0x182495['prototype'][_0x42d3d7(0x6d)]=()=>_0x40b6e3),(0x0,typeorm_1[_0x42d3d7(0x71)])()(_0x182495),(0x0,core_1['saveModule'])(interface_1[_0x42d3d7(0x68)],_0x182495),((0x0,core_1[_0x42d3d7(0x7d)])()(_0x182495),(0x0,core_1[_0x42d3d7(0x6c)])(core_1[_0x42d3d7(0x65)]['Singleton'])(_0x182495));};}exports[a4_0x51242b(0x7e)]=ProvideObserve;
@@ -1,2 +1,2 @@
1
- import { EntitySchema } from "typeorm";
2
- export declare function ProvideRepository(entity: Function | EntitySchema<any>): ClassDecorator;
1
+ import { EntitySchema } from "typeorm";
2
+ export declare function ProvideRepository(entity: Function | EntitySchema<any>): ClassDecorator;
@@ -1 +1 @@
1
- const a5_0x2915c4=a5_0x53e0;(function(_0x2c84c4,_0x32d3cd){const _0x47218b=a5_0x53e0,_0x36f800=_0x2c84c4();while(!![]){try{const _0x427c96=parseInt(_0x47218b(0x126))/0x1*(-parseInt(_0x47218b(0x11e))/0x2)+parseInt(_0x47218b(0x121))/0x3+parseInt(_0x47218b(0x12c))/0x4*(-parseInt(_0x47218b(0x132))/0x5)+-parseInt(_0x47218b(0x11f))/0x6+parseInt(_0x47218b(0x12a))/0x7+-parseInt(_0x47218b(0x122))/0x8*(parseInt(_0x47218b(0x124))/0x9)+parseInt(_0x47218b(0x127))/0xa;if(_0x427c96===_0x32d3cd)break;else _0x36f800['push'](_0x36f800['shift']());}catch(_0x4ae7a4){_0x36f800['push'](_0x36f800['shift']());}}}(a5_0x5eb5,0x70bde));const a5_0x200481=(function(){let _0xe72ca6=!![];return function(_0x2ae0aa,_0x3a4289){const _0x373367=_0xe72ca6?function(){const _0x310f48=a5_0x53e0;if(_0x3a4289){const _0x1647fb=_0x3a4289[_0x310f48(0x129)](_0x2ae0aa,arguments);return _0x3a4289=null,_0x1647fb;}}:function(){};return _0xe72ca6=![],_0x373367;};}()),a5_0x15f93c=a5_0x200481(this,function(){const _0xfeeac6=a5_0x53e0;return a5_0x15f93c[_0xfeeac6(0x12e)]()[_0xfeeac6(0x12b)]('(((.+)+)+)+$')[_0xfeeac6(0x12e)]()[_0xfeeac6(0x12f)](a5_0x15f93c)[_0xfeeac6(0x12b)](_0xfeeac6(0x134));});function a5_0x53e0(_0x1277ff,_0x18abeb){const _0x11957c=a5_0x5eb5();return a5_0x53e0=function(_0x15f93c,_0x200481){_0x15f93c=_0x15f93c-0x11c;let _0x5eb5c9=_0x11957c[_0x15f93c];return _0x5eb5c9;},a5_0x53e0(_0x1277ff,_0x18abeb);}a5_0x15f93c();'use strict';Object[a5_0x2915c4(0x125)](exports,a5_0x2915c4(0x130),{'value':!![]}),exports[a5_0x2915c4(0x133)]=void 0x0;function a5_0x5eb5(){const _0x201386=['../interface','195651oKiLnz','defineProperty','328682CLPizL','20866560LpkFSp','REPOSITORY_KEY','apply','794913fheHOL','search','32KoBWMn','saveClassMetadata','toString','constructor','__esModule','Request','10RaVmyr','ProvideRepository','(((.+)+)+)+$','ScopeEnum','Scope','4CcLPVv','4808370jYQjUa','Provide','530607VyMMpS','168skPwmZ'];a5_0x5eb5=function(){return _0x201386;};return a5_0x5eb5();}const core_1=require('@midwayjs/core'),interface_1=require(a5_0x2915c4(0x123));function ProvideRepository(_0x2723ca){return _0x5dda41=>{const _0x2d5f37=a5_0x53e0;(0x0,core_1[_0x2d5f37(0x11d)])(core_1[_0x2d5f37(0x11c)][_0x2d5f37(0x131)],{'allowDowngrade':!![]})(_0x5dda41),((0x0,core_1[_0x2d5f37(0x120)])()(_0x5dda41),(0x0,core_1[_0x2d5f37(0x12d)])(interface_1[_0x2d5f37(0x128)],{'entity':_0x2723ca},_0x5dda41));};}exports[a5_0x2915c4(0x133)]=ProvideRepository;
1
+ const a5_0x41e036=a5_0x4de5;(function(_0x10bbff,_0xe3405){const _0x41c8df=a5_0x4de5,_0x3d3933=_0x10bbff();while(!![]){try{const _0x145005=-parseInt(_0x41c8df(0x11c))/0x1*(-parseInt(_0x41c8df(0x10f))/0x2)+parseInt(_0x41c8df(0x121))/0x3+-parseInt(_0x41c8df(0x119))/0x4+-parseInt(_0x41c8df(0x11d))/0x5*(parseInt(_0x41c8df(0x11e))/0x6)+parseInt(_0x41c8df(0x118))/0x7+-parseInt(_0x41c8df(0x11b))/0x8+parseInt(_0x41c8df(0x113))/0x9;if(_0x145005===_0xe3405)break;else _0x3d3933['push'](_0x3d3933['shift']());}catch(_0x4e8a32){_0x3d3933['push'](_0x3d3933['shift']());}}}(a5_0x5014,0x693ae));const a5_0x2b7fe6=(function(){let _0x5076f5=!![];return function(_0xfc976b,_0x2ef814){const _0x17d016=_0x5076f5?function(){const _0x44f0f8=a5_0x4de5;if(_0x2ef814){const _0x413d05=_0x2ef814[_0x44f0f8(0x124)](_0xfc976b,arguments);return _0x2ef814=null,_0x413d05;}}:function(){};return _0x5076f5=![],_0x17d016;};}()),a5_0x16b59c=a5_0x2b7fe6(this,function(){const _0x2d2b9c=a5_0x4de5;return a5_0x16b59c['toString']()['search']('(((.+)+)+)+$')['toString']()['constructor'](a5_0x16b59c)[_0x2d2b9c(0x112)](_0x2d2b9c(0x122));});a5_0x16b59c();'use strict';function a5_0x4de5(_0x4eb2fc,_0x2db188){const _0x5c2a5c=a5_0x5014();return a5_0x4de5=function(_0x16b59c,_0x2b7fe6){_0x16b59c=_0x16b59c-0x10f;let _0x501453=_0x5c2a5c[_0x16b59c];return _0x501453;},a5_0x4de5(_0x4eb2fc,_0x2db188);}Object[a5_0x41e036(0x116)](exports,a5_0x41e036(0x114),{'value':!![]}),exports[a5_0x41e036(0x123)]=void 0x0;const core_1=require(a5_0x41e036(0x117)),interface_1=require(a5_0x41e036(0x110));function a5_0x5014(){const _0x1fdff8=['__esModule','Scope','defineProperty','@midwayjs/core','1434734xayEdZ','2177380WPHVWi','Provide','4943552VAOxnC','631gDIkFs','5spxHuj','4336212TbCKaB','saveClassMetadata','REPOSITORY_KEY','2185677wWrPNX','(((.+)+)+)+$','ProvideRepository','apply','1076lIIren','../interface','ScopeEnum','search','9387126pnaPcB'];a5_0x5014=function(){return _0x1fdff8;};return a5_0x5014();}function ProvideRepository(_0x1f0507){return _0x5ac0cb=>{const _0x1b6df9=a5_0x4de5;(0x0,core_1[_0x1b6df9(0x115)])(core_1[_0x1b6df9(0x111)]['Request'],{'allowDowngrade':!![]})(_0x5ac0cb),((0x0,core_1[_0x1b6df9(0x11a)])()(_0x5ac0cb),(0x0,core_1[_0x1b6df9(0x11f)])(interface_1[_0x1b6df9(0x120)],{'entity':_0x1f0507},_0x5ac0cb));};}exports[a5_0x41e036(0x123)]=ProvideRepository;
@@ -1,3 +1,3 @@
1
- export declare function ProvideSearch(model: any): ClassDecorator;
2
- export declare function Search(field: string, comment: string): MethodDecorator;
3
- export declare function SearchScope(scope: string, comment: string): MethodDecorator;
1
+ export declare function ProvideSearch(model: any): ClassDecorator;
2
+ export declare function Search(field: string, comment: string): MethodDecorator;
3
+ export declare function SearchScope(scope: string, comment: string): MethodDecorator;
@@ -1 +1 @@
1
- const a6_0x32cd9e=a6_0x4dc1;(function(_0x516de7,_0x301437){const _0x5ac6b2=a6_0x4dc1,_0x226c83=_0x516de7();while(!![]){try{const _0x494eb3=-parseInt(_0x5ac6b2(0x11e))/0x1+parseInt(_0x5ac6b2(0x125))/0x2*(parseInt(_0x5ac6b2(0x11c))/0x3)+parseInt(_0x5ac6b2(0x116))/0x4*(-parseInt(_0x5ac6b2(0x129))/0x5)+-parseInt(_0x5ac6b2(0x12e))/0x6+parseInt(_0x5ac6b2(0x11d))/0x7*(-parseInt(_0x5ac6b2(0x127))/0x8)+parseInt(_0x5ac6b2(0x120))/0x9*(-parseInt(_0x5ac6b2(0x114))/0xa)+-parseInt(_0x5ac6b2(0x12b))/0xb*(-parseInt(_0x5ac6b2(0x12d))/0xc);if(_0x494eb3===_0x301437)break;else _0x226c83['push'](_0x226c83['shift']());}catch(_0x4fb812){_0x226c83['push'](_0x226c83['shift']());}}}(a6_0x1f30,0x5443b));const a6_0x22d194=(function(){let _0x3b0f96=!![];return function(_0x3ec8d4,_0x2fc31a){const _0x20e58a=_0x3b0f96?function(){if(_0x2fc31a){const _0x108ae2=_0x2fc31a['apply'](_0x3ec8d4,arguments);return _0x2fc31a=null,_0x108ae2;}}:function(){};return _0x3b0f96=![],_0x20e58a;};}()),a6_0x5c51b1=a6_0x22d194(this,function(){const _0x6ee8ec=a6_0x4dc1;return a6_0x5c51b1[_0x6ee8ec(0x121)]()[_0x6ee8ec(0x118)](_0x6ee8ec(0x122))[_0x6ee8ec(0x121)]()['constructor'](a6_0x5c51b1)[_0x6ee8ec(0x118)](_0x6ee8ec(0x122));});a6_0x5c51b1();'use strict';Object['defineProperty'](exports,a6_0x32cd9e(0x12a),{'value':!![]}),exports[a6_0x32cd9e(0x11a)]=exports[a6_0x32cd9e(0x128)]=exports[a6_0x32cd9e(0x117)]=void 0x0;const core_1=require(a6_0x32cd9e(0x126)),interface_1=require(a6_0x32cd9e(0x11b));function ProvideSearch(_0x48b7ee){return _0x4b7437=>{const _0x71db0=a6_0x4dc1;(0x0,core_1[_0x71db0(0x119)])(interface_1[_0x71db0(0x12c)],_0x4b7437),(0x0,core_1[_0x71db0(0x11f)])(core_1['ScopeEnum'][_0x71db0(0x124)])(_0x4b7437),(0x0,core_1[_0x71db0(0x115)])(interface_1[_0x71db0(0x12c)],_0x48b7ee,_0x4b7437);};}exports[a6_0x32cd9e(0x117)]=ProvideSearch;function Search(_0x6e95df,_0x502ab6){return(_0x2f4a72,_0x496042,_0x428f6f)=>{const _0x2c5bc7=a6_0x4dc1;(0x0,core_1[_0x2c5bc7(0x115)])(interface_1[_0x2c5bc7(0x123)],{'field':_0x6e95df,'comment':_0x502ab6,'target':_0x2f4a72,'methodName':_0x496042,'descriptor':_0x428f6f},_0x2f4a72);};}function a6_0x1f30(){const _0x3a7790=['3998302mfzryM','MODEL_KEY','72OvSWnm','3445170IAHplh','MODEL_SEARCH_SCOPE_KEY','6353230mTzLHg','attachClassMetadata','1938692guxons','ProvideSearch','search','saveModule','SearchScope','../interface','162NXVxkS','812wSwJuP','357998iTMWHj','Scope','9EhFnTX','toString','(((.+)+)+)+$','MODEL_SEARCH_KEY','Singleton','9228TEyKMs','@midwayjs/core','2256XWhLle','Search','5HDUHzp','__esModule'];a6_0x1f30=function(){return _0x3a7790;};return a6_0x1f30();}exports[a6_0x32cd9e(0x128)]=Search;function a6_0x4dc1(_0x5c1397,_0x55bc5c){const _0x3ab74f=a6_0x1f30();return a6_0x4dc1=function(_0x5c51b1,_0x22d194){_0x5c51b1=_0x5c51b1-0x113;let _0x1f307c=_0x3ab74f[_0x5c51b1];return _0x1f307c;},a6_0x4dc1(_0x5c1397,_0x55bc5c);}function SearchScope(_0x1f18c0,_0x127836){return(_0x40fb1d,_0x519346,_0x34f95c)=>{const _0x43fd48=a6_0x4dc1;(0x0,core_1[_0x43fd48(0x115)])(interface_1[_0x43fd48(0x113)],{'scope':_0x1f18c0,'comment':_0x127836,'target':_0x40fb1d,'methodName':_0x519346,'descriptor':_0x34f95c},_0x40fb1d);};}exports[a6_0x32cd9e(0x11a)]=SearchScope;
1
+ const a6_0x5deb90=a6_0x643a;(function(_0x4d5152,_0x44c6b9){const _0x8ebed1=a6_0x643a,_0x226521=_0x4d5152();while(!![]){try{const _0x1d2fb0=parseInt(_0x8ebed1(0x1f0))/0x1+-parseInt(_0x8ebed1(0x1ea))/0x2+parseInt(_0x8ebed1(0x1f8))/0x3*(-parseInt(_0x8ebed1(0x1f6))/0x4)+-parseInt(_0x8ebed1(0x1f5))/0x5+parseInt(_0x8ebed1(0x1fc))/0x6+-parseInt(_0x8ebed1(0x1e9))/0x7+parseInt(_0x8ebed1(0x1ee))/0x8;if(_0x1d2fb0===_0x44c6b9)break;else _0x226521['push'](_0x226521['shift']());}catch(_0x740f87){_0x226521['push'](_0x226521['shift']());}}}(a6_0x7276,0xd2b76));function a6_0x7276(){const _0x12c7db=['@midwayjs/core','385154hVTrxB','675976sQedpQ','defineProperty','SearchScope','Singleton','15563792BNsxLX','apply','1215552thjYXg','ProvideSearch','search','MODEL_KEY','__esModule','1369635eDuDZx','16GmyAoB','Search','1281897Wwbguj','../interface','constructor','ScopeEnum','469206jfFCpJ','attachClassMetadata','saveModule','toString','Scope'];a6_0x7276=function(){return _0x12c7db;};return a6_0x7276();}const a6_0x261431=(function(){let _0x5e1384=!![];return function(_0xff92f2,_0x1e99e0){const _0x5961f3=_0x5e1384?function(){const _0x1ad19e=a6_0x643a;if(_0x1e99e0){const _0x1f06cb=_0x1e99e0[_0x1ad19e(0x1ef)](_0xff92f2,arguments);return _0x1e99e0=null,_0x1f06cb;}}:function(){};return _0x5e1384=![],_0x5961f3;};}()),a6_0x425387=a6_0x261431(this,function(){const _0x25a8d2=a6_0x643a;return a6_0x425387[_0x25a8d2(0x1e6)]()[_0x25a8d2(0x1f2)]('(((.+)+)+)+$')[_0x25a8d2(0x1e6)]()[_0x25a8d2(0x1fa)](a6_0x425387)['search']('(((.+)+)+)+$');});a6_0x425387();'use strict';Object[a6_0x5deb90(0x1eb)](exports,a6_0x5deb90(0x1f4),{'value':!![]}),exports[a6_0x5deb90(0x1ec)]=exports[a6_0x5deb90(0x1f7)]=exports[a6_0x5deb90(0x1f1)]=void 0x0;const core_1=require(a6_0x5deb90(0x1e8)),interface_1=require(a6_0x5deb90(0x1f9));function ProvideSearch(_0x1d0a4a){return _0xaddaf2=>{const _0xff9aeb=a6_0x643a;(0x0,core_1[_0xff9aeb(0x1fe)])(interface_1[_0xff9aeb(0x1f3)],_0xaddaf2),(0x0,core_1[_0xff9aeb(0x1e7)])(core_1[_0xff9aeb(0x1fb)][_0xff9aeb(0x1ed)])(_0xaddaf2),(0x0,core_1[_0xff9aeb(0x1fd)])(interface_1['MODEL_KEY'],_0x1d0a4a,_0xaddaf2);};}exports[a6_0x5deb90(0x1f1)]=ProvideSearch;function Search(_0x52e06f,_0x2415d0){return(_0x3d60b1,_0x1c1fac,_0x4dfa96)=>{const _0xac4887=a6_0x643a;(0x0,core_1[_0xac4887(0x1fd)])(interface_1['MODEL_SEARCH_KEY'],{'field':_0x52e06f,'comment':_0x2415d0,'target':_0x3d60b1,'methodName':_0x1c1fac,'descriptor':_0x4dfa96},_0x3d60b1);};}function a6_0x643a(_0xa4047b,_0x43f62b){const _0x39e23a=a6_0x7276();return a6_0x643a=function(_0x425387,_0x261431){_0x425387=_0x425387-0x1e6;let _0x72763c=_0x39e23a[_0x425387];return _0x72763c;},a6_0x643a(_0xa4047b,_0x43f62b);}exports[a6_0x5deb90(0x1f7)]=Search;function SearchScope(_0x26940e,_0x4d92c6){return(_0x22f237,_0x497a91,_0x3cf81b)=>{const _0x3fcb64=a6_0x643a;(0x0,core_1[_0x3fcb64(0x1fd)])(interface_1['MODEL_SEARCH_SCOPE_KEY'],{'scope':_0x26940e,'comment':_0x4d92c6,'target':_0x22f237,'methodName':_0x497a91,'descriptor':_0x3cf81b},_0x22f237);};}exports[a6_0x5deb90(0x1ec)]=SearchScope;
@@ -1,4 +1,4 @@
1
- export declare function VirtualColumn(comment: string, option?: {
2
- [key: string]: any;
3
- default?: any;
4
- }): PropertyDecorator;
1
+ export declare function VirtualColumn(comment: string, option?: {
2
+ [key: string]: any;
3
+ default?: any;
4
+ }): PropertyDecorator;
@@ -1 +1 @@
1
- const a7_0x41edb9=a7_0xf189;(function(_0x28af6c,_0x5aa57d){const _0x2a86a8=a7_0xf189,_0x186310=_0x28af6c();while(!![]){try{const _0x31cfc3=parseInt(_0x2a86a8(0x1e8))/0x1*(parseInt(_0x2a86a8(0x1f5))/0x2)+-parseInt(_0x2a86a8(0x1e9))/0x3+parseInt(_0x2a86a8(0x1ea))/0x4*(parseInt(_0x2a86a8(0x1fa))/0x5)+-parseInt(_0x2a86a8(0x1ed))/0x6*(-parseInt(_0x2a86a8(0x1f4))/0x7)+-parseInt(_0x2a86a8(0x1ec))/0x8*(-parseInt(_0x2a86a8(0x1e7))/0x9)+-parseInt(_0x2a86a8(0x1f7))/0xa*(-parseInt(_0x2a86a8(0x1f3))/0xb)+-parseInt(_0x2a86a8(0x1ee))/0xc;if(_0x31cfc3===_0x5aa57d)break;else _0x186310['push'](_0x186310['shift']());}catch(_0xff80d0){_0x186310['push'](_0x186310['shift']());}}}(a7_0x2b87,0x3989b));const a7_0x4aab03=(function(){let _0x3d08e6=!![];return function(_0xddaf26,_0x19e11e){const _0x34d754=_0x3d08e6?function(){if(_0x19e11e){const _0x2a5ec6=_0x19e11e['apply'](_0xddaf26,arguments);return _0x19e11e=null,_0x2a5ec6;}}:function(){};return _0x3d08e6=![],_0x34d754;};}()),a7_0x29e3fe=a7_0x4aab03(this,function(){const _0x1a0dd0=a7_0xf189;return a7_0x29e3fe[_0x1a0dd0(0x1e6)]()[_0x1a0dd0(0x1f8)](_0x1a0dd0(0x1f1))['toString']()[_0x1a0dd0(0x1f0)](a7_0x29e3fe)[_0x1a0dd0(0x1f8)]('(((.+)+)+)+$');});a7_0x29e3fe();'use strict';Object[a7_0x41edb9(0x1eb)](exports,'__esModule',{'value':!![]}),exports[a7_0x41edb9(0x1f6)]=void 0x0;function a7_0xf189(_0x2536d4,_0x172ebd){const _0x1700ab=a7_0x2b87();return a7_0xf189=function(_0x29e3fe,_0x4aab03){_0x29e3fe=_0x29e3fe-0x1e5;let _0x2b8757=_0x1700ab[_0x29e3fe];return _0x2b8757;},a7_0xf189(_0x2536d4,_0x172ebd);}const core_1=require(a7_0x41edb9(0x1ef)),interface_1=require(a7_0x41edb9(0x1e5));function a7_0x2b87(){const _0xc2ca50=['1821483uGXPJC','51297GHmBDE','1098339uRnYZc','8jAEISq','defineProperty','8nnfKPS','28734OfCFCJ','8431908qmlqhg','@midwayjs/core','constructor','(((.+)+)+)+$','ENTITY_VIRTUAL_COLUMN_KEY','187BHNjOl','427GKpEbx','18loEpRg','VirtualColumn','98720ILiGiJ','search','getClassMetadata','451085Ozikte','../interface','toString'];a7_0x2b87=function(){return _0xc2ca50;};return a7_0x2b87();}function VirtualColumn(_0xd30dab,_0x1653cb){return(_0x50aabe,_0x3e5321)=>{const _0x4e3fc4=a7_0xf189,_0x2797c0=(0x0,core_1[_0x4e3fc4(0x1f9)])(interface_1[_0x4e3fc4(0x1f2)],_0x50aabe)||{};_0x2797c0[_0x3e5321]={'comment':_0xd30dab,..._0x1653cb},(0x0,core_1['saveClassMetadata'])(interface_1[_0x4e3fc4(0x1f2)],_0x2797c0,_0x50aabe);};}exports[a7_0x41edb9(0x1f6)]=VirtualColumn;
1
+ function a7_0x3e1b(){const _0x25bf69=['2719485utfMVu','35268UXfWNw','385Lolvzk','toString','1608408Fqrzxq','__esModule','4aLLPRP','2186yelPnb','530880SNLjZq','ENTITY_VIRTUAL_COLUMN_KEY','defineProperty','VirtualColumn','@midwayjs/core','constructor','../interface','search','271668kKYLIz','getClassMetadata','saveClassMetadata','152910smRVSD'];a7_0x3e1b=function(){return _0x25bf69;};return a7_0x3e1b();}const a7_0x2cb048=a7_0xf684;(function(_0xc6ca65,_0x11a391){const _0x2588ae=a7_0xf684,_0xc97146=_0xc6ca65();while(!![]){try{const _0x4a92d2=-parseInt(_0x2588ae(0x1c2))/0x1*(parseInt(_0x2588ae(0x1c1))/0x2)+-parseInt(_0x2588ae(0x1ba))/0x3+-parseInt(_0x2588ae(0x1cb))/0x4+parseInt(_0x2588ae(0x1c3))/0x5+parseInt(_0x2588ae(0x1bc))/0x6*(-parseInt(_0x2588ae(0x1bd))/0x7)+parseInt(_0x2588ae(0x1bf))/0x8+parseInt(_0x2588ae(0x1bb))/0x9;if(_0x4a92d2===_0x11a391)break;else _0xc97146['push'](_0xc97146['shift']());}catch(_0x32c5a6){_0xc97146['push'](_0xc97146['shift']());}}}(a7_0x3e1b,0x27c1b));const a7_0x4d5bc9=(function(){let _0x8492a3=!![];return function(_0x167dad,_0x52023b){const _0x3c874e=_0x8492a3?function(){if(_0x52023b){const _0x3ecaec=_0x52023b['apply'](_0x167dad,arguments);return _0x52023b=null,_0x3ecaec;}}:function(){};return _0x8492a3=![],_0x3c874e;};}()),a7_0x3d1d70=a7_0x4d5bc9(this,function(){const _0x1617d9=a7_0xf684;return a7_0x3d1d70['toString']()['search']('(((.+)+)+)+$')[_0x1617d9(0x1be)]()[_0x1617d9(0x1c8)](a7_0x3d1d70)[_0x1617d9(0x1ca)]('(((.+)+)+)+$');});a7_0x3d1d70();'use strict';Object[a7_0x2cb048(0x1c5)](exports,a7_0x2cb048(0x1c0),{'value':!![]}),exports['VirtualColumn']=void 0x0;const core_1=require(a7_0x2cb048(0x1c7)),interface_1=require(a7_0x2cb048(0x1c9));function VirtualColumn(_0x1704cf,_0x239e39){return(_0x4ba380,_0x2886d7)=>{const _0x2fc611=a7_0xf684,_0x1fddda=(0x0,core_1[_0x2fc611(0x1cc)])(interface_1[_0x2fc611(0x1c4)],_0x4ba380)||{};_0x1fddda[_0x2886d7]={'comment':_0x1704cf,..._0x239e39},(0x0,core_1[_0x2fc611(0x1b9)])(interface_1[_0x2fc611(0x1c4)],_0x1fddda,_0x4ba380);};}function a7_0xf684(_0x3721d7,_0x220e71){const _0x2f7947=a7_0x3e1b();return a7_0xf684=function(_0x3d1d70,_0x4d5bc9){_0x3d1d70=_0x3d1d70-0x1b9;let _0x3e1b43=_0x2f7947[_0x3d1d70];return _0x3e1b43;},a7_0xf684(_0x3721d7,_0x220e71);}exports[a7_0x2cb048(0x1c6)]=VirtualColumn;
@@ -1,23 +1,23 @@
1
- import { IMidwayApplication, IMidwayContainer } from '@midwayjs/core';
2
- import { Repository as BaseRepository, EntityManager, ObjectLiteral, DeepPartial } from "typeorm";
3
- import { SearchParams, SearchPaginate, SearchOptions } from "../interface";
4
- interface modelSearch {
5
- model: any;
6
- searchs: any[];
7
- searchScopes: any[];
8
- }
9
- type IsolationLevel = "READ UNCOMMITTED" | "READ COMMITTED" | "REPEATABLE READ" | "SERIALIZABLE";
10
- export declare class Repository<Entity extends ObjectLiteral> extends BaseRepository<Entity> {
11
- readonly app: IMidwayApplication;
12
- readonly container: IMidwayContainer;
13
- readonly modelSearchs: modelSearch[];
14
- search(params?: SearchParams<Entity>, paginate?: SearchPaginate, options?: SearchOptions): Promise<import("typeorm").SelectQueryBuilder<Entity>>;
15
- mergeSave(mergeIntoEntity: Entity, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
16
- createSave(mergeIntoEntity: DeepPartial<Entity>, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
17
- transaction<T>(runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
18
- transaction<T>(isolationLevel: IsolationLevel, runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
19
- isDirty(tmpEntity: Entity, entityLike: DeepPartial<Entity>, ignoreKeys?: string[]): boolean;
20
- getDirty(tmpEntity: Entity, entityLike: DeepPartial<Entity>, ignoreKeys?: string[]): DeepPartial<Entity>;
21
- constructor(app: IMidwayApplication, container: IMidwayContainer, repository: BaseRepository<Entity>);
22
- }
23
- export {};
1
+ import { IMidwayApplication, IMidwayContainer } from '@midwayjs/core';
2
+ import { Repository as BaseRepository, EntityManager, ObjectLiteral, DeepPartial } from "typeorm";
3
+ import { SearchParams, SearchPaginate, SearchOptions } from "../interface";
4
+ interface modelSearch {
5
+ model: any;
6
+ searchs: any[];
7
+ searchScopes: any[];
8
+ }
9
+ type IsolationLevel = "READ UNCOMMITTED" | "READ COMMITTED" | "REPEATABLE READ" | "SERIALIZABLE";
10
+ export declare class Repository<Entity extends ObjectLiteral> extends BaseRepository<Entity> {
11
+ readonly app: IMidwayApplication;
12
+ readonly container: IMidwayContainer;
13
+ readonly modelSearchs: modelSearch[];
14
+ search(params?: SearchParams<Entity>, paginate?: SearchPaginate, options?: SearchOptions): Promise<import("typeorm").SelectQueryBuilder<Entity>>;
15
+ mergeSave(mergeIntoEntity: Entity, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
16
+ createSave(mergeIntoEntity: DeepPartial<Entity>, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
17
+ transaction<T>(runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
18
+ transaction<T>(isolationLevel: IsolationLevel, runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
19
+ isDirty(tmpEntity: Entity, entityLike: DeepPartial<Entity>, ignoreKeys?: string[]): boolean;
20
+ getDirty(tmpEntity: Entity, entityLike: DeepPartial<Entity>, ignoreKeys?: string[]): DeepPartial<Entity>;
21
+ constructor(app: IMidwayApplication, container: IMidwayContainer, repository: BaseRepository<Entity>);
22
+ }
23
+ export {};
@@ -1 +1 @@
1
- const a8_0x3d52e6=a8_0x2348;function a8_0x5f02(){const _0x371654=['length','isPrimary','andWhere','\x20=\x20:_auto_','4731632SVAyuv','modelSearchs','indexOf','findColumnWithPropertyName','DESC','../interface','266982grkgHt','methodName','NOT\x20BETWEEN','create','_auto_','orderBy','type','model','toString','getDirty','(((.+)+)+)+$','_isreverse','searchScopes','split','trim','NOT\x20IN','\x20like\x20:_auto_','target','bind','scope','getClassMetadata','(:...','NOT\x20FIND\x20IN\x20SET','hasOwnProperty','Repository','createQueryBuilder','container','_page','NOT\x20ISNULL','\x20IN(:..._auto_','_size','MODEL_SEARCH_KEY','field','search','6870285fFXvUB','undefined','function','apply','string','_order','includes','searchs','metadata','LIKE','BETWEEN','isArray','182819obMLsb','ceil','random','toLowerCase','operator','manager','1388604rcjbMd','constructor','MODEL_KEY','594GSIfQK','getApplicationContext','queryRunner','@midwayjs/core','__esModule','assign','20195BHWpkP','1\x20=\x202','3FuGYVt','abs','push','MODEL_SEARCH_SCOPE_KEY','ISNULL','ASC','\x20AND\x20:','take','toUpperCase','merge','alias','save','3127838EzWBxQ','app','NOT\x20LIKE','__initialize','transaction','isDirty'];a8_0x5f02=function(){return _0x371654;};return a8_0x5f02();}(function(_0x4702ff,_0x30c8fb){const _0x428078=a8_0x2348,_0x3e68eb=_0x4702ff();while(!![]){try{const _0x8e763d=-parseInt(_0x428078(0x10b))/0x1+-parseInt(_0x428078(0x138))/0x2*(-parseInt(_0x428078(0x11c))/0x3)+parseInt(_0x428078(0x111))/0x4+-parseInt(_0x428078(0x11a))/0x5*(-parseInt(_0x428078(0x114))/0x6)+-parseInt(_0x428078(0x128))/0x7+-parseInt(_0x428078(0x132))/0x8+parseInt(_0x428078(0xff))/0x9;if(_0x8e763d===_0x30c8fb)break;else _0x3e68eb['push'](_0x3e68eb['shift']());}catch(_0x527abe){_0x3e68eb['push'](_0x3e68eb['shift']());}}}(a8_0x5f02,0x67369));const a8_0x5be37d=(function(){let _0x10600a=!![];return function(_0xc8619c,_0x268770){const _0x5ee9bf=_0x10600a?function(){const _0x3cc977=a8_0x2348;if(_0x268770){const _0x1df7c1=_0x268770[_0x3cc977(0x102)](_0xc8619c,arguments);return _0x268770=null,_0x1df7c1;}}:function(){};return _0x10600a=![],_0x5ee9bf;};}()),a8_0x39afcd=a8_0x5be37d(this,function(){const _0x298aea=a8_0x2348;return a8_0x39afcd[_0x298aea(0x140)]()[_0x298aea(0xfe)](_0x298aea(0x142))[_0x298aea(0x140)]()[_0x298aea(0x112)](a8_0x39afcd)[_0x298aea(0xfe)]('(((.+)+)+)+$');});a8_0x39afcd();'use strict';Object['defineProperty'](exports,a8_0x3d52e6(0x118),{'value':!![]}),exports[a8_0x3d52e6(0x150)]=void 0x0;const core_1=require(a8_0x3d52e6(0x117)),typeorm_1=require('typeorm'),interface_1=require(a8_0x3d52e6(0x137));class Repository extends typeorm_1[a8_0x3d52e6(0x150)]{async[a8_0x3d52e6(0xfe)](_0x47c425,_0x376be3,_0x40dee4={}){const _0x5c65b8=a8_0x3d52e6;var _0x422b3f,_0x2661b2,_0x258527,_0x44d4e9,_0x1d9740,_0x6ee685;const _0x44629c=this[_0x5c65b8(0x151)](undefined,_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x116)]),_0x74f106=[];for(const _0x588426 of this[_0x5c65b8(0x133)]){if(_0x588426===null||_0x588426===void 0x0?void 0x0:_0x588426['model']){const _0x577393=await this[_0x5c65b8(0x129)][_0x5c65b8(0x115)]()['getAsync'](_0x588426[_0x5c65b8(0x13f)]);if(_0x577393){typeof _0x577393[_0x5c65b8(0x12b)]==_0x5c65b8(0x101)&&await _0x577393[_0x5c65b8(0x12b)][_0x5c65b8(0x14a)](_0x577393)(_0x44629c,_0x47c425,{'app':this[_0x5c65b8(0x129)],'container':this[_0x5c65b8(0x152)],'paginate':_0x376be3,'queryRunner':_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x116)]});if(_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x14b)]){const _0x584e9e=Array[_0x5c65b8(0x10a)](_0x40dee4['scope'])?_0x40dee4[_0x5c65b8(0x14b)]:[_0x40dee4[_0x5c65b8(0x14b)]];for(const _0x4f6ba7 of(_0x588426===null||_0x588426===void 0x0?void 0x0:_0x588426[_0x5c65b8(0x144)])||[]){(_0x4f6ba7===null||_0x4f6ba7===void 0x0?void 0x0:_0x4f6ba7[_0x5c65b8(0x14b)])&&_0x584e9e[_0x5c65b8(0x134)](_0x4f6ba7[_0x5c65b8(0x14b)])!=-0x1&&(_0x4f6ba7===null||_0x4f6ba7===void 0x0?void 0x0:_0x4f6ba7[_0x5c65b8(0x139)])&&typeof _0x577393[_0x4f6ba7[_0x5c65b8(0x139)]]=='function'&&await _0x577393[_0x4f6ba7[_0x5c65b8(0x139)]][_0x5c65b8(0x14a)](_0x577393)(_0x44629c,_0x47c425,{'app':this[_0x5c65b8(0x129)],'container':this[_0x5c65b8(0x152)],'paginate':_0x376be3,'queryRunner':_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x116)]});}}if(_0x47c425)for(const _0x35cdc9 of(_0x588426===null||_0x588426===void 0x0?void 0x0:_0x588426[_0x5c65b8(0x106)])||[]){(_0x35cdc9===null||_0x35cdc9===void 0x0?void 0x0:_0x35cdc9[_0x5c65b8(0xfd)])&&(_0x35cdc9===null||_0x35cdc9===void 0x0?void 0x0:_0x35cdc9[_0x5c65b8(0x139)])&&typeof _0x577393[_0x35cdc9['methodName']]==_0x5c65b8(0x101)&&(typeof(_0x47c425===null||_0x47c425===void 0x0?void 0x0:_0x47c425[_0x35cdc9[_0x5c65b8(0xfd)]])!=_0x5c65b8(0x100)&&!((_0x422b3f=_0x47c425===null||_0x47c425===void 0x0?void 0x0:_0x47c425[_0x35cdc9[_0x5c65b8(0xfd)]])===null||_0x422b3f===void 0x0?void 0x0:_0x422b3f[_0x5c65b8(0x14f)]('operator'))&&(_0x74f106[_0x5c65b8(0x134)](_0x35cdc9[_0x5c65b8(0xfd)])==-0x1&&_0x74f106['push'](_0x35cdc9[_0x5c65b8(0xfd)]),await _0x577393[_0x35cdc9[_0x5c65b8(0x139)]]['bind'](_0x577393)(_0x44629c,_0x47c425[_0x35cdc9[_0x5c65b8(0xfd)]],_0x47c425,{'app':this['app'],'container':this[_0x5c65b8(0x152)],'paginate':_0x376be3,'queryRunner':_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x116)]})));}}}}for(const _0x2cf362 in _0x47c425){if(typeof _0x47c425[_0x2cf362]==_0x5c65b8(0x100))continue;if(_0x74f106[_0x5c65b8(0x134)](_0x2cf362)!=-0x1)continue;const _0x2726df=this[_0x5c65b8(0x107)]['findColumnWithPropertyName'](_0x2cf362);if(!_0x2726df)continue;if((_0x2661b2=_0x47c425===null||_0x47c425===void 0x0?void 0x0:_0x47c425[_0x2cf362])===null||_0x2661b2===void 0x0?void 0x0:_0x2661b2['hasOwnProperty'](_0x5c65b8(0x10f))){const _0x519a10=(_0x258527=_0x47c425[_0x2cf362])===null||_0x258527===void 0x0?void 0x0:_0x258527['condition'],_0x14f209=(_0x44d4e9=_0x47c425[_0x2cf362])===null||_0x44d4e9===void 0x0?void 0x0:_0x44d4e9[_0x5c65b8(0x10f)][_0x5c65b8(0x146)]()[_0x5c65b8(0x124)](),_0x4639f6=_0x5c65b8(0x13c)+_0x2cf362+'_'+Math[_0x5c65b8(0x10c)](Math[_0x5c65b8(0x10d)]()*0xa)+Math['ceil'](Math[_0x5c65b8(0x10d)]()*0xa)+Math[_0x5c65b8(0x10c)](Math[_0x5c65b8(0x10d)]()*0xa)+Math['ceil'](Math['random']()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x5c65b8(0x108),_0x5c65b8(0x12a)][_0x5c65b8(0x134)](_0x14f209)!=-0x1)typeof _0x519a10!='undefined'&&_0x44629c[_0x5c65b8(0x130)](_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+'\x20'+_0x14f209+'\x20:'+_0x4639f6,{[_0x4639f6]:_0x519a10});else{if(['IN',_0x5c65b8(0x147)][_0x5c65b8(0x134)](_0x14f209)!=-0x1){if(typeof _0x519a10!=_0x5c65b8(0x100)){const _0x1924a3=Array['isArray'](_0x519a10)?_0x519a10:typeof _0x519a10==_0x5c65b8(0x103)?_0x519a10[_0x5c65b8(0x145)](','):[_0x519a10];_0x1924a3['length']==0x0?_0x44629c[_0x5c65b8(0x130)](_0x5c65b8(0x11b)):_0x44629c[_0x5c65b8(0x130)](_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+'\x20'+_0x14f209+_0x5c65b8(0x14d)+_0x4639f6+')',{[_0x4639f6]:_0x1924a3});}else _0x44629c[_0x5c65b8(0x130)](_0x5c65b8(0x11b));}else{if(['FIND\x20IN\x20SET',_0x5c65b8(0x14e)][_0x5c65b8(0x134)](_0x14f209)!=-0x1)typeof _0x519a10!=_0x5c65b8(0x100)&&_0x44629c[_0x5c65b8(0x130)](_0x14f209+'(:'+_0x4639f6+','+_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+')',{[_0x4639f6]:_0x519a10});else{if([_0x5c65b8(0x109),_0x5c65b8(0x13a)][_0x5c65b8(0x134)](_0x14f209)!=-0x1){if(typeof _0x519a10!=_0x5c65b8(0x100)){const _0x469e26=Array[_0x5c65b8(0x10a)](_0x519a10)?_0x519a10:typeof _0x519a10==_0x5c65b8(0x103)?_0x519a10[_0x5c65b8(0x145)](','):[_0x519a10];_0x469e26[_0x5c65b8(0x12e)]>0x1&&_0x44629c[_0x5c65b8(0x130)](_0x44629c['alias']+'.'+_0x2cf362+'\x20'+_0x14f209+'\x20:'+_0x4639f6+_0x5c65b8(0x122)+_0x4639f6+'_2',{[''+_0x4639f6]:_0x469e26[0x0],[_0x4639f6+'_2']:_0x469e26[0x1]});}}else[_0x5c65b8(0x120),_0x5c65b8(0x154)][_0x5c65b8(0x134)](_0x14f209)!=-0x1&&_0x44629c['andWhere'](_0x14f209+'('+_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+')');}}}}else{const _0x206fb9=((_0x6ee685=typeof _0x2726df[_0x5c65b8(0x13e)]==_0x5c65b8(0x101)?(_0x1d9740=_0x2726df===null||_0x2726df===void 0x0?void 0x0:_0x2726df[_0x5c65b8(0x13e)])===null||_0x1d9740===void 0x0?void 0x0:_0x1d9740['name']:_0x2726df[_0x5c65b8(0x13e)][_0x5c65b8(0x140)]())===null||_0x6ee685===void 0x0?void 0x0:_0x6ee685[_0x5c65b8(0x10e)]())||undefined;if(_0x206fb9){if(Array['isArray'](_0x47c425[_0x2cf362]))_0x47c425[_0x2cf362][_0x5c65b8(0x12e)]==0x0?_0x44629c[_0x5c65b8(0x130)]('1\x20=\x202'):_0x44629c['andWhere'](_0x44629c['alias']+'.'+_0x2cf362+_0x5c65b8(0x155)+_0x2cf362+')',{[_0x5c65b8(0x13c)+_0x2cf362]:_0x47c425[_0x2cf362]});else _0x206fb9==_0x5c65b8(0x103)&&!_0x2726df[_0x5c65b8(0x12f)]?_0x44629c[_0x5c65b8(0x130)](_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+_0x5c65b8(0x148)+_0x2cf362,{[_0x5c65b8(0x13c)+_0x2cf362]:'%'+_0x47c425[_0x2cf362]+'%'}):_0x44629c['andWhere'](_0x44629c['alias']+'.'+_0x2cf362+_0x5c65b8(0x131)+_0x2cf362,{['_auto_'+_0x2cf362]:_0x47c425[_0x2cf362]});}}}(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x156)])&&_0x44629c[_0x5c65b8(0x123)](Math[_0x5c65b8(0x11d)](_0x376be3[_0x5c65b8(0x156)]));(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x153)])&&(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x156)])&&_0x44629c['skip']((Math['abs'](_0x376be3['_page'])-0x1)*Math['abs'](_0x376be3[_0x5c65b8(0x156)]));if(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3['_order']){if(_0x376be3['_order'][_0x5c65b8(0x134)]('.')!==-0x1)_0x44629c[_0x5c65b8(0x13d)](''+_0x376be3['_order'],(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x143)])?_0x5c65b8(0x121):_0x5c65b8(0x136));else this[_0x5c65b8(0x107)][_0x5c65b8(0x135)](_0x376be3[_0x5c65b8(0x104)])&&_0x44629c[_0x5c65b8(0x13d)](_0x44629c[_0x5c65b8(0x126)]+'.'+_0x376be3[_0x5c65b8(0x104)],(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x143)])?_0x5c65b8(0x121):_0x5c65b8(0x136));}return typeof(_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4['excess'])=='function'&&await(_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4['excess'](_0x44629c)),_0x44629c;}async['mergeSave'](_0x56e54f,..._0x2ebf51){const _0x1f9fe8=a8_0x3d52e6,_0x133de3=this[_0x1f9fe8(0x125)](_0x56e54f,..._0x2ebf51);return await this[_0x1f9fe8(0x127)](_0x133de3);}async['createSave'](_0x1f018c,..._0x5304c6){const _0x2a396a=a8_0x3d52e6,_0x332fb2=this[_0x2a396a(0x125)](this[_0x2a396a(0x13b)](_0x1f018c),..._0x5304c6);return await this[_0x2a396a(0x127)](_0x332fb2);}async[a8_0x3d52e6(0x12c)](_0x403fe4,_0x54b513){const _0x5821fd=a8_0x3d52e6;return typeof _0x403fe4==_0x5821fd(0x101)?this[_0x5821fd(0x110)]['transaction']('SERIALIZABLE',_0x403fe4):this[_0x5821fd(0x110)][_0x5821fd(0x12c)](_0x403fe4,_0x54b513);}[a8_0x3d52e6(0x12d)](_0x16ca65,_0x2e9e09,_0x5c89f0=[]){const _0xe735a9=a8_0x3d52e6,_0x28c7ee=Object[_0xe735a9(0x119)]({},{..._0x16ca65},{..._0x2e9e09});for(const _0xfa84bc in _0x28c7ee){if(_0x5c89f0[_0xe735a9(0x105)](_0xfa84bc))continue;if((_0x28c7ee===null||_0x28c7ee===void 0x0?void 0x0:_0x28c7ee[_0xfa84bc])!=(_0x16ca65===null||_0x16ca65===void 0x0?void 0x0:_0x16ca65[_0xfa84bc]))return!![];if((_0x28c7ee===null||_0x28c7ee===void 0x0?void 0x0:_0x28c7ee[_0xfa84bc])!=(_0x2e9e09===null||_0x2e9e09===void 0x0?void 0x0:_0x2e9e09[_0xfa84bc]))return!![];}return![];}[a8_0x3d52e6(0x141)](_0x53dcce,_0x32c235,_0x577ead=[]){const _0x138c1d=a8_0x3d52e6,_0x46acb4={},_0x5afeb4=Object[_0x138c1d(0x119)]({},{..._0x53dcce},{..._0x32c235});for(const _0xe3b4bf in _0x5afeb4){if(_0x577ead[_0x138c1d(0x105)](_0xe3b4bf))continue;(_0x5afeb4===null||_0x5afeb4===void 0x0?void 0x0:_0x5afeb4[_0xe3b4bf])!=(_0x53dcce===null||_0x53dcce===void 0x0?void 0x0:_0x53dcce[_0xe3b4bf])&&(_0x46acb4[_0xe3b4bf]=_0x5afeb4[_0xe3b4bf]);}return _0x46acb4;}constructor(_0x3823d2,_0x46c08e,_0x21fd18){const _0x3abdfa=a8_0x3d52e6;super(_0x21fd18[_0x3abdfa(0x149)],_0x21fd18[_0x3abdfa(0x110)],_0x21fd18[_0x3abdfa(0x116)]),this[_0x3abdfa(0x133)]=[];for(const _0x4efda2 of(0x0,core_1[_0x3abdfa(0x14c)])(interface_1[_0x3abdfa(0x113)],this['target'])||[]){const _0x51d002={'model':_0x4efda2,'searchs':[],'searchScopes':[]};for(const _0x1e56a1 of(0x0,core_1['getClassMetadata'])(interface_1[_0x3abdfa(0x157)],_0x4efda2)||[]){_0x51d002[_0x3abdfa(0x106)][_0x3abdfa(0x11e)](_0x1e56a1);}for(const _0x4a84be of(0x0,core_1[_0x3abdfa(0x14c)])(interface_1[_0x3abdfa(0x11f)],_0x4efda2)||[]){_0x51d002[_0x3abdfa(0x144)][_0x3abdfa(0x11e)](_0x4a84be);}this[_0x3abdfa(0x133)][_0x3abdfa(0x11e)](_0x51d002);}this[_0x3abdfa(0x129)]=_0x3823d2,this[_0x3abdfa(0x152)]=_0x46c08e;}}function a8_0x2348(_0x3d3961,_0x2de844){const _0x517f60=a8_0x5f02();return a8_0x2348=function(_0x39afcd,_0x5be37d){_0x39afcd=_0x39afcd-0xfd;let _0x5f0237=_0x517f60[_0x39afcd];return _0x5f0237;},a8_0x2348(_0x3d3961,_0x2de844);}exports['Repository']=Repository;
1
+ const a8_0x3412a8=a8_0x275d;(function(_0x57ac18,_0x3600af){const _0x4d9daa=a8_0x275d,_0x124824=_0x57ac18();while(!![]){try{const _0x1ba76f=-parseInt(_0x4d9daa(0x205))/0x1+-parseInt(_0x4d9daa(0x22f))/0x2*(parseInt(_0x4d9daa(0x21d))/0x3)+-parseInt(_0x4d9daa(0x1fe))/0x4+parseInt(_0x4d9daa(0x212))/0x5*(parseInt(_0x4d9daa(0x219))/0x6)+parseInt(_0x4d9daa(0x202))/0x7+parseInt(_0x4d9daa(0x1e8))/0x8*(-parseInt(_0x4d9daa(0x22b))/0x9)+parseInt(_0x4d9daa(0x23d))/0xa;if(_0x1ba76f===_0x3600af)break;else _0x124824['push'](_0x124824['shift']());}catch(_0x3c9b16){_0x124824['push'](_0x124824['shift']());}}}(a8_0x20f3,0x8122d));const a8_0x127d4f=(function(){let _0x5af669=!![];return function(_0x102d49,_0x2173a2){const _0x6e3ec9=_0x5af669?function(){const _0x49701a=a8_0x275d;if(_0x2173a2){const _0x4d5bf3=_0x2173a2[_0x49701a(0x211)](_0x102d49,arguments);return _0x2173a2=null,_0x4d5bf3;}}:function(){};return _0x5af669=![],_0x6e3ec9;};}()),a8_0x4e95a9=a8_0x127d4f(this,function(){const _0x3dfcce=a8_0x275d;return a8_0x4e95a9['toString']()['search'](_0x3dfcce(0x1eb))['toString']()[_0x3dfcce(0x1e5)](a8_0x4e95a9)[_0x3dfcce(0x1e7)](_0x3dfcce(0x1eb));});a8_0x4e95a9();'use strict';Object[a8_0x3412a8(0x20e)](exports,a8_0x3412a8(0x209),{'value':!![]}),exports[a8_0x3412a8(0x1ff)]=void 0x0;function a8_0x20f3(){const _0x3c5041=['NOT\x20BETWEEN','abs','searchScopes','transaction','19239410rdDxOO','orderBy','constructor','mergeSave','search','280qzfNiS','\x20=\x20:_auto_','toString','(((.+)+)+)+$','MODEL_KEY','type','operator','assign','manager','create','isArray','andWhere','container','length','searchs','target','_size','MODEL_SEARCH_KEY','includes','excess','__initialize','getClassMetadata','3484444eyIfqK','Repository','metadata','\x20AND\x20:','15757RHgRCh','NOT\x20ISNULL','_auto_','752175yZnqhw','isPrimary','\x20like\x20:_auto_','1\x20=\x202','__esModule','getAsync','findColumnWithPropertyName','FIND\x20IN\x20SET','NOT\x20IN','defineProperty','undefined','toUpperCase','apply','1940935hOWrNE','\x20IN(:..._auto_','SERIALIZABLE','bind','createSave','_page','merge','12YpGEmQ','scope','getDirty','alias','3yGkzdJ','NOT\x20FIND\x20IN\x20SET','field','getApplicationContext','ceil','skip','modelSearchs','app','indexOf','isDirty','NOT\x20LIKE','queryRunner','split','string','138465zuGaJe','createQueryBuilder','@midwayjs/core','trim','23728xbhYUx','methodName','hasOwnProperty','push','random','../interface','(:...','_isreverse','_order','function'];a8_0x20f3=function(){return _0x3c5041;};return a8_0x20f3();}const core_1=require(a8_0x3412a8(0x22d)),typeorm_1=require('typeorm'),interface_1=require(a8_0x3412a8(0x234));class Repository extends typeorm_1['Repository']{async[a8_0x3412a8(0x1e7)](_0x5d96b4,_0x3dbfc7,_0x5b818f={}){const _0x4e7dbb=a8_0x3412a8;var _0x316cec,_0x3a7e2f,_0x213998,_0x14349e,_0x5d042c,_0x5d6c97;const _0x2ff7f0=this[_0x4e7dbb(0x22c)](undefined,_0x5b818f===null||_0x5b818f===void 0x0?void 0x0:_0x5b818f[_0x4e7dbb(0x228)]),_0x55d1b4=[];for(const _0x3ce04f of this[_0x4e7dbb(0x223)]){if(_0x3ce04f===null||_0x3ce04f===void 0x0?void 0x0:_0x3ce04f['model']){const _0x2fae49=await this['app'][_0x4e7dbb(0x220)]()[_0x4e7dbb(0x20a)](_0x3ce04f['model']);if(_0x2fae49){typeof _0x2fae49[_0x4e7dbb(0x1fc)]==_0x4e7dbb(0x238)&&await _0x2fae49[_0x4e7dbb(0x1fc)][_0x4e7dbb(0x215)](_0x2fae49)(_0x2ff7f0,_0x5d96b4,{'app':this[_0x4e7dbb(0x224)],'container':this[_0x4e7dbb(0x1f4)],'paginate':_0x3dbfc7,'queryRunner':_0x5b818f===null||_0x5b818f===void 0x0?void 0x0:_0x5b818f[_0x4e7dbb(0x228)]});if(_0x5b818f===null||_0x5b818f===void 0x0?void 0x0:_0x5b818f[_0x4e7dbb(0x21a)]){const _0x528071=Array[_0x4e7dbb(0x1f2)](_0x5b818f[_0x4e7dbb(0x21a)])?_0x5b818f['scope']:[_0x5b818f[_0x4e7dbb(0x21a)]];for(const _0x5256eb of(_0x3ce04f===null||_0x3ce04f===void 0x0?void 0x0:_0x3ce04f['searchScopes'])||[]){(_0x5256eb===null||_0x5256eb===void 0x0?void 0x0:_0x5256eb[_0x4e7dbb(0x21a)])&&_0x528071[_0x4e7dbb(0x225)](_0x5256eb[_0x4e7dbb(0x21a)])!=-0x1&&(_0x5256eb===null||_0x5256eb===void 0x0?void 0x0:_0x5256eb['methodName'])&&typeof _0x2fae49[_0x5256eb[_0x4e7dbb(0x230)]]==_0x4e7dbb(0x238)&&await _0x2fae49[_0x5256eb[_0x4e7dbb(0x230)]][_0x4e7dbb(0x215)](_0x2fae49)(_0x2ff7f0,_0x5d96b4,{'app':this['app'],'container':this[_0x4e7dbb(0x1f4)],'paginate':_0x3dbfc7,'queryRunner':_0x5b818f===null||_0x5b818f===void 0x0?void 0x0:_0x5b818f[_0x4e7dbb(0x228)]});}}if(_0x5d96b4)for(const _0x42b3fd of(_0x3ce04f===null||_0x3ce04f===void 0x0?void 0x0:_0x3ce04f[_0x4e7dbb(0x1f6)])||[]){(_0x42b3fd===null||_0x42b3fd===void 0x0?void 0x0:_0x42b3fd[_0x4e7dbb(0x21f)])&&(_0x42b3fd===null||_0x42b3fd===void 0x0?void 0x0:_0x42b3fd[_0x4e7dbb(0x230)])&&typeof _0x2fae49[_0x42b3fd[_0x4e7dbb(0x230)]]=='function'&&(typeof(_0x5d96b4===null||_0x5d96b4===void 0x0?void 0x0:_0x5d96b4[_0x42b3fd[_0x4e7dbb(0x21f)]])!='undefined'&&!((_0x316cec=_0x5d96b4===null||_0x5d96b4===void 0x0?void 0x0:_0x5d96b4[_0x42b3fd[_0x4e7dbb(0x21f)]])===null||_0x316cec===void 0x0?void 0x0:_0x316cec['hasOwnProperty'](_0x4e7dbb(0x1ee)))&&(_0x55d1b4[_0x4e7dbb(0x225)](_0x42b3fd[_0x4e7dbb(0x21f)])==-0x1&&_0x55d1b4['push'](_0x42b3fd[_0x4e7dbb(0x21f)]),await _0x2fae49[_0x42b3fd[_0x4e7dbb(0x230)]][_0x4e7dbb(0x215)](_0x2fae49)(_0x2ff7f0,_0x5d96b4[_0x42b3fd[_0x4e7dbb(0x21f)]],_0x5d96b4,{'app':this[_0x4e7dbb(0x224)],'container':this[_0x4e7dbb(0x1f4)],'paginate':_0x3dbfc7,'queryRunner':_0x5b818f===null||_0x5b818f===void 0x0?void 0x0:_0x5b818f[_0x4e7dbb(0x228)]})));}}}}for(const _0x5064f in _0x5d96b4){if(typeof _0x5d96b4[_0x5064f]=='undefined')continue;if(_0x55d1b4[_0x4e7dbb(0x225)](_0x5064f)!=-0x1)continue;const _0x1d1504=this[_0x4e7dbb(0x200)][_0x4e7dbb(0x20b)](_0x5064f);if(!_0x1d1504)continue;if((_0x3a7e2f=_0x5d96b4===null||_0x5d96b4===void 0x0?void 0x0:_0x5d96b4[_0x5064f])===null||_0x3a7e2f===void 0x0?void 0x0:_0x3a7e2f[_0x4e7dbb(0x231)](_0x4e7dbb(0x1ee))){const _0x5e26ef=(_0x213998=_0x5d96b4[_0x5064f])===null||_0x213998===void 0x0?void 0x0:_0x213998['condition'],_0x401d77=(_0x14349e=_0x5d96b4[_0x5064f])===null||_0x14349e===void 0x0?void 0x0:_0x14349e['operator'][_0x4e7dbb(0x22e)]()[_0x4e7dbb(0x210)](),_0x37d603=_0x4e7dbb(0x204)+_0x5064f+'_'+Math['ceil'](Math[_0x4e7dbb(0x233)]()*0xa)+Math[_0x4e7dbb(0x221)](Math[_0x4e7dbb(0x233)]()*0xa)+Math[_0x4e7dbb(0x221)](Math[_0x4e7dbb(0x233)]()*0xa)+Math[_0x4e7dbb(0x221)](Math[_0x4e7dbb(0x233)]()*0xa);if(['=','!=','<>','>','>=','<','<=','LIKE',_0x4e7dbb(0x227)][_0x4e7dbb(0x225)](_0x401d77)!=-0x1)typeof _0x5e26ef!=_0x4e7dbb(0x20f)&&_0x2ff7f0['andWhere'](_0x2ff7f0[_0x4e7dbb(0x21c)]+'.'+_0x5064f+'\x20'+_0x401d77+'\x20:'+_0x37d603,{[_0x37d603]:_0x5e26ef});else{if(['IN',_0x4e7dbb(0x20d)][_0x4e7dbb(0x225)](_0x401d77)!=-0x1){if(typeof _0x5e26ef!='undefined'){const _0xdbd8e2=Array[_0x4e7dbb(0x1f2)](_0x5e26ef)?_0x5e26ef:typeof _0x5e26ef=='string'?_0x5e26ef[_0x4e7dbb(0x229)](','):[_0x5e26ef];_0xdbd8e2['length']==0x0?_0x2ff7f0[_0x4e7dbb(0x1f3)](_0x4e7dbb(0x208)):_0x2ff7f0[_0x4e7dbb(0x1f3)](_0x2ff7f0['alias']+'.'+_0x5064f+'\x20'+_0x401d77+_0x4e7dbb(0x235)+_0x37d603+')',{[_0x37d603]:_0xdbd8e2});}else _0x2ff7f0[_0x4e7dbb(0x1f3)](_0x4e7dbb(0x208));}else{if([_0x4e7dbb(0x20c),_0x4e7dbb(0x21e)][_0x4e7dbb(0x225)](_0x401d77)!=-0x1)typeof _0x5e26ef!=_0x4e7dbb(0x20f)&&_0x2ff7f0[_0x4e7dbb(0x1f3)](_0x401d77+'(:'+_0x37d603+','+_0x2ff7f0[_0x4e7dbb(0x21c)]+'.'+_0x5064f+')',{[_0x37d603]:_0x5e26ef});else{if(['BETWEEN',_0x4e7dbb(0x239)][_0x4e7dbb(0x225)](_0x401d77)!=-0x1){if(typeof _0x5e26ef!=_0x4e7dbb(0x20f)){const _0x46d51a=Array[_0x4e7dbb(0x1f2)](_0x5e26ef)?_0x5e26ef:typeof _0x5e26ef==_0x4e7dbb(0x22a)?_0x5e26ef[_0x4e7dbb(0x229)](','):[_0x5e26ef];_0x46d51a[_0x4e7dbb(0x1f5)]>0x1&&_0x2ff7f0['andWhere'](_0x2ff7f0[_0x4e7dbb(0x21c)]+'.'+_0x5064f+'\x20'+_0x401d77+'\x20:'+_0x37d603+_0x4e7dbb(0x201)+_0x37d603+'_2',{[''+_0x37d603]:_0x46d51a[0x0],[_0x37d603+'_2']:_0x46d51a[0x1]});}}else['ISNULL',_0x4e7dbb(0x203)]['indexOf'](_0x401d77)!=-0x1&&_0x2ff7f0[_0x4e7dbb(0x1f3)](_0x401d77+'('+_0x2ff7f0[_0x4e7dbb(0x21c)]+'.'+_0x5064f+')');}}}}else{const _0x5502a0=((_0x5d6c97=typeof _0x1d1504['type']=='function'?(_0x5d042c=_0x1d1504===null||_0x1d1504===void 0x0?void 0x0:_0x1d1504[_0x4e7dbb(0x1ed)])===null||_0x5d042c===void 0x0?void 0x0:_0x5d042c['name']:_0x1d1504[_0x4e7dbb(0x1ed)][_0x4e7dbb(0x1ea)]())===null||_0x5d6c97===void 0x0?void 0x0:_0x5d6c97['toLowerCase']())||undefined;if(_0x5502a0){if(Array[_0x4e7dbb(0x1f2)](_0x5d96b4[_0x5064f]))_0x5d96b4[_0x5064f][_0x4e7dbb(0x1f5)]==0x0?_0x2ff7f0[_0x4e7dbb(0x1f3)](_0x4e7dbb(0x208)):_0x2ff7f0['andWhere'](_0x2ff7f0[_0x4e7dbb(0x21c)]+'.'+_0x5064f+_0x4e7dbb(0x213)+_0x5064f+')',{[_0x4e7dbb(0x204)+_0x5064f]:_0x5d96b4[_0x5064f]});else _0x5502a0==_0x4e7dbb(0x22a)&&!_0x1d1504[_0x4e7dbb(0x206)]?_0x2ff7f0[_0x4e7dbb(0x1f3)](_0x2ff7f0['alias']+'.'+_0x5064f+_0x4e7dbb(0x207)+_0x5064f,{['_auto_'+_0x5064f]:'%'+_0x5d96b4[_0x5064f]+'%'}):_0x2ff7f0[_0x4e7dbb(0x1f3)](_0x2ff7f0[_0x4e7dbb(0x21c)]+'.'+_0x5064f+_0x4e7dbb(0x1e9)+_0x5064f,{['_auto_'+_0x5064f]:_0x5d96b4[_0x5064f]});}}}(_0x3dbfc7===null||_0x3dbfc7===void 0x0?void 0x0:_0x3dbfc7[_0x4e7dbb(0x1f8)])&&_0x2ff7f0['take'](Math[_0x4e7dbb(0x23a)](_0x3dbfc7[_0x4e7dbb(0x1f8)]));(_0x3dbfc7===null||_0x3dbfc7===void 0x0?void 0x0:_0x3dbfc7[_0x4e7dbb(0x217)])&&(_0x3dbfc7===null||_0x3dbfc7===void 0x0?void 0x0:_0x3dbfc7[_0x4e7dbb(0x1f8)])&&_0x2ff7f0[_0x4e7dbb(0x222)]((Math[_0x4e7dbb(0x23a)](_0x3dbfc7['_page'])-0x1)*Math[_0x4e7dbb(0x23a)](_0x3dbfc7[_0x4e7dbb(0x1f8)]));if(_0x3dbfc7===null||_0x3dbfc7===void 0x0?void 0x0:_0x3dbfc7['_order']){if(_0x3dbfc7[_0x4e7dbb(0x237)][_0x4e7dbb(0x225)]('.')!==-0x1)_0x2ff7f0[_0x4e7dbb(0x23e)](''+_0x3dbfc7[_0x4e7dbb(0x237)],(_0x3dbfc7===null||_0x3dbfc7===void 0x0?void 0x0:_0x3dbfc7[_0x4e7dbb(0x236)])?'ASC':'DESC');else this[_0x4e7dbb(0x200)]['findColumnWithPropertyName'](_0x3dbfc7[_0x4e7dbb(0x237)])&&_0x2ff7f0['orderBy'](_0x2ff7f0[_0x4e7dbb(0x21c)]+'.'+_0x3dbfc7['_order'],(_0x3dbfc7===null||_0x3dbfc7===void 0x0?void 0x0:_0x3dbfc7[_0x4e7dbb(0x236)])?'ASC':'DESC');}return typeof(_0x5b818f===null||_0x5b818f===void 0x0?void 0x0:_0x5b818f[_0x4e7dbb(0x1fb)])==_0x4e7dbb(0x238)&&await(_0x5b818f===null||_0x5b818f===void 0x0?void 0x0:_0x5b818f[_0x4e7dbb(0x1fb)](_0x2ff7f0)),_0x2ff7f0;}async[a8_0x3412a8(0x1e6)](_0x332d4c,..._0x5ed7c2){const _0x5871c3=a8_0x3412a8,_0xfe26c6=this[_0x5871c3(0x218)](_0x332d4c,..._0x5ed7c2);return await this['save'](_0xfe26c6);}async[a8_0x3412a8(0x216)](_0x36accc,..._0x34656c){const _0x49b7a5=a8_0x3412a8,_0x23d0b3=this['merge'](this[_0x49b7a5(0x1f1)](_0x36accc),..._0x34656c);return await this['save'](_0x23d0b3);}async[a8_0x3412a8(0x23c)](_0xa44500,_0x25134f){const _0x58ed53=a8_0x3412a8;return typeof _0xa44500==_0x58ed53(0x238)?this[_0x58ed53(0x1f0)][_0x58ed53(0x23c)](_0x58ed53(0x214),_0xa44500):this[_0x58ed53(0x1f0)][_0x58ed53(0x23c)](_0xa44500,_0x25134f);}[a8_0x3412a8(0x226)](_0x3bccc4,_0x2cd32b,_0x6622ba=[]){const _0x49d7a3=a8_0x3412a8,_0x10843b=Object[_0x49d7a3(0x1ef)]({},{..._0x3bccc4},{..._0x2cd32b});for(const _0x1b8b15 in _0x10843b){if(_0x6622ba[_0x49d7a3(0x1fa)](_0x1b8b15))continue;if((_0x10843b===null||_0x10843b===void 0x0?void 0x0:_0x10843b[_0x1b8b15])!=(_0x3bccc4===null||_0x3bccc4===void 0x0?void 0x0:_0x3bccc4[_0x1b8b15]))return!![];if((_0x10843b===null||_0x10843b===void 0x0?void 0x0:_0x10843b[_0x1b8b15])!=(_0x2cd32b===null||_0x2cd32b===void 0x0?void 0x0:_0x2cd32b[_0x1b8b15]))return!![];}return![];}[a8_0x3412a8(0x21b)](_0x102de6,_0x535334,_0x9fdf95=[]){const _0x452c9c=a8_0x3412a8,_0x377063={},_0x30bb27=Object[_0x452c9c(0x1ef)]({},{..._0x102de6},{..._0x535334});for(const _0x707176 in _0x30bb27){if(_0x9fdf95[_0x452c9c(0x1fa)](_0x707176))continue;(_0x30bb27===null||_0x30bb27===void 0x0?void 0x0:_0x30bb27[_0x707176])!=(_0x102de6===null||_0x102de6===void 0x0?void 0x0:_0x102de6[_0x707176])&&(_0x377063[_0x707176]=_0x30bb27[_0x707176]);}return _0x377063;}constructor(_0x75cdd4,_0x928369,_0x2dc444){const _0x20f877=a8_0x3412a8;super(_0x2dc444[_0x20f877(0x1f7)],_0x2dc444['manager'],_0x2dc444[_0x20f877(0x228)]),this[_0x20f877(0x223)]=[];for(const _0x2da2a4 of(0x0,core_1[_0x20f877(0x1fd)])(interface_1[_0x20f877(0x1ec)],this[_0x20f877(0x1f7)])||[]){const _0x1f97fd={'model':_0x2da2a4,'searchs':[],'searchScopes':[]};for(const _0x34a753 of(0x0,core_1['getClassMetadata'])(interface_1[_0x20f877(0x1f9)],_0x2da2a4)||[]){_0x1f97fd[_0x20f877(0x1f6)]['push'](_0x34a753);}for(const _0x557fee of(0x0,core_1[_0x20f877(0x1fd)])(interface_1['MODEL_SEARCH_SCOPE_KEY'],_0x2da2a4)||[]){_0x1f97fd[_0x20f877(0x23b)][_0x20f877(0x232)](_0x557fee);}this[_0x20f877(0x223)]['push'](_0x1f97fd);}this[_0x20f877(0x224)]=_0x75cdd4,this[_0x20f877(0x1f4)]=_0x928369;}}function a8_0x275d(_0x199b81,_0x32b497){const _0x1b4c42=a8_0x20f3();return a8_0x275d=function(_0x4e95a9,_0x127d4f){_0x4e95a9=_0x4e95a9-0x1e5;let _0x20f339=_0x1b4c42[_0x4e95a9];return _0x20f339;},a8_0x275d(_0x199b81,_0x32b497);}exports[a8_0x3412a8(0x1ff)]=Repository;
@@ -1 +1 @@
1
- export declare function getDataSourceEntity(source?: string): any[];
1
+ export declare function getDataSourceEntity(source?: string): any[];
@@ -1 +1 @@
1
- const a9_0x4595a6=a9_0x3647;(function(_0x546cff,_0xa4c5f7){const _0xa530b4=a9_0x3647,_0x35a7be=_0x546cff();while(!![]){try{const _0x4cee43=parseInt(_0xa530b4(0x18a))/0x1+parseInt(_0xa530b4(0x18c))/0x2+parseInt(_0xa530b4(0x187))/0x3*(parseInt(_0xa530b4(0x17e))/0x4)+-parseInt(_0xa530b4(0x181))/0x5+-parseInt(_0xa530b4(0x17c))/0x6*(-parseInt(_0xa530b4(0x180))/0x7)+parseInt(_0xa530b4(0x182))/0x8*(-parseInt(_0xa530b4(0x18f))/0x9)+-parseInt(_0xa530b4(0x18d))/0xa;if(_0x4cee43===_0xa4c5f7)break;else _0x35a7be['push'](_0x35a7be['shift']());}catch(_0x3ecdd9){_0x35a7be['push'](_0x35a7be['shift']());}}}(a9_0x284c,0xd4cdd));const a9_0x307680=(function(){let _0x9a15d7=!![];return function(_0x198e44,_0x2799f5){const _0x27c3c4=_0x9a15d7?function(){if(_0x2799f5){const _0x1b5882=_0x2799f5['apply'](_0x198e44,arguments);return _0x2799f5=null,_0x1b5882;}}:function(){};return _0x9a15d7=![],_0x27c3c4;};}()),a9_0x39c840=a9_0x307680(this,function(){const _0x2d9dfc=a9_0x3647;return a9_0x39c840['toString']()['search']('(((.+)+)+)+$')['toString']()[_0x2d9dfc(0x18b)](a9_0x39c840)[_0x2d9dfc(0x183)](_0x2d9dfc(0x184));});a9_0x39c840();function a9_0x3647(_0x3238c3,_0x4aa232){const _0xf024a7=a9_0x284c();return a9_0x3647=function(_0x39c840,_0x307680){_0x39c840=_0x39c840-0x179;let _0x284c45=_0xf024a7[_0x39c840];return _0x284c45;},a9_0x3647(_0x3238c3,_0x4aa232);}'use strict';Object[a9_0x4595a6(0x17a)](exports,a9_0x4595a6(0x189),{'value':!![]}),exports[a9_0x4595a6(0x18e)]=void 0x0;function a9_0x284c(){const _0x235e98=['8268869KYSrnc','2300795eAMPkk','48bBXrdE','search','(((.+)+)+)+$','default','dataSource','3wBmhjs','ENTIFY_MODULE','__esModule','572117szGAJA','constructor','1754610cFFXua','25919050IPlkIy','getDataSourceEntity','381627zNZTVr','find','ENTIFY_MODULE_SOURCE','listModule','defineProperty','getClassMetadata','6bbclkh','@midwayjs/core','6189752UxpSzl','../interface'];a9_0x284c=function(){return _0x235e98;};return a9_0x284c();}const core_1=require(a9_0x4595a6(0x17d)),interface_1=require(a9_0x4595a6(0x17f));function getDataSourceEntity(_0x50ecb6=a9_0x4595a6(0x185)){const _0x255cb6=a9_0x4595a6;var _0x609212;const _0x5ac318=[];for(const _0x39ea30 of(0x0,core_1[_0x255cb6(0x179)])(interface_1[_0x255cb6(0x188)])){const _0x48f7e0=(0x0,core_1[_0x255cb6(0x17b)])(interface_1[_0x255cb6(0x191)],_0x39ea30);((_0x609212=_0x48f7e0===null||_0x48f7e0===void 0x0?void 0x0:_0x48f7e0[_0x255cb6(0x186)])===null||_0x609212===void 0x0?void 0x0:_0x609212[_0x255cb6(0x190)](_0x2e592e=>_0x2e592e==_0x50ecb6))&&_0x5ac318['push'](_0x39ea30);}return _0x5ac318;}exports['getDataSourceEntity']=getDataSourceEntity;
1
+ const a9_0x540662=a9_0x471c;(function(_0x190eae,_0x7be148){const _0x48cd12=a9_0x471c,_0x115b57=_0x190eae();while(!![]){try{const _0x162979=parseInt(_0x48cd12(0x14a))/0x1+parseInt(_0x48cd12(0x14f))/0x2+-parseInt(_0x48cd12(0x158))/0x3+parseInt(_0x48cd12(0x146))/0x4*(parseInt(_0x48cd12(0x150))/0x5)+-parseInt(_0x48cd12(0x148))/0x6*(-parseInt(_0x48cd12(0x15b))/0x7)+-parseInt(_0x48cd12(0x14d))/0x8*(parseInt(_0x48cd12(0x157))/0x9)+-parseInt(_0x48cd12(0x15a))/0xa;if(_0x162979===_0x7be148)break;else _0x115b57['push'](_0x115b57['shift']());}catch(_0x53d474){_0x115b57['push'](_0x115b57['shift']());}}}(a9_0x1aa0,0xea0f2));const a9_0x2ee611=(function(){let _0x43c677=!![];return function(_0xb8770f,_0x37fe5c){const _0x1d6bb0=_0x43c677?function(){const _0x38a68c=a9_0x471c;if(_0x37fe5c){const _0x6a2c40=_0x37fe5c[_0x38a68c(0x15d)](_0xb8770f,arguments);return _0x37fe5c=null,_0x6a2c40;}}:function(){};return _0x43c677=![],_0x1d6bb0;};}()),a9_0x1bf66f=a9_0x2ee611(this,function(){const _0x960580=a9_0x471c;return a9_0x1bf66f[_0x960580(0x14c)]()['search'](_0x960580(0x145))[_0x960580(0x14c)]()[_0x960580(0x147)](a9_0x1bf66f)['search'](_0x960580(0x145));});a9_0x1bf66f();'use strict';Object[a9_0x540662(0x153)](exports,a9_0x540662(0x159),{'value':!![]}),exports['getDataSourceEntity']=void 0x0;function a9_0x471c(_0x4819d9,_0xea006e){const _0x1b1926=a9_0x1aa0();return a9_0x471c=function(_0x1bf66f,_0x2ee611){_0x1bf66f=_0x1bf66f-0x145;let _0x1aa072=_0x1b1926[_0x1bf66f];return _0x1aa072;},a9_0x471c(_0x4819d9,_0xea006e);}function a9_0x1aa0(){const _0x51156f=['../interface','apply','(((.+)+)+)+$','3076756NFMyGo','constructor','18lFmDLE','getDataSourceEntity','836043iJVYeJ','dataSource','toString','47800syYJuq','getClassMetadata','2176068TQAlgA','10fWMrsl','push','default','defineProperty','ENTIFY_MODULE','find','listModule','2601aXUlRz','1504794cKdgvP','__esModule','10333830WRLuPQ','1768683QnyeXi'];a9_0x1aa0=function(){return _0x51156f;};return a9_0x1aa0();}const core_1=require('@midwayjs/core'),interface_1=require(a9_0x540662(0x15c));function getDataSourceEntity(_0x31982b=a9_0x540662(0x152)){const _0x32d38c=a9_0x540662;var _0x68016e;const _0x546d42=[];for(const _0x3dd5c1 of(0x0,core_1[_0x32d38c(0x156)])(interface_1[_0x32d38c(0x154)])){const _0x3443bf=(0x0,core_1[_0x32d38c(0x14e)])(interface_1['ENTIFY_MODULE_SOURCE'],_0x3dd5c1);((_0x68016e=_0x3443bf===null||_0x3443bf===void 0x0?void 0x0:_0x3443bf[_0x32d38c(0x14b)])===null||_0x68016e===void 0x0?void 0x0:_0x68016e[_0x32d38c(0x155)](_0x3bd299=>_0x3bd299==_0x31982b))&&_0x546d42[_0x32d38c(0x151)](_0x3dd5c1);}return _0x546d42;}exports[a9_0x540662(0x149)]=getDataSourceEntity;
@@ -1 +1 @@
1
- export declare function getProvideObserve(): any[];
1
+ export declare function getProvideObserve(): any[];
@@ -1 +1 @@
1
- const a10_0x56f9b5=a10_0x1e6d;(function(_0xbe65ba,_0x2f1af6){const _0x1aa558=a10_0x1e6d,_0x2d4b97=_0xbe65ba();while(!![]){try{const _0x3d83cb=-parseInt(_0x1aa558(0x1a0))/0x1*(parseInt(_0x1aa558(0x1ab))/0x2)+parseInt(_0x1aa558(0x1b0))/0x3*(-parseInt(_0x1aa558(0x1af))/0x4)+parseInt(_0x1aa558(0x1a2))/0x5+-parseInt(_0x1aa558(0x1b4))/0x6+-parseInt(_0x1aa558(0x1ae))/0x7*(parseInt(_0x1aa558(0x1a8))/0x8)+parseInt(_0x1aa558(0x1b1))/0x9+parseInt(_0x1aa558(0x1b3))/0xa;if(_0x3d83cb===_0x2f1af6)break;else _0x2d4b97['push'](_0x2d4b97['shift']());}catch(_0x500172){_0x2d4b97['push'](_0x2d4b97['shift']());}}}(a10_0x182c,0x2328d));const a10_0x20c9c4=(function(){let _0x5db95d=!![];return function(_0x4e23a0,_0x3b60b1){const _0x3329da=_0x5db95d?function(){const _0x2f3da0=a10_0x1e6d;if(_0x3b60b1){const _0x9f1485=_0x3b60b1[_0x2f3da0(0x1a9)](_0x4e23a0,arguments);return _0x3b60b1=null,_0x9f1485;}}:function(){};return _0x5db95d=![],_0x3329da;};}()),a10_0x190b28=a10_0x20c9c4(this,function(){const _0x736c9b=a10_0x1e6d;return a10_0x190b28[_0x736c9b(0x1ad)]()[_0x736c9b(0x1b2)]('(((.+)+)+)+$')[_0x736c9b(0x1ad)]()[_0x736c9b(0x1aa)](a10_0x190b28)['search'](_0x736c9b(0x1a3));});a10_0x190b28();'use strict';function a10_0x1e6d(_0x990fe3,_0x264275){const _0x3a7efd=a10_0x182c();return a10_0x1e6d=function(_0x190b28,_0x20c9c4){_0x190b28=_0x190b28-0x1a0;let _0x182c66=_0x3a7efd[_0x190b28];return _0x182c66;},a10_0x1e6d(_0x990fe3,_0x264275);}Object[a10_0x56f9b5(0x1a7)](exports,a10_0x56f9b5(0x1b5),{'value':!![]}),exports['getProvideObserve']=void 0x0;const core_1=require(a10_0x56f9b5(0x1a6)),interface_1=require(a10_0x56f9b5(0x1a4));function getProvideObserve(){const _0x29286c=a10_0x56f9b5;return(0x0,core_1[_0x29286c(0x1a1)])(interface_1[_0x29286c(0x1ac)])||[];}function a10_0x182c(){const _0x223582=['apply','constructor','21690bfGrfQ','REPOSITORY_OBSERVE_KEY','toString','1785zAinpe','4wJGuiN','553539FkBcYS','1320687hdJkPZ','search','6079450iZOKOA','1551666nZJTzY','__esModule','7pbnrBO','listModule','165295eEGfnl','(((.+)+)+)+$','../interface','getProvideObserve','@midwayjs/core','defineProperty','3912gakAxV'];a10_0x182c=function(){return _0x223582;};return a10_0x182c();}exports[a10_0x56f9b5(0x1a5)]=getProvideObserve;
1
+ function a10_0x3554(){const _0x363eac=['toString','2781454ZWAZSA','search','(((.+)+)+)+$','659532cmjdZA','getProvideObserve','defineProperty','apply','13037778yxWVEd','listModule','__esModule','1PSPSMf','12081ELCUhq','1088RHsSdf','4167535WRuiLN','8838088LYLxMn','REPOSITORY_OBSERVE_KEY','constructor','11874737NAetBH'];a10_0x3554=function(){return _0x363eac;};return a10_0x3554();}const a10_0x48010f=a10_0x131b;(function(_0x1e8122,_0x5d1f67){const _0x4045ca=a10_0x131b,_0x24d2c2=_0x1e8122();while(!![]){try{const _0x2419de=parseInt(_0x4045ca(0x1af))/0x1*(parseInt(_0x4045ca(0x1b8))/0x2)+parseInt(_0x4045ca(0x1b0))/0x3*(parseInt(_0x4045ca(0x1b1))/0x4)+-parseInt(_0x4045ca(0x1b2))/0x5+parseInt(_0x4045ca(0x1a8))/0x6+parseInt(_0x4045ca(0x1b6))/0x7+-parseInt(_0x4045ca(0x1b3))/0x8+-parseInt(_0x4045ca(0x1ac))/0x9;if(_0x2419de===_0x5d1f67)break;else _0x24d2c2['push'](_0x24d2c2['shift']());}catch(_0x194809){_0x24d2c2['push'](_0x24d2c2['shift']());}}}(a10_0x3554,0xdd102));function a10_0x131b(_0x4ef1c8,_0x36fa8e){const _0x36964a=a10_0x3554();return a10_0x131b=function(_0x31fd23,_0x2736a7){_0x31fd23=_0x31fd23-0x1a8;let _0x3554b8=_0x36964a[_0x31fd23];return _0x3554b8;},a10_0x131b(_0x4ef1c8,_0x36fa8e);}const a10_0x2736a7=(function(){let _0x1ed022=!![];return function(_0x51c4db,_0x482a0c){const _0x2f13cd=_0x1ed022?function(){const _0x9dde4f=a10_0x131b;if(_0x482a0c){const _0x3bec73=_0x482a0c[_0x9dde4f(0x1ab)](_0x51c4db,arguments);return _0x482a0c=null,_0x3bec73;}}:function(){};return _0x1ed022=![],_0x2f13cd;};}()),a10_0x31fd23=a10_0x2736a7(this,function(){const _0x12b010=a10_0x131b;return a10_0x31fd23[_0x12b010(0x1b7)]()[_0x12b010(0x1b9)](_0x12b010(0x1ba))[_0x12b010(0x1b7)]()[_0x12b010(0x1b5)](a10_0x31fd23)[_0x12b010(0x1b9)](_0x12b010(0x1ba));});a10_0x31fd23();'use strict';Object[a10_0x48010f(0x1aa)](exports,a10_0x48010f(0x1ae),{'value':!![]}),exports[a10_0x48010f(0x1a9)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require('../interface');function getProvideObserve(){const _0x4aaa58=a10_0x48010f;return(0x0,core_1[_0x4aaa58(0x1ad)])(interface_1[_0x4aaa58(0x1b4)])||[];}exports[a10_0x48010f(0x1a9)]=getProvideObserve;
@@ -1 +1 @@
1
- export declare function sleep(time?: number): Promise<void>;
1
+ export declare function sleep(time?: number): Promise<void>;
@@ -1 +1 @@
1
- var a11_0x3daeb7=a11_0x416e;(function(_0x25c70e,_0x2f0f43){var _0x17df8a=a11_0x416e,_0x10cba8=_0x25c70e();while(!![]){try{var _0x707fbf=parseInt(_0x17df8a(0x1f1))/0x1*(-parseInt(_0x17df8a(0x1eb))/0x2)+-parseInt(_0x17df8a(0x1ef))/0x3*(parseInt(_0x17df8a(0x1f0))/0x4)+parseInt(_0x17df8a(0x1ea))/0x5+parseInt(_0x17df8a(0x1e7))/0x6*(parseInt(_0x17df8a(0x1ed))/0x7)+-parseInt(_0x17df8a(0x1e8))/0x8+parseInt(_0x17df8a(0x1f5))/0x9*(-parseInt(_0x17df8a(0x1ee))/0xa)+parseInt(_0x17df8a(0x1e9))/0xb;if(_0x707fbf===_0x2f0f43)break;else _0x10cba8['push'](_0x10cba8['shift']());}catch(_0x585e28){_0x10cba8['push'](_0x10cba8['shift']());}}}(a11_0x4da6,0x2316e));function a11_0x416e(_0x1047b5,_0x4dc69b){var _0x37b8e3=a11_0x4da6();return a11_0x416e=function(_0x56adee,_0x4a1b76){_0x56adee=_0x56adee-0x1e3;var _0x4da67c=_0x37b8e3[_0x56adee];return _0x4da67c;},a11_0x416e(_0x1047b5,_0x4dc69b);}var a11_0x4a1b76=(function(){var _0x178ddd=!![];return function(_0x16f834,_0x1a2533){var _0x4f367b=_0x178ddd?function(){var _0xfc00c1=a11_0x416e;if(_0x1a2533){var _0x1703c8=_0x1a2533[_0xfc00c1(0x1f3)](_0x16f834,arguments);return _0x1a2533=null,_0x1703c8;}}:function(){};return _0x178ddd=![],_0x4f367b;};}()),a11_0x56adee=a11_0x4a1b76(this,function(){var _0x1269e2=a11_0x416e;return a11_0x56adee[_0x1269e2(0x1ec)]()[_0x1269e2(0x1e3)](_0x1269e2(0x1f4))[_0x1269e2(0x1ec)]()[_0x1269e2(0x1e4)](a11_0x56adee)[_0x1269e2(0x1e3)](_0x1269e2(0x1f4));});function a11_0x4da6(){var _0x2cd71d=['search','constructor','__esModule','defineProperty','1740MmhMjQ','2014528WoDWgR','9573586AMFzza','80960feAkpm','2kyKttj','toString','5180bIJOTf','370AHkpBY','166044eHhqMb','20LsMRpl','145823ppzqyW','sleep','apply','(((.+)+)+)+$','68841SneJQj'];a11_0x4da6=function(){return _0x2cd71d;};return a11_0x4da6();}a11_0x56adee();'use strict';Object[a11_0x3daeb7(0x1e6)](exports,a11_0x3daeb7(0x1e5),{'value':!![]}),exports['sleep']=void 0x0;function sleep(_0x49230b=0xc8){return new Promise(_0x24872a=>setTimeout(_0x24872a,_0x49230b));}exports[a11_0x3daeb7(0x1f2)]=sleep;
1
+ var a11_0x33c914=a11_0x12ff;(function(_0x2de465,_0x3c33f0){var _0x35da83=a11_0x12ff,_0x206542=_0x2de465();while(!![]){try{var _0x1e7fc5=-parseInt(_0x35da83(0x79))/0x1*(-parseInt(_0x35da83(0x7a))/0x2)+parseInt(_0x35da83(0x73))/0x3+parseInt(_0x35da83(0x7c))/0x4*(-parseInt(_0x35da83(0x7f))/0x5)+-parseInt(_0x35da83(0x76))/0x6+-parseInt(_0x35da83(0x78))/0x7+-parseInt(_0x35da83(0x7e))/0x8+parseInt(_0x35da83(0x71))/0x9;if(_0x1e7fc5===_0x3c33f0)break;else _0x206542['push'](_0x206542['shift']());}catch(_0x150a80){_0x206542['push'](_0x206542['shift']());}}}(a11_0xbf8a,0xaa38b));var a11_0x2e12e1=(function(){var _0x4b1277=!![];return function(_0x4d86f1,_0x44840c){var _0x203b76=_0x4b1277?function(){var _0x45a36c=a11_0x12ff;if(_0x44840c){var _0x45f56f=_0x44840c[_0x45a36c(0x6f)](_0x4d86f1,arguments);return _0x44840c=null,_0x45f56f;}}:function(){};return _0x4b1277=![],_0x203b76;};}()),a11_0x28d84e=a11_0x2e12e1(this,function(){var _0x45c7be=a11_0x12ff;return a11_0x28d84e[_0x45c7be(0x72)]()[_0x45c7be(0x7d)]('(((.+)+)+)+$')[_0x45c7be(0x72)]()[_0x45c7be(0x75)](a11_0x28d84e)[_0x45c7be(0x7d)](_0x45c7be(0x74));});function a11_0x12ff(_0x1c5ba6,_0x4d75c6){var _0xe83652=a11_0xbf8a();return a11_0x12ff=function(_0x28d84e,_0x2e12e1){_0x28d84e=_0x28d84e-0x6f;var _0xbf8ad9=_0xe83652[_0x28d84e];return _0xbf8ad9;},a11_0x12ff(_0x1c5ba6,_0x4d75c6);}a11_0x28d84e();'use strict';Object[a11_0x33c914(0x77)](exports,a11_0x33c914(0x70),{'value':!![]}),exports[a11_0x33c914(0x7b)]=void 0x0;function a11_0xbf8a(){var _0x3a03d5=['1403560wYdCNI','apply','__esModule','9766467jgiEsm','toString','1802586pEoagd','(((.+)+)+)+$','constructor','6280920EaNaAK','defineProperty','4535902XESHnY','328AtTHzX','7754UNtYDQ','sleep','4KePgbV','search','2279488wsHZEj'];a11_0xbf8a=function(){return _0x3a03d5;};return a11_0xbf8a();}function sleep(_0x48a7bd=0xc8){return new Promise(_0x12ce2f=>setTimeout(_0x12ce2f,_0x48a7bd));}exports[a11_0x33c914(0x7b)]=sleep;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- export * from "typeorm";
2
- export * from './interface';
3
- export { Repository } from './definition/Repository';
4
- export { VirtualColumn } from "./decorator/VirtualColumn";
5
- export { InjectEntity } from './decorator/InjectEntity';
6
- export { InjectRepository } from './decorator/InjectRepository';
7
- export { ProvideEntity } from './decorator/ProvideEntity';
8
- export { ProvideObserve } from './decorator/ProvideObserve';
9
- export { ProvideRepository } from './decorator/ProvideRepository';
10
- export { ProvideSearch, Search, SearchScope } from "./decorator/ProvideSearch";
11
- export { getProvideObserve } from './helper/getProvideObserve';
12
- export { getDataSourceEntity } from './helper/getDataSourceEntity';
13
- export { CustomConfiguration as Configuration } from './configuration';
14
- export { Provide, Inject, Scope, ScopeEnum } from "@midwayjs/core";
1
+ export * from "typeorm";
2
+ export * from './interface';
3
+ export { Repository } from './definition/Repository';
4
+ export { VirtualColumn } from "./decorator/VirtualColumn";
5
+ export { InjectEntity } from './decorator/InjectEntity';
6
+ export { InjectRepository } from './decorator/InjectRepository';
7
+ export { ProvideEntity } from './decorator/ProvideEntity';
8
+ export { ProvideObserve } from './decorator/ProvideObserve';
9
+ export { ProvideRepository } from './decorator/ProvideRepository';
10
+ export { ProvideSearch, Search, SearchScope } from "./decorator/ProvideSearch";
11
+ export { getProvideObserve } from './helper/getProvideObserve';
12
+ export { getDataSourceEntity } from './helper/getDataSourceEntity';
13
+ export { CustomConfiguration as Configuration } from './configuration';
14
+ export { Provide, Inject, Scope, ScopeEnum } from "@midwayjs/core";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a12_0x8ac689=a12_0x408a;(function(_0x96b666,_0x5e067e){var _0x1161f6=a12_0x408a,_0xbaa5ed=_0x96b666();while(!![]){try{var _0x3ef7f8=parseInt(_0x1161f6(0x89))/0x1+parseInt(_0x1161f6(0x83))/0x2*(parseInt(_0x1161f6(0xa4))/0x3)+-parseInt(_0x1161f6(0xa5))/0x4*(parseInt(_0x1161f6(0x9a))/0x5)+-parseInt(_0x1161f6(0x91))/0x6*(-parseInt(_0x1161f6(0x85))/0x7)+-parseInt(_0x1161f6(0xa2))/0x8*(parseInt(_0x1161f6(0x80))/0x9)+-parseInt(_0x1161f6(0xa6))/0xa*(parseInt(_0x1161f6(0xa9))/0xb)+-parseInt(_0x1161f6(0x9d))/0xc;if(_0x3ef7f8===_0x5e067e)break;else _0xbaa5ed['push'](_0xbaa5ed['shift']());}catch(_0x1d3a6b){_0xbaa5ed['push'](_0xbaa5ed['shift']());}}}(a12_0x3d4b,0xcf66c));var a12_0x37ea9a=(function(){var _0x31cedc=!![];return function(_0x480c9b,_0x427cd4){var _0x514a14=_0x31cedc?function(){var _0x37a417=a12_0x408a;if(_0x427cd4){var _0x3e1430=_0x427cd4[_0x37a417(0x93)](_0x480c9b,arguments);return _0x427cd4=null,_0x3e1430;}}:function(){};return _0x31cedc=![],_0x514a14;};}()),a12_0x4ef5c0=a12_0x37ea9a(this,function(){var _0x5ec997=a12_0x408a;return a12_0x4ef5c0[_0x5ec997(0x95)]()[_0x5ec997(0x81)]('(((.+)+)+)+$')['toString']()[_0x5ec997(0x77)](a12_0x4ef5c0)['search'](_0x5ec997(0x75));});a12_0x4ef5c0();'use strict';var __createBinding=this&&this[a12_0x8ac689(0x8c)]||(Object['create']?function(_0x189a23,_0x5cc8b5,_0x10f2a7,_0x565438){var _0x35751c=a12_0x8ac689;if(_0x565438===undefined)_0x565438=_0x10f2a7;var _0x3605d5=Object[_0x35751c(0x7a)](_0x5cc8b5,_0x10f2a7);(!_0x3605d5||('get'in _0x3605d5?!_0x5cc8b5[_0x35751c(0x88)]:_0x3605d5[_0x35751c(0x97)]||_0x3605d5[_0x35751c(0x92)]))&&(_0x3605d5={'enumerable':!![],'get':function(){return _0x5cc8b5[_0x10f2a7];}}),Object[_0x35751c(0xac)](_0x189a23,_0x565438,_0x3605d5);}:function(_0x313a90,_0xa9775a,_0x4a749c,_0x5668c5){if(_0x5668c5===undefined)_0x5668c5=_0x4a749c;_0x313a90[_0x5668c5]=_0xa9775a[_0x4a749c];}),__exportStar=this&&this[a12_0x8ac689(0x87)]||function(_0x82a442,_0xb9f0cc){var _0x396302=a12_0x8ac689;for(var _0x5b46f3 in _0x82a442)if(_0x5b46f3!==_0x396302(0xaa)&&!Object[_0x396302(0xab)][_0x396302(0x9f)][_0x396302(0x99)](_0xb9f0cc,_0x5b46f3))__createBinding(_0xb9f0cc,_0x82a442,_0x5b46f3);};Object[a12_0x8ac689(0xac)](exports,a12_0x8ac689(0x88),{'value':!![]}),exports[a12_0x8ac689(0x7f)]=exports[a12_0x8ac689(0x82)]=exports[a12_0x8ac689(0x8b)]=exports['Provide']=exports[a12_0x8ac689(0xad)]=exports['getDataSourceEntity']=exports[a12_0x8ac689(0x9e)]=exports[a12_0x8ac689(0x7e)]=exports[a12_0x8ac689(0x96)]=exports[a12_0x8ac689(0xa7)]=exports[a12_0x8ac689(0x8d)]=exports[a12_0x8ac689(0x78)]=exports[a12_0x8ac689(0x7b)]=exports[a12_0x8ac689(0x8f)]=exports['InjectEntity']=exports[a12_0x8ac689(0xa1)]=exports[a12_0x8ac689(0x79)]=void 0x0,__exportStar(require(a12_0x8ac689(0x98)),exports),__exportStar(require('./interface'),exports);var Repository_1=require(a12_0x8ac689(0x94));Object[a12_0x8ac689(0xac)](exports,a12_0x8ac689(0x79),{'enumerable':!![],'get':function(){var _0x205a87=a12_0x8ac689;return Repository_1[_0x205a87(0x79)];}});var VirtualColumn_1=require(a12_0x8ac689(0x86));Object['defineProperty'](exports,'VirtualColumn',{'enumerable':!![],'get':function(){var _0x56baae=a12_0x8ac689;return VirtualColumn_1[_0x56baae(0xa1)];}});var InjectEntity_1=require(a12_0x8ac689(0x7d));function a12_0x408a(_0x2b8725,_0x1da322){var _0x5471cb=a12_0x3d4b();return a12_0x408a=function(_0x4ef5c0,_0x37ea9a){_0x4ef5c0=_0x4ef5c0-0x75;var _0x3d4b6e=_0x5471cb[_0x4ef5c0];return _0x3d4b6e;},a12_0x408a(_0x2b8725,_0x1da322);}Object[a12_0x8ac689(0xac)](exports,'InjectEntity',{'enumerable':!![],'get':function(){var _0x2288c1=a12_0x8ac689;return InjectEntity_1[_0x2288c1(0x84)];}});var InjectRepository_1=require(a12_0x8ac689(0x9c));Object[a12_0x8ac689(0xac)](exports,'InjectRepository',{'enumerable':!![],'get':function(){var _0x45ce15=a12_0x8ac689;return InjectRepository_1[_0x45ce15(0x8f)];}});var ProvideEntity_1=require(a12_0x8ac689(0x7c));function a12_0x3d4b(){var _0x30114c=['./configuration','1281346cmfCYS','default','prototype','defineProperty','Configuration','(((.+)+)+)+$','Provide','constructor','ProvideObserve','Repository','getOwnPropertyDescriptor','ProvideEntity','./decorator/ProvideEntity','./decorator/InjectEntity','SearchScope','ScopeEnum','9YHIgvn','search','Scope','10jKywjW','InjectEntity','7YMZbkj','./decorator/VirtualColumn','__exportStar','__esModule','210674hXXUTz','@midwayjs/core','Inject','__createBinding','ProvideRepository','CustomConfiguration','InjectRepository','./decorator/ProvideRepository','8533884MBEhvV','configurable','apply','./definition/Repository','toString','Search','writable','typeorm','call','5qnTdYx','getDataSourceEntity','./decorator/InjectRepository','5677260rcMFdd','getProvideObserve','hasOwnProperty','./helper/getProvideObserve','VirtualColumn','3421160qfMopu','./decorator/ProvideObserve','922227QqHhJl','553684SoCpFP','110ArmTDN','ProvideSearch'];a12_0x3d4b=function(){return _0x30114c;};return a12_0x3d4b();}Object[a12_0x8ac689(0xac)](exports,a12_0x8ac689(0x7b),{'enumerable':!![],'get':function(){return ProvideEntity_1['ProvideEntity'];}});var ProvideObserve_1=require(a12_0x8ac689(0xa3));Object[a12_0x8ac689(0xac)](exports,a12_0x8ac689(0x78),{'enumerable':!![],'get':function(){var _0x5e8db6=a12_0x8ac689;return ProvideObserve_1[_0x5e8db6(0x78)];}});var ProvideRepository_1=require(a12_0x8ac689(0x90));Object['defineProperty'](exports,a12_0x8ac689(0x8d),{'enumerable':!![],'get':function(){return ProvideRepository_1['ProvideRepository'];}});var ProvideSearch_1=require('./decorator/ProvideSearch');Object[a12_0x8ac689(0xac)](exports,'ProvideSearch',{'enumerable':!![],'get':function(){var _0x38bb7b=a12_0x8ac689;return ProvideSearch_1[_0x38bb7b(0xa7)];}}),Object[a12_0x8ac689(0xac)](exports,'Search',{'enumerable':!![],'get':function(){return ProvideSearch_1['Search'];}}),Object[a12_0x8ac689(0xac)](exports,a12_0x8ac689(0x7e),{'enumerable':!![],'get':function(){var _0x33c615=a12_0x8ac689;return ProvideSearch_1[_0x33c615(0x7e)];}});var getProvideObserve_1=require(a12_0x8ac689(0xa0));Object[a12_0x8ac689(0xac)](exports,a12_0x8ac689(0x9e),{'enumerable':!![],'get':function(){var _0x22fbc5=a12_0x8ac689;return getProvideObserve_1[_0x22fbc5(0x9e)];}});var getDataSourceEntity_1=require('./helper/getDataSourceEntity');Object[a12_0x8ac689(0xac)](exports,a12_0x8ac689(0x9b),{'enumerable':!![],'get':function(){var _0x284554=a12_0x8ac689;return getDataSourceEntity_1[_0x284554(0x9b)];}});var configuration_1=require(a12_0x8ac689(0xa8));Object['defineProperty'](exports,a12_0x8ac689(0xad),{'enumerable':!![],'get':function(){var _0x154a9b=a12_0x8ac689;return configuration_1[_0x154a9b(0x8e)];}});var core_1=require(a12_0x8ac689(0x8a));Object['defineProperty'](exports,a12_0x8ac689(0x76),{'enumerable':!![],'get':function(){var _0x2ff67a=a12_0x8ac689;return core_1[_0x2ff67a(0x76)];}}),Object[a12_0x8ac689(0xac)](exports,a12_0x8ac689(0x8b),{'enumerable':!![],'get':function(){var _0x76aea8=a12_0x8ac689;return core_1[_0x76aea8(0x8b)];}}),Object[a12_0x8ac689(0xac)](exports,a12_0x8ac689(0x82),{'enumerable':!![],'get':function(){var _0x428c89=a12_0x8ac689;return core_1[_0x428c89(0x82)];}}),Object['defineProperty'](exports,a12_0x8ac689(0x7f),{'enumerable':!![],'get':function(){var _0xe21183=a12_0x8ac689;return core_1[_0xe21183(0x7f)];}});
1
+ var a12_0x810019=a12_0x5418;(function(_0x425787,_0x5b051b){var _0x1a154c=a12_0x5418,_0xa16b=_0x425787();while(!![]){try{var _0x56c7e7=-parseInt(_0x1a154c(0x1ea))/0x1*(-parseInt(_0x1a154c(0x1e2))/0x2)+-parseInt(_0x1a154c(0x1dc))/0x3*(parseInt(_0x1a154c(0x1ca))/0x4)+parseInt(_0x1a154c(0x1e3))/0x5*(parseInt(_0x1a154c(0x1f3))/0x6)+-parseInt(_0x1a154c(0x1f5))/0x7*(-parseInt(_0x1a154c(0x1e0))/0x8)+parseInt(_0x1a154c(0x1bf))/0x9+parseInt(_0x1a154c(0x1c7))/0xa+-parseInt(_0x1a154c(0x1cb))/0xb*(parseInt(_0x1a154c(0x1df))/0xc);if(_0x56c7e7===_0x5b051b)break;else _0xa16b['push'](_0xa16b['shift']());}catch(_0x175f9e){_0xa16b['push'](_0xa16b['shift']());}}}(a12_0xf5bd,0x67226));var a12_0x31fb06=(function(){var _0x46d809=!![];return function(_0x3bef8a,_0x4b7e57){var _0x3f3f13=_0x46d809?function(){var _0xf59b55=a12_0x5418;if(_0x4b7e57){var _0x52d187=_0x4b7e57[_0xf59b55(0x1ce)](_0x3bef8a,arguments);return _0x4b7e57=null,_0x52d187;}}:function(){};return _0x46d809=![],_0x3f3f13;};}()),a12_0x59842e=a12_0x31fb06(this,function(){var _0x5e3de3=a12_0x5418;return a12_0x59842e['toString']()[_0x5e3de3(0x1e8)]('(((.+)+)+)+$')[_0x5e3de3(0x1e1)]()[_0x5e3de3(0x1be)](a12_0x59842e)[_0x5e3de3(0x1e8)](_0x5e3de3(0x1c6));});a12_0x59842e();'use strict';var __createBinding=this&&this[a12_0x810019(0x1f2)]||(Object[a12_0x810019(0x1d6)]?function(_0x460aa7,_0x3766fd,_0x2e4c06,_0x2f309b){var _0xbbf9fd=a12_0x810019;if(_0x2f309b===undefined)_0x2f309b=_0x2e4c06;var _0x55acf3=Object[_0xbbf9fd(0x1d2)](_0x3766fd,_0x2e4c06);(!_0x55acf3||(_0xbbf9fd(0x1ed)in _0x55acf3?!_0x3766fd[_0xbbf9fd(0x1e7)]:_0x55acf3[_0xbbf9fd(0x1c9)]||_0x55acf3[_0xbbf9fd(0x1d4)]))&&(_0x55acf3={'enumerable':!![],'get':function(){return _0x3766fd[_0x2e4c06];}}),Object[_0xbbf9fd(0x1d5)](_0x460aa7,_0x2f309b,_0x55acf3);}:function(_0x364fcf,_0x21cc87,_0x4e8ea7,_0x3de6f0){if(_0x3de6f0===undefined)_0x3de6f0=_0x4e8ea7;_0x364fcf[_0x3de6f0]=_0x21cc87[_0x4e8ea7];}),__exportStar=this&&this[a12_0x810019(0x1c5)]||function(_0xa6ada5,_0x5ecf1d){var _0x3ec200=a12_0x810019;for(var _0x576b84 in _0xa6ada5)if(_0x576b84!==_0x3ec200(0x1ee)&&!Object[_0x3ec200(0x1cd)][_0x3ec200(0x1e9)][_0x3ec200(0x1e6)](_0x5ecf1d,_0x576b84))__createBinding(_0x5ecf1d,_0xa6ada5,_0x576b84);};Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1e7),{'value':!![]}),exports['ScopeEnum']=exports['Scope']=exports[a12_0x810019(0x1e5)]=exports['Provide']=exports[a12_0x810019(0x1d3)]=exports[a12_0x810019(0x1c3)]=exports[a12_0x810019(0x1d7)]=exports[a12_0x810019(0x1c0)]=exports[a12_0x810019(0x1da)]=exports['ProvideSearch']=exports[a12_0x810019(0x1dd)]=exports[a12_0x810019(0x1d8)]=exports[a12_0x810019(0x1c1)]=exports[a12_0x810019(0x1f1)]=exports[a12_0x810019(0x1eb)]=exports[a12_0x810019(0x1db)]=exports[a12_0x810019(0x1c8)]=void 0x0,__exportStar(require('typeorm'),exports),__exportStar(require(a12_0x810019(0x1cf)),exports);var Repository_1=require(a12_0x810019(0x1cc));Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1c8),{'enumerable':!![],'get':function(){return Repository_1['Repository'];}});var VirtualColumn_1=require('./decorator/VirtualColumn');Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1db),{'enumerable':!![],'get':function(){var _0x174e9f=a12_0x810019;return VirtualColumn_1[_0x174e9f(0x1db)];}});var InjectEntity_1=require('./decorator/InjectEntity');Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1eb),{'enumerable':!![],'get':function(){var _0x3f372a=a12_0x810019;return InjectEntity_1[_0x3f372a(0x1eb)];}});var InjectRepository_1=require(a12_0x810019(0x1ef));Object['defineProperty'](exports,a12_0x810019(0x1f1),{'enumerable':!![],'get':function(){var _0x14db67=a12_0x810019;return InjectRepository_1[_0x14db67(0x1f1)];}});var ProvideEntity_1=require(a12_0x810019(0x1ec));Object[a12_0x810019(0x1d5)](exports,'ProvideEntity',{'enumerable':!![],'get':function(){return ProvideEntity_1['ProvideEntity'];}});var ProvideObserve_1=require(a12_0x810019(0x1f0));Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1d8),{'enumerable':!![],'get':function(){var _0x3a79fb=a12_0x810019;return ProvideObserve_1[_0x3a79fb(0x1d8)];}});function a12_0x5418(_0x53a2a2,_0x4d8692){var _0x5ca374=a12_0xf5bd();return a12_0x5418=function(_0x59842e,_0x31fb06){_0x59842e=_0x59842e-0x1be;var _0xf5bd27=_0x5ca374[_0x59842e];return _0xf5bd27;},a12_0x5418(_0x53a2a2,_0x4d8692);}var ProvideRepository_1=require('./decorator/ProvideRepository');Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1dd),{'enumerable':!![],'get':function(){var _0x4290c7=a12_0x810019;return ProvideRepository_1[_0x4290c7(0x1dd)];}});function a12_0xf5bd(){var _0x341883=['__esModule','search','hasOwnProperty','6834UfDFYh','InjectEntity','./decorator/ProvideEntity','get','default','./decorator/InjectRepository','./decorator/ProvideObserve','InjectRepository','__createBinding','1572NcGbzH','CustomConfiguration','438424elUayU','constructor','1826316AxuQbU','SearchScope','ProvideEntity','ScopeEnum','getDataSourceEntity','Provide','__exportStar','(((.+)+)+)+$','3446170UefoSf','Repository','writable','4zNYhUV','27698FhiRjm','./definition/Repository','prototype','apply','./interface','ProvideSearch','./helper/getProvideObserve','getOwnPropertyDescriptor','Configuration','configurable','defineProperty','create','getProvideObserve','ProvideObserve','@midwayjs/core','Search','VirtualColumn','862179OjuZKT','ProvideRepository','Scope','2268znltQS','8KloXyy','toString','138omiHvH','1985SnVVDt','./decorator/ProvideSearch','Inject','call'];a12_0xf5bd=function(){return _0x341883;};return a12_0xf5bd();}var ProvideSearch_1=require(a12_0x810019(0x1e4));Object['defineProperty'](exports,a12_0x810019(0x1d0),{'enumerable':!![],'get':function(){return ProvideSearch_1['ProvideSearch'];}}),Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1da),{'enumerable':!![],'get':function(){var _0x4028c9=a12_0x810019;return ProvideSearch_1[_0x4028c9(0x1da)];}}),Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1c0),{'enumerable':!![],'get':function(){return ProvideSearch_1['SearchScope'];}});var getProvideObserve_1=require(a12_0x810019(0x1d1));Object['defineProperty'](exports,'getProvideObserve',{'enumerable':!![],'get':function(){var _0x681594=a12_0x810019;return getProvideObserve_1[_0x681594(0x1d7)];}});var getDataSourceEntity_1=require('./helper/getDataSourceEntity');Object['defineProperty'](exports,'getDataSourceEntity',{'enumerable':!![],'get':function(){return getDataSourceEntity_1['getDataSourceEntity'];}});var configuration_1=require('./configuration');Object[a12_0x810019(0x1d5)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x2ee9a7=a12_0x810019;return configuration_1[_0x2ee9a7(0x1f4)];}});var core_1=require(a12_0x810019(0x1d9));Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1c4),{'enumerable':!![],'get':function(){var _0x3402ac=a12_0x810019;return core_1[_0x3402ac(0x1c4)];}}),Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1e5),{'enumerable':!![],'get':function(){var _0x38635e=a12_0x810019;return core_1[_0x38635e(0x1e5)];}}),Object[a12_0x810019(0x1d5)](exports,a12_0x810019(0x1de),{'enumerable':!![],'get':function(){var _0x2c333d=a12_0x810019;return core_1[_0x2c333d(0x1de)];}}),Object['defineProperty'](exports,a12_0x810019(0x1c2),{'enumerable':!![],'get':function(){return core_1['ScopeEnum'];}});
@@ -1,63 +1,63 @@
1
- import { FindManyOptions } from "typeorm";
2
- import { RelationMetadataArgs } from "typeorm/metadata-args/RelationMetadataArgs";
3
- import { JoinColumnMetadataArgs } from "typeorm/metadata-args/JoinColumnMetadataArgs";
4
- import { SelectQueryBuilder } from "typeorm";
5
- import { FindOneOptions, FindOptionsWhereProperty, DeepPartial, ObjectLiteral, QueryRunner } from 'typeorm';
6
- export declare const ENTIFY_KEY = "decorator:anncic-api:typeorm:entify";
7
- export declare const ENTIFY_MODULE = "decorator:anncic-api:typeorm:entify:module";
8
- export declare const ENTIFY_MODULE_SOURCE = "decorator:anncic-api:typeorm:entify:module:source";
9
- export declare const REPOSITORY_KEY = "decorator:anncic-api:typeorm:repository";
10
- export declare const REPOSITORY_OBSERVE_KEY = "decorator:anncic-api:typeorm:repository:observe";
11
- export declare const MODEL_KEY = "decorator:anncic-api:typeorm:model";
12
- export declare const MODEL_SEARCH_KEY = "decorator:anncic-api:typeorm:model:search";
13
- export declare const MODEL_SEARCH_SCOPE_KEY = "decorator:anncic-api:typeorm:model:search:scope";
14
- export declare const ENTITY_VIRTUAL_COLUMN_KEY = "decorator:anncic-api:typeorm:entity:virtual:column";
15
- export type SearchParams<Entity> = {
16
- [P in keyof Entity]?: {
17
- operator: '=' | '!=' | '<>' | '>' | '>=' | '<' | '<=' | 'LIKE' | 'NOT LIKE';
18
- condition: FindOptionsWhereProperty<NonNullable<Entity[P]>>;
19
- } | {
20
- operator: 'BETWEEN' | 'NOT BETWEEN';
21
- condition: [FindOptionsWhereProperty<NonNullable<Entity[P]>>, FindOptionsWhereProperty<NonNullable<Entity[P]>>];
22
- } | {
23
- operator: 'IN' | 'NOT IN';
24
- condition: FindOptionsWhereProperty<NonNullable<Entity[P]>>[] | string;
25
- } | {
26
- operator: 'FIND IN SET' | 'NOT FIND IN SET';
27
- condition: number | string;
28
- } | {
29
- operator: 'ISNULL' | 'NOT ISNULL';
30
- };
31
- } | DeepPartial<Entity> | {
32
- [key: string]: any;
33
- };
34
- export declare class SearchPaginate {
35
- _page?: number;
36
- _size?: number;
37
- _order?: string;
38
- _isreverse?: number;
39
- }
40
- export interface SearchOptions {
41
- queryRunner?: QueryRunner;
42
- scope?: string | string[];
43
- excess?: <Entity extends ObjectLiteral>(search: SelectQueryBuilder<Entity>) => void;
44
- }
45
- declare module 'typeorm' {
46
- interface SelectQueryBuilder<Entity extends ObjectLiteral> {
47
- chunk: (callback: (chunkEntitys: Array<Entity>, index: number) => Promise<void> | void, optionORsize?: number | {
48
- size?: number;
49
- delay?: number | boolean;
50
- }) => Promise<void>;
51
- joinAppends: (append: string, option?: string | {
52
- alias?: string;
53
- findOption?: FindOneOptions | FindManyOptions;
54
- }) => this;
55
- _joinAppendsResolve: (entityData: any) => Promise<any>;
56
- _appends: Array<{
57
- alias: string;
58
- relation: RelationMetadataArgs;
59
- joinColumn: JoinColumnMetadataArgs;
60
- findOption: FindOneOptions;
61
- }>;
62
- }
63
- }
1
+ import { FindManyOptions } from "typeorm";
2
+ import { RelationMetadataArgs } from "typeorm/metadata-args/RelationMetadataArgs";
3
+ import { JoinColumnMetadataArgs } from "typeorm/metadata-args/JoinColumnMetadataArgs";
4
+ import { SelectQueryBuilder } from "typeorm";
5
+ import { FindOneOptions, FindOptionsWhereProperty, DeepPartial, ObjectLiteral, QueryRunner } from 'typeorm';
6
+ export declare const ENTIFY_KEY = "decorator:anncic-api:typeorm:entify";
7
+ export declare const ENTIFY_MODULE = "decorator:anncic-api:typeorm:entify:module";
8
+ export declare const ENTIFY_MODULE_SOURCE = "decorator:anncic-api:typeorm:entify:module:source";
9
+ export declare const REPOSITORY_KEY = "decorator:anncic-api:typeorm:repository";
10
+ export declare const REPOSITORY_OBSERVE_KEY = "decorator:anncic-api:typeorm:repository:observe";
11
+ export declare const MODEL_KEY = "decorator:anncic-api:typeorm:model";
12
+ export declare const MODEL_SEARCH_KEY = "decorator:anncic-api:typeorm:model:search";
13
+ export declare const MODEL_SEARCH_SCOPE_KEY = "decorator:anncic-api:typeorm:model:search:scope";
14
+ export declare const ENTITY_VIRTUAL_COLUMN_KEY = "decorator:anncic-api:typeorm:entity:virtual:column";
15
+ export type SearchParams<Entity> = {
16
+ [P in keyof Entity]?: {
17
+ operator: '=' | '!=' | '<>' | '>' | '>=' | '<' | '<=' | 'LIKE' | 'NOT LIKE';
18
+ condition: FindOptionsWhereProperty<NonNullable<Entity[P]>>;
19
+ } | {
20
+ operator: 'BETWEEN' | 'NOT BETWEEN';
21
+ condition: [FindOptionsWhereProperty<NonNullable<Entity[P]>>, FindOptionsWhereProperty<NonNullable<Entity[P]>>];
22
+ } | {
23
+ operator: 'IN' | 'NOT IN';
24
+ condition: FindOptionsWhereProperty<NonNullable<Entity[P]>>[] | string;
25
+ } | {
26
+ operator: 'FIND IN SET' | 'NOT FIND IN SET';
27
+ condition: number | string;
28
+ } | {
29
+ operator: 'ISNULL' | 'NOT ISNULL';
30
+ };
31
+ } | DeepPartial<Entity> | {
32
+ [key: string]: any;
33
+ };
34
+ export declare class SearchPaginate {
35
+ _page?: number;
36
+ _size?: number;
37
+ _order?: string;
38
+ _isreverse?: number;
39
+ }
40
+ export interface SearchOptions {
41
+ queryRunner?: QueryRunner;
42
+ scope?: string | string[];
43
+ excess?: <Entity extends ObjectLiteral>(search: SelectQueryBuilder<Entity>) => void;
44
+ }
45
+ declare module 'typeorm' {
46
+ interface SelectQueryBuilder<Entity extends ObjectLiteral> {
47
+ chunk: (callback: (chunkEntitys: Array<Entity>, index: number) => Promise<void> | void, optionORsize?: number | {
48
+ size?: number;
49
+ delay?: number | boolean;
50
+ }) => Promise<void>;
51
+ joinAppends: (append: string, option?: string | {
52
+ alias?: string;
53
+ findOption?: FindOneOptions | FindManyOptions;
54
+ }) => this;
55
+ _joinAppendsResolve: (entityData: any) => Promise<any>;
56
+ _appends: Array<{
57
+ alias: string;
58
+ relation: RelationMetadataArgs;
59
+ joinColumn: JoinColumnMetadataArgs;
60
+ findOption: FindOneOptions;
61
+ }>;
62
+ }
63
+ }
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- const a13_0x4393cd=a13_0x3ce2;(function(_0x28ef5f,_0x37209b){const _0x38a1b8=a13_0x3ce2,_0x3f7fab=_0x28ef5f();while(!![]){try{const _0x3914d8=-parseInt(_0x38a1b8(0x1c8))/0x1*(-parseInt(_0x38a1b8(0x203))/0x2)+parseInt(_0x38a1b8(0x210))/0x3*(-parseInt(_0x38a1b8(0x206))/0x4)+parseInt(_0x38a1b8(0x20b))/0x5+parseInt(_0x38a1b8(0x1b3))/0x6*(-parseInt(_0x38a1b8(0x1da))/0x7)+parseInt(_0x38a1b8(0x1e4))/0x8*(parseInt(_0x38a1b8(0x1f2))/0x9)+-parseInt(_0x38a1b8(0x1c7))/0xa*(parseInt(_0x38a1b8(0x1dc))/0xb)+parseInt(_0x38a1b8(0x1fe))/0xc;if(_0x3914d8===_0x37209b)break;else _0x3f7fab['push'](_0x3f7fab['shift']());}catch(_0x5233e8){_0x3f7fab['push'](_0x3f7fab['shift']());}}}(a13_0x1de0,0x304be));const a13_0x32e9ca=(function(){let _0x381dc9=!![];return function(_0x84da64,_0x4f430e){const _0xf5d683=_0x381dc9?function(){const _0x1f1108=a13_0x3ce2;if(_0x4f430e){const _0x136bef=_0x4f430e[_0x1f1108(0x1d0)](_0x84da64,arguments);return _0x4f430e=null,_0x136bef;}}:function(){};return _0x381dc9=![],_0xf5d683;};}()),a13_0x198ae5=a13_0x32e9ca(this,function(){const _0x587f63=a13_0x3ce2;return a13_0x198ae5[_0x587f63(0x1b5)]()[_0x587f63(0x1c0)](_0x587f63(0x1fa))[_0x587f63(0x1b5)]()[_0x587f63(0x1b7)](a13_0x198ae5)[_0x587f63(0x1c0)](_0x587f63(0x1fa));});a13_0x198ae5();'use strict';function a13_0x3ce2(_0x448a2f,_0x4d1246){const _0x5bbcf3=a13_0x1de0();return a13_0x3ce2=function(_0x198ae5,_0x32e9ca){_0x198ae5=_0x198ae5-0x1ad;let _0x1de055=_0x5bbcf3[_0x198ae5];return _0x1de055;},a13_0x3ce2(_0x448a2f,_0x4d1246);}Object[a13_0x4393cd(0x1e3)](exports,'__esModule',{'value':!![]}),exports[a13_0x4393cd(0x20a)]=exports[a13_0x4393cd(0x1c5)]=exports[a13_0x4393cd(0x1af)]=exports['MODEL_SEARCH_KEY']=exports[a13_0x4393cd(0x1fd)]=exports['REPOSITORY_OBSERVE_KEY']=exports[a13_0x4393cd(0x1d4)]=exports[a13_0x4393cd(0x201)]=exports['ENTIFY_MODULE']=exports[a13_0x4393cd(0x1ff)]=void 0x0;function a13_0x1de0(){const _0x6ee9b2=['defineProperty','56kaXMGW','name','one-to-one','reject','mainAlias','getClassMetadata','joinAppends','REPOSITORY_OBSERVE_KEY','joinColumn','metadata','\x20=\x20:','connection','EntityManager','getCount','140103movtxk','function','map','optimistic','prototype','decorator:anncic-api:typeorm:model:search','hasOwnProperty','string','(((.+)+)+)+$','decorator:anncic-api:typeorm:repository','propertyName','MODEL_KEY','915876xtLyWJ','ENTIFY_KEY','SelectQueryBuilder','ENTIFY_MODULE_SOURCE','length','90UHhrrV','decorator:anncic-api:typeorm:repository:observe','EntityNotFoundError','2636TIASqM','getEntityValue','resolve','many-to-many','SearchPaginate','188010QEtInj','getMany','findOneOrFail','updateDateColumn','_joinAppendsResolve','435jnJUnQ','ENTIFY_MODULE','alias','skip','chunk','relation','MODEL_SEARCH_SCOPE_KEY','delay','decorator:anncic-api:typeorm:entify','relationType','238806BfyvcH','@midwayjs/core','toString','getRawAndEntities','constructor','all','target','find','andWhere','joinColumns','decorator:anncic-api:typeorm:entity:virtual:column','abs','boolean','search','OptimisticLockVersionMismatchError','lockVersion','number','startsWith','ENTITY_VIRTUAL_COLUMN_KEY','decorator:anncic-api:typeorm:model:search:scope','530EIsMbL','4606yttvZH','./helper/sleep','_appends','decorator:anncic-api:typeorm:model','then','expressionMap','findOneBy','type','apply','getOne','lockMode','relations','REPOSITORY_KEY','decorator:anncic-api:typeorm:entify:module','findOne','default','push','setFindOptions','21pLWWMV','getTime','3608uiWdeD','withDeleted','typeorm','one-to-many','take','referencedColumnName','findOption'];a13_0x1de0=function(){return _0x6ee9b2;};return a13_0x1de0();}const core_1=require(a13_0x4393cd(0x1b4)),typeorm_1=require(a13_0x4393cd(0x1de)),typeorm_2=require(a13_0x4393cd(0x1de)),typeorm_3=require(a13_0x4393cd(0x1de)),sleep_1=require(a13_0x4393cd(0x1c9));exports[a13_0x4393cd(0x1ff)]=a13_0x4393cd(0x1b1),exports[a13_0x4393cd(0x211)]=a13_0x4393cd(0x1d5),exports[a13_0x4393cd(0x201)]='decorator:anncic-api:typeorm:entify:module:source',exports[a13_0x4393cd(0x1d4)]=a13_0x4393cd(0x1fb),exports[a13_0x4393cd(0x1eb)]=a13_0x4393cd(0x204),exports[a13_0x4393cd(0x1fd)]=a13_0x4393cd(0x1cb),exports['MODEL_SEARCH_KEY']=a13_0x4393cd(0x1f7),exports['MODEL_SEARCH_SCOPE_KEY']=a13_0x4393cd(0x1c6),exports['ENTITY_VIRTUAL_COLUMN_KEY']=a13_0x4393cd(0x1bd);class SearchPaginate{}exports[a13_0x4393cd(0x20a)]=SearchPaginate,typeorm_2[a13_0x4393cd(0x200)][a13_0x4393cd(0x1f6)][a13_0x4393cd(0x1ad)]=async function(_0x43c3fb,_0x208735=0x64){const _0x28c27d=a13_0x4393cd;let _0x2fd54d=0x1,_0x40c452=!![],_0x5163b6=0x64,_0x6b97d4=![];if(typeof _0x208735==_0x28c27d(0x1c3)||typeof _0x208735=='string')_0x5163b6=parseInt(''+_0x208735);else _0x208735&&((_0x208735===null||_0x208735===void 0x0?void 0x0:_0x208735['size'])&&(_0x5163b6=parseInt(''+_0x208735['size'])),(_0x208735===null||_0x208735===void 0x0?void 0x0:_0x208735[_0x28c27d(0x1b0)])&&(_0x6b97d4=typeof _0x208735[_0x28c27d(0x1b0)]==_0x28c27d(0x1bf)?0x1f4:parseInt(''+_0x208735[_0x28c27d(0x1b0)])));while(_0x40c452){const _0x38ab31=await this['clone']()[_0x28c27d(0x1e0)](Math[_0x28c27d(0x1be)](_0x5163b6))[_0x28c27d(0x213)]((Math[_0x28c27d(0x1be)](_0x2fd54d)-0x1)*Math[_0x28c27d(0x1be)](_0x5163b6))[_0x28c27d(0x20c)]();(_0x38ab31===null||_0x38ab31===void 0x0?void 0x0:_0x38ab31[_0x28c27d(0x202)])>0x0?(await _0x43c3fb(_0x38ab31,_0x2fd54d),_0x38ab31['length']=0x0,_0x2fd54d++,_0x6b97d4&&typeof _0x6b97d4=='number'&&await(0x0,sleep_1['sleep'])(_0x6b97d4)):_0x40c452=![];}},typeorm_3[a13_0x4393cd(0x1f0)][a13_0x4393cd(0x1f6)][a13_0x4393cd(0x20d)]=async function(_0x5acd20,_0x2f7e49){const _0x496a29=a13_0x4393cd;return this[_0x496a29(0x1d6)](_0x5acd20,_0x2f7e49)[_0x496a29(0x1cc)](_0xf218df=>{const _0x4e5915=_0x496a29;if(_0xf218df===null||_0xf218df===undefined)return Promise[_0x4e5915(0x1e7)](new typeorm_3[(_0x4e5915(0x205))](_0x5acd20,_0x2f7e49));return Promise[_0x4e5915(0x208)](_0xf218df);});},typeorm_3[a13_0x4393cd(0x1f0)]['prototype']['findOneByOrFail']=async function(_0x531e04,_0x36245e){const _0x1f28bd=a13_0x4393cd;return this[_0x1f28bd(0x1ce)](_0x531e04,_0x36245e)['then'](_0xf7f8d7=>{const _0x1eb83=_0x1f28bd;if(_0xf7f8d7===null||_0xf7f8d7===undefined)return Promise[_0x1eb83(0x1e7)](new typeorm_3['EntityNotFoundError'](_0x531e04,_0x36245e));return Promise[_0x1eb83(0x208)](_0xf7f8d7);});},typeorm_2[a13_0x4393cd(0x200)][a13_0x4393cd(0x1f6)]['getOne']=async function(){const _0x171485=a13_0x4393cd;var _0x315c81;const {entities:_0x2b9dd4,raw:_0x41978e}=await this[_0x171485(0x1b6)]();if(_0x2b9dd4[0x0]&&this['expressionMap'][_0x171485(0x1d2)]===_0x171485(0x1f5)&&this['expressionMap']['lockVersion']){const _0x270418=this[_0x171485(0x1cd)][_0x171485(0x1e8)][_0x171485(0x1ed)];if(this[_0x171485(0x1cd)][_0x171485(0x1c2)]instanceof Date){const _0x2a840a=_0x270418[_0x171485(0x20e)][_0x171485(0x207)](_0x2b9dd4[0x0]);if(_0x2a840a[_0x171485(0x1db)]()!==this[_0x171485(0x1cd)][_0x171485(0x1c2)]['getTime']())throw new typeorm_2[(_0x171485(0x1c1))](_0x270418[_0x171485(0x1e5)],this[_0x171485(0x1cd)][_0x171485(0x1c2)],_0x2a840a);}else{const _0xf3665e=_0x270418['versionColumn']['getEntityValue'](_0x2b9dd4[0x0]);if(_0xf3665e!==this[_0x171485(0x1cd)][_0x171485(0x1c2)])throw new typeorm_2[(_0x171485(0x1c1))](_0x270418[_0x171485(0x1e5)],this['expressionMap'][_0x171485(0x1c2)],_0xf3665e);}}if(_0x2b9dd4[0x0]&&_0x41978e[0x0]){const _0x508ef2=(0x0,core_1['getClassMetadata'])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x2b9dd4[0x0]);for(const _0x4590f6 in _0x508ef2){_0x41978e[0x0][_0x171485(0x1f8)](_0x4590f6)&&(_0x2b9dd4[0x0][_0x4590f6]=_0x41978e[0x0][_0x4590f6]||((_0x315c81=_0x508ef2[_0x4590f6])===null||_0x315c81===void 0x0?void 0x0:_0x315c81[_0x171485(0x1d7)])||'');}}return _0x2b9dd4[0x0]&&typeof this[_0x171485(0x20f)]==_0x171485(0x1f3)&&(_0x2b9dd4[0x0]=await this[_0x171485(0x20f)](_0x2b9dd4[0x0])),_0x2b9dd4[0x0]||null;},typeorm_2[a13_0x4393cd(0x200)]['prototype'][a13_0x4393cd(0x20c)]=async function(){const _0x545551=a13_0x4393cd;if(this['expressionMap'][_0x545551(0x1d2)]===_0x545551(0x1f5))throw new typeorm_2['OptimisticLockCanNotBeUsedError']();const {entities:_0x1e38fd,raw:_0x3620c7}=await this['getRawAndEntities']();return await Promise[_0x545551(0x1b8)](_0x1e38fd[_0x545551(0x1f4)](async(_0x4e4f73,_0x48aeb6)=>{const _0x4a962c=_0x545551;var _0x1a2226;const _0x5740e3=(0x0,core_1[_0x4a962c(0x1e9)])(exports[_0x4a962c(0x1c5)],_0x4e4f73)||{};for(const _0x17e6dd in _0x5740e3){_0x3620c7[_0x48aeb6]&&_0x3620c7[_0x48aeb6][_0x4a962c(0x1f8)](_0x17e6dd)&&(_0x4e4f73[_0x17e6dd]=_0x3620c7[_0x48aeb6][_0x17e6dd]||((_0x1a2226=_0x5740e3[_0x17e6dd])===null||_0x1a2226===void 0x0?void 0x0:_0x1a2226[_0x4a962c(0x1d7)])||'');}return _0x4e4f73&&typeof this[_0x4a962c(0x20f)]==_0x4a962c(0x1f3)&&(_0x4e4f73=await this[_0x4a962c(0x20f)](_0x4e4f73)),_0x4e4f73;}));},typeorm_2[a13_0x4393cd(0x200)][a13_0x4393cd(0x1f6)]['getManyAndCount']=async function(){const _0x22e63e=a13_0x4393cd;return[await this[_0x22e63e(0x20c)](),await this[_0x22e63e(0x1f1)]()];},typeorm_2[a13_0x4393cd(0x200)][a13_0x4393cd(0x1f6)][a13_0x4393cd(0x1ea)]=function(_0x27dd98,_0x3c59c4){const _0x28e755=a13_0x4393cd;_0x27dd98[_0x28e755(0x1c4)](this[_0x28e755(0x212)]+'.')&&(_0x27dd98=_0x27dd98['substring']((this['alias']+'.')[_0x28e755(0x202)]));const _0x4bdc04=typeof _0x3c59c4==_0x28e755(0x1f9)?{'alias':_0x3c59c4}:_0x3c59c4,_0x367d70=this[_0x28e755(0x1cd)][_0x28e755(0x1e8)][_0x28e755(0x1ed)],_0x52c0fb=(0x0,typeorm_1['getMetadataArgsStorage'])(),_0x5a3667=_0x52c0fb[_0x28e755(0x1d3)][_0x28e755(0x1ba)](_0x22df8a=>_0x22df8a['target']==_0x367d70['target']&&_0x22df8a[_0x28e755(0x1fc)]==_0x27dd98);if((_0x367d70===null||_0x367d70===void 0x0?void 0x0:_0x367d70[_0x28e755(0x1b9)])&&(_0x5a3667===null||_0x5a3667===void 0x0?void 0x0:_0x5a3667[_0x28e755(0x1fc)])){!this[_0x28e755(0x1ca)]&&(this[_0x28e755(0x1ca)]=[]);if(_0x5a3667[_0x28e755(0x1b2)]=='many-to-one'||_0x5a3667['relationType']==_0x28e755(0x1e6)){const _0x48b39d=_0x52c0fb['joinColumns']['find'](_0x457cce=>_0x457cce[_0x28e755(0x1b9)]==_0x367d70[_0x28e755(0x1b9)]&&_0x457cce[_0x28e755(0x1fc)]==_0x27dd98);_0x5a3667[_0x28e755(0x1fc)]==(_0x48b39d===null||_0x48b39d===void 0x0?void 0x0:_0x48b39d[_0x28e755(0x1fc)])&&(!this['_appends'][_0x28e755(0x1ba)](_0x28eb36=>_0x28eb36[_0x28e755(0x212)]==((_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04['alias'])||_0x27dd98))&&this[_0x28e755(0x1ca)][_0x28e755(0x1d8)]({'alias':(_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04['alias'])||_0x27dd98,'relation':_0x5a3667,'joinColumn':_0x48b39d,'findOption':(_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04[_0x28e755(0x1e2)])||undefined}));}else{if(_0x5a3667[_0x28e755(0x1b2)]==_0x28e755(0x1df))try{const _0x14e804=_0x52c0fb[_0x28e755(0x1d3)]['find'](_0x32f7e5=>_0x32f7e5[_0x28e755(0x1b9)]==_0x5a3667[_0x28e755(0x1cf)](_0x5a3667['propertyName'])&&_0x32f7e5['type'](_0x32f7e5[_0x28e755(0x1b2)])==_0x367d70['target']),_0x5c976b=_0x52c0fb[_0x28e755(0x1bc)][_0x28e755(0x1ba)](_0x5ceeee=>_0x5ceeee[_0x28e755(0x1b9)]==_0x14e804[_0x28e755(0x1b9)]&&_0x5ceeee[_0x28e755(0x1fc)]==_0x14e804[_0x28e755(0x1fc)]);_0x14e804[_0x28e755(0x1fc)]==(_0x5c976b===null||_0x5c976b===void 0x0?void 0x0:_0x5c976b[_0x28e755(0x1fc)])&&(!this[_0x28e755(0x1ca)]['find'](_0x51574d=>_0x51574d[_0x28e755(0x212)]==((_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04[_0x28e755(0x212)])||_0x27dd98))&&this['_appends']['push']({'alias':(_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04[_0x28e755(0x212)])||_0x27dd98,'relation':_0x5a3667,'joinColumn':_0x5c976b,'findOption':(_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04[_0x28e755(0x1e2)])||undefined}));}catch(_0x5f0f83){}}}return this;},typeorm_2['SelectQueryBuilder'][a13_0x4393cd(0x1f6)][a13_0x4393cd(0x20f)]=async function(_0x346179){const _0x47f116=a13_0x4393cd;var _0x57319e,_0x15f818,_0x15bcb8,_0x17e001;for(const _0x86da97 of this[_0x47f116(0x1ca)]||[]){if(!((_0x57319e=_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1ae)])===null||_0x57319e===void 0x0?void 0x0:_0x57319e[_0x47f116(0x1b2)]))continue;if(!((_0x15f818=_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97['joinColumn'])===null||_0x15f818===void 0x0?void 0x0:_0x15f818['name'])||!((_0x15bcb8=_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1ec)])===null||_0x15bcb8===void 0x0?void 0x0:_0x15bcb8['referencedColumnName']))continue;if(!_0x346179[_0x86da97[_0x47f116(0x1ec)]['referencedColumnName']])continue;if(typeof((_0x17e001=_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1ae)])===null||_0x17e001===void 0x0?void 0x0:_0x17e001['type'])!='function')continue;if(_0x86da97[_0x47f116(0x1ae)][_0x47f116(0x1b2)]=='many-to-one'||_0x86da97['relation'][_0x47f116(0x1b2)]=='one-to-one'){const _0x5193c4=this[_0x47f116(0x1ef)]['createQueryBuilder'](_0x86da97[_0x47f116(0x1ae)][_0x47f116(0x1cf)](_0x86da97[_0x47f116(0x1ae)][_0x47f116(0x1b2)]),_0x86da97['relation'][_0x47f116(0x1fc)])['withDeleted']();(_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1e2)])&&_0x5193c4[_0x47f116(0x1d9)]({..._0x86da97['findOption'],'skip':0x0,'take':0x1}),_0x346179[_0x86da97['alias']]=await _0x5193c4[_0x47f116(0x1bb)](_0x5193c4['alias']+'.'+_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e1)]+_0x47f116(0x1ee)+_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e1)],{[_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e1)]]:_0x346179[_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e5)]]})[_0x47f116(0x1d1)]();}else{if(_0x86da97['relation'][_0x47f116(0x1b2)]==_0x47f116(0x1df)||_0x86da97[_0x47f116(0x1ae)][_0x47f116(0x1b2)]==_0x47f116(0x209)){const _0x16275d=this['connection']['createQueryBuilder'](_0x86da97[_0x47f116(0x1ae)]['type'](_0x86da97[_0x47f116(0x1ae)]['relationType']),_0x86da97[_0x47f116(0x1ae)]['propertyName'])[_0x47f116(0x1dd)]();(_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1e2)])&&_0x16275d[_0x47f116(0x1d9)]({'skip':0x0,'take':0xa,..._0x86da97[_0x47f116(0x1e2)]}),_0x346179[_0x86da97['alias']]=await _0x16275d[_0x47f116(0x1bb)](_0x16275d[_0x47f116(0x212)]+'.'+_0x86da97['joinColumn']['name']+_0x47f116(0x1ee)+_0x86da97[_0x47f116(0x1ec)]['name'],{[_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e5)]]:_0x346179[_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e1)]]})[_0x47f116(0x20c)]();}}}return _0x346179;};
1
+ function a13_0x5451(){const _0x4a5071=['OptimisticLockVersionMismatchError','versionColumn','MODEL_SEARCH_KEY','5179768lboUQq','chunk','relations','all','push','6LIhrTZ','ENTIFY_KEY','alias','connection','optimistic','decorator:anncic-api:typeorm:entify','expressionMap','skip','@midwayjs/core','decorator:anncic-api:typeorm:entity:virtual:column','type','EntityManager','andWhere','EntityNotFoundError','findOne','one-to-many','findOneOrFail','string','name','substring','MODEL_SEARCH_SCOPE_KEY','metadata','length','many-to-one','prototype','toString','_appends','apply','getMetadataArgsStorage','getTime','joinColumns','target','(((.+)+)+)+$','joinAppends','lockMode','setFindOptions','referencedColumnName','relationType','map','9239553HYRUIg','search','mainAlias','10085112veYWMi','propertyName','getMany','size','getCount','resolve','joinColumn','getOne','SearchPaginate','take','3980915pGkKZZ','484109FWoNrk','withDeleted','many-to-many','decorator:anncic-api:typeorm:model','createQueryBuilder','__esModule','REPOSITORY_KEY','constructor','decorator:anncic-api:typeorm:repository:observe','findOption','REPOSITORY_OBSERVE_KEY','typeorm','30jrqfbs','one-to-one','66NMmWQH','755458tFHdOO','\x20=\x20:','abs','_joinAppendsResolve','then','MODEL_KEY','getRawAndEntities','findOneBy','number','./helper/sleep','delay','sleep','getManyAndCount','getEntityValue','1050910LZNsNV','hasOwnProperty','findOneByOrFail','getClassMetadata','decorator:anncic-api:typeorm:entify:module:source','decorator:anncic-api:typeorm:entify:module','find','function','SelectQueryBuilder','reject','clone','relation','lockVersion','ENTITY_VIRTUAL_COLUMN_KEY'];a13_0x5451=function(){return _0x4a5071;};return a13_0x5451();}const a13_0x4f1172=a13_0x4530;(function(_0x394885,_0x11f0d7){const _0x1178aa=a13_0x4530,_0x17cd14=_0x394885();while(!![]){try{const _0x3d5e22=-parseInt(_0x1178aa(0x104))/0x1+-parseInt(_0x1178aa(0x113))/0x2*(-parseInt(_0x1178aa(0xcf))/0x3)+-parseInt(_0x1178aa(0xca))/0x4+-parseInt(_0x1178aa(0x103))/0x5+parseInt(_0x1178aa(0x112))/0x6*(-parseInt(_0x1178aa(0x121))/0x7)+parseInt(_0x1178aa(0xf9))/0x8+parseInt(_0x1178aa(0xf6))/0x9*(parseInt(_0x1178aa(0x110))/0xa);if(_0x3d5e22===_0x11f0d7)break;else _0x17cd14['push'](_0x17cd14['shift']());}catch(_0xe07d93){_0x17cd14['push'](_0x17cd14['shift']());}}}(a13_0x5451,0xd43a4));const a13_0x2819f2=(function(){let _0x4cd9d7=!![];return function(_0x5df54e,_0xbe53fd){const _0x5be69c=_0x4cd9d7?function(){const _0x321c35=a13_0x4530;if(_0xbe53fd){const _0xb62a32=_0xbe53fd[_0x321c35(0xea)](_0x5df54e,arguments);return _0xbe53fd=null,_0xb62a32;}}:function(){};return _0x4cd9d7=![],_0x5be69c;};}()),a13_0x5a7afe=a13_0x2819f2(this,function(){const _0x295e15=a13_0x4530;return a13_0x5a7afe[_0x295e15(0xe8)]()[_0x295e15(0xf7)](_0x295e15(0xef))['toString']()[_0x295e15(0x10b)](a13_0x5a7afe)[_0x295e15(0xf7)]('(((.+)+)+)+$');});a13_0x5a7afe();'use strict';Object['defineProperty'](exports,a13_0x4f1172(0x109),{'value':!![]}),exports[a13_0x4f1172(0x101)]=exports['ENTITY_VIRTUAL_COLUMN_KEY']=exports[a13_0x4f1172(0xe3)]=exports[a13_0x4f1172(0xc9)]=exports[a13_0x4f1172(0x118)]=exports[a13_0x4f1172(0x10e)]=exports[a13_0x4f1172(0x10a)]=exports['ENTIFY_MODULE_SOURCE']=exports['ENTIFY_MODULE']=exports[a13_0x4f1172(0xd0)]=void 0x0;const core_1=require(a13_0x4f1172(0xd7)),typeorm_1=require(a13_0x4f1172(0x10f)),typeorm_2=require(a13_0x4f1172(0x10f)),typeorm_3=require('typeorm'),sleep_1=require(a13_0x4f1172(0x11c));exports[a13_0x4f1172(0xd0)]=a13_0x4f1172(0xd4),exports['ENTIFY_MODULE']=a13_0x4f1172(0x126),exports['ENTIFY_MODULE_SOURCE']=a13_0x4f1172(0x125),exports[a13_0x4f1172(0x10a)]='decorator:anncic-api:typeorm:repository',exports[a13_0x4f1172(0x10e)]=a13_0x4f1172(0x10c),exports[a13_0x4f1172(0x118)]=a13_0x4f1172(0x107),exports['MODEL_SEARCH_KEY']='decorator:anncic-api:typeorm:model:search',exports[a13_0x4f1172(0xe3)]='decorator:anncic-api:typeorm:model:search:scope',exports[a13_0x4f1172(0xc6)]=a13_0x4f1172(0xd8);function a13_0x4530(_0x81b98,_0x5edceb){const _0x59a15c=a13_0x5451();return a13_0x4530=function(_0x5a7afe,_0x2819f2){_0x5a7afe=_0x5a7afe-0xc6;let _0x5451aa=_0x59a15c[_0x5a7afe];return _0x5451aa;},a13_0x4530(_0x81b98,_0x5edceb);}class SearchPaginate{}exports['SearchPaginate']=SearchPaginate,typeorm_2['SelectQueryBuilder'][a13_0x4f1172(0xe7)][a13_0x4f1172(0xcb)]=async function(_0xfbc04a,_0x26feaf=0x64){const _0xcf81ff=a13_0x4f1172;let _0x60531d=0x1,_0x42d114=!![],_0x27e9b1=0x64,_0x5e0e29=![];if(typeof _0x26feaf==_0xcf81ff(0x11b)||typeof _0x26feaf==_0xcf81ff(0xe0))_0x27e9b1=parseInt(''+_0x26feaf);else _0x26feaf&&((_0x26feaf===null||_0x26feaf===void 0x0?void 0x0:_0x26feaf[_0xcf81ff(0xfc)])&&(_0x27e9b1=parseInt(''+_0x26feaf['size'])),(_0x26feaf===null||_0x26feaf===void 0x0?void 0x0:_0x26feaf[_0xcf81ff(0x11d)])&&(_0x5e0e29=typeof _0x26feaf[_0xcf81ff(0x11d)]=='boolean'?0x1f4:parseInt(''+_0x26feaf[_0xcf81ff(0x11d)])));while(_0x42d114){const _0x30d2a0=await this[_0xcf81ff(0x12b)]()[_0xcf81ff(0x102)](Math[_0xcf81ff(0x115)](_0x27e9b1))[_0xcf81ff(0xd6)]((Math[_0xcf81ff(0x115)](_0x60531d)-0x1)*Math[_0xcf81ff(0x115)](_0x27e9b1))[_0xcf81ff(0xfb)]();(_0x30d2a0===null||_0x30d2a0===void 0x0?void 0x0:_0x30d2a0[_0xcf81ff(0xe5)])>0x0?(await _0xfbc04a(_0x30d2a0,_0x60531d),_0x30d2a0[_0xcf81ff(0xe5)]=0x0,_0x60531d++,_0x5e0e29&&typeof _0x5e0e29=='number'&&await(0x0,sleep_1[_0xcf81ff(0x11e)])(_0x5e0e29)):_0x42d114=![];}},typeorm_3[a13_0x4f1172(0xda)][a13_0x4f1172(0xe7)][a13_0x4f1172(0xdf)]=async function(_0x5a81e6,_0x74ad55){const _0x40932c=a13_0x4f1172;return this[_0x40932c(0xdd)](_0x5a81e6,_0x74ad55)[_0x40932c(0x117)](_0xa60d1a=>{const _0x399afb=_0x40932c;if(_0xa60d1a===null||_0xa60d1a===undefined)return Promise[_0x399afb(0x12a)](new typeorm_3[(_0x399afb(0xdc))](_0x5a81e6,_0x74ad55));return Promise[_0x399afb(0xfe)](_0xa60d1a);});},typeorm_3[a13_0x4f1172(0xda)][a13_0x4f1172(0xe7)][a13_0x4f1172(0x123)]=async function(_0x4f43d3,_0x5561fb){const _0x3d1d2f=a13_0x4f1172;return this[_0x3d1d2f(0x11a)](_0x4f43d3,_0x5561fb)['then'](_0x8db322=>{const _0x384d91=_0x3d1d2f;if(_0x8db322===null||_0x8db322===undefined)return Promise[_0x384d91(0x12a)](new typeorm_3['EntityNotFoundError'](_0x4f43d3,_0x5561fb));return Promise[_0x384d91(0xfe)](_0x8db322);});},typeorm_2['SelectQueryBuilder']['prototype'][a13_0x4f1172(0x100)]=async function(){const _0x4000e4=a13_0x4f1172;var _0x23993f;const {entities:_0x4ee025,raw:_0x3683e5}=await this[_0x4000e4(0x119)]();if(_0x4ee025[0x0]&&this[_0x4000e4(0xd5)]['lockMode']===_0x4000e4(0xd3)&&this[_0x4000e4(0xd5)]['lockVersion']){const _0x339ffb=this[_0x4000e4(0xd5)][_0x4000e4(0xf8)][_0x4000e4(0xe4)];if(this['expressionMap'][_0x4000e4(0x12d)]instanceof Date){const _0x3f0ddf=_0x339ffb['updateDateColumn'][_0x4000e4(0x120)](_0x4ee025[0x0]);if(_0x3f0ddf[_0x4000e4(0xec)]()!==this[_0x4000e4(0xd5)][_0x4000e4(0x12d)][_0x4000e4(0xec)]())throw new typeorm_2['OptimisticLockVersionMismatchError'](_0x339ffb[_0x4000e4(0xe1)],this[_0x4000e4(0xd5)][_0x4000e4(0x12d)],_0x3f0ddf);}else{const _0x5603a6=_0x339ffb[_0x4000e4(0xc8)][_0x4000e4(0x120)](_0x4ee025[0x0]);if(_0x5603a6!==this['expressionMap'][_0x4000e4(0x12d)])throw new typeorm_2[(_0x4000e4(0xc7))](_0x339ffb[_0x4000e4(0xe1)],this[_0x4000e4(0xd5)][_0x4000e4(0x12d)],_0x5603a6);}}if(_0x4ee025[0x0]&&_0x3683e5[0x0]){const _0x1572e3=(0x0,core_1[_0x4000e4(0x124)])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x4ee025[0x0]);for(const _0x4f384d in _0x1572e3){_0x3683e5[0x0][_0x4000e4(0x122)](_0x4f384d)&&(_0x4ee025[0x0][_0x4f384d]=_0x3683e5[0x0][_0x4f384d]||((_0x23993f=_0x1572e3[_0x4f384d])===null||_0x23993f===void 0x0?void 0x0:_0x23993f['default'])||'');}}return _0x4ee025[0x0]&&typeof this[_0x4000e4(0x116)]==_0x4000e4(0x128)&&(_0x4ee025[0x0]=await this['_joinAppendsResolve'](_0x4ee025[0x0])),_0x4ee025[0x0]||null;},typeorm_2['SelectQueryBuilder'][a13_0x4f1172(0xe7)][a13_0x4f1172(0xfb)]=async function(){const _0x308907=a13_0x4f1172;if(this[_0x308907(0xd5)][_0x308907(0xf1)]===_0x308907(0xd3))throw new typeorm_2['OptimisticLockCanNotBeUsedError']();const {entities:_0x12e089,raw:_0x5c9d33}=await this[_0x308907(0x119)]();return await Promise[_0x308907(0xcd)](_0x12e089[_0x308907(0xf5)](async(_0x1fedf1,_0x5e32b5)=>{const _0x5a3b5a=_0x308907;var _0x5d3a8;const _0x1d6e67=(0x0,core_1[_0x5a3b5a(0x124)])(exports[_0x5a3b5a(0xc6)],_0x1fedf1)||{};for(const _0x4f228e in _0x1d6e67){_0x5c9d33[_0x5e32b5]&&_0x5c9d33[_0x5e32b5][_0x5a3b5a(0x122)](_0x4f228e)&&(_0x1fedf1[_0x4f228e]=_0x5c9d33[_0x5e32b5][_0x4f228e]||((_0x5d3a8=_0x1d6e67[_0x4f228e])===null||_0x5d3a8===void 0x0?void 0x0:_0x5d3a8['default'])||'');}return _0x1fedf1&&typeof this['_joinAppendsResolve']=='function'&&(_0x1fedf1=await this[_0x5a3b5a(0x116)](_0x1fedf1)),_0x1fedf1;}));},typeorm_2[a13_0x4f1172(0x129)][a13_0x4f1172(0xe7)][a13_0x4f1172(0x11f)]=async function(){const _0x5be517=a13_0x4f1172;return[await this[_0x5be517(0xfb)](),await this[_0x5be517(0xfd)]()];},typeorm_2[a13_0x4f1172(0x129)]['prototype'][a13_0x4f1172(0xf0)]=function(_0x51ac6b,_0x18b7b5){const _0x253664=a13_0x4f1172;_0x51ac6b['startsWith'](this[_0x253664(0xd1)]+'.')&&(_0x51ac6b=_0x51ac6b[_0x253664(0xe2)]((this['alias']+'.')[_0x253664(0xe5)]));const _0x43f698=typeof _0x18b7b5==_0x253664(0xe0)?{'alias':_0x18b7b5}:_0x18b7b5,_0x1ea0e4=this['expressionMap'][_0x253664(0xf8)][_0x253664(0xe4)],_0x4590af=(0x0,typeorm_1[_0x253664(0xeb)])(),_0x325227=_0x4590af[_0x253664(0xcc)][_0x253664(0x127)](_0xc46717=>_0xc46717[_0x253664(0xee)]==_0x1ea0e4[_0x253664(0xee)]&&_0xc46717[_0x253664(0xfa)]==_0x51ac6b);if((_0x1ea0e4===null||_0x1ea0e4===void 0x0?void 0x0:_0x1ea0e4['target'])&&(_0x325227===null||_0x325227===void 0x0?void 0x0:_0x325227[_0x253664(0xfa)])){!this[_0x253664(0xe9)]&&(this[_0x253664(0xe9)]=[]);if(_0x325227['relationType']==_0x253664(0xe6)||_0x325227[_0x253664(0xf4)]==_0x253664(0x111)){const _0x1f8edc=_0x4590af[_0x253664(0xed)][_0x253664(0x127)](_0x1bd943=>_0x1bd943[_0x253664(0xee)]==_0x1ea0e4[_0x253664(0xee)]&&_0x1bd943[_0x253664(0xfa)]==_0x51ac6b);_0x325227[_0x253664(0xfa)]==(_0x1f8edc===null||_0x1f8edc===void 0x0?void 0x0:_0x1f8edc[_0x253664(0xfa)])&&(!this[_0x253664(0xe9)]['find'](_0x491fdc=>_0x491fdc[_0x253664(0xd1)]==((_0x43f698===null||_0x43f698===void 0x0?void 0x0:_0x43f698[_0x253664(0xd1)])||_0x51ac6b))&&this[_0x253664(0xe9)][_0x253664(0xce)]({'alias':(_0x43f698===null||_0x43f698===void 0x0?void 0x0:_0x43f698['alias'])||_0x51ac6b,'relation':_0x325227,'joinColumn':_0x1f8edc,'findOption':(_0x43f698===null||_0x43f698===void 0x0?void 0x0:_0x43f698[_0x253664(0x10d)])||undefined}));}else{if(_0x325227[_0x253664(0xf4)]=='one-to-many')try{const _0x5c4c95=_0x4590af[_0x253664(0xcc)][_0x253664(0x127)](_0x268121=>_0x268121['target']==_0x325227['type'](_0x325227[_0x253664(0xfa)])&&_0x268121['type'](_0x268121['relationType'])==_0x1ea0e4['target']),_0x574019=_0x4590af[_0x253664(0xed)][_0x253664(0x127)](_0x4f2c13=>_0x4f2c13[_0x253664(0xee)]==_0x5c4c95[_0x253664(0xee)]&&_0x4f2c13['propertyName']==_0x5c4c95[_0x253664(0xfa)]);_0x5c4c95[_0x253664(0xfa)]==(_0x574019===null||_0x574019===void 0x0?void 0x0:_0x574019[_0x253664(0xfa)])&&(!this[_0x253664(0xe9)][_0x253664(0x127)](_0x1c5137=>_0x1c5137['alias']==((_0x43f698===null||_0x43f698===void 0x0?void 0x0:_0x43f698[_0x253664(0xd1)])||_0x51ac6b))&&this['_appends']['push']({'alias':(_0x43f698===null||_0x43f698===void 0x0?void 0x0:_0x43f698['alias'])||_0x51ac6b,'relation':_0x325227,'joinColumn':_0x574019,'findOption':(_0x43f698===null||_0x43f698===void 0x0?void 0x0:_0x43f698['findOption'])||undefined}));}catch(_0x31a6fd){}}}return this;},typeorm_2[a13_0x4f1172(0x129)][a13_0x4f1172(0xe7)][a13_0x4f1172(0x116)]=async function(_0x10a475){const _0xbc2b34=a13_0x4f1172;var _0x2e87e6,_0x34e73d,_0x5199d6,_0x5c6b23;for(const _0x5e540b of this[_0xbc2b34(0xe9)]||[]){if(!((_0x2e87e6=_0x5e540b===null||_0x5e540b===void 0x0?void 0x0:_0x5e540b[_0xbc2b34(0x12c)])===null||_0x2e87e6===void 0x0?void 0x0:_0x2e87e6['relationType']))continue;if(!((_0x34e73d=_0x5e540b===null||_0x5e540b===void 0x0?void 0x0:_0x5e540b['joinColumn'])===null||_0x34e73d===void 0x0?void 0x0:_0x34e73d[_0xbc2b34(0xe1)])||!((_0x5199d6=_0x5e540b===null||_0x5e540b===void 0x0?void 0x0:_0x5e540b[_0xbc2b34(0xff)])===null||_0x5199d6===void 0x0?void 0x0:_0x5199d6[_0xbc2b34(0xf3)]))continue;if(!_0x10a475[_0x5e540b['joinColumn'][_0xbc2b34(0xf3)]])continue;if(typeof((_0x5c6b23=_0x5e540b===null||_0x5e540b===void 0x0?void 0x0:_0x5e540b[_0xbc2b34(0x12c)])===null||_0x5c6b23===void 0x0?void 0x0:_0x5c6b23['type'])!=_0xbc2b34(0x128))continue;if(_0x5e540b[_0xbc2b34(0x12c)][_0xbc2b34(0xf4)]=='many-to-one'||_0x5e540b['relation'][_0xbc2b34(0xf4)]==_0xbc2b34(0x111)){const _0x58a0d6=this[_0xbc2b34(0xd2)]['createQueryBuilder'](_0x5e540b[_0xbc2b34(0x12c)][_0xbc2b34(0xd9)](_0x5e540b[_0xbc2b34(0x12c)][_0xbc2b34(0xf4)]),_0x5e540b[_0xbc2b34(0x12c)][_0xbc2b34(0xfa)])[_0xbc2b34(0x105)]();(_0x5e540b===null||_0x5e540b===void 0x0?void 0x0:_0x5e540b[_0xbc2b34(0x10d)])&&_0x58a0d6[_0xbc2b34(0xf2)]({..._0x5e540b[_0xbc2b34(0x10d)],'skip':0x0,'take':0x1}),_0x10a475[_0x5e540b['alias']]=await _0x58a0d6[_0xbc2b34(0xdb)](_0x58a0d6[_0xbc2b34(0xd1)]+'.'+_0x5e540b[_0xbc2b34(0xff)][_0xbc2b34(0xf3)]+_0xbc2b34(0x114)+_0x5e540b[_0xbc2b34(0xff)][_0xbc2b34(0xf3)],{[_0x5e540b['joinColumn'][_0xbc2b34(0xf3)]]:_0x10a475[_0x5e540b[_0xbc2b34(0xff)]['name']]})['getOne']();}else{if(_0x5e540b[_0xbc2b34(0x12c)][_0xbc2b34(0xf4)]==_0xbc2b34(0xde)||_0x5e540b['relation'][_0xbc2b34(0xf4)]==_0xbc2b34(0x106)){const _0x371736=this[_0xbc2b34(0xd2)][_0xbc2b34(0x108)](_0x5e540b[_0xbc2b34(0x12c)][_0xbc2b34(0xd9)](_0x5e540b[_0xbc2b34(0x12c)][_0xbc2b34(0xf4)]),_0x5e540b[_0xbc2b34(0x12c)][_0xbc2b34(0xfa)])['withDeleted']();(_0x5e540b===null||_0x5e540b===void 0x0?void 0x0:_0x5e540b[_0xbc2b34(0x10d)])&&_0x371736[_0xbc2b34(0xf2)]({'skip':0x0,'take':0xa,..._0x5e540b[_0xbc2b34(0x10d)]}),_0x10a475[_0x5e540b['alias']]=await _0x371736[_0xbc2b34(0xdb)](_0x371736[_0xbc2b34(0xd1)]+'.'+_0x5e540b[_0xbc2b34(0xff)][_0xbc2b34(0xe1)]+_0xbc2b34(0x114)+_0x5e540b[_0xbc2b34(0xff)]['name'],{[_0x5e540b['joinColumn']['name']]:_0x10a475[_0x5e540b[_0xbc2b34(0xff)]['referencedColumnName']]})['getMany']();}}}return _0x10a475;};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/typeorm",
3
- "version": "3.4.32",
3
+ "version": "3.4.34",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -22,5 +22,5 @@
22
22
  "javascript-obfuscator": "^4.0.2",
23
23
  "typescript": "^5.1.3"
24
24
  },
25
- "gitHead": "5afc38409934e75ee16d85df4b50cf6bea738297"
25
+ "gitHead": "ee5d6108f5470a0eac75bcbc1fde8f24de4e68be"
26
26
  }