@anncic-api/typeorm 3.7.18 → 3.7.20
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.
- package/dist/configuration.d.ts +8 -8
- package/dist/configuration.js +1 -1
- package/dist/decorator/InjectEntity.d.ts +1 -1
- package/dist/decorator/InjectEntity.js +1 -1
- package/dist/decorator/InjectRepository.d.ts +8 -8
- package/dist/decorator/InjectRepository.js +1 -1
- package/dist/decorator/ProvideEntity.d.ts +5 -5
- package/dist/decorator/ProvideEntity.js +1 -1
- package/dist/decorator/ProvideObserve.d.ts +2 -2
- package/dist/decorator/ProvideObserve.js +1 -1
- package/dist/decorator/ProvideRepository.d.ts +2 -2
- package/dist/decorator/ProvideRepository.js +1 -1
- package/dist/decorator/ProvideSearch.d.ts +3 -3
- package/dist/decorator/ProvideSearch.js +1 -1
- package/dist/decorator/ProvideSharding.d.ts +1 -1
- package/dist/decorator/ProvideSharding.js +1 -1
- package/dist/decorator/VirtualColumn.d.ts +4 -4
- package/dist/decorator/VirtualColumn.js +1 -1
- package/dist/definition/Repository.d.ts +25 -25
- package/dist/definition/Repository.js +1 -1
- package/dist/helper/getDataSourceEntity.d.ts +1 -1
- package/dist/helper/getDataSourceEntity.js +1 -1
- package/dist/helper/getProvideObserve.d.ts +1 -1
- package/dist/helper/getProvideObserve.js +1 -1
- package/dist/helper/sleep.d.ts +1 -1
- package/dist/helper/sleep.js +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/interface.d.ts +80 -79
- package/dist/interface.js +1 -1
- package/dist/interfaceSharding.d.ts +22 -22
- package/dist/interfaceSharding.js +1 -1
- package/package.json +3 -3
- package/dist/helper/preCreateShardingTables.d.ts +0 -1
- package/dist/helper/preCreateShardingTables.js +0 -1
package/dist/configuration.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x6f317b=a0_0x3489;(function(_0x5c510f,_0x4c4995){const _0x5d1ab1=a0_0x3489,_0x4179ff=_0x5c510f();while(!![]){try{const _0x3ff539=parseInt(_0x5d1ab1(0xe3))/0x1+-parseInt(_0x5d1ab1(0xe1))/0x2+-parseInt(_0x5d1ab1(0xe2))/0x3+-parseInt(_0x5d1ab1(0xd8))/0x4+-parseInt(_0x5d1ab1(0xe8))/0x5*(-parseInt(_0x5d1ab1(0xe5))/0x6)+parseInt(_0x5d1ab1(0xce))/0x7*(parseInt(_0x5d1ab1(0xcd))/0x8)+-parseInt(_0x5d1ab1(0xfb))/0x9*(parseInt(_0x5d1ab1(0xfd))/0xa);if(_0x3ff539===_0x4c4995)break;else _0x4179ff['push'](_0x4179ff['shift']());}catch(_0x9af571){_0x4179ff['push'](_0x4179ff['shift']());}}}(a0_0x1e79,0xb716a));const a0_0x2b6d9f=(function(){let _0x469199=!![];return function(_0x279eb1,_0x5315de){const _0x611353=_0x469199?function(){const _0x3348af=a0_0x3489;if(_0x5315de){const _0x2a6dc7=_0x5315de[_0x3348af(0xd0)](_0x279eb1,arguments);return _0x5315de=null,_0x2a6dc7;}}:function(){};return _0x469199=![],_0x611353;};}()),a0_0x3a7056=a0_0x2b6d9f(this,function(){const _0xdbd24d=a0_0x3489;return a0_0x3a7056[_0xdbd24d(0xf7)]()['search']('(((.+)+)+)+$')[_0xdbd24d(0xf7)]()[_0xdbd24d(0xea)](a0_0x3a7056)[_0xdbd24d(0xdf)]('(((.+)+)+)+$');});a0_0x3a7056();'use strict';function a0_0x1e79(){const _0x10ad24=['TypeORMDataSourceManager','1040xuOABG','onReady','name','prototype','8sMhvWh','9105803jqICYE','REPOSITORY_KEY','apply','MidwayConfigService','decorate','MidwayDecoratorService','ENTIFY_KEY','design:type','getAsync','Configuration','305184gBiOqc','getOwnPropertyDescriptor','./interface','decorator','@midwayjs/typeorm','config','__decorate','search','get','1459782XfcaJH','1302795lnpTWZ','1081019BXMbQx','length','12612muzkGO','handlercache','getDataSource','3425LItiRR','\x20is\x20not\x20ProvideRepository\x20Entify','constructor','function','__esModule','defineProperty','CustomConfiguration','metadata','getRepository','getDataSourceNameByModel','typeorm\x20Error\x20','set','typeorm\x20Error\x20propertyName\x20is\x20not\x20InjectRepository\x20repository','@midwayjs/core','registerPropertyHandler','toString','__metadata','has','object','158481PHdpTS'];a0_0x1e79=function(){return _0x10ad24;};return a0_0x1e79();}function a0_0x3489(_0x5f17bb,_0x29166e){const _0x47a785=a0_0x1e79();return a0_0x3489=function(_0x3a7056,_0x2b6d9f){_0x3a7056=_0x3a7056-0xcb;let _0x1e7915=_0x47a785[_0x3a7056];return _0x1e7915;},a0_0x3489(_0x5f17bb,_0x29166e);}var __decorate=this&&this[a0_0x6f317b(0xde)]||function(_0x1ca286,_0x4092bf,_0x57a08a,_0x4dcdd9){const _0x23b0ca=a0_0x6f317b;var _0x2c807a=arguments[_0x23b0ca(0xe4)],_0x46b0e8=_0x2c807a<0x3?_0x4092bf:_0x4dcdd9===null?_0x4dcdd9=Object[_0x23b0ca(0xd9)](_0x4092bf,_0x57a08a):_0x4dcdd9,_0xf73998;if(typeof Reflect===_0x23b0ca(0xfa)&&typeof Reflect['decorate']===_0x23b0ca(0xeb))_0x46b0e8=Reflect[_0x23b0ca(0xd2)](_0x1ca286,_0x4092bf,_0x57a08a,_0x4dcdd9);else{for(var _0xa65edf=_0x1ca286['length']-0x1;_0xa65edf>=0x0;_0xa65edf--)if(_0xf73998=_0x1ca286[_0xa65edf])_0x46b0e8=(_0x2c807a<0x3?_0xf73998(_0x46b0e8):_0x2c807a>0x3?_0xf73998(_0x4092bf,_0x57a08a,_0x46b0e8):_0xf73998(_0x4092bf,_0x57a08a))||_0x46b0e8;}return _0x2c807a>0x3&&_0x46b0e8&&Object['defineProperty'](_0x4092bf,_0x57a08a,_0x46b0e8),_0x46b0e8;},__metadata=this&&this[a0_0x6f317b(0xf8)]||function(_0x58bf21,_0x16da91){const _0x2f2083=a0_0x6f317b;if(typeof Reflect==='object'&&typeof Reflect[_0x2f2083(0xef)]===_0x2f2083(0xeb))return Reflect['metadata'](_0x58bf21,_0x16da91);};Object[a0_0x6f317b(0xed)](exports,a0_0x6f317b(0xec),{'value':!![]}),exports[a0_0x6f317b(0xee)]=void 0x0;const typeorm_1=require('@midwayjs/typeorm'),core_1=require(a0_0x6f317b(0xf5)),core_2=require(a0_0x6f317b(0xf5)),Repository_1=require('./definition/Repository'),interface_1=require(a0_0x6f317b(0xda)),typeorm=require(a0_0x6f317b(0xdc));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x112d6a=a0_0x6f317b;this[_0x112d6a(0xe6)]=new Map();}async[a0_0x6f317b(0xfe)](_0x1ce2c9,_0x7010a7){const _0xd63dc8=a0_0x6f317b,_0x3ae7ea=await _0x1ce2c9[_0xd63dc8(0xd6)](typeorm_1[_0xd63dc8(0xfc)]);this['decorator'][_0xd63dc8(0xf6)](interface_1[_0xd63dc8(0xd4)],(_0x366ad3,{entity:_0x27cd57,connection:_0x13c6a4})=>{const _0x1912ef=_0xd63dc8;if(!this[_0x1912ef(0xe6)][_0x1912ef(0xf9)](_0x27cd57)){const _0x5a0278=_0x1ce2c9[_0x1912ef(0xe0)](Repository_1['Repository'],[_0x7010a7,_0x1ce2c9,_0x3ae7ea['getDataSource'](_0x13c6a4||_0x3ae7ea[_0x1912ef(0xf1)](_0x27cd57))[_0x1912ef(0xf0)](_0x27cd57)]);this[_0x1912ef(0xe6)][_0x1912ef(0xf3)](_0x27cd57,_0x5a0278);}return this[_0x1912ef(0xe6)][_0x1912ef(0xe0)](_0x27cd57);}),this[_0xd63dc8(0xdb)][_0xd63dc8(0xf6)](interface_1[_0xd63dc8(0xcf)],(_0x43d942,{repository:_0x56a034,connection:_0x47d22a})=>{const _0x12494d=_0xd63dc8;if(!_0x56a034)throw new Error(_0x12494d(0xf4));const {entity:_0x2cbbec}=(0x0,core_1['getClassMetadata'])(interface_1[_0x12494d(0xcf)],_0x56a034)||{};if(!_0x2cbbec)throw new Error(_0x12494d(0xf2)+((_0x56a034===null||_0x56a034===void 0x0?void 0x0:_0x56a034[_0x12494d(0xcb)])||_0x56a034)+_0x12494d(0xe9));if(!this[_0x12494d(0xe6)][_0x12494d(0xf9)](_0x56a034)){const _0x172832=_0x1ce2c9[_0x12494d(0xe0)](_0x56a034,[_0x7010a7,_0x1ce2c9,_0x3ae7ea[_0x12494d(0xe7)](_0x47d22a||_0x3ae7ea['getDataSourceNameByModel'](_0x2cbbec))[_0x12494d(0xf0)](_0x2cbbec)]);this[_0x12494d(0xe6)][_0x12494d(0xf3)](_0x56a034,_0x172832);}return this[_0x12494d(0xe6)][_0x12494d(0xe0)](_0x56a034);});}};__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x6f317b(0xd5),core_2[a0_0x6f317b(0xd1)])],CustomConfiguration[a0_0x6f317b(0xcc)],a0_0x6f317b(0xdd),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x6f317b(0xd5),core_2[a0_0x6f317b(0xd3)])],CustomConfiguration[a0_0x6f317b(0xcc)],a0_0x6f317b(0xdb),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x6f317b(0xd7)])({'imports':[typeorm],'conflictCheck':![],'namespace':'anncic-api:typeorm'})],CustomConfiguration),exports[a0_0x6f317b(0xee)]=CustomConfiguration;
|
|
@@ -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
|
|
1
|
+
const a1_0x3a6101=a1_0x371b;function a1_0x371b(_0x4c9a55,_0x9c1db2){const _0x365e79=a1_0x4cdc();return a1_0x371b=function(_0x3d1daf,_0x5137a3){_0x3d1daf=_0x3d1daf-0xe2;let _0x4cdc5e=_0x365e79[_0x3d1daf];return _0x4cdc5e;},a1_0x371b(_0x4c9a55,_0x9c1db2);}(function(_0x2daa7c,_0x5dc491){const _0x851268=a1_0x371b,_0x517bbf=_0x2daa7c();while(!![]){try{const _0x2ca462=parseInt(_0x851268(0xe3))/0x1+parseInt(_0x851268(0xe8))/0x2*(-parseInt(_0x851268(0xe2))/0x3)+parseInt(_0x851268(0xe6))/0x4+parseInt(_0x851268(0xf2))/0x5*(-parseInt(_0x851268(0xee))/0x6)+parseInt(_0x851268(0xe7))/0x7*(-parseInt(_0x851268(0xe9))/0x8)+parseInt(_0x851268(0xf3))/0x9*(-parseInt(_0x851268(0xec))/0xa)+parseInt(_0x851268(0xf6))/0xb*(parseInt(_0x851268(0xef))/0xc);if(_0x2ca462===_0x5dc491)break;else _0x517bbf['push'](_0x517bbf['shift']());}catch(_0x5eb9b0){_0x517bbf['push'](_0x517bbf['shift']());}}}(a1_0x4cdc,0x55733));const a1_0x5137a3=(function(){let _0x4fea9a=!![];return function(_0xad96e2,_0x50a9ec){const _0x7ac67a=_0x4fea9a?function(){if(_0x50a9ec){const _0x4d1e1d=_0x50a9ec['apply'](_0xad96e2,arguments);return _0x50a9ec=null,_0x4d1e1d;}}:function(){};return _0x4fea9a=![],_0x7ac67a;};}()),a1_0x3d1daf=a1_0x5137a3(this,function(){const _0x580206=a1_0x371b;return a1_0x3d1daf['toString']()[_0x580206(0xeb)]('(((.+)+)+)+$')[_0x580206(0xf7)]()[_0x580206(0xf0)](a1_0x3d1daf)['search']('(((.+)+)+)+$');});a1_0x3d1daf();'use strict';function a1_0x4cdc(){const _0x4a070e=['../interface','9320905cnFGVI','toString','3FuKThm','616446DcTABd','InjectEntity','@midwayjs/core','2368240LfZEAP','35546oTKRze','527462XJCfsa','1048JhDLVb','__esModule','search','10ZJsBFS','ENTIFY_KEY','6uQkbXQ','12XgSLSM','constructor','defineProperty','2905410WITXHJ','1762443JZjuzG','createCustomPropertyDecorator'];a1_0x4cdc=function(){return _0x4a070e;};return a1_0x4cdc();}Object[a1_0x3a6101(0xf1)](exports,a1_0x3a6101(0xea),{'value':!![]}),exports[a1_0x3a6101(0xe4)]=void 0x0;const core_1=require(a1_0x3a6101(0xe5)),interface_1=require(a1_0x3a6101(0xf5));function InjectEntity(_0x4bd01c,_0x169918='default'){const _0x437ed8=a1_0x3a6101;return(0x0,core_1[_0x437ed8(0xf4)])(interface_1[_0x437ed8(0xed)],{'entity':_0x4bd01c,'connection':_0x169918});}exports[a1_0x3a6101(0xe4)]=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
|
|
1
|
+
const a2_0x1bf2c4=a2_0x2b63;(function(_0x2a79ad,_0xc8a957){const _0x842a54=a2_0x2b63,_0x520dd9=_0x2a79ad();while(!![]){try{const _0x224325=parseInt(_0x842a54(0xeb))/0x1*(-parseInt(_0x842a54(0xe4))/0x2)+parseInt(_0x842a54(0xea))/0x3*(parseInt(_0x842a54(0xe7))/0x4)+-parseInt(_0x842a54(0xe2))/0x5*(-parseInt(_0x842a54(0xe8))/0x6)+parseInt(_0x842a54(0xf2))/0x7*(-parseInt(_0x842a54(0xe1))/0x8)+parseInt(_0x842a54(0xed))/0x9+parseInt(_0x842a54(0xf1))/0xa+parseInt(_0x842a54(0xdf))/0xb;if(_0x224325===_0xc8a957)break;else _0x520dd9['push'](_0x520dd9['shift']());}catch(_0x33311d){_0x520dd9['push'](_0x520dd9['shift']());}}}(a2_0x4fd8,0x8642b));const a2_0x2638c8=(function(){let _0x1e50c0=!![];return function(_0x217474,_0x1f93b7){const _0x5199dc=_0x1e50c0?function(){const _0x374f9b=a2_0x2b63;if(_0x1f93b7){const _0x688037=_0x1f93b7[_0x374f9b(0xe3)](_0x217474,arguments);return _0x1f93b7=null,_0x688037;}}:function(){};return _0x1e50c0=![],_0x5199dc;};}()),a2_0x47c26f=a2_0x2638c8(this,function(){const _0x307ba5=a2_0x2b63;return a2_0x47c26f['toString']()[_0x307ba5(0xec)](_0x307ba5(0xef))['toString']()['constructor'](a2_0x47c26f)['search'](_0x307ba5(0xef));});a2_0x47c26f();'use strict';function a2_0x2b63(_0x2f7b7c,_0x3f2d15){const _0x587b9a=a2_0x4fd8();return a2_0x2b63=function(_0x47c26f,_0x2638c8){_0x47c26f=_0x47c26f-0xdf;let _0x4fd8b3=_0x587b9a[_0x47c26f];return _0x4fd8b3;},a2_0x2b63(_0x2f7b7c,_0x3f2d15);}Object[a2_0x1bf2c4(0xee)](exports,'__esModule',{'value':!![]}),exports[a2_0x1bf2c4(0xe9)]=void 0x0;const core_1=require(a2_0x1bf2c4(0xf0)),interface_1=require(a2_0x1bf2c4(0xe6));function a2_0x4fd8(){const _0x255567=['3kkELju','219465RpguCz','search','1060857hYmORU','defineProperty','(((.+)+)+)+$','@midwayjs/core','3669430usgAfj','1400TSoUSD','REPOSITORY_KEY','10426042zBDSyl','createCustomPropertyDecorator','39128GIRYrv','5IEsnsU','apply','6luKCOO','default','../interface','50664LmWHNp','4447332fkwZKi','InjectRepository'];a2_0x4fd8=function(){return _0x255567;};return a2_0x4fd8();}function InjectRepository(_0x2f40c8,_0x47bc88=a2_0x1bf2c4(0xe5)){const _0x14ea7f=a2_0x1bf2c4;return(0x0,core_1[_0x14ea7f(0xe0)])(interface_1[_0x14ea7f(0xf3)],{'repository':_0x2f40c8,'connection':_0x47bc88});}exports[a2_0x1bf2c4(0xe9)]=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
|
|
1
|
+
const a3_0x39165a=a3_0x1dfa;(function(_0x3fc28a,_0x43fbe8){const _0x4ff04b=a3_0x1dfa,_0x52bf3a=_0x3fc28a();while(!![]){try{const _0xbe6ef2=parseInt(_0x4ff04b(0x192))/0x1*(parseInt(_0x4ff04b(0x198))/0x2)+parseInt(_0x4ff04b(0x18d))/0x3*(parseInt(_0x4ff04b(0x1a1))/0x4)+-parseInt(_0x4ff04b(0x18a))/0x5+-parseInt(_0x4ff04b(0x18c))/0x6*(-parseInt(_0x4ff04b(0x19a))/0x7)+-parseInt(_0x4ff04b(0x1a2))/0x8+parseInt(_0x4ff04b(0x19f))/0x9+parseInt(_0x4ff04b(0x193))/0xa*(-parseInt(_0x4ff04b(0x195))/0xb);if(_0xbe6ef2===_0x43fbe8)break;else _0x52bf3a['push'](_0x52bf3a['shift']());}catch(_0x243ce5){_0x52bf3a['push'](_0x52bf3a['shift']());}}}(a3_0x25d2,0x33f26));const a3_0x2a4555=(function(){let _0x347f9b=!![];return function(_0x1827d4,_0x55d781){const _0x1ef7a7=_0x347f9b?function(){if(_0x55d781){const _0xfeed5=_0x55d781['apply'](_0x1827d4,arguments);return _0x55d781=null,_0xfeed5;}}:function(){};return _0x347f9b=![],_0x1ef7a7;};}()),a3_0x5a3060=a3_0x2a4555(this,function(){const _0x454dfd=a3_0x1dfa;return a3_0x5a3060['toString']()[_0x454dfd(0x19d)]('(((.+)+)+)+$')[_0x454dfd(0x194)]()[_0x454dfd(0x19c)](a3_0x5a3060)[_0x454dfd(0x19d)](_0x454dfd(0x19b));});a3_0x5a3060();'use strict';Object[a3_0x39165a(0x1a0)](exports,a3_0x39165a(0x18f),{'value':!![]}),exports['ProvideEntity']=void 0x0;const typeorm_1=require(a3_0x39165a(0x19e)),core_1=require(a3_0x39165a(0x18e)),interface_1=require(a3_0x39165a(0x197));function ProvideEntity(_0x3d8429,_0x12e0a6={}){return _0xdf1691=>{const _0x1da928=a3_0x1dfa;_0x12e0a6[_0x1da928(0x1a3)]=_0x3d8429['tableName'];const _0x2286b5=[];if(!(_0x3d8429===null||_0x3d8429===void 0x0?void 0x0:_0x3d8429[_0x1da928(0x1a6)]))_0x2286b5['push']('default');else{if(typeof(_0x3d8429===null||_0x3d8429===void 0x0?void 0x0:_0x3d8429[_0x1da928(0x1a6)])=='string')_0x2286b5[_0x1da928(0x196)](_0x3d8429===null||_0x3d8429===void 0x0?void 0x0:_0x3d8429[_0x1da928(0x1a6)]);else{if(Array['isArray'](_0x3d8429===null||_0x3d8429===void 0x0?void 0x0:_0x3d8429[_0x1da928(0x1a6)]))for(let _0x5044bd of _0x3d8429[_0x1da928(0x1a6)]||[_0x1da928(0x199)]){_0x2286b5[_0x1da928(0x196)](_0x5044bd);}}}(0x0,core_1[_0x1da928(0x1a4)])(interface_1['ENTIFY_MODULE'],_0xdf1691),(0x0,core_1['saveClassMetadata'])(interface_1[_0x1da928(0x1a5)],{'tableName':_0x3d8429[_0x1da928(0x18b)],'dataSource':_0x2286b5},_0xdf1691),(0x0,typeorm_1[_0x1da928(0x191)])(_0x3d8429[_0x1da928(0x18b)],_0x12e0a6)(_0xdf1691);};}exports[a3_0x39165a(0x190)]=ProvideEntity;function a3_0x1dfa(_0x5d0047,_0x595fd8){const _0x29b780=a3_0x25d2();return a3_0x1dfa=function(_0x5a3060,_0x2a4555){_0x5a3060=_0x5a3060-0x18a;let _0x25d25f=_0x29b780[_0x5a3060];return _0x25d25f;},a3_0x1dfa(_0x5d0047,_0x595fd8);}function a3_0x25d2(){const _0x4278a3=['Entity','19uDVpMq','1180ZznfpF','toString','62623ZKhMep','push','../interface','37286DYlnAH','default','98OqEYjt','(((.+)+)+)+$','constructor','search','typeorm','2968812muIMOa','defineProperty','1164FrVVyx','2842344sLKoST','name','saveModule','ENTIFY_MODULE_SOURCE','dataSource','129515lcTbMI','tableName','141654BCnkrS','2589wSHKHW','@midwayjs/core','__esModule','ProvideEntity'];a3_0x25d2=function(){return _0x4278a3;};return a3_0x25d2();}
|
|
@@ -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
|
|
1
|
+
const a4_0x1dd9bb=a4_0x3b57;(function(_0x92f882,_0x2b4545){const _0x1ce3d8=a4_0x3b57,_0x4b6cec=_0x92f882();while(!![]){try{const _0x5c208f=-parseInt(_0x1ce3d8(0x1a8))/0x1*(-parseInt(_0x1ce3d8(0x1aa))/0x2)+-parseInt(_0x1ce3d8(0x1ac))/0x3+-parseInt(_0x1ce3d8(0x1a7))/0x4*(parseInt(_0x1ce3d8(0x1bc))/0x5)+-parseInt(_0x1ce3d8(0x1b1))/0x6+parseInt(_0x1ce3d8(0x1b9))/0x7*(-parseInt(_0x1ce3d8(0x1b0))/0x8)+parseInt(_0x1ce3d8(0x1a5))/0x9*(-parseInt(_0x1ce3d8(0x1ad))/0xa)+parseInt(_0x1ce3d8(0x1b3))/0xb*(parseInt(_0x1ce3d8(0x1b5))/0xc);if(_0x5c208f===_0x2b4545)break;else _0x4b6cec['push'](_0x4b6cec['shift']());}catch(_0x597b08){_0x4b6cec['push'](_0x4b6cec['shift']());}}}(a4_0x4ba9,0xc3d14));function a4_0x4ba9(){const _0x7d0f4a=['prototype','__esModule','308LTJjlr','search','(((.+)+)+)+$','326250UWWNWn','Scope','EventSubscriber','5745591yTvxpa','Singleton','64swOXnd','11629iwXstr','toString','92YVYtZm','typeorm','1471314QfbxxP','10RxGGOQ','../interface','listenTo','140176nwEQEt','9134196MdGqzl','constructor','55zdUPum','REPOSITORY_OBSERVE_KEY','11359932KhJiac','ProvideObserve'];a4_0x4ba9=function(){return _0x7d0f4a;};return a4_0x4ba9();}const a4_0x3f23d3=(function(){let _0x22c899=!![];return function(_0x69a4fe,_0x368dcc){const _0x2e18de=_0x22c899?function(){if(_0x368dcc){const _0x443638=_0x368dcc['apply'](_0x69a4fe,arguments);return _0x368dcc=null,_0x443638;}}:function(){};return _0x22c899=![],_0x2e18de;};}()),a4_0x1e589f=a4_0x3f23d3(this,function(){const _0x350fa6=a4_0x3b57;return a4_0x1e589f['toString']()[_0x350fa6(0x1ba)](_0x350fa6(0x1bb))[_0x350fa6(0x1a9)]()[_0x350fa6(0x1b2)](a4_0x1e589f)['search'](_0x350fa6(0x1bb));});a4_0x1e589f();'use strict';function a4_0x3b57(_0x234548,_0x37a5a9){const _0x206530=a4_0x4ba9();return a4_0x3b57=function(_0x1e589f,_0x3f23d3){_0x1e589f=_0x1e589f-0x1a5;let _0x4ba9f7=_0x206530[_0x1e589f];return _0x4ba9f7;},a4_0x3b57(_0x234548,_0x37a5a9);}Object['defineProperty'](exports,a4_0x1dd9bb(0x1b8),{'value':!![]}),exports[a4_0x1dd9bb(0x1b6)]=void 0x0;const typeorm_1=require(a4_0x1dd9bb(0x1ab)),core_1=require('@midwayjs/core'),interface_1=require(a4_0x1dd9bb(0x1ae));function ProvideObserve(_0x48c999){return _0x19e601=>{const _0xca758e=a4_0x3b57;_0x48c999&&typeof _0x19e601['prototype'][_0xca758e(0x1af)]=='undefined'&&(_0x19e601[_0xca758e(0x1b7)][_0xca758e(0x1af)]=()=>_0x48c999),(0x0,typeorm_1[_0xca758e(0x1be)])()(_0x19e601),(0x0,core_1['saveModule'])(interface_1[_0xca758e(0x1b4)],_0x19e601),((0x0,core_1['Provide'])()(_0x19e601),(0x0,core_1[_0xca758e(0x1bd)])(core_1['ScopeEnum'][_0xca758e(0x1a6)])(_0x19e601));};}exports[a4_0x1dd9bb(0x1b6)]=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
|
|
1
|
+
const a5_0x33be4c=a5_0x5afa;(function(_0xf7db0d,_0x19c8ab){const _0x45bd08=a5_0x5afa,_0x33e091=_0xf7db0d();while(!![]){try{const _0xb30dd5=-parseInt(_0x45bd08(0x1b2))/0x1+parseInt(_0x45bd08(0x1c1))/0x2*(parseInt(_0x45bd08(0x1b5))/0x3)+-parseInt(_0x45bd08(0x1c8))/0x4+parseInt(_0x45bd08(0x1bb))/0x5*(-parseInt(_0x45bd08(0x1be))/0x6)+-parseInt(_0x45bd08(0x1c6))/0x7*(-parseInt(_0x45bd08(0x1ca))/0x8)+parseInt(_0x45bd08(0x1c4))/0x9*(-parseInt(_0x45bd08(0x1ba))/0xa)+parseInt(_0x45bd08(0x1bf))/0xb*(parseInt(_0x45bd08(0x1bc))/0xc);if(_0xb30dd5===_0x19c8ab)break;else _0x33e091['push'](_0x33e091['shift']());}catch(_0x138105){_0x33e091['push'](_0x33e091['shift']());}}}(a5_0x226b,0x343b5));const a5_0x42daa5=(function(){let _0xfb829e=!![];return function(_0x1ca122,_0x1f08a8){const _0x5b31cd=_0xfb829e?function(){const _0x45ae8f=a5_0x5afa;if(_0x1f08a8){const _0x262fdb=_0x1f08a8[_0x45ae8f(0x1b7)](_0x1ca122,arguments);return _0x1f08a8=null,_0x262fdb;}}:function(){};return _0xfb829e=![],_0x5b31cd;};}()),a5_0x2f1a49=a5_0x42daa5(this,function(){const _0x242596=a5_0x5afa;return a5_0x2f1a49['toString']()[_0x242596(0x1bd)]('(((.+)+)+)+$')[_0x242596(0x1b4)]()[_0x242596(0x1c5)](a5_0x2f1a49)['search'](_0x242596(0x1b3));});a5_0x2f1a49();function a5_0x5afa(_0x4392ab,_0x25b7b0){const _0xb3bb6c=a5_0x226b();return a5_0x5afa=function(_0x2f1a49,_0x42daa5){_0x2f1a49=_0x2f1a49-0x1b1;let _0x226b70=_0xb3bb6c[_0x2f1a49];return _0x226b70;},a5_0x5afa(_0x4392ab,_0x25b7b0);}'use strict';Object[a5_0x33be4c(0x1c7)](exports,a5_0x33be4c(0x1c9),{'value':!![]}),exports[a5_0x33be4c(0x1b1)]=void 0x0;const core_1=require(a5_0x33be4c(0x1b8)),interface_1=require(a5_0x33be4c(0x1c2));function ProvideRepository(_0x5c030f){return _0x644991=>{const _0x47e7f4=a5_0x5afa;(0x0,core_1[_0x47e7f4(0x1c3)])(core_1['ScopeEnum'][_0x47e7f4(0x1b6)],{'allowDowngrade':!![]})(_0x644991),((0x0,core_1['Provide'])()(_0x644991),(0x0,core_1[_0x47e7f4(0x1b9)])(interface_1[_0x47e7f4(0x1c0)],{'entity':_0x5c030f},_0x644991));};}function a5_0x226b(){const _0x599a4e=['2ljpDgI','../interface','Scope','1179NIRSne','constructor','1855105LlGKvD','defineProperty','496664MYgoyA','__esModule','8hzhZXa','ProvideRepository','11192wibyYp','(((.+)+)+)+$','toString','387339zSvHBL','Request','apply','@midwayjs/core','saveClassMetadata','1490OWXchy','65bOzWnr','22692EZuYYV','search','146088ZxHiHu','1694skPojm','REPOSITORY_KEY'];a5_0x226b=function(){return _0x599a4e;};return a5_0x226b();}exports['ProvideRepository']=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
|
|
1
|
+
const a6_0x37666c=a6_0x357b;(function(_0x46a3ac,_0x410fa3){const _0x57db61=a6_0x357b,_0x2355fe=_0x46a3ac();while(!![]){try{const _0x13aff9=parseInt(_0x57db61(0x188))/0x1+parseInt(_0x57db61(0x19b))/0x2+-parseInt(_0x57db61(0x196))/0x3*(parseInt(_0x57db61(0x18e))/0x4)+-parseInt(_0x57db61(0x18f))/0x5+-parseInt(_0x57db61(0x194))/0x6*(parseInt(_0x57db61(0x193))/0x7)+parseInt(_0x57db61(0x199))/0x8+parseInt(_0x57db61(0x18c))/0x9;if(_0x13aff9===_0x410fa3)break;else _0x2355fe['push'](_0x2355fe['shift']());}catch(_0x36cc99){_0x2355fe['push'](_0x2355fe['shift']());}}}(a6_0x5443,0xe8ce5));const a6_0x3b5ebb=(function(){let _0x1e3ab1=!![];return function(_0x102621,_0x242c53){const _0x5c51db=_0x1e3ab1?function(){const _0xdebb78=a6_0x357b;if(_0x242c53){const _0x355ffa=_0x242c53[_0xdebb78(0x187)](_0x102621,arguments);return _0x242c53=null,_0x355ffa;}}:function(){};return _0x1e3ab1=![],_0x5c51db;};}()),a6_0x4876a0=a6_0x3b5ebb(this,function(){const _0x9bd5ae=a6_0x357b;return a6_0x4876a0['toString']()[_0x9bd5ae(0x189)](_0x9bd5ae(0x186))[_0x9bd5ae(0x195)]()[_0x9bd5ae(0x190)](a6_0x4876a0)['search'](_0x9bd5ae(0x186));});a6_0x4876a0();'use strict';Object['defineProperty'](exports,a6_0x37666c(0x184),{'value':!![]}),exports[a6_0x37666c(0x18a)]=exports['Search']=exports[a6_0x37666c(0x19a)]=void 0x0;const core_1=require(a6_0x37666c(0x19c)),interface_1=require(a6_0x37666c(0x192));function ProvideSearch(_0x15cf3a){return _0xf8dca1=>{const _0x5e916c=a6_0x357b;(0x0,core_1[_0x5e916c(0x198)])(interface_1[_0x5e916c(0x197)],_0xf8dca1),((0x0,core_1[_0x5e916c(0x185)])()(_0xf8dca1),(0x0,core_1['Scope'])(core_1[_0x5e916c(0x18d)]['Singleton'])(_0xf8dca1)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x5e916c(0x197)],_0x15cf3a,_0xf8dca1);};}exports[a6_0x37666c(0x19a)]=ProvideSearch;function Search(_0x2b67a8,_0x30b826){return(_0x5ecb94,_0x525e72,_0xaafa34)=>{const _0x35607c=a6_0x357b;(0x0,core_1[_0x35607c(0x19d)])(interface_1[_0x35607c(0x191)],{'field':_0x2b67a8,'comment':_0x30b826,'target':_0x5ecb94,'methodName':_0x525e72,'descriptor':_0xaafa34},_0x5ecb94);};}exports[a6_0x37666c(0x18b)]=Search;function SearchScope(_0x3ed648,_0x1e9b5b){return(_0x303c2b,_0xf895a1,_0xd7a47d)=>{const _0x96fbb7=a6_0x357b;(0x0,core_1[_0x96fbb7(0x19d)])(interface_1['MODEL_SEARCH_SCOPE_KEY'],{'scope':_0x3ed648,'comment':_0x1e9b5b,'target':_0x303c2b,'methodName':_0xf895a1,'descriptor':_0xd7a47d},_0x303c2b);};}function a6_0x5443(){const _0x3c78bb=['saveModule','3423496PbVYdu','ProvideSearch','1527330yrbFRi','@midwayjs/core','attachClassMetadata','__esModule','Provide','(((.+)+)+)+$','apply','436869hkqdXm','search','SearchScope','Search','30903012iTdroV','ScopeEnum','164308RfzXtp','4800910fPspQK','constructor','MODEL_SEARCH_KEY','../interface','13124979UCUcjR','6EvmbVD','toString','93FDmxxV','MODEL_KEY'];a6_0x5443=function(){return _0x3c78bb;};return a6_0x5443();}function a6_0x357b(_0x568ba5,_0x225116){const _0x10bd61=a6_0x5443();return a6_0x357b=function(_0x4876a0,_0x3b5ebb){_0x4876a0=_0x4876a0-0x184;let _0x5443ad=_0x10bd61[_0x4876a0];return _0x5443ad;},a6_0x357b(_0x568ba5,_0x225116);}exports[a6_0x37666c(0x18a)]=SearchScope;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ProvideSharding(...entities: Function[]): ClassDecorator;
|
|
1
|
+
export declare function ProvideSharding(...entities: Function[]): ClassDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x221951=a7_0x52e1;function a7_0x52e1(_0x20b20d,_0xf4e4ba){const _0x80c185=a7_0x36ef();return a7_0x52e1=function(_0x35b91d,_0xc6b85){_0x35b91d=_0x35b91d-0x139;let _0x36ef06=_0x80c185[_0x35b91d];return _0x36ef06;},a7_0x52e1(_0x20b20d,_0xf4e4ba);}function a7_0x36ef(){const _0x22409a=['4DavIOz','search','(((.+)+)+)+$','70375QCTnpM','ProvideSharding','defineProperty','Provide','ScopeEnum','../interface','2109690huKlOu','145467WDkmCk','toString','@midwayjs/core','__esModule','Scope','146505gduLxi','153834VHupld','68690XpxfEH','ENTIFY_SHARDING_KEY','680617GNpgcZ','88lTGJon','1gIlwfX'];a7_0x36ef=function(){return _0x22409a;};return a7_0x36ef();}(function(_0x4a25d7,_0x3169ab){const _0x213b2d=a7_0x52e1,_0x3a67cd=_0x4a25d7();while(!![]){try{const _0x3d6bb2=-parseInt(_0x213b2d(0x14c))/0x1*(-parseInt(_0x213b2d(0x148))/0x2)+-parseInt(_0x213b2d(0x146))/0x3*(-parseInt(_0x213b2d(0x14d))/0x4)+-parseInt(_0x213b2d(0x13a))/0x5+-parseInt(_0x213b2d(0x147))/0x6+parseInt(_0x213b2d(0x14a))/0x7+parseInt(_0x213b2d(0x14b))/0x8*(parseInt(_0x213b2d(0x141))/0x9)+-parseInt(_0x213b2d(0x140))/0xa;if(_0x3d6bb2===_0x3169ab)break;else _0x3a67cd['push'](_0x3a67cd['shift']());}catch(_0x4ef631){_0x3a67cd['push'](_0x3a67cd['shift']());}}}(a7_0x36ef,0x1a401));const a7_0xc6b85=(function(){let _0x5b6aa1=!![];return function(_0x18ebe2,_0xf326ea){const _0x4ffa6e=_0x5b6aa1?function(){if(_0xf326ea){const _0x479baa=_0xf326ea['apply'](_0x18ebe2,arguments);return _0xf326ea=null,_0x479baa;}}:function(){};return _0x5b6aa1=![],_0x4ffa6e;};}()),a7_0x35b91d=a7_0xc6b85(this,function(){const _0x2cfb9b=a7_0x52e1;return a7_0x35b91d[_0x2cfb9b(0x142)]()[_0x2cfb9b(0x14e)]('(((.+)+)+)+$')[_0x2cfb9b(0x142)]()['constructor'](a7_0x35b91d)[_0x2cfb9b(0x14e)](_0x2cfb9b(0x139));});a7_0x35b91d();'use strict';Object[a7_0x221951(0x13c)](exports,a7_0x221951(0x144),{'value':!![]}),exports[a7_0x221951(0x13b)]=void 0x0;const core_1=require(a7_0x221951(0x143)),interface_1=require(a7_0x221951(0x13f));function ProvideSharding(..._0x57c0d8){return _0x4f7ae2=>{const _0x3cd5df=a7_0x52e1;(0x0,core_1[_0x3cd5df(0x13d)])()(_0x4f7ae2),(0x0,core_1[_0x3cd5df(0x145)])(core_1[_0x3cd5df(0x13e)]['Singleton'])(_0x4f7ae2);for(const _0x149eed of _0x57c0d8){(0x0,core_1['saveClassMetadata'])(interface_1[_0x3cd5df(0x149)],{'strategy':_0x4f7ae2},_0x149eed);}};}exports['ProvideSharding']=ProvideSharding;
|
|
@@ -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
|
|
1
|
+
function a8_0x483a(_0x3d3e9a,_0x504b39){const _0x4a514b=a8_0x1868();return a8_0x483a=function(_0x3cecf8,_0x4c3c5b){_0x3cecf8=_0x3cecf8-0x76;let _0x186846=_0x4a514b[_0x3cecf8];return _0x186846;},a8_0x483a(_0x3d3e9a,_0x504b39);}function a8_0x1868(){const _0x4b95b6=['610jcBUUN','830709NgSdvL','5Zsbmcn','59832MGXuSV','314590RWAsYq','1090376Yrwvuj','ENTITY_VIRTUAL_COLUMN_KEY','search','@midwayjs/core','66675YelxwL','26361elAbpp','VirtualColumn','77594SXrgYY','getClassMetadata','(((.+)+)+)+$','161tMxpep','448GLsfqE','saveClassMetadata','../interface'];a8_0x1868=function(){return _0x4b95b6;};return a8_0x1868();}const a8_0x5e6ddb=a8_0x483a;(function(_0x5203da,_0x5d2e7e){const _0x5ca3b4=a8_0x483a,_0x4895b9=_0x5203da();while(!![]){try{const _0x71e465=parseInt(_0x5ca3b4(0x76))/0x1+parseInt(_0x5ca3b4(0x84))/0x2+-parseInt(_0x5ca3b4(0x81))/0x3+-parseInt(_0x5ca3b4(0x85))/0x4*(-parseInt(_0x5ca3b4(0x82))/0x5)+-parseInt(_0x5ca3b4(0x83))/0x6*(-parseInt(_0x5ca3b4(0x7c))/0x7)+-parseInt(_0x5ca3b4(0x7d))/0x8*(-parseInt(_0x5ca3b4(0x77))/0x9)+-parseInt(_0x5ca3b4(0x80))/0xa*(parseInt(_0x5ca3b4(0x79))/0xb);if(_0x71e465===_0x5d2e7e)break;else _0x4895b9['push'](_0x4895b9['shift']());}catch(_0x347f03){_0x4895b9['push'](_0x4895b9['shift']());}}}(a8_0x1868,0x2c9db));const a8_0x4c3c5b=(function(){let _0x40d54f=!![];return function(_0x59a7b1,_0xf7874){const _0x27413a=_0x40d54f?function(){if(_0xf7874){const _0x2ba1d5=_0xf7874['apply'](_0x59a7b1,arguments);return _0xf7874=null,_0x2ba1d5;}}:function(){};return _0x40d54f=![],_0x27413a;};}()),a8_0x3cecf8=a8_0x4c3c5b(this,function(){const _0x20cc32=a8_0x483a;return a8_0x3cecf8['toString']()[_0x20cc32(0x87)]('(((.+)+)+)+$')['toString']()['constructor'](a8_0x3cecf8)[_0x20cc32(0x87)](_0x20cc32(0x7b));});a8_0x3cecf8();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['VirtualColumn']=void 0x0;const core_1=require(a8_0x5e6ddb(0x88)),interface_1=require(a8_0x5e6ddb(0x7f));function VirtualColumn(_0x2dcda6,_0x3639e5){return(_0x2268f9,_0x1981d6)=>{const _0xed1150=a8_0x483a,_0xad883d=(0x0,core_1[_0xed1150(0x7a)])(interface_1[_0xed1150(0x86)],_0x2268f9)||{};_0xad883d[_0x1981d6]={'comment':_0x2dcda6,..._0x3639e5},(0x0,core_1[_0xed1150(0x7e)])(interface_1[_0xed1150(0x86)],_0xad883d,_0x2268f9);};}exports[a8_0x5e6ddb(0x78)]=VirtualColumn;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { IMidwayApplication, IMidwayContainer } from '@midwayjs/core';
|
|
2
|
-
import { QueryDeepPartialEntity } from 'typeorm/query-builder/QueryPartialEntity';
|
|
3
|
-
import { Repository as BaseRepository, EntityManager, ObjectLiteral, DeepPartial, FindOptionsWhere, ObjectId } from "typeorm";
|
|
4
|
-
import { SearchParams, SearchPaginate, SearchOptions } from "../interface";
|
|
5
|
-
interface modelSearch {
|
|
6
|
-
model: any;
|
|
7
|
-
searchs: any[];
|
|
8
|
-
searchScopes: any[];
|
|
9
|
-
}
|
|
10
|
-
type IsolationLevel = "READ UNCOMMITTED" | "READ COMMITTED" | "REPEATABLE READ" | "SERIALIZABLE";
|
|
11
|
-
export declare class Repository<Entity extends ObjectLiteral> extends BaseRepository<Entity> {
|
|
12
|
-
readonly app: IMidwayApplication;
|
|
13
|
-
readonly container: IMidwayContainer;
|
|
14
|
-
readonly modelSearchs: modelSearch[];
|
|
15
|
-
search(params?: SearchParams<Entity>, paginate?: SearchPaginate, options?: SearchOptions): Promise<import("typeorm").SelectQueryBuilder<Entity>>;
|
|
16
|
-
safeUpdate(criteria: string | string[] | number | number[] | Date | Date[] | ObjectId | ObjectId[] | FindOptionsWhere<Entity>, partialEntity: QueryDeepPartialEntity<Entity>, retrycount?: number): Promise<import("typeorm").UpdateResult>;
|
|
17
|
-
mergeSave(mergeIntoEntity: Entity, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
|
|
18
|
-
createSave(mergeIntoEntity: DeepPartial<Entity>, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
|
|
19
|
-
transaction<T>(runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
|
|
20
|
-
transaction<T>(isolationLevel: IsolationLevel, runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
|
|
21
|
-
isDirty(tmpEntity: Entity, entityLike: DeepPartial<Entity>, ignoreKeys?: string[]): boolean;
|
|
22
|
-
getDirty(tmpEntity: Entity, entityLike: DeepPartial<Entity>, ignoreKeys?: string[]): DeepPartial<Entity>;
|
|
23
|
-
constructor(app: IMidwayApplication, container: IMidwayContainer, repository: BaseRepository<Entity>);
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
1
|
+
import { IMidwayApplication, IMidwayContainer } from '@midwayjs/core';
|
|
2
|
+
import { QueryDeepPartialEntity } from 'typeorm/query-builder/QueryPartialEntity';
|
|
3
|
+
import { Repository as BaseRepository, EntityManager, ObjectLiteral, DeepPartial, FindOptionsWhere, ObjectId } from "typeorm";
|
|
4
|
+
import { SearchParams, SearchPaginate, SearchOptions } from "../interface";
|
|
5
|
+
interface modelSearch {
|
|
6
|
+
model: any;
|
|
7
|
+
searchs: any[];
|
|
8
|
+
searchScopes: any[];
|
|
9
|
+
}
|
|
10
|
+
type IsolationLevel = "READ UNCOMMITTED" | "READ COMMITTED" | "REPEATABLE READ" | "SERIALIZABLE";
|
|
11
|
+
export declare class Repository<Entity extends ObjectLiteral> extends BaseRepository<Entity> {
|
|
12
|
+
readonly app: IMidwayApplication;
|
|
13
|
+
readonly container: IMidwayContainer;
|
|
14
|
+
readonly modelSearchs: modelSearch[];
|
|
15
|
+
search(params?: SearchParams<Entity>, paginate?: SearchPaginate, options?: SearchOptions): Promise<import("typeorm").SelectQueryBuilder<Entity>>;
|
|
16
|
+
safeUpdate(criteria: string | string[] | number | number[] | Date | Date[] | ObjectId | ObjectId[] | FindOptionsWhere<Entity>, partialEntity: QueryDeepPartialEntity<Entity>, retrycount?: number): Promise<import("typeorm").UpdateResult>;
|
|
17
|
+
mergeSave(mergeIntoEntity: Entity, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
|
|
18
|
+
createSave(mergeIntoEntity: DeepPartial<Entity>, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
|
|
19
|
+
transaction<T>(runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
|
|
20
|
+
transaction<T>(isolationLevel: IsolationLevel, runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
|
|
21
|
+
isDirty(tmpEntity: Entity, entityLike: DeepPartial<Entity>, ignoreKeys?: string[]): boolean;
|
|
22
|
+
getDirty(tmpEntity: Entity, entityLike: DeepPartial<Entity>, ignoreKeys?: string[]): DeepPartial<Entity>;
|
|
23
|
+
constructor(app: IMidwayApplication, container: IMidwayContainer, repository: BaseRepository<Entity>);
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x2c2231=a9_0x22bb;(function(_0x9a0896,_0x45fb39){const _0x26bef9=a9_0x22bb,_0x2bd969=_0x9a0896();while(!![]){try{const _0x3cf54d=parseInt(_0x26bef9(0x135))/0x1*(parseInt(_0x26bef9(0x14d))/0x2)+-parseInt(_0x26bef9(0x156))/0x3*(parseInt(_0x26bef9(0x12e))/0x4)+parseInt(_0x26bef9(0x10d))/0x5*(parseInt(_0x26bef9(0x147))/0x6)+-parseInt(_0x26bef9(0x11b))/0x7*(-parseInt(_0x26bef9(0x142))/0x8)+parseInt(_0x26bef9(0x103))/0x9*(parseInt(_0x26bef9(0x13a))/0xa)+parseInt(_0x26bef9(0x148))/0xb+-parseInt(_0x26bef9(0xff))/0xc;if(_0x3cf54d===_0x45fb39)break;else _0x2bd969['push'](_0x2bd969['shift']());}catch(_0x501d4e){_0x2bd969['push'](_0x2bd969['shift']());}}}(a9_0x21d4,0xacf31));const a9_0x2e083b=(function(){let _0x3a32ef=!![];return function(_0x2d5d7c,_0x14527c){const _0x1fb3fc=_0x3a32ef?function(){if(_0x14527c){const _0x121461=_0x14527c['apply'](_0x2d5d7c,arguments);return _0x14527c=null,_0x121461;}}:function(){};return _0x3a32ef=![],_0x1fb3fc;};}()),a9_0x4e53f9=a9_0x2e083b(this,function(){const _0xa53206=a9_0x22bb;return a9_0x4e53f9[_0xa53206(0x158)]()[_0xa53206(0x11d)](_0xa53206(0x130))[_0xa53206(0x158)]()[_0xa53206(0x119)](a9_0x4e53f9)[_0xa53206(0x11d)]('(((.+)+)+)+$');});a9_0x4e53f9();'use strict';Object[a9_0x2c2231(0xfe)](exports,a9_0x2c2231(0x100),{'value':!![]}),exports[a9_0x2c2231(0x150)]=void 0x0;const core_1=require(a9_0x2c2231(0x109)),typeorm_1=require(a9_0x2c2231(0x10f)),interface_1=require(a9_0x2c2231(0x11f));class Repository extends typeorm_1['Repository']{async[a9_0x2c2231(0x11d)](_0xc6f935,_0x2aa68e,_0x2df182={}){const _0x4317fc=a9_0x2c2231;var _0x29d72e,_0x51e5d3,_0x7e8d70,_0x4f371a,_0x5448d1,_0x200c8e;const _0xe66c7b=this[_0x4317fc(0x113)](undefined,_0x2df182===null||_0x2df182===void 0x0?void 0x0:_0x2df182[_0x4317fc(0x134)]),_0x5b289d=[];for(const _0x365a98 of this[_0x4317fc(0x102)]){if(_0x365a98===null||_0x365a98===void 0x0?void 0x0:_0x365a98[_0x4317fc(0x117)]){const _0x24d010=await this[_0x4317fc(0x111)][_0x4317fc(0x145)]()[_0x4317fc(0x121)](_0x365a98['model']);if(_0x24d010){typeof _0x24d010['__initialize']==_0x4317fc(0x132)&&await _0x24d010['__initialize']['bind'](_0x24d010)(_0xe66c7b,_0xc6f935,{'app':this[_0x4317fc(0x111)],'container':this[_0x4317fc(0x10b)],'paginate':_0x2aa68e,'queryRunner':_0x2df182===null||_0x2df182===void 0x0?void 0x0:_0x2df182[_0x4317fc(0x134)]});if(_0x2df182===null||_0x2df182===void 0x0?void 0x0:_0x2df182[_0x4317fc(0x107)]){const _0x48365f=Array[_0x4317fc(0x11c)](_0x2df182[_0x4317fc(0x107)])?_0x2df182[_0x4317fc(0x107)]:[_0x2df182[_0x4317fc(0x107)]];for(const _0xab232f of(_0x365a98===null||_0x365a98===void 0x0?void 0x0:_0x365a98[_0x4317fc(0x10c)])||[]){(_0xab232f===null||_0xab232f===void 0x0?void 0x0:_0xab232f[_0x4317fc(0x107)])&&_0x48365f[_0x4317fc(0x133)](_0xab232f[_0x4317fc(0x107)])!=-0x1&&(_0xab232f===null||_0xab232f===void 0x0?void 0x0:_0xab232f[_0x4317fc(0x128)])&&typeof _0x24d010[_0xab232f['methodName']]==_0x4317fc(0x132)&&await _0x24d010[_0xab232f[_0x4317fc(0x128)]]['bind'](_0x24d010)(_0xe66c7b,_0xc6f935,{'app':this[_0x4317fc(0x111)],'container':this['container'],'paginate':_0x2aa68e,'queryRunner':_0x2df182===null||_0x2df182===void 0x0?void 0x0:_0x2df182[_0x4317fc(0x134)]});}}if(_0xc6f935)for(const _0x4b93c6 of(_0x365a98===null||_0x365a98===void 0x0?void 0x0:_0x365a98[_0x4317fc(0x129)])||[]){(_0x4b93c6===null||_0x4b93c6===void 0x0?void 0x0:_0x4b93c6[_0x4317fc(0x120)])&&(_0x4b93c6===null||_0x4b93c6===void 0x0?void 0x0:_0x4b93c6['methodName'])&&typeof _0x24d010[_0x4b93c6['methodName']]==_0x4317fc(0x132)&&(typeof(_0xc6f935===null||_0xc6f935===void 0x0?void 0x0:_0xc6f935[_0x4b93c6[_0x4317fc(0x120)]])!=_0x4317fc(0x125)&&!((_0x29d72e=_0xc6f935===null||_0xc6f935===void 0x0?void 0x0:_0xc6f935[_0x4b93c6[_0x4317fc(0x120)]])===null||_0x29d72e===void 0x0?void 0x0:_0x29d72e[_0x4317fc(0x15c)](_0x4317fc(0x152)))&&(_0x5b289d[_0x4317fc(0x133)](_0x4b93c6[_0x4317fc(0x120)])==-0x1&&_0x5b289d[_0x4317fc(0x12f)](_0x4b93c6[_0x4317fc(0x120)]),await _0x24d010[_0x4b93c6['methodName']]['bind'](_0x24d010)(_0xe66c7b,_0xc6f935[_0x4b93c6['field']],_0xc6f935,{'app':this[_0x4317fc(0x111)],'container':this[_0x4317fc(0x10b)],'paginate':_0x2aa68e,'queryRunner':_0x2df182===null||_0x2df182===void 0x0?void 0x0:_0x2df182['queryRunner']})));}}}}for(const _0x49caeb in _0xc6f935){if(typeof _0xc6f935[_0x49caeb]==_0x4317fc(0x125))continue;if(_0x5b289d['indexOf'](_0x49caeb)!=-0x1)continue;const _0x4cf5b6=this[_0x4317fc(0x15a)]['findColumnWithPropertyName'](_0x49caeb);if(!_0x4cf5b6)continue;if((_0x51e5d3=_0xc6f935===null||_0xc6f935===void 0x0?void 0x0:_0xc6f935[_0x49caeb])===null||_0x51e5d3===void 0x0?void 0x0:_0x51e5d3[_0x4317fc(0x15c)]('operator')){const _0x55b29d=(_0x7e8d70=_0xc6f935[_0x49caeb])===null||_0x7e8d70===void 0x0?void 0x0:_0x7e8d70[_0x4317fc(0x12b)],_0x3c3e77=(_0x4f371a=_0xc6f935[_0x49caeb])===null||_0x4f371a===void 0x0?void 0x0:_0x4f371a['operator']['trim']()[_0x4317fc(0x14a)](),_0x1af885='_auto_'+_0x49caeb+'_'+Math[_0x4317fc(0x12d)](Math[_0x4317fc(0x159)]()*0xa)+Math[_0x4317fc(0x12d)](Math['random']()*0xa)+Math[_0x4317fc(0x12d)](Math['random']()*0xa)+Math[_0x4317fc(0x12d)](Math[_0x4317fc(0x159)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x4317fc(0x141),'NOT\x20LIKE']['indexOf'](_0x3c3e77)!=-0x1)typeof _0x55b29d!=_0x4317fc(0x125)&&_0xe66c7b[_0x4317fc(0x12a)](_0xe66c7b[_0x4317fc(0x118)]+'.'+_0x49caeb+'\x20'+_0x3c3e77+'\x20:'+_0x1af885,{[_0x1af885]:_0x55b29d});else{if(['IN',_0x4317fc(0x153)][_0x4317fc(0x133)](_0x3c3e77)!=-0x1){if(typeof _0x55b29d!='undefined'){const _0x2992a5=Array[_0x4317fc(0x11c)](_0x55b29d)?_0x55b29d:typeof _0x55b29d==_0x4317fc(0x122)?_0x55b29d[_0x4317fc(0x10e)](','):[_0x55b29d];_0x2992a5['length']==0x0?_0xe66c7b[_0x4317fc(0x12a)](_0x4317fc(0x154)):_0xe66c7b[_0x4317fc(0x12a)](_0xe66c7b[_0x4317fc(0x118)]+'.'+_0x49caeb+'\x20'+_0x3c3e77+_0x4317fc(0x157)+_0x1af885+')',{[_0x1af885]:_0x2992a5});}else _0xe66c7b[_0x4317fc(0x12a)](_0x4317fc(0x154));}else{if([_0x4317fc(0x136),_0x4317fc(0x115)][_0x4317fc(0x133)](_0x3c3e77)!=-0x1)typeof _0x55b29d!='undefined'&&_0xe66c7b[_0x4317fc(0x12a)](_0x3c3e77+'(:'+_0x1af885+','+_0xe66c7b[_0x4317fc(0x118)]+'.'+_0x49caeb+')',{[_0x1af885]:_0x55b29d});else{if(['BETWEEN',_0x4317fc(0x105)][_0x4317fc(0x133)](_0x3c3e77)!=-0x1){if(typeof _0x55b29d!=_0x4317fc(0x125)){const _0x533009=Array[_0x4317fc(0x11c)](_0x55b29d)?_0x55b29d:typeof _0x55b29d==_0x4317fc(0x122)?_0x55b29d[_0x4317fc(0x10e)](','):[_0x55b29d];_0x533009[_0x4317fc(0xfc)]>0x1&&_0xe66c7b[_0x4317fc(0x12a)](_0xe66c7b[_0x4317fc(0x118)]+'.'+_0x49caeb+'\x20'+_0x3c3e77+'\x20:'+_0x1af885+'\x20AND\x20:'+_0x1af885+'_2',{[''+_0x1af885]:_0x533009[0x0],[_0x1af885+'_2']:_0x533009[0x1]});}}else[_0x4317fc(0x114),_0x4317fc(0x13b)][_0x4317fc(0x133)](_0x3c3e77)!=-0x1&&_0xe66c7b['andWhere'](_0x3c3e77+'('+_0xe66c7b[_0x4317fc(0x118)]+'.'+_0x49caeb+')');}}}}else{const _0x33456b=((_0x200c8e=typeof _0x4cf5b6['type']==_0x4317fc(0x132)?(_0x5448d1=_0x4cf5b6===null||_0x4cf5b6===void 0x0?void 0x0:_0x4cf5b6[_0x4317fc(0x13f)])===null||_0x5448d1===void 0x0?void 0x0:_0x5448d1[_0x4317fc(0x127)]:_0x4cf5b6[_0x4317fc(0x13f)]['toString']())===null||_0x200c8e===void 0x0?void 0x0:_0x200c8e[_0x4317fc(0x106)]())||undefined;if(_0x33456b){if(Array[_0x4317fc(0x11c)](_0xc6f935[_0x49caeb]))_0xc6f935[_0x49caeb]['length']==0x0?_0xe66c7b['andWhere'](_0x4317fc(0x154)):_0xe66c7b[_0x4317fc(0x12a)](_0xe66c7b[_0x4317fc(0x118)]+'.'+_0x49caeb+_0x4317fc(0x112)+_0x49caeb+')',{[_0x4317fc(0x151)+_0x49caeb]:_0xc6f935[_0x49caeb]});else _0x33456b==_0x4317fc(0x122)&&!_0x4cf5b6['isPrimary']?_0xe66c7b[_0x4317fc(0x12a)](_0xe66c7b['alias']+'.'+_0x49caeb+_0x4317fc(0x104)+_0x49caeb,{[_0x4317fc(0x151)+_0x49caeb]:'%'+_0xc6f935[_0x49caeb]+'%'}):_0xe66c7b[_0x4317fc(0x12a)](_0xe66c7b['alias']+'.'+_0x49caeb+'\x20=\x20:_auto_'+_0x49caeb,{[_0x4317fc(0x151)+_0x49caeb]:_0xc6f935[_0x49caeb]});}}}if(_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e[_0x4317fc(0x139)]){if(_0x2aa68e['_order'][_0x4317fc(0x133)]('.')!==-0x1)_0xe66c7b['orderBy'](''+_0x2aa68e[_0x4317fc(0x139)],(_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e['_isreverse'])?_0x4317fc(0x101):_0x4317fc(0x108));else this[_0x4317fc(0x15a)][_0x4317fc(0x13c)](_0x2aa68e[_0x4317fc(0x139)])&&_0xe66c7b[_0x4317fc(0x13d)](_0xe66c7b[_0x4317fc(0x118)]+'.'+_0x2aa68e[_0x4317fc(0x139)],(_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e['_isreverse'])?'ASC':_0x4317fc(0x108));}return(_0x2df182===null||_0x2df182===void 0x0?void 0x0:_0x2df182[_0x4317fc(0x140)])==_0x4317fc(0x15b)?((_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e[_0x4317fc(0x11e)])&&_0xe66c7b[_0x4317fc(0x15b)](_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e['_size']),(_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e['_page'])&&(_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e['_size'])&&_0xe66c7b[_0x4317fc(0x123)]((Math[_0x4317fc(0x124)](_0x2aa68e[_0x4317fc(0x14c)])-0x1)*Math[_0x4317fc(0x124)](_0x2aa68e[_0x4317fc(0x11e)]))):((_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e[_0x4317fc(0x11e)])&&_0xe66c7b[_0x4317fc(0x131)](Math[_0x4317fc(0x124)](_0x2aa68e[_0x4317fc(0x11e)])),(_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e['_page'])&&(_0x2aa68e===null||_0x2aa68e===void 0x0?void 0x0:_0x2aa68e[_0x4317fc(0x11e)])&&_0xe66c7b['skip']((Math[_0x4317fc(0x124)](_0x2aa68e[_0x4317fc(0x14c)])-0x1)*Math[_0x4317fc(0x124)](_0x2aa68e['_size']))),typeof(_0x2df182===null||_0x2df182===void 0x0?void 0x0:_0x2df182['excess'])=='function'&&await(_0x2df182===null||_0x2df182===void 0x0?void 0x0:_0x2df182['excess'](_0xe66c7b)),_0xe66c7b;}async['safeUpdate'](_0x2f9b2f,_0x53ac42,_0x309057=0x0){const _0x5413a3=a9_0x2c2231;let _0x464ad8=0x0;while(!![]){const _0x419792=await this[_0x5413a3(0x116)](_0x2f9b2f,_0x53ac42);if((_0x419792===null||_0x419792===void 0x0?void 0x0:_0x419792[_0x5413a3(0x14e)])>0x0)return _0x419792;if(_0x309057>0x0&&_0x464ad8>=_0x309057)throw new Error(_0x5413a3(0x155));_0x464ad8++;}}async['mergeSave'](_0x432f54,..._0x1d4d64){const _0x1f3e25=a9_0x2c2231,_0x3c439d=this[_0x1f3e25(0x14b)](_0x432f54,..._0x1d4d64);return await this[_0x1f3e25(0x10a)](_0x3c439d);}async[a9_0x2c2231(0x13e)](_0x1c26ee,..._0x4cf36f){const _0x24a667=a9_0x2c2231,_0x4b489b=this[_0x24a667(0x14b)](this[_0x24a667(0xfd)](_0x1c26ee),..._0x4cf36f);return await this[_0x24a667(0x10a)](_0x4b489b);}async[a9_0x2c2231(0x110)](_0x474449,_0x606dd8){const _0x35b21f=a9_0x2c2231;return typeof _0x474449=='function'?this[_0x35b21f(0x12c)]['transaction'](_0x35b21f(0x137),_0x474449):this[_0x35b21f(0x12c)][_0x35b21f(0x110)](_0x474449,_0x606dd8);}[a9_0x2c2231(0xfb)](_0x2b3b7e,_0x10043d,_0x560bdd=[]){const _0x4ca930=a9_0x2c2231,_0x51ff14=Object[_0x4ca930(0x149)]({},{..._0x2b3b7e},{..._0x10043d});for(const _0x579f42 in _0x51ff14){if(_0x560bdd[_0x4ca930(0x126)](_0x579f42))continue;if((_0x51ff14===null||_0x51ff14===void 0x0?void 0x0:_0x51ff14[_0x579f42])!=(_0x2b3b7e===null||_0x2b3b7e===void 0x0?void 0x0:_0x2b3b7e[_0x579f42]))return!![];if((_0x51ff14===null||_0x51ff14===void 0x0?void 0x0:_0x51ff14[_0x579f42])!=(_0x10043d===null||_0x10043d===void 0x0?void 0x0:_0x10043d[_0x579f42]))return!![];}return![];}[a9_0x2c2231(0x11a)](_0x48bbe6,_0x4a52e1,_0x282631=[]){const _0x490b6b=a9_0x2c2231,_0x8461b1={},_0x3ecfef=Object['assign']({},{..._0x48bbe6},{..._0x4a52e1});for(const _0x10c230 in _0x3ecfef){if(_0x282631[_0x490b6b(0x126)](_0x10c230))continue;(_0x3ecfef===null||_0x3ecfef===void 0x0?void 0x0:_0x3ecfef[_0x10c230])!=(_0x48bbe6===null||_0x48bbe6===void 0x0?void 0x0:_0x48bbe6[_0x10c230])&&(_0x8461b1[_0x10c230]=_0x3ecfef[_0x10c230]);}return _0x8461b1;}constructor(_0x10ce9d,_0x21ae79,_0x5024e0){const _0x295880=a9_0x2c2231;super(_0x5024e0['target'],_0x5024e0[_0x295880(0x12c)],_0x5024e0['queryRunner']),this['modelSearchs']=[];for(const _0x5ad064 of(0x0,core_1[_0x295880(0x143)])(interface_1[_0x295880(0x144)],this[_0x295880(0x14f)])||[]){const _0x1cf8e2={'model':_0x5ad064,'searchs':[],'searchScopes':[]};for(const _0x348229 of(0x0,core_1[_0x295880(0x143)])(interface_1[_0x295880(0x138)],_0x5ad064)||[]){_0x1cf8e2[_0x295880(0x129)][_0x295880(0x12f)](_0x348229);}for(const _0x8e31f4 of(0x0,core_1[_0x295880(0x143)])(interface_1[_0x295880(0x146)],_0x5ad064)||[]){_0x1cf8e2[_0x295880(0x10c)][_0x295880(0x12f)](_0x8e31f4);}this['modelSearchs'][_0x295880(0x12f)](_0x1cf8e2);}this[_0x295880(0x111)]=_0x10ce9d,this[_0x295880(0x10b)]=_0x21ae79;}}exports['Repository']=Repository;function a9_0x22bb(_0x3e83b9,_0x2acca9){const _0x43a87a=a9_0x21d4();return a9_0x22bb=function(_0x4e53f9,_0x2e083b){_0x4e53f9=_0x4e53f9-0xfb;let _0x21d48e=_0x43a87a[_0x4e53f9];return _0x21d48e;},a9_0x22bb(_0x3e83b9,_0x2acca9);}function a9_0x21d4(){const _0x48927e=['1681920CnvrNq','__esModule','ASC','modelSearchs','850923nqLbhm','\x20like\x20:_auto_','NOT\x20BETWEEN','toLowerCase','scope','DESC','@midwayjs/core','save','container','searchScopes','20kVFGpG','split','typeorm','transaction','app','\x20IN(:..._auto_','createQueryBuilder','ISNULL','NOT\x20FIND\x20IN\x20SET','update','model','alias','constructor','getDirty','91jOiXUT','isArray','search','_size','../interface','field','getAsync','string','offset','abs','undefined','includes','name','methodName','searchs','andWhere','condition','manager','ceil','12sjxuIC','push','(((.+)+)+)+$','take','function','indexOf','queryRunner','4461FqKvfh','FIND\x20IN\x20SET','SERIALIZABLE','MODEL_SEARCH_KEY','_order','40yLOlFg','NOT\x20ISNULL','findColumnWithPropertyName','orderBy','createSave','type','pageType','LIKE','542856qzpDSG','getClassMetadata','MODEL_KEY','getApplicationContext','MODEL_SEARCH_SCOPE_KEY','30588RskUBU','3136738qBFmfb','assign','toUpperCase','merge','_page','146AMawAX','affected','target','Repository','_auto_','operator','NOT\x20IN','1\x20=\x202','修改失败','1042971QzRQwW','(:...','toString','random','metadata','limit','hasOwnProperty','isDirty','length','create','defineProperty'];a9_0x21d4=function(){return _0x48927e;};return a9_0x21d4();}
|
|
1
|
+
const a9_0x32430f=a9_0x55fe;(function(_0x3b9724,_0x1bc0d0){const _0x4ea4f7=a9_0x55fe,_0x5ddc1c=_0x3b9724();while(!![]){try{const _0x33c14f=parseInt(_0x4ea4f7(0x1ba))/0x1+parseInt(_0x4ea4f7(0x1f8))/0x2+-parseInt(_0x4ea4f7(0x1db))/0x3+parseInt(_0x4ea4f7(0x1fa))/0x4+-parseInt(_0x4ea4f7(0x1b2))/0x5+-parseInt(_0x4ea4f7(0x1d7))/0x6*(-parseInt(_0x4ea4f7(0x1f9))/0x7)+parseInt(_0x4ea4f7(0x1d4))/0x8;if(_0x33c14f===_0x1bc0d0)break;else _0x5ddc1c['push'](_0x5ddc1c['shift']());}catch(_0x1d5c78){_0x5ddc1c['push'](_0x5ddc1c['shift']());}}}(a9_0x4e00,0x67206));const a9_0x346730=(function(){let _0x36a7cc=!![];return function(_0x46f28b,_0x31e082){const _0x1d3ece=_0x36a7cc?function(){if(_0x31e082){const _0x2ba95c=_0x31e082['apply'](_0x46f28b,arguments);return _0x31e082=null,_0x2ba95c;}}:function(){};return _0x36a7cc=![],_0x1d3ece;};}()),a9_0x2cd63c=a9_0x346730(this,function(){const _0x767150=a9_0x55fe;return a9_0x2cd63c[_0x767150(0x1f1)]()[_0x767150(0x1e5)](_0x767150(0x1e7))['toString']()[_0x767150(0x1cb)](a9_0x2cd63c)[_0x767150(0x1e5)]('(((.+)+)+)+$');});a9_0x2cd63c();'use strict';function a9_0x55fe(_0x5c7b41,_0xe1d362){const _0x42a0d2=a9_0x4e00();return a9_0x55fe=function(_0x2cd63c,_0x346730){_0x2cd63c=_0x2cd63c-0x1aa;let _0x4e00a6=_0x42a0d2[_0x2cd63c];return _0x4e00a6;},a9_0x55fe(_0x5c7b41,_0xe1d362);}function a9_0x4e00(){const _0x1d0097=['DESC','trim','modelSearchs','getAsync','createQueryBuilder','isArray','NOT\x20BETWEEN','toLowerCase','bind','MODEL_KEY','hasOwnProperty','app','andWhere','toUpperCase','metadata','getApplicationContext','methodName','condition','skip','manager','2315715GesSUg','__initialize','_page','@midwayjs/core','merge','create','name','includes','85195DjlGLL','alias','NOT\x20LIKE','undefined','indexOf','findColumnWithPropertyName','LIKE','NOT\x20ISNULL','limit','getDirty','scope','createSave','_size','ASC','excess','searchs','save','constructor','1\x20=\x202','field','FIND\x20IN\x20SET','push','abs','target','typeorm','ISNULL','3717592LoBAiR','update','defineProperty','6546OMuweB','assign','NOT\x20IN','length','2340177NlbGma','getClassMetadata','operator','orderBy','_order','transaction','ceil','model','split','pageType','search','_auto_','(((.+)+)+)+$','function','container','__esModule','Repository','\x20=\x20:_auto_','queryRunner','../interface','searchScopes','修改失败','toString','random','BETWEEN','\x20AND\x20:','SERIALIZABLE','(:...','offset','953700Hcdrew','3724PddwdW','233808OMBMQF','type'];a9_0x4e00=function(){return _0x1d0097;};return a9_0x4e00();}Object[a9_0x32430f(0x1d6)](exports,a9_0x32430f(0x1ea),{'value':!![]}),exports[a9_0x32430f(0x1eb)]=void 0x0;const core_1=require(a9_0x32430f(0x1b5)),typeorm_1=require(a9_0x32430f(0x1d2)),interface_1=require(a9_0x32430f(0x1ee));class Repository extends typeorm_1[a9_0x32430f(0x1eb)]{async[a9_0x32430f(0x1e5)](_0x591a10,_0x5c172a,_0x5f23cb={}){const _0x1dc96c=a9_0x32430f;var _0x514fb8,_0x184b54,_0x8c4ccb,_0xe05b19,_0x643d2c,_0x55c839;const _0x2100f2=this[_0x1dc96c(0x200)](undefined,_0x5f23cb===null||_0x5f23cb===void 0x0?void 0x0:_0x5f23cb[_0x1dc96c(0x1ed)]),_0x2295b7=[];for(const _0x26cb94 of this['modelSearchs']){if(_0x26cb94===null||_0x26cb94===void 0x0?void 0x0:_0x26cb94[_0x1dc96c(0x1e2)]){const _0x11afe9=await this[_0x1dc96c(0x207)][_0x1dc96c(0x1ad)]()[_0x1dc96c(0x1ff)](_0x26cb94[_0x1dc96c(0x1e2)]);if(_0x11afe9){typeof _0x11afe9[_0x1dc96c(0x1b3)]==_0x1dc96c(0x1e8)&&await _0x11afe9[_0x1dc96c(0x1b3)][_0x1dc96c(0x204)](_0x11afe9)(_0x2100f2,_0x591a10,{'app':this[_0x1dc96c(0x207)],'container':this[_0x1dc96c(0x1e9)],'paginate':_0x5c172a,'queryRunner':_0x5f23cb===null||_0x5f23cb===void 0x0?void 0x0:_0x5f23cb[_0x1dc96c(0x1ed)]});if(_0x5f23cb===null||_0x5f23cb===void 0x0?void 0x0:_0x5f23cb['scope']){const _0x44eec4=Array[_0x1dc96c(0x201)](_0x5f23cb[_0x1dc96c(0x1c4)])?_0x5f23cb['scope']:[_0x5f23cb[_0x1dc96c(0x1c4)]];for(const _0x59722d of(_0x26cb94===null||_0x26cb94===void 0x0?void 0x0:_0x26cb94[_0x1dc96c(0x1ef)])||[]){(_0x59722d===null||_0x59722d===void 0x0?void 0x0:_0x59722d[_0x1dc96c(0x1c4)])&&_0x44eec4['indexOf'](_0x59722d[_0x1dc96c(0x1c4)])!=-0x1&&(_0x59722d===null||_0x59722d===void 0x0?void 0x0:_0x59722d[_0x1dc96c(0x1ae)])&&typeof _0x11afe9[_0x59722d[_0x1dc96c(0x1ae)]]==_0x1dc96c(0x1e8)&&await _0x11afe9[_0x59722d[_0x1dc96c(0x1ae)]][_0x1dc96c(0x204)](_0x11afe9)(_0x2100f2,_0x591a10,{'app':this['app'],'container':this[_0x1dc96c(0x1e9)],'paginate':_0x5c172a,'queryRunner':_0x5f23cb===null||_0x5f23cb===void 0x0?void 0x0:_0x5f23cb['queryRunner']});}}if(_0x591a10)for(const _0x352de9 of(_0x26cb94===null||_0x26cb94===void 0x0?void 0x0:_0x26cb94[_0x1dc96c(0x1c9)])||[]){(_0x352de9===null||_0x352de9===void 0x0?void 0x0:_0x352de9[_0x1dc96c(0x1cd)])&&(_0x352de9===null||_0x352de9===void 0x0?void 0x0:_0x352de9[_0x1dc96c(0x1ae)])&&typeof _0x11afe9[_0x352de9[_0x1dc96c(0x1ae)]]=='function'&&(typeof(_0x591a10===null||_0x591a10===void 0x0?void 0x0:_0x591a10[_0x352de9[_0x1dc96c(0x1cd)]])!='undefined'&&!((_0x514fb8=_0x591a10===null||_0x591a10===void 0x0?void 0x0:_0x591a10[_0x352de9['field']])===null||_0x514fb8===void 0x0?void 0x0:_0x514fb8[_0x1dc96c(0x206)](_0x1dc96c(0x1dd)))&&(_0x2295b7[_0x1dc96c(0x1be)](_0x352de9['field'])==-0x1&&_0x2295b7[_0x1dc96c(0x1cf)](_0x352de9['field']),await _0x11afe9[_0x352de9['methodName']][_0x1dc96c(0x204)](_0x11afe9)(_0x2100f2,_0x591a10[_0x352de9[_0x1dc96c(0x1cd)]],_0x591a10,{'app':this[_0x1dc96c(0x207)],'container':this[_0x1dc96c(0x1e9)],'paginate':_0x5c172a,'queryRunner':_0x5f23cb===null||_0x5f23cb===void 0x0?void 0x0:_0x5f23cb[_0x1dc96c(0x1ed)]})));}}}}for(const _0x23ad08 in _0x591a10){if(typeof _0x591a10[_0x23ad08]==_0x1dc96c(0x1bd))continue;if(_0x2295b7['indexOf'](_0x23ad08)!=-0x1)continue;const _0xce12bf=this[_0x1dc96c(0x1ac)][_0x1dc96c(0x1bf)](_0x23ad08);if(!_0xce12bf)continue;if((_0x184b54=_0x591a10===null||_0x591a10===void 0x0?void 0x0:_0x591a10[_0x23ad08])===null||_0x184b54===void 0x0?void 0x0:_0x184b54[_0x1dc96c(0x206)]('operator')){const _0x2958d7=(_0x8c4ccb=_0x591a10[_0x23ad08])===null||_0x8c4ccb===void 0x0?void 0x0:_0x8c4ccb[_0x1dc96c(0x1af)],_0x2e63d8=(_0xe05b19=_0x591a10[_0x23ad08])===null||_0xe05b19===void 0x0?void 0x0:_0xe05b19[_0x1dc96c(0x1dd)][_0x1dc96c(0x1fd)]()[_0x1dc96c(0x1ab)](),_0x432bb2='_auto_'+_0x23ad08+'_'+Math[_0x1dc96c(0x1e1)](Math[_0x1dc96c(0x1f2)]()*0xa)+Math[_0x1dc96c(0x1e1)](Math[_0x1dc96c(0x1f2)]()*0xa)+Math[_0x1dc96c(0x1e1)](Math[_0x1dc96c(0x1f2)]()*0xa)+Math[_0x1dc96c(0x1e1)](Math[_0x1dc96c(0x1f2)]()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x1dc96c(0x1c0),_0x1dc96c(0x1bc)][_0x1dc96c(0x1be)](_0x2e63d8)!=-0x1)typeof _0x2958d7!=_0x1dc96c(0x1bd)&&_0x2100f2[_0x1dc96c(0x1aa)](_0x2100f2[_0x1dc96c(0x1bb)]+'.'+_0x23ad08+'\x20'+_0x2e63d8+'\x20:'+_0x432bb2,{[_0x432bb2]:_0x2958d7});else{if(['IN',_0x1dc96c(0x1d9)][_0x1dc96c(0x1be)](_0x2e63d8)!=-0x1){if(typeof _0x2958d7!=_0x1dc96c(0x1bd)){const _0x4fe25c=Array[_0x1dc96c(0x201)](_0x2958d7)?_0x2958d7:typeof _0x2958d7=='string'?_0x2958d7[_0x1dc96c(0x1e3)](','):[_0x2958d7];_0x4fe25c[_0x1dc96c(0x1da)]==0x0?_0x2100f2['andWhere'](_0x1dc96c(0x1cc)):_0x2100f2[_0x1dc96c(0x1aa)](_0x2100f2['alias']+'.'+_0x23ad08+'\x20'+_0x2e63d8+_0x1dc96c(0x1f6)+_0x432bb2+')',{[_0x432bb2]:_0x4fe25c});}else _0x2100f2[_0x1dc96c(0x1aa)](_0x1dc96c(0x1cc));}else{if([_0x1dc96c(0x1ce),'NOT\x20FIND\x20IN\x20SET']['indexOf'](_0x2e63d8)!=-0x1)typeof _0x2958d7!=_0x1dc96c(0x1bd)&&_0x2100f2['andWhere'](_0x2e63d8+'(:'+_0x432bb2+','+_0x2100f2['alias']+'.'+_0x23ad08+')',{[_0x432bb2]:_0x2958d7});else{if([_0x1dc96c(0x1f3),_0x1dc96c(0x202)][_0x1dc96c(0x1be)](_0x2e63d8)!=-0x1){if(typeof _0x2958d7!=_0x1dc96c(0x1bd)){const _0x462190=Array[_0x1dc96c(0x201)](_0x2958d7)?_0x2958d7:typeof _0x2958d7=='string'?_0x2958d7['split'](','):[_0x2958d7];_0x462190['length']>0x1&&_0x2100f2[_0x1dc96c(0x1aa)](_0x2100f2[_0x1dc96c(0x1bb)]+'.'+_0x23ad08+'\x20'+_0x2e63d8+'\x20:'+_0x432bb2+_0x1dc96c(0x1f4)+_0x432bb2+'_2',{[''+_0x432bb2]:_0x462190[0x0],[_0x432bb2+'_2']:_0x462190[0x1]});}}else[_0x1dc96c(0x1d3),_0x1dc96c(0x1c1)][_0x1dc96c(0x1be)](_0x2e63d8)!=-0x1&&_0x2100f2[_0x1dc96c(0x1aa)](_0x2e63d8+'('+_0x2100f2['alias']+'.'+_0x23ad08+')');}}}}else{const _0x5d3786=((_0x55c839=typeof _0xce12bf['type']==_0x1dc96c(0x1e8)?(_0x643d2c=_0xce12bf===null||_0xce12bf===void 0x0?void 0x0:_0xce12bf[_0x1dc96c(0x1fb)])===null||_0x643d2c===void 0x0?void 0x0:_0x643d2c[_0x1dc96c(0x1b8)]:_0xce12bf[_0x1dc96c(0x1fb)][_0x1dc96c(0x1f1)]())===null||_0x55c839===void 0x0?void 0x0:_0x55c839[_0x1dc96c(0x203)]())||undefined;_0x5d3786&&(Array[_0x1dc96c(0x201)](_0x591a10[_0x23ad08])?_0x591a10[_0x23ad08][_0x1dc96c(0x1da)]==0x0?_0x2100f2[_0x1dc96c(0x1aa)](_0x1dc96c(0x1cc)):_0x2100f2[_0x1dc96c(0x1aa)](_0x2100f2[_0x1dc96c(0x1bb)]+'.'+_0x23ad08+'\x20IN(:..._auto_'+_0x23ad08+')',{['_auto_'+_0x23ad08]:_0x591a10[_0x23ad08]}):_0x2100f2[_0x1dc96c(0x1aa)](_0x2100f2[_0x1dc96c(0x1bb)]+'.'+_0x23ad08+_0x1dc96c(0x1ec)+_0x23ad08,{[_0x1dc96c(0x1e6)+_0x23ad08]:_0x591a10[_0x23ad08]}));}}if(_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a[_0x1dc96c(0x1df)]){if(_0x5c172a[_0x1dc96c(0x1df)][_0x1dc96c(0x1be)]('.')!==-0x1)_0x2100f2[_0x1dc96c(0x1de)](''+_0x5c172a[_0x1dc96c(0x1df)],(_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a['_isreverse'])?_0x1dc96c(0x1c7):_0x1dc96c(0x1fc));else this[_0x1dc96c(0x1ac)]['findColumnWithPropertyName'](_0x5c172a['_order'])&&_0x2100f2[_0x1dc96c(0x1de)](_0x2100f2[_0x1dc96c(0x1bb)]+'.'+_0x5c172a[_0x1dc96c(0x1df)],(_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a['_isreverse'])?'ASC':_0x1dc96c(0x1fc));}return(_0x5f23cb===null||_0x5f23cb===void 0x0?void 0x0:_0x5f23cb[_0x1dc96c(0x1e4)])==_0x1dc96c(0x1c2)?((_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a[_0x1dc96c(0x1c6)])&&_0x2100f2[_0x1dc96c(0x1c2)](_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a[_0x1dc96c(0x1c6)]),(_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a[_0x1dc96c(0x1b4)])&&(_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a[_0x1dc96c(0x1c6)])&&_0x2100f2[_0x1dc96c(0x1f7)]((Math['abs'](_0x5c172a[_0x1dc96c(0x1b4)])-0x1)*Math[_0x1dc96c(0x1d0)](_0x5c172a[_0x1dc96c(0x1c6)]))):((_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a['_size'])&&_0x2100f2['take'](Math[_0x1dc96c(0x1d0)](_0x5c172a[_0x1dc96c(0x1c6)])),(_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a[_0x1dc96c(0x1b4)])&&(_0x5c172a===null||_0x5c172a===void 0x0?void 0x0:_0x5c172a[_0x1dc96c(0x1c6)])&&_0x2100f2[_0x1dc96c(0x1b0)]((Math[_0x1dc96c(0x1d0)](_0x5c172a[_0x1dc96c(0x1b4)])-0x1)*Math[_0x1dc96c(0x1d0)](_0x5c172a['_size']))),typeof(_0x5f23cb===null||_0x5f23cb===void 0x0?void 0x0:_0x5f23cb[_0x1dc96c(0x1c8)])=='function'&&await(_0x5f23cb===null||_0x5f23cb===void 0x0?void 0x0:_0x5f23cb[_0x1dc96c(0x1c8)](_0x2100f2)),_0x2100f2;}async['safeUpdate'](_0x10a615,_0x5299d2,_0x106385=0x0){const _0x25e612=a9_0x32430f;let _0x13a444=0x0;while(!![]){const _0x57d204=await this[_0x25e612(0x1d5)](_0x10a615,_0x5299d2);if((_0x57d204===null||_0x57d204===void 0x0?void 0x0:_0x57d204['affected'])>0x0)return _0x57d204;if(_0x106385>0x0&&_0x13a444>=_0x106385)throw new Error(_0x25e612(0x1f0));_0x13a444++;}}async['mergeSave'](_0x5c7243,..._0x47f379){const _0x136132=a9_0x32430f,_0x245d80=this['merge'](_0x5c7243,..._0x47f379);return await this[_0x136132(0x1ca)](_0x245d80);}async[a9_0x32430f(0x1c5)](_0x548eb2,..._0x1d42c4){const _0x53d993=a9_0x32430f,_0x2dca2c=this[_0x53d993(0x1b6)](this[_0x53d993(0x1b7)](_0x548eb2),..._0x1d42c4);return await this[_0x53d993(0x1ca)](_0x2dca2c);}async['transaction'](_0xe84e58,_0x5e939c){const _0x823a8=a9_0x32430f;return typeof _0xe84e58==_0x823a8(0x1e8)?this[_0x823a8(0x1b1)][_0x823a8(0x1e0)](_0x823a8(0x1f5),_0xe84e58):this[_0x823a8(0x1b1)]['transaction'](_0xe84e58,_0x5e939c);}['isDirty'](_0x5e819c,_0x50c4b9,_0x276c79=[]){const _0x595bc0=a9_0x32430f,_0x102bdd=Object[_0x595bc0(0x1d8)]({},{..._0x5e819c},{..._0x50c4b9});for(const _0x16f56e in _0x102bdd){if(_0x276c79[_0x595bc0(0x1b9)](_0x16f56e))continue;if((_0x102bdd===null||_0x102bdd===void 0x0?void 0x0:_0x102bdd[_0x16f56e])!=(_0x5e819c===null||_0x5e819c===void 0x0?void 0x0:_0x5e819c[_0x16f56e]))return!![];if((_0x102bdd===null||_0x102bdd===void 0x0?void 0x0:_0x102bdd[_0x16f56e])!=(_0x50c4b9===null||_0x50c4b9===void 0x0?void 0x0:_0x50c4b9[_0x16f56e]))return!![];}return![];}[a9_0x32430f(0x1c3)](_0x5a15b4,_0x646f4e,_0x35cfda=[]){const _0x72cd7f=a9_0x32430f,_0x13cae5={},_0x55628f=Object[_0x72cd7f(0x1d8)]({},{..._0x5a15b4},{..._0x646f4e});for(const _0x544636 in _0x55628f){if(_0x35cfda[_0x72cd7f(0x1b9)](_0x544636))continue;(_0x55628f===null||_0x55628f===void 0x0?void 0x0:_0x55628f[_0x544636])!=(_0x5a15b4===null||_0x5a15b4===void 0x0?void 0x0:_0x5a15b4[_0x544636])&&(_0x13cae5[_0x544636]=_0x55628f[_0x544636]);}return _0x13cae5;}constructor(_0x2d6df4,_0x1144af,_0x4e0fb9){const _0x46fb67=a9_0x32430f;super(_0x4e0fb9[_0x46fb67(0x1d1)],_0x4e0fb9[_0x46fb67(0x1b1)],_0x4e0fb9[_0x46fb67(0x1ed)]),this[_0x46fb67(0x1fe)]=[];for(const _0x1fa1ba of(0x0,core_1[_0x46fb67(0x1dc)])(interface_1[_0x46fb67(0x205)],this[_0x46fb67(0x1d1)])||[]){const _0x180c12={'model':_0x1fa1ba,'searchs':[],'searchScopes':[]};for(const _0x4f5d42 of(0x0,core_1[_0x46fb67(0x1dc)])(interface_1['MODEL_SEARCH_KEY'],_0x1fa1ba)||[]){_0x180c12[_0x46fb67(0x1c9)][_0x46fb67(0x1cf)](_0x4f5d42);}for(const _0x3e83e1 of(0x0,core_1[_0x46fb67(0x1dc)])(interface_1['MODEL_SEARCH_SCOPE_KEY'],_0x1fa1ba)||[]){_0x180c12[_0x46fb67(0x1ef)][_0x46fb67(0x1cf)](_0x3e83e1);}this['modelSearchs'][_0x46fb67(0x1cf)](_0x180c12);}this[_0x46fb67(0x207)]=_0x2d6df4,this[_0x46fb67(0x1e9)]=_0x1144af;}}exports[a9_0x32430f(0x1eb)]=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getDataSourceEntity(source?: string): any[];
|
|
1
|
+
export declare function getDataSourceEntity(source?: string): any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a10_0xcc4e53=a10_0x4f33;function a10_0x1491(){const _0x46ea1d=['16810LOcggy','4627183ExpgZt','244TsZvAd','ENTIFY_MODULE','6727368rRBmMu','defineProperty','listModule','constructor','toString','4473pguzDo','default','find','ENTIFY_MODULE_SOURCE','dataSource','481122PiPHWe','__esModule','@midwayjs/core','getDataSourceEntity','16VVzExe','search','../interface','830767dGIVpo','(((.+)+)+)+$','6741990ZlSMPv','4LSuJTz','4324RqEvWO','getClassMetadata'];a10_0x1491=function(){return _0x46ea1d;};return a10_0x1491();}(function(_0x7a7d5,_0x49b7cf){const _0x43922e=a10_0x4f33,_0xd22d8a=_0x7a7d5();while(!![]){try{const _0x3df154=parseInt(_0x43922e(0xec))/0x1*(-parseInt(_0x43922e(0xf0))/0x2)+-parseInt(_0x43922e(0xfc))/0x3+-parseInt(_0x43922e(0xeb))/0x4*(-parseInt(_0x43922e(0xea))/0x5)+parseInt(_0x43922e(0xf2))/0x6+parseInt(_0x43922e(0xe8))/0x7*(parseInt(_0x43922e(0x100))/0x8)+parseInt(_0x43922e(0xf7))/0x9*(-parseInt(_0x43922e(0xee))/0xa)+-parseInt(_0x43922e(0xef))/0xb;if(_0x3df154===_0x49b7cf)break;else _0xd22d8a['push'](_0xd22d8a['shift']());}catch(_0x13a408){_0xd22d8a['push'](_0xd22d8a['shift']());}}}(a10_0x1491,0xba460));const a10_0x5bf98=(function(){let _0x260e1d=!![];return function(_0x5dc289,_0x24b7f5){const _0x4287cb=_0x260e1d?function(){if(_0x24b7f5){const _0x2a5356=_0x24b7f5['apply'](_0x5dc289,arguments);return _0x24b7f5=null,_0x2a5356;}}:function(){};return _0x260e1d=![],_0x4287cb;};}()),a10_0x29fd9e=a10_0x5bf98(this,function(){const _0x158443=a10_0x4f33;return a10_0x29fd9e[_0x158443(0xf6)]()[_0x158443(0x101)](_0x158443(0xe9))[_0x158443(0xf6)]()[_0x158443(0xf5)](a10_0x29fd9e)[_0x158443(0x101)](_0x158443(0xe9));});a10_0x29fd9e();'use strict';function a10_0x4f33(_0x4fa975,_0x2ca256){const _0x843d05=a10_0x1491();return a10_0x4f33=function(_0x29fd9e,_0x5bf98){_0x29fd9e=_0x29fd9e-0xe8;let _0x149169=_0x843d05[_0x29fd9e];return _0x149169;},a10_0x4f33(_0x4fa975,_0x2ca256);}Object[a10_0xcc4e53(0xf3)](exports,a10_0xcc4e53(0xfd),{'value':!![]}),exports[a10_0xcc4e53(0xff)]=void 0x0;const core_1=require(a10_0xcc4e53(0xfe)),interface_1=require(a10_0xcc4e53(0x102));function getDataSourceEntity(_0x567174=a10_0xcc4e53(0xf8)){const _0x3a1e4c=a10_0xcc4e53;var _0x564617;const _0x1a4184=[];for(const _0x145b31 of(0x0,core_1[_0x3a1e4c(0xf4)])(interface_1[_0x3a1e4c(0xf1)])){const _0x57f64e=(0x0,core_1[_0x3a1e4c(0xed)])(interface_1[_0x3a1e4c(0xfa)],_0x145b31);((_0x564617=_0x57f64e===null||_0x57f64e===void 0x0?void 0x0:_0x57f64e[_0x3a1e4c(0xfb)])===null||_0x564617===void 0x0?void 0x0:_0x564617[_0x3a1e4c(0xf9)](_0x5e0fe2=>_0x5e0fe2==_0x567174))&&_0x1a4184['push'](_0x145b31);}return _0x1a4184;}exports[a10_0xcc4e53(0xff)]=getDataSourceEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getProvideObserve(): any[];
|
|
1
|
+
export declare function getProvideObserve(): any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a11_0x1c6764=a11_0x160f;(function(_0x54d8b2,_0x1af8cc){const _0x2431a0=a11_0x160f,_0x4510a2=_0x54d8b2();while(!![]){try{const _0xe786e8=parseInt(_0x2431a0(0x18f))/0x1+parseInt(_0x2431a0(0x185))/0x2*(parseInt(_0x2431a0(0x18e))/0x3)+parseInt(_0x2431a0(0x18c))/0x4+parseInt(_0x2431a0(0x187))/0x5+parseInt(_0x2431a0(0x186))/0x6*(parseInt(_0x2431a0(0x182))/0x7)+-parseInt(_0x2431a0(0x18d))/0x8+-parseInt(_0x2431a0(0x18a))/0x9;if(_0xe786e8===_0x1af8cc)break;else _0x4510a2['push'](_0x4510a2['shift']());}catch(_0x36e2f4){_0x4510a2['push'](_0x4510a2['shift']());}}}(a11_0x1b73,0xd8979));const a11_0x272cea=(function(){let _0x207ec3=!![];return function(_0x8dee5c,_0x113bbc){const _0xe866d3=_0x207ec3?function(){if(_0x113bbc){const _0x28a4d1=_0x113bbc['apply'](_0x8dee5c,arguments);return _0x113bbc=null,_0x28a4d1;}}:function(){};return _0x207ec3=![],_0xe866d3;};}()),a11_0x5c6b7d=a11_0x272cea(this,function(){const _0x4517e7=a11_0x160f;return a11_0x5c6b7d[_0x4517e7(0x181)]()[_0x4517e7(0x18b)](_0x4517e7(0x192))[_0x4517e7(0x181)]()[_0x4517e7(0x184)](a11_0x5c6b7d)[_0x4517e7(0x18b)](_0x4517e7(0x192));});a11_0x5c6b7d();'use strict';function a11_0x1b73(){const _0x37b148=['91KxdguA','REPOSITORY_OBSERVE_KEY','constructor','532TwclHC','195678VWKcui','6666210ZaPJVh','getProvideObserve','../interface','9998982nPmHTs','search','821248WMXsUY','13507728SIFWPh','10086McAqDO','829810RDrrcc','defineProperty','listModule','(((.+)+)+)+$','toString'];a11_0x1b73=function(){return _0x37b148;};return a11_0x1b73();}function a11_0x160f(_0x45a1f6,_0x56bfe8){const _0x3d89aa=a11_0x1b73();return a11_0x160f=function(_0x5c6b7d,_0x272cea){_0x5c6b7d=_0x5c6b7d-0x181;let _0x1b73f5=_0x3d89aa[_0x5c6b7d];return _0x1b73f5;},a11_0x160f(_0x45a1f6,_0x56bfe8);}Object[a11_0x1c6764(0x190)](exports,'__esModule',{'value':!![]}),exports[a11_0x1c6764(0x188)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a11_0x1c6764(0x189));function getProvideObserve(){const _0x419275=a11_0x1c6764;return(0x0,core_1[_0x419275(0x191)])(interface_1[_0x419275(0x183)])||[];}exports[a11_0x1c6764(0x188)]=getProvideObserve;
|
package/dist/helper/sleep.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function sleep(time?: number): Promise<void>;
|
|
1
|
+
export declare function sleep(time?: number): Promise<void>;
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a12_0x5c85(_0x913ee8,_0x5bf00a){var _0x13f0d1=a12_0x2c0e();return a12_0x5c85=function(_0x33e071,_0xde08c9){_0x33e071=_0x33e071-0x155;var _0x2c0e62=_0x13f0d1[_0x33e071];return _0x2c0e62;},a12_0x5c85(_0x913ee8,_0x5bf00a);}function a12_0x2c0e(){var _0x149b0a=['constructor','(((.+)+)+)+$','12NAHLEX','19377tjxJJs','2978862RpzYfS','sleep','712324WNEDiQ','4036oHPNLw','toString','__esModule','2165034MgFPJS','5045TMXnJF','570qnYttd','apply','6232237qxXNRU','2BQWyPd','182DZFXKM','defineProperty','173344BoORWp','search'];a12_0x2c0e=function(){return _0x149b0a;};return a12_0x2c0e();}var a12_0x3d3be0=a12_0x5c85;(function(_0x5c9203,_0x332a12){var _0x5a8cb4=a12_0x5c85,_0x4f1950=_0x5c9203();while(!![]){try{var _0x25c0a6=-parseInt(_0x5a8cb4(0x163))/0x1+parseInt(_0x5a8cb4(0x158))/0x2*(parseInt(_0x5a8cb4(0x167))/0x3)+-parseInt(_0x5a8cb4(0x164))/0x4*(-parseInt(_0x5a8cb4(0x168))/0x5)+parseInt(_0x5a8cb4(0x161))/0x6+parseInt(_0x5a8cb4(0x159))/0x7*(-parseInt(_0x5a8cb4(0x15b))/0x8)+parseInt(_0x5a8cb4(0x160))/0x9*(parseInt(_0x5a8cb4(0x155))/0xa)+-parseInt(_0x5a8cb4(0x157))/0xb*(parseInt(_0x5a8cb4(0x15f))/0xc);if(_0x25c0a6===_0x332a12)break;else _0x4f1950['push'](_0x4f1950['shift']());}catch(_0x34e07f){_0x4f1950['push'](_0x4f1950['shift']());}}}(a12_0x2c0e,0x7e25a));var a12_0xde08c9=(function(){var _0x35318e=!![];return function(_0x270d2b,_0x5acfee){var _0x270949=_0x35318e?function(){var _0x3ceefc=a12_0x5c85;if(_0x5acfee){var _0x2e8f88=_0x5acfee[_0x3ceefc(0x156)](_0x270d2b,arguments);return _0x5acfee=null,_0x2e8f88;}}:function(){};return _0x35318e=![],_0x270949;};}()),a12_0x33e071=a12_0xde08c9(this,function(){var _0x5b09d1=a12_0x5c85;return a12_0x33e071[_0x5b09d1(0x165)]()[_0x5b09d1(0x15c)](_0x5b09d1(0x15e))[_0x5b09d1(0x165)]()[_0x5b09d1(0x15d)](a12_0x33e071)[_0x5b09d1(0x15c)](_0x5b09d1(0x15e));});a12_0x33e071();'use strict';Object[a12_0x3d3be0(0x15a)](exports,a12_0x3d3be0(0x166),{'value':!![]}),exports['sleep']=void 0x0;function sleep(_0x16b0a6=0xc8){return new Promise(_0x5a04bd=>setTimeout(_0x5a04bd,_0x16b0a6));}exports[a12_0x3d3be0(0x162)]=sleep;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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 { ProvideSharding } from './decorator/ProvideSharding';
|
|
12
|
-
export { getProvideObserve } from './helper/getProvideObserve';
|
|
13
|
-
export { getDataSourceEntity } from './helper/getDataSourceEntity';
|
|
14
|
-
export { CustomConfiguration as Configuration } from './configuration';
|
|
15
|
-
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 { ProvideSharding } from './decorator/ProvideSharding';
|
|
12
|
+
export { getProvideObserve } from './helper/getProvideObserve';
|
|
13
|
+
export { getDataSourceEntity } from './helper/getDataSourceEntity';
|
|
14
|
+
export { CustomConfiguration as Configuration } from './configuration';
|
|
15
|
+
export { Provide, Inject, Scope, ScopeEnum } from "@midwayjs/core";
|