@anncic-api/typeorm 3.4.24 → 3.4.33
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/VirtualColumn.d.ts +4 -4
- package/dist/decorator/VirtualColumn.js +1 -1
- package/dist/definition/Repository.d.ts +23 -23
- 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 +14 -14
- package/dist/index.js +1 -1
- package/dist/interface.d.ts +63 -63
- package/dist/interface.js +1 -1
- package/package.json +2 -2
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
|
-
const
|
|
1
|
+
const a0_0x1a1fb2=a0_0xdf09;(function(_0xcc6430,_0x22a681){const _0x204df5=a0_0xdf09,_0x4fcb3c=_0xcc6430();while(!![]){try{const _0xd49db7=-parseInt(_0x204df5(0x12b))/0x1*(parseInt(_0x204df5(0x122))/0x2)+parseInt(_0x204df5(0x11c))/0x3+-parseInt(_0x204df5(0x12d))/0x4+-parseInt(_0x204df5(0x138))/0x5*(parseInt(_0x204df5(0x14c))/0x6)+-parseInt(_0x204df5(0x135))/0x7+parseInt(_0x204df5(0x151))/0x8*(parseInt(_0x204df5(0x12f))/0x9)+parseInt(_0x204df5(0x147))/0xa*(parseInt(_0x204df5(0x143))/0xb);if(_0xd49db7===_0x22a681)break;else _0x4fcb3c['push'](_0x4fcb3c['shift']());}catch(_0x4c636b){_0x4fcb3c['push'](_0x4fcb3c['shift']());}}}(a0_0x29d5,0x4d3c3));function a0_0x29d5(){const _0x27855e=['metadata','Repository','decorator','getOwnPropertyDescriptor','558194kzwKgL','./definition/Repository','__decorate','25865wTiMEX','Inject','handlercache','config','get','search','length','TypeORMDataSourceManager','getClassMetadata','@midwayjs/typeorm','design:type','7083758nImnTd','getDataSource','__esModule','getAsync','10zlOSqw','prototype','anncic-api:typeorm','object','ENTIFY_KEY','510jiJkAX','CustomConfiguration','defineProperty','decorate','getRepository','1288YrITJO','624879FuuXlX','MidwayDecoratorService','set','REPOSITORY_KEY','name','Configuration','54iukfMv','registerPropertyHandler','(((.+)+)+)+$','function','getDataSourceNameByModel','./interface','has','constructor','@midwayjs/core','3277obswBB','toString','1335484VADCyR','MidwayConfigService','22689SpLgIJ','onReady'];a0_0x29d5=function(){return _0x27855e;};return a0_0x29d5();}const a0_0x4a60fc=(function(){let _0xa69235=!![];return function(_0x5c9755,_0x3558e3){const _0x3c2f84=_0xa69235?function(){if(_0x3558e3){const _0x38b520=_0x3558e3['apply'](_0x5c9755,arguments);return _0x3558e3=null,_0x38b520;}}:function(){};return _0xa69235=![],_0x3c2f84;};}()),a0_0x58cacc=a0_0x4a60fc(this,function(){const _0x58658b=a0_0xdf09;return a0_0x58cacc[_0x58658b(0x12c)]()[_0x58658b(0x13d)](_0x58658b(0x124))[_0x58658b(0x12c)]()[_0x58658b(0x129)](a0_0x58cacc)[_0x58658b(0x13d)](_0x58658b(0x124));});a0_0x58cacc();function a0_0xdf09(_0x5cf0f3,_0x3255f4){const _0x49493f=a0_0x29d5();return a0_0xdf09=function(_0x58cacc,_0x4a60fc){_0x58cacc=_0x58cacc-0x11c;let _0x29d534=_0x49493f[_0x58cacc];return _0x29d534;},a0_0xdf09(_0x5cf0f3,_0x3255f4);}'use strict';var __decorate=this&&this[a0_0x1a1fb2(0x137)]||function(_0x22fbd3,_0x19c14f,_0x59b052,_0x127c66){const _0x27cffd=a0_0x1a1fb2;var _0x2bbec5=arguments[_0x27cffd(0x13e)],_0x4ea884=_0x2bbec5<0x3?_0x19c14f:_0x127c66===null?_0x127c66=Object[_0x27cffd(0x134)](_0x19c14f,_0x59b052):_0x127c66,_0x4e8fe2;if(typeof Reflect===_0x27cffd(0x14a)&&typeof Reflect[_0x27cffd(0x14f)]===_0x27cffd(0x125))_0x4ea884=Reflect[_0x27cffd(0x14f)](_0x22fbd3,_0x19c14f,_0x59b052,_0x127c66);else{for(var _0x2f2926=_0x22fbd3['length']-0x1;_0x2f2926>=0x0;_0x2f2926--)if(_0x4e8fe2=_0x22fbd3[_0x2f2926])_0x4ea884=(_0x2bbec5<0x3?_0x4e8fe2(_0x4ea884):_0x2bbec5>0x3?_0x4e8fe2(_0x19c14f,_0x59b052,_0x4ea884):_0x4e8fe2(_0x19c14f,_0x59b052))||_0x4ea884;}return _0x2bbec5>0x3&&_0x4ea884&&Object['defineProperty'](_0x19c14f,_0x59b052,_0x4ea884),_0x4ea884;},__metadata=this&&this['__metadata']||function(_0x412aa7,_0x94b49e){const _0x1eaadb=a0_0x1a1fb2;if(typeof Reflect===_0x1eaadb(0x14a)&&typeof Reflect[_0x1eaadb(0x131)]==='function')return Reflect[_0x1eaadb(0x131)](_0x412aa7,_0x94b49e);};Object[a0_0x1a1fb2(0x14e)](exports,a0_0x1a1fb2(0x145),{'value':!![]}),exports[a0_0x1a1fb2(0x14d)]=void 0x0;const typeorm_1=require('@midwayjs/typeorm'),core_1=require(a0_0x1a1fb2(0x12a)),core_2=require(a0_0x1a1fb2(0x12a)),Repository_1=require(a0_0x1a1fb2(0x136)),interface_1=require(a0_0x1a1fb2(0x127)),typeorm=require(a0_0x1a1fb2(0x141));let CustomConfiguration=class CustomConfiguration{constructor(){const _0x5efdcf=a0_0x1a1fb2;this[_0x5efdcf(0x13a)]=new Map();}async[a0_0x1a1fb2(0x130)](_0x18323,_0x4721df){const _0x24bf28=a0_0x1a1fb2,_0x27548a=await _0x18323[_0x24bf28(0x146)](typeorm_1[_0x24bf28(0x13f)]);this[_0x24bf28(0x133)][_0x24bf28(0x123)](interface_1[_0x24bf28(0x14b)],(_0x4c4900,{entity:_0x4347e0,connection:_0x57918b})=>{const _0x582419=_0x24bf28;if(!this[_0x582419(0x13a)][_0x582419(0x128)](_0x4347e0)){const _0x57b075=_0x18323[_0x582419(0x13c)](Repository_1[_0x582419(0x132)],[_0x4721df,_0x18323,_0x27548a[_0x582419(0x144)](_0x57918b||_0x27548a[_0x582419(0x126)](_0x4347e0))[_0x582419(0x150)](_0x4347e0)]);this['handlercache'][_0x582419(0x11e)](_0x4347e0,_0x57b075);}return this[_0x582419(0x13a)]['get'](_0x4347e0);}),this[_0x24bf28(0x133)][_0x24bf28(0x123)](interface_1[_0x24bf28(0x11f)],(_0x24a2d3,{repository:_0x4bae0c,connection:_0x442c8e})=>{const _0x556fef=_0x24bf28;if(!_0x4bae0c)throw new Error('typeorm\x20Error\x20propertyName\x20is\x20not\x20InjectRepository\x20repository');const {entity:_0x4206ac}=(0x0,core_1[_0x556fef(0x140)])(interface_1['REPOSITORY_KEY'],_0x4bae0c)||{};if(!_0x4206ac)throw new Error('typeorm\x20Error\x20'+((_0x4bae0c===null||_0x4bae0c===void 0x0?void 0x0:_0x4bae0c[_0x556fef(0x120)])||_0x4bae0c)+'\x20is\x20not\x20ProvideRepository\x20Entify');if(!this[_0x556fef(0x13a)][_0x556fef(0x128)](_0x4bae0c)){const _0x54c500=_0x18323['get'](_0x4bae0c,[_0x4721df,_0x18323,_0x27548a[_0x556fef(0x144)](_0x442c8e||_0x27548a[_0x556fef(0x126)](_0x4206ac))['getRepository'](_0x4206ac)]);this[_0x556fef(0x13a)]['set'](_0x4bae0c,_0x54c500);}return this[_0x556fef(0x13a)][_0x556fef(0x13c)](_0x4bae0c);});}};__decorate([(0x0,core_1[a0_0x1a1fb2(0x139)])(),__metadata('design:type',core_2[a0_0x1a1fb2(0x12e)])],CustomConfiguration['prototype'],a0_0x1a1fb2(0x13b),void 0x0),__decorate([(0x0,core_1[a0_0x1a1fb2(0x139)])(),__metadata(a0_0x1a1fb2(0x142),core_2[a0_0x1a1fb2(0x11d)])],CustomConfiguration[a0_0x1a1fb2(0x148)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x1a1fb2(0x121)])({'imports':[typeorm],'conflictCheck':![],'namespace':a0_0x1a1fb2(0x149)})],CustomConfiguration),exports[a0_0x1a1fb2(0x14d)]=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_0x451c2b=a1_0x26d4;(function(_0x1158ff,_0x3d3d6d){const _0x3dfe1a=a1_0x26d4,_0x4c7568=_0x1158ff();while(!![]){try{const _0x5f4b70=-parseInt(_0x3dfe1a(0x143))/0x1*(-parseInt(_0x3dfe1a(0x146))/0x2)+-parseInt(_0x3dfe1a(0x149))/0x3*(-parseInt(_0x3dfe1a(0x14d))/0x4)+-parseInt(_0x3dfe1a(0x13b))/0x5+-parseInt(_0x3dfe1a(0x140))/0x6+-parseInt(_0x3dfe1a(0x14c))/0x7+parseInt(_0x3dfe1a(0x142))/0x8*(-parseInt(_0x3dfe1a(0x14e))/0x9)+parseInt(_0x3dfe1a(0x148))/0xa;if(_0x5f4b70===_0x3d3d6d)break;else _0x4c7568['push'](_0x4c7568['shift']());}catch(_0x2eaa76){_0x4c7568['push'](_0x4c7568['shift']());}}}(a1_0x46e0,0x6b9e6));const a1_0x4b75ab=(function(){let _0x30b1bb=!![];return function(_0x38a577,_0x45b265){const _0x2b21ef=_0x30b1bb?function(){const _0x253884=a1_0x26d4;if(_0x45b265){const _0x142e8e=_0x45b265[_0x253884(0x145)](_0x38a577,arguments);return _0x45b265=null,_0x142e8e;}}:function(){};return _0x30b1bb=![],_0x2b21ef;};}()),a1_0x12eef8=a1_0x4b75ab(this,function(){const _0x434e56=a1_0x26d4;return a1_0x12eef8[_0x434e56(0x147)]()[_0x434e56(0x14b)]('(((.+)+)+)+$')[_0x434e56(0x147)]()[_0x434e56(0x144)](a1_0x12eef8)[_0x434e56(0x14b)]('(((.+)+)+)+$');});a1_0x12eef8();'use strict';Object[a1_0x451c2b(0x13a)](exports,a1_0x451c2b(0x13f),{'value':!![]}),exports[a1_0x451c2b(0x141)]=void 0x0;const core_1=require(a1_0x451c2b(0x139)),interface_1=require(a1_0x451c2b(0x13d));function InjectEntity(_0x31777b,_0x47620a=a1_0x451c2b(0x14a)){const _0x5d9ee4=a1_0x451c2b;return(0x0,core_1[_0x5d9ee4(0x13c)])(interface_1[_0x5d9ee4(0x13e)],{'entity':_0x31777b,'connection':_0x47620a});}function a1_0x46e0(){const _0x327af2=['InjectEntity','112pMfiNH','2115oIZOUP','constructor','apply','826uCqoEj','toString','18706940OJMXIi','419883AVxrFW','default','search','5258911GoxJbA','4LUFpuT','360351QJDXje','@midwayjs/core','defineProperty','1695160dilPsS','createCustomPropertyDecorator','../interface','ENTIFY_KEY','__esModule','4754958bwbnGw'];a1_0x46e0=function(){return _0x327af2;};return a1_0x46e0();}function a1_0x26d4(_0xa6a933,_0x5958c3){const _0x518041=a1_0x46e0();return a1_0x26d4=function(_0x12eef8,_0x4b75ab){_0x12eef8=_0x12eef8-0x139;let _0x46e00b=_0x518041[_0x12eef8];return _0x46e00b;},a1_0x26d4(_0xa6a933,_0x5958c3);}exports[a1_0x451c2b(0x141)]=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_0x55e6a8=a2_0x3088;(function(_0x36ed3e,_0x477e74){const _0x1f53c1=a2_0x3088,_0xfe4e5d=_0x36ed3e();while(!![]){try{const _0x5580b5=-parseInt(_0x1f53c1(0x1fb))/0x1+-parseInt(_0x1f53c1(0x1f8))/0x2*(-parseInt(_0x1f53c1(0x1f6))/0x3)+-parseInt(_0x1f53c1(0x1fd))/0x4*(-parseInt(_0x1f53c1(0x1e8))/0x5)+parseInt(_0x1f53c1(0x1ed))/0x6*(parseInt(_0x1f53c1(0x1ef))/0x7)+-parseInt(_0x1f53c1(0x1f7))/0x8*(parseInt(_0x1f53c1(0x1f0))/0x9)+parseInt(_0x1f53c1(0x1ec))/0xa*(parseInt(_0x1f53c1(0x1e9))/0xb)+-parseInt(_0x1f53c1(0x1ea))/0xc*(-parseInt(_0x1f53c1(0x1f1))/0xd);if(_0x5580b5===_0x477e74)break;else _0xfe4e5d['push'](_0xfe4e5d['shift']());}catch(_0x531bbe){_0xfe4e5d['push'](_0xfe4e5d['shift']());}}}(a2_0x5550,0x6c670));const a2_0x483b8d=(function(){let _0x5a4783=!![];return function(_0x37ae25,_0x53dad4){const _0x504e45=_0x5a4783?function(){const _0x490998=a2_0x3088;if(_0x53dad4){const _0x2e61f8=_0x53dad4[_0x490998(0x1fa)](_0x37ae25,arguments);return _0x53dad4=null,_0x2e61f8;}}:function(){};return _0x5a4783=![],_0x504e45;};}()),a2_0xf11591=a2_0x483b8d(this,function(){const _0x3d3a68=a2_0x3088;return a2_0xf11591['toString']()[_0x3d3a68(0x1f3)](_0x3d3a68(0x1e6))[_0x3d3a68(0x1f4)]()[_0x3d3a68(0x1f5)](a2_0xf11591)[_0x3d3a68(0x1f3)](_0x3d3a68(0x1e6));});a2_0xf11591();'use strict';Object[a2_0x55e6a8(0x1f2)](exports,a2_0x55e6a8(0x1fc),{'value':!![]}),exports['InjectRepository']=void 0x0;function a2_0x3088(_0x21a66d,_0x141540){const _0x51ce56=a2_0x5550();return a2_0x3088=function(_0xf11591,_0x483b8d){_0xf11591=_0xf11591-0x1e6;let _0x55503c=_0x51ce56[_0xf11591];return _0x55503c;},a2_0x3088(_0x21a66d,_0x141540);}function a2_0x5550(){const _0x5c5f8=['toString','constructor','499062rYYQCF','8MafYwF','6EssIgY','default','apply','688326QUhgRC','__esModule','341860LmSjtS','(((.+)+)+)+$','REPOSITORY_KEY','45OXzuKk','75889mioVPT','12ooDxeL','InjectRepository','330tATqLS','78222HbQlJE','../interface','14xlKbKD','4687101UCdzVg','1704859BFcnwl','defineProperty','search'];a2_0x5550=function(){return _0x5c5f8;};return a2_0x5550();}const core_1=require('@midwayjs/core'),interface_1=require(a2_0x55e6a8(0x1ee));function InjectRepository(_0x3861c4,_0x1f01a8=a2_0x55e6a8(0x1f9)){const _0x1db0b1=a2_0x55e6a8;return(0x0,core_1['createCustomPropertyDecorator'])(interface_1[_0x1db0b1(0x1e7)],{'repository':_0x3861c4,'connection':_0x1f01a8});}exports[a2_0x55e6a8(0x1eb)]=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
|
-
function
|
|
1
|
+
const a3_0x70482=a3_0x4206;function a3_0x4206(_0x4250ab,_0x2235e4){const _0x1f970f=a3_0x52b4();return a3_0x4206=function(_0xc019f9,_0x307a36){_0xc019f9=_0xc019f9-0x82;let _0x52b46a=_0x1f970f[_0xc019f9];return _0x52b46a;},a3_0x4206(_0x4250ab,_0x2235e4);}(function(_0xca8c5d,_0x27443b){const _0x18e32c=a3_0x4206,_0x49c385=_0xca8c5d();while(!![]){try{const _0x3bfd1c=parseInt(_0x18e32c(0x95))/0x1*(-parseInt(_0x18e32c(0x99))/0x2)+-parseInt(_0x18e32c(0x8b))/0x3*(-parseInt(_0x18e32c(0x84))/0x4)+parseInt(_0x18e32c(0x9b))/0x5+-parseInt(_0x18e32c(0x92))/0x6*(parseInt(_0x18e32c(0x88))/0x7)+parseInt(_0x18e32c(0x97))/0x8+parseInt(_0x18e32c(0x87))/0x9+parseInt(_0x18e32c(0x93))/0xa*(-parseInt(_0x18e32c(0x8e))/0xb);if(_0x3bfd1c===_0x27443b)break;else _0x49c385['push'](_0x49c385['shift']());}catch(_0x1b0b5c){_0x49c385['push'](_0x49c385['shift']());}}}(a3_0x52b4,0xe355d));const a3_0x307a36=(function(){let _0x3e4ca8=!![];return function(_0x22eaf6,_0x240d82){const _0x2e42b9=_0x3e4ca8?function(){const _0x5bb01e=a3_0x4206;if(_0x240d82){const _0x142807=_0x240d82[_0x5bb01e(0x9c)](_0x22eaf6,arguments);return _0x240d82=null,_0x142807;}}:function(){};return _0x3e4ca8=![],_0x2e42b9;};}()),a3_0xc019f9=a3_0x307a36(this,function(){const _0x59052b=a3_0x4206;return a3_0xc019f9[_0x59052b(0x9a)]()['search'](_0x59052b(0x8c))[_0x59052b(0x9a)]()[_0x59052b(0x98)](a3_0xc019f9)[_0x59052b(0x89)](_0x59052b(0x8c));});a3_0xc019f9();'use strict';Object['defineProperty'](exports,a3_0x70482(0x91),{'value':!![]}),exports[a3_0x70482(0x83)]=void 0x0;const typeorm_1=require(a3_0x70482(0x90)),core_1=require('@midwayjs/core'),interface_1=require('../interface');function ProvideEntity(_0x3a1442,_0x4c940a={}){return _0x2b3ee0=>{const _0x27419c=a3_0x4206;_0x4c940a['name']=_0x3a1442[_0x27419c(0x86)];const _0xc4cc2e=[];if(!(_0x3a1442===null||_0x3a1442===void 0x0?void 0x0:_0x3a1442[_0x27419c(0x85)]))_0xc4cc2e['push'](_0x27419c(0x8a));else{if(typeof(_0x3a1442===null||_0x3a1442===void 0x0?void 0x0:_0x3a1442[_0x27419c(0x85)])==_0x27419c(0x8f))_0xc4cc2e[_0x27419c(0x96)](_0x3a1442===null||_0x3a1442===void 0x0?void 0x0:_0x3a1442[_0x27419c(0x85)]);else{if(Array['isArray'](_0x3a1442===null||_0x3a1442===void 0x0?void 0x0:_0x3a1442[_0x27419c(0x85)]))for(let _0x5222ed of _0x3a1442[_0x27419c(0x85)]||[_0x27419c(0x8a)]){_0xc4cc2e['push'](_0x5222ed);}}}(0x0,core_1[_0x27419c(0x8d)])(interface_1['ENTIFY_MODULE'],_0x2b3ee0),(0x0,core_1[_0x27419c(0x94)])(interface_1['ENTIFY_MODULE_SOURCE'],{'tableName':_0x3a1442[_0x27419c(0x86)],'dataSource':_0xc4cc2e},_0x2b3ee0),(0x0,typeorm_1[_0x27419c(0x82)])(_0x3a1442[_0x27419c(0x86)],_0x4c940a)(_0x2b3ee0);};}function a3_0x52b4(){const _0x2a2780=['saveClassMetadata','57908FkYxjr','push','12895096wQQbdF','constructor','8MGNuBL','toString','7924810lTAbUQ','apply','Entity','ProvideEntity','2388IPiiwA','dataSource','tableName','12234510fPePME','7pqWRGc','search','default','5199KZyzoL','(((.+)+)+)+$','saveModule','265309PhOfIW','string','typeorm','__esModule','2979876RKmILS','1630xWBVVz'];a3_0x52b4=function(){return _0x2a2780;};return a3_0x52b4();}exports[a3_0x70482(0x83)]=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
|
|
1
|
+
const a4_0x3b25d5=a4_0x12fe;(function(_0xacbc9e,_0x36888e){const _0x45379b=a4_0x12fe,_0x3f486a=_0xacbc9e();while(!![]){try{const _0x347c04=parseInt(_0x45379b(0x1dd))/0x1+parseInt(_0x45379b(0x1f2))/0x2*(parseInt(_0x45379b(0x1f1))/0x3)+parseInt(_0x45379b(0x1db))/0x4*(-parseInt(_0x45379b(0x1e8))/0x5)+parseInt(_0x45379b(0x1e7))/0x6+parseInt(_0x45379b(0x1df))/0x7*(-parseInt(_0x45379b(0x1ea))/0x8)+parseInt(_0x45379b(0x1d6))/0x9*(-parseInt(_0x45379b(0x1e6))/0xa)+parseInt(_0x45379b(0x1e4))/0xb*(parseInt(_0x45379b(0x1d5))/0xc);if(_0x347c04===_0x36888e)break;else _0x3f486a['push'](_0x3f486a['shift']());}catch(_0x22ab74){_0x3f486a['push'](_0x3f486a['shift']());}}}(a4_0xfce3,0xb8f50));const a4_0x4b9d49=(function(){let _0x18155e=!![];return function(_0x254e50,_0x62274){const _0x5433c5=_0x18155e?function(){const _0x3609fb=a4_0x12fe;if(_0x62274){const _0x2d4f51=_0x62274[_0x3609fb(0x1de)](_0x254e50,arguments);return _0x62274=null,_0x2d4f51;}}:function(){};return _0x18155e=![],_0x5433c5;};}()),a4_0x465472=a4_0x4b9d49(this,function(){const _0x585e66=a4_0x12fe;return a4_0x465472[_0x585e66(0x1e1)]()[_0x585e66(0x1e9)]('(((.+)+)+)+$')[_0x585e66(0x1e1)]()[_0x585e66(0x1ee)](a4_0x465472)[_0x585e66(0x1e9)]('(((.+)+)+)+$');});a4_0x465472();function a4_0xfce3(){const _0x22ddac=['undefined','toString','saveModule','EventSubscriber','11QBGYPk','ScopeEnum','6620zsJWbT','7628988KqBzDv','5PZyImp','search','8cnsNRg','Scope','defineProperty','Singleton','constructor','Provide','REPOSITORY_OBSERVE_KEY','3BiZZgP','2103286zcLSlw','ProvideObserve','14876988oxrBFk','19017oUMjqp','typeorm','listenTo','@midwayjs/core','prototype','4719896ABHXtG','../interface','694619frtECG','apply','6448015pOvhkT'];a4_0xfce3=function(){return _0x22ddac;};return a4_0xfce3();}'use strict';Object[a4_0x3b25d5(0x1ec)](exports,'__esModule',{'value':!![]}),exports[a4_0x3b25d5(0x1d4)]=void 0x0;function a4_0x12fe(_0x1c643d,_0x12bff4){const _0x32d005=a4_0xfce3();return a4_0x12fe=function(_0x465472,_0x4b9d49){_0x465472=_0x465472-0x1d4;let _0xfce343=_0x32d005[_0x465472];return _0xfce343;},a4_0x12fe(_0x1c643d,_0x12bff4);}const typeorm_1=require(a4_0x3b25d5(0x1d7)),core_1=require(a4_0x3b25d5(0x1d9)),interface_1=require(a4_0x3b25d5(0x1dc));function ProvideObserve(_0x164b88){return _0x3aabf8=>{const _0x1f087=a4_0x12fe;_0x164b88&&typeof _0x3aabf8[_0x1f087(0x1da)]['listenTo']==_0x1f087(0x1e0)&&(_0x3aabf8[_0x1f087(0x1da)][_0x1f087(0x1d8)]=()=>_0x164b88),(0x0,typeorm_1[_0x1f087(0x1e3)])()(_0x3aabf8),(0x0,core_1[_0x1f087(0x1e2)])(interface_1[_0x1f087(0x1f0)],_0x3aabf8),((0x0,core_1[_0x1f087(0x1ef)])()(_0x3aabf8),(0x0,core_1[_0x1f087(0x1eb)])(core_1[_0x1f087(0x1e5)][_0x1f087(0x1ed)])(_0x3aabf8));};}exports['ProvideObserve']=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
|
+
function a5_0x7c85(_0x3e18ac,_0x153669){const _0x2cf326=a5_0x1af2();return a5_0x7c85=function(_0x3af2c5,_0x75e780){_0x3af2c5=_0x3af2c5-0x134;let _0x1af239=_0x2cf326[_0x3af2c5];return _0x1af239;},a5_0x7c85(_0x3e18ac,_0x153669);}const a5_0x498912=a5_0x7c85;function a5_0x1af2(){const _0x40339d=['122195ssqNLP','520CbgcEO','8451311prckRc','ProvideRepository','search','12300XlLAmh','8tDnCaq','(((.+)+)+)+$','toString','76853RMvuHO','31127448wJgmtJ','defineProperty','4113azgiuO','saveClassMetadata','218019mucrvI','constructor','Provide','ScopeEnum','@midwayjs/core','199394BAmOYi','12HjsJON','54EDkzYq','__esModule','apply'];a5_0x1af2=function(){return _0x40339d;};return a5_0x1af2();}(function(_0x5b8763,_0x38b6ed){const _0xb1c1ec=a5_0x7c85,_0x2004f2=_0x5b8763();while(!![]){try{const _0x22bd27=parseInt(_0xb1c1ec(0x14b))/0x1*(-parseInt(_0xb1c1ec(0x13e))/0x2)+-parseInt(_0xb1c1ec(0x146))/0x3*(parseInt(_0xb1c1ec(0x134))/0x4)+-parseInt(_0xb1c1ec(0x138))/0x5*(parseInt(_0xb1c1ec(0x135))/0x6)+parseInt(_0xb1c1ec(0x141))/0x7*(-parseInt(_0xb1c1ec(0x139))/0x8)+-parseInt(_0xb1c1ec(0x144))/0x9*(-parseInt(_0xb1c1ec(0x13d))/0xa)+-parseInt(_0xb1c1ec(0x13a))/0xb+parseInt(_0xb1c1ec(0x142))/0xc;if(_0x22bd27===_0x38b6ed)break;else _0x2004f2['push'](_0x2004f2['shift']());}catch(_0x29c8da){_0x2004f2['push'](_0x2004f2['shift']());}}}(a5_0x1af2,0x6b136));const a5_0x75e780=(function(){let _0x49f69b=!![];return function(_0x3bb5d4,_0x1d56ec){const _0x58b8e8=_0x49f69b?function(){const _0x4f871f=a5_0x7c85;if(_0x1d56ec){const _0x505e9c=_0x1d56ec[_0x4f871f(0x137)](_0x3bb5d4,arguments);return _0x1d56ec=null,_0x505e9c;}}:function(){};return _0x49f69b=![],_0x58b8e8;};}()),a5_0x3af2c5=a5_0x75e780(this,function(){const _0x14d723=a5_0x7c85;return a5_0x3af2c5['toString']()[_0x14d723(0x13c)](_0x14d723(0x13f))[_0x14d723(0x140)]()[_0x14d723(0x147)](a5_0x3af2c5)[_0x14d723(0x13c)]('(((.+)+)+)+$');});a5_0x3af2c5();'use strict';Object[a5_0x498912(0x143)](exports,a5_0x498912(0x136),{'value':!![]}),exports[a5_0x498912(0x13b)]=void 0x0;const core_1=require(a5_0x498912(0x14a)),interface_1=require('../interface');function ProvideRepository(_0x2854fe){return _0x4278c0=>{const _0x1f1661=a5_0x7c85;(0x0,core_1['Scope'])(core_1[_0x1f1661(0x149)]['Request'],{'allowDowngrade':!![]})(_0x4278c0),((0x0,core_1[_0x1f1661(0x148)])()(_0x4278c0),(0x0,core_1[_0x1f1661(0x145)])(interface_1['REPOSITORY_KEY'],{'entity':_0x2854fe},_0x4278c0));};}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_0x4b531c=a6_0x2cc8;(function(_0x5c039b,_0x124605){const _0x5cb7b7=a6_0x2cc8,_0x4eac04=_0x5c039b();while(!![]){try{const _0x2b64c0=parseInt(_0x5cb7b7(0x1fe))/0x1*(parseInt(_0x5cb7b7(0x1e9))/0x2)+-parseInt(_0x5cb7b7(0x1f5))/0x3*(-parseInt(_0x5cb7b7(0x1fb))/0x4)+parseInt(_0x5cb7b7(0x200))/0x5*(-parseInt(_0x5cb7b7(0x1f6))/0x6)+-parseInt(_0x5cb7b7(0x1fc))/0x7+parseInt(_0x5cb7b7(0x1f3))/0x8*(parseInt(_0x5cb7b7(0x1f4))/0x9)+parseInt(_0x5cb7b7(0x1ef))/0xa+parseInt(_0x5cb7b7(0x1eb))/0xb*(-parseInt(_0x5cb7b7(0x1ff))/0xc);if(_0x2b64c0===_0x124605)break;else _0x4eac04['push'](_0x4eac04['shift']());}catch(_0x1d0d31){_0x4eac04['push'](_0x4eac04['shift']());}}}(a6_0x2322,0xe9ea9));const a6_0x52856c=(function(){let _0x138bbe=!![];return function(_0x540d1d,_0x1a4a8f){const _0x4d69ff=_0x138bbe?function(){const _0x484fd6=a6_0x2cc8;if(_0x1a4a8f){const _0x18e3c7=_0x1a4a8f[_0x484fd6(0x1f1)](_0x540d1d,arguments);return _0x1a4a8f=null,_0x18e3c7;}}:function(){};return _0x138bbe=![],_0x4d69ff;};}()),a6_0x4feaa6=a6_0x52856c(this,function(){const _0xbb9447=a6_0x2cc8;return a6_0x4feaa6['toString']()['search'](_0xbb9447(0x1ea))[_0xbb9447(0x1f9)]()[_0xbb9447(0x1ee)](a6_0x4feaa6)[_0xbb9447(0x1f0)](_0xbb9447(0x1ea));});a6_0x4feaa6();'use strict';Object[a6_0x4b531c(0x1fa)](exports,'__esModule',{'value':!![]}),exports[a6_0x4b531c(0x1f8)]=exports['Search']=exports[a6_0x4b531c(0x1f2)]=void 0x0;function a6_0x2cc8(_0x23adb2,_0x115c22){const _0x51d141=a6_0x2322();return a6_0x2cc8=function(_0x4feaa6,_0x52856c){_0x4feaa6=_0x4feaa6-0x1e7;let _0x2322e4=_0x51d141[_0x4feaa6];return _0x2322e4;},a6_0x2cc8(_0x23adb2,_0x115c22);}const core_1=require(a6_0x4b531c(0x1f7)),interface_1=require('../interface');function ProvideSearch(_0x537fda){return _0x5b88eb=>{const _0x45f840=a6_0x2cc8;(0x0,core_1['saveModule'])(interface_1[_0x45f840(0x1ed)],_0x5b88eb),(0x0,core_1[_0x45f840(0x1e8)])(core_1['ScopeEnum'][_0x45f840(0x1e7)])(_0x5b88eb),(0x0,core_1['attachClassMetadata'])(interface_1['MODEL_KEY'],_0x537fda,_0x5b88eb);};}exports['ProvideSearch']=ProvideSearch;function a6_0x2322(){const _0x48206c=['ProvideSearch','179016XzwFbc','252vZMOYy','21RagiGE','30CqyFUY','@midwayjs/core','SearchScope','toString','defineProperty','476524hKlQOm','652085SOVuWj','MODEL_SEARCH_SCOPE_KEY','77984BTOrPX','15465744UtRCdw','635185VseWIr','attachClassMetadata','Singleton','Scope','8IwHAxn','(((.+)+)+)+$','11teIvZl','MODEL_SEARCH_KEY','MODEL_KEY','constructor','12028640kEkJAi','search','apply'];a6_0x2322=function(){return _0x48206c;};return a6_0x2322();}function Search(_0xc3a6e,_0x715228){return(_0xdc2f6a,_0x25427c,_0x3fe9ed)=>{const _0x536fe8=a6_0x2cc8;(0x0,core_1['attachClassMetadata'])(interface_1[_0x536fe8(0x1ec)],{'field':_0xc3a6e,'comment':_0x715228,'target':_0xdc2f6a,'methodName':_0x25427c,'descriptor':_0x3fe9ed},_0xdc2f6a);};}exports['Search']=Search;function SearchScope(_0x34c105,_0x29c836){return(_0x483494,_0xc1bdff,_0x52d289)=>{const _0x79ec77=a6_0x2cc8;(0x0,core_1[_0x79ec77(0x201)])(interface_1[_0x79ec77(0x1fd)],{'scope':_0x34c105,'comment':_0x29c836,'target':_0x483494,'methodName':_0xc1bdff,'descriptor':_0x52d289},_0x483494);};}exports[a6_0x4b531c(0x1f8)]=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
|
|
1
|
+
const a7_0x121432=a7_0x4fbb;function a7_0x1225(){const _0xf59420=['72NpyZVw','2310178bSMfNA','saveClassMetadata','341VSEkuY','toString','__esModule','defineProperty','getClassMetadata','3933048XpBtAq','(((.+)+)+)+$','constructor','1tZmFlM','apply','VirtualColumn','../interface','977228rJdkFF','4669515gWBxxB','ENTITY_VIRTUAL_COLUMN_KEY','1569720ewIIGE','4764652uYYuDu','92416Fwubnp','387iHbPfj','@midwayjs/core'];a7_0x1225=function(){return _0xf59420;};return a7_0x1225();}(function(_0x35e7de,_0x43e4a3){const _0x534941=a7_0x4fbb,_0x568e09=_0x35e7de();while(!![]){try{const _0x47c025=-parseInt(_0x534941(0x9c))/0x1*(-parseInt(_0x534941(0xa9))/0x2)+parseInt(_0x534941(0xb0))/0x3+parseInt(_0x534941(0xa4))/0x4+parseInt(_0x534941(0xa1))/0x5+-parseInt(_0x534941(0xa8))/0x6*(-parseInt(_0x534941(0xa0))/0x7)+-parseInt(_0x534941(0xa5))/0x8*(parseInt(_0x534941(0xa6))/0x9)+-parseInt(_0x534941(0xa3))/0xa*(parseInt(_0x534941(0xab))/0xb);if(_0x47c025===_0x43e4a3)break;else _0x568e09['push'](_0x568e09['shift']());}catch(_0x57b80b){_0x568e09['push'](_0x568e09['shift']());}}}(a7_0x1225,0xdc97f));const a7_0x1b0de8=(function(){let _0x14afaa=!![];return function(_0x5b5b64,_0x40849a){const _0x27e21a=_0x14afaa?function(){const _0x1ed71c=a7_0x4fbb;if(_0x40849a){const _0x3377ef=_0x40849a[_0x1ed71c(0x9d)](_0x5b5b64,arguments);return _0x40849a=null,_0x3377ef;}}:function(){};return _0x14afaa=![],_0x27e21a;};}()),a7_0x15fd55=a7_0x1b0de8(this,function(){const _0x1df35b=a7_0x4fbb;return a7_0x15fd55[_0x1df35b(0xac)]()['search']('(((.+)+)+)+$')[_0x1df35b(0xac)]()[_0x1df35b(0xb2)](a7_0x15fd55)['search'](_0x1df35b(0xb1));});a7_0x15fd55();'use strict';Object[a7_0x121432(0xae)](exports,a7_0x121432(0xad),{'value':!![]}),exports[a7_0x121432(0x9e)]=void 0x0;const core_1=require(a7_0x121432(0xa7)),interface_1=require(a7_0x121432(0x9f));function a7_0x4fbb(_0x12b043,_0x5d1323){const _0x10c2ae=a7_0x1225();return a7_0x4fbb=function(_0x15fd55,_0x1b0de8){_0x15fd55=_0x15fd55-0x9c;let _0x122597=_0x10c2ae[_0x15fd55];return _0x122597;},a7_0x4fbb(_0x12b043,_0x5d1323);}function VirtualColumn(_0x26548b,_0x16e479){return(_0x4c4dbd,_0x3b06d5)=>{const _0x2c2d32=a7_0x4fbb,_0x459320=(0x0,core_1[_0x2c2d32(0xaf)])(interface_1[_0x2c2d32(0xa2)],_0x4c4dbd)||{};_0x459320[_0x3b06d5]={'comment':_0x26548b,..._0x16e479},(0x0,core_1[_0x2c2d32(0xaa)])(interface_1[_0x2c2d32(0xa2)],_0x459320,_0x4c4dbd);};}exports[a7_0x121432(0x9e)]=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
|
-
function a8_0x57ad(_0x4d7eb6,_0x521935){const _0x4a9148=a8_0x92a2();return a8_0x57ad=function(_0x251e73,_0x5acd33){_0x251e73=_0x251e73-0xbe;let _0x92a245=_0x4a9148[_0x251e73];return _0x92a245;},a8_0x57ad(_0x4d7eb6,_0x521935);}const a8_0x58678d=a8_0x57ad;(function(_0x351d56,_0xfc620f){const _0x4e07f8=a8_0x57ad,_0x439c64=_0x351d56();while(!![]){try{const _0x52b924=parseInt(_0x4e07f8(0xea))/0x1+parseInt(_0x4e07f8(0xd0))/0x2*(parseInt(_0x4e07f8(0xe5))/0x3)+-parseInt(_0x4e07f8(0xd7))/0x4*(parseInt(_0x4e07f8(0x107))/0x5)+-parseInt(_0x4e07f8(0xd9))/0x6+parseInt(_0x4e07f8(0xdc))/0x7*(-parseInt(_0x4e07f8(0xc8))/0x8)+-parseInt(_0x4e07f8(0xf2))/0x9*(-parseInt(_0x4e07f8(0x116))/0xa)+-parseInt(_0x4e07f8(0xd1))/0xb;if(_0x52b924===_0xfc620f)break;else _0x439c64['push'](_0x439c64['shift']());}catch(_0x2a9825){_0x439c64['push'](_0x439c64['shift']());}}}(a8_0x92a2,0x7affd));const a8_0x5acd33=(function(){let _0x168cd6=!![];return function(_0xe007e6,_0x85a974){const _0x34fc8c=_0x168cd6?function(){const _0x2ddcef=a8_0x57ad;if(_0x85a974){const _0x4b1dd4=_0x85a974[_0x2ddcef(0xc6)](_0xe007e6,arguments);return _0x85a974=null,_0x4b1dd4;}}:function(){};return _0x168cd6=![],_0x34fc8c;};}()),a8_0x251e73=a8_0x5acd33(this,function(){const _0x3128a8=a8_0x57ad;return a8_0x251e73[_0x3128a8(0x109)]()[_0x3128a8(0x100)](_0x3128a8(0xfa))['toString']()[_0x3128a8(0xc1)](a8_0x251e73)[_0x3128a8(0x100)]('(((.+)+)+)+$');});function a8_0x92a2(){const _0x2351dd=['excess','operator','assign','(:...','container','(((.+)+)+)+$','\x20=\x20:_auto_','target','MODEL_SEARCH_KEY','alias','ISNULL','search','function','indexOf','orderBy','DESC','hasOwnProperty','type','405KoduOI','_size','toString','includes','abs','\x20AND\x20:','NOT\x20FIND\x20IN\x20SET','__esModule','findColumnWithPropertyName','@midwayjs/core','createQueryBuilder','skip','ceil','SERIALIZABLE','string','10FtTBKN','random','typeorm','isDirty','field','getAsync','undefined','ASC','take','MODEL_KEY','NOT\x20BETWEEN','constructor','methodName','isArray','bind','length','apply','modelSearchs','8lhCZwj','metadata','create','scope','__initialize','_page','manager','FIND\x20IN\x20SET','1046FEDFPL','1118337qCjctR','queryRunner','1\x20=\x202','getApplicationContext','split','searchScopes','31852VNXleC','toLowerCase','4706850RQFVEq','app','merge','5102692CDJDMQ','toUpperCase','condition','NOT\x20IN','searchs','\x20IN(:..._auto_','createSave','_auto_','\x20like\x20:_auto_','5187RGUgoQ','save','transaction','Repository','mergeSave','888318OaHulS','isPrimary','BETWEEN','getClassMetadata','model','_order','_isreverse','MODEL_SEARCH_SCOPE_KEY','8741889SPNrqV','push','andWhere'];a8_0x92a2=function(){return _0x2351dd;};return a8_0x92a2();}a8_0x251e73();'use strict';Object['defineProperty'](exports,a8_0x58678d(0x10e),{'value':!![]}),exports[a8_0x58678d(0xe8)]=void 0x0;const core_1=require(a8_0x58678d(0x110)),typeorm_1=require(a8_0x58678d(0x118)),interface_1=require('../interface');class Repository extends typeorm_1['Repository']{async['search'](_0xac60e6,_0xb8c66a,_0x491d78={}){const _0x582e64=a8_0x58678d;var _0x5e5d51,_0xbe7160,_0x3951e7,_0x25d2eb,_0x3f3996,_0x3a1d16;const _0x4e5063=this[_0x582e64(0x111)](undefined,_0x491d78===null||_0x491d78===void 0x0?void 0x0:_0x491d78[_0x582e64(0xd2)]),_0x3cdae4=[];for(const _0x13a748 of this[_0x582e64(0xc7)]){if(_0x13a748===null||_0x13a748===void 0x0?void 0x0:_0x13a748[_0x582e64(0xee)]){const _0x1f185a=await this['app'][_0x582e64(0xd4)]()[_0x582e64(0x11b)](_0x13a748['model']);if(_0x1f185a){typeof _0x1f185a[_0x582e64(0xcc)]==_0x582e64(0x101)&&await _0x1f185a['__initialize'][_0x582e64(0xc4)](_0x1f185a)(_0x4e5063,_0xac60e6,{'app':this[_0x582e64(0xda)],'container':this[_0x582e64(0xf9)],'paginate':_0xb8c66a,'queryRunner':_0x491d78===null||_0x491d78===void 0x0?void 0x0:_0x491d78[_0x582e64(0xd2)]});if(_0x491d78===null||_0x491d78===void 0x0?void 0x0:_0x491d78[_0x582e64(0xcb)]){const _0x3cfa87=Array[_0x582e64(0xc3)](_0x491d78[_0x582e64(0xcb)])?_0x491d78[_0x582e64(0xcb)]:[_0x491d78[_0x582e64(0xcb)]];for(const _0x3a31fb of(_0x13a748===null||_0x13a748===void 0x0?void 0x0:_0x13a748[_0x582e64(0xd6)])||[]){(_0x3a31fb===null||_0x3a31fb===void 0x0?void 0x0:_0x3a31fb['scope'])&&_0x3cfa87['indexOf'](_0x3a31fb[_0x582e64(0xcb)])!=-0x1&&(_0x3a31fb===null||_0x3a31fb===void 0x0?void 0x0:_0x3a31fb['methodName'])&&typeof _0x1f185a[_0x3a31fb[_0x582e64(0xc2)]]==_0x582e64(0x101)&&await _0x1f185a[_0x3a31fb[_0x582e64(0xc2)]][_0x582e64(0xc4)](_0x1f185a)(_0x4e5063,_0xac60e6,{'app':this[_0x582e64(0xda)],'container':this[_0x582e64(0xf9)],'paginate':_0xb8c66a,'queryRunner':_0x491d78===null||_0x491d78===void 0x0?void 0x0:_0x491d78[_0x582e64(0xd2)]});}}if(_0xac60e6)for(const _0x175abe of(_0x13a748===null||_0x13a748===void 0x0?void 0x0:_0x13a748[_0x582e64(0xe0)])||[]){(_0x175abe===null||_0x175abe===void 0x0?void 0x0:_0x175abe[_0x582e64(0x11a)])&&(_0x175abe===null||_0x175abe===void 0x0?void 0x0:_0x175abe[_0x582e64(0xc2)])&&typeof _0x1f185a[_0x175abe[_0x582e64(0xc2)]]==_0x582e64(0x101)&&(typeof(_0xac60e6===null||_0xac60e6===void 0x0?void 0x0:_0xac60e6[_0x175abe[_0x582e64(0x11a)]])!=_0x582e64(0x11c)&&!((_0x5e5d51=_0xac60e6===null||_0xac60e6===void 0x0?void 0x0:_0xac60e6[_0x175abe['field']])===null||_0x5e5d51===void 0x0?void 0x0:_0x5e5d51['hasOwnProperty'](_0x582e64(0xf6)))&&(_0x3cdae4[_0x582e64(0x102)](_0x175abe['field'])==-0x1&&_0x3cdae4[_0x582e64(0xf3)](_0x175abe[_0x582e64(0x11a)]),await _0x1f185a[_0x175abe[_0x582e64(0xc2)]][_0x582e64(0xc4)](_0x1f185a)(_0x4e5063,_0xac60e6[_0x175abe[_0x582e64(0x11a)]],_0xac60e6,{'app':this[_0x582e64(0xda)],'container':this[_0x582e64(0xf9)],'paginate':_0xb8c66a,'queryRunner':_0x491d78===null||_0x491d78===void 0x0?void 0x0:_0x491d78[_0x582e64(0xd2)]})));}}}}for(const _0x2d9b7d in _0xac60e6){if(typeof _0xac60e6[_0x2d9b7d]=='undefined')continue;if(_0x3cdae4[_0x582e64(0x102)](_0x2d9b7d)!=-0x1)continue;const _0x198999=this[_0x582e64(0xc9)][_0x582e64(0x10f)](_0x2d9b7d);if(!_0x198999)continue;if((_0xbe7160=_0xac60e6===null||_0xac60e6===void 0x0?void 0x0:_0xac60e6[_0x2d9b7d])===null||_0xbe7160===void 0x0?void 0x0:_0xbe7160[_0x582e64(0x105)](_0x582e64(0xf6))){const _0xa7764e=(_0x3951e7=_0xac60e6[_0x2d9b7d])===null||_0x3951e7===void 0x0?void 0x0:_0x3951e7[_0x582e64(0xde)],_0x5c0e06=(_0x25d2eb=_0xac60e6[_0x2d9b7d])===null||_0x25d2eb===void 0x0?void 0x0:_0x25d2eb['operator']['trim']()[_0x582e64(0xdd)](),_0x5d3e5e=_0x582e64(0xe3)+_0x2d9b7d+'_'+Math[_0x582e64(0x113)](Math[_0x582e64(0x117)]()*0xa)+Math[_0x582e64(0x113)](Math[_0x582e64(0x117)]()*0xa)+Math['ceil'](Math[_0x582e64(0x117)]()*0xa)+Math[_0x582e64(0x113)](Math['random']()*0xa);if(['=','!=','<>','>','>=','<','<=','LIKE','NOT\x20LIKE'][_0x582e64(0x102)](_0x5c0e06)!=-0x1)typeof _0xa7764e!='undefined'&&_0x4e5063[_0x582e64(0xf4)](_0x4e5063[_0x582e64(0xfe)]+'.'+_0x2d9b7d+'\x20'+_0x5c0e06+'\x20:'+_0x5d3e5e,{[_0x5d3e5e]:_0xa7764e});else{if(['IN',_0x582e64(0xdf)][_0x582e64(0x102)](_0x5c0e06)!=-0x1){if(typeof _0xa7764e!=_0x582e64(0x11c)){const _0x219686=Array[_0x582e64(0xc3)](_0xa7764e)?_0xa7764e:typeof _0xa7764e==_0x582e64(0x115)?_0xa7764e['split'](','):[_0xa7764e];_0x219686[_0x582e64(0xc5)]==0x0?_0x4e5063[_0x582e64(0xf4)]('1\x20=\x202'):_0x4e5063[_0x582e64(0xf4)](_0x4e5063['alias']+'.'+_0x2d9b7d+'\x20'+_0x5c0e06+_0x582e64(0xf8)+_0x5d3e5e+')',{[_0x5d3e5e]:_0x219686});}else _0x4e5063[_0x582e64(0xf4)](_0x582e64(0xd3));}else{if([_0x582e64(0xcf),_0x582e64(0x10d)]['indexOf'](_0x5c0e06)!=-0x1)typeof _0xa7764e!=_0x582e64(0x11c)&&_0x4e5063['andWhere'](_0x5c0e06+'(:'+_0x5d3e5e+','+_0x4e5063[_0x582e64(0xfe)]+'.'+_0x2d9b7d+')',{[_0x5d3e5e]:_0xa7764e});else{if([_0x582e64(0xec),_0x582e64(0xc0)][_0x582e64(0x102)](_0x5c0e06)!=-0x1){if(typeof _0xa7764e!='undefined'){const _0x22c260=Array[_0x582e64(0xc3)](_0xa7764e)?_0xa7764e:typeof _0xa7764e==_0x582e64(0x115)?_0xa7764e[_0x582e64(0xd5)](','):[_0xa7764e];_0x22c260['length']>0x1&&_0x4e5063['andWhere'](_0x4e5063[_0x582e64(0xfe)]+'.'+_0x2d9b7d+'\x20'+_0x5c0e06+'\x20:'+_0x5d3e5e+_0x582e64(0x10c)+_0x5d3e5e+'_2',{[''+_0x5d3e5e]:_0x22c260[0x0],[_0x5d3e5e+'_2']:_0x22c260[0x1]});}}else[_0x582e64(0xff),'NOT\x20ISNULL'][_0x582e64(0x102)](_0x5c0e06)!=-0x1&&_0x4e5063[_0x582e64(0xf4)](_0x5c0e06+'('+_0x4e5063[_0x582e64(0xfe)]+'.'+_0x2d9b7d+')');}}}}else{const _0x32129f=((_0x3a1d16=typeof _0x198999[_0x582e64(0x106)]==_0x582e64(0x101)?(_0x3f3996=_0x198999===null||_0x198999===void 0x0?void 0x0:_0x198999['type'])===null||_0x3f3996===void 0x0?void 0x0:_0x3f3996['name']:_0x198999[_0x582e64(0x106)][_0x582e64(0x109)]())===null||_0x3a1d16===void 0x0?void 0x0:_0x3a1d16[_0x582e64(0xd8)]())||undefined;if(_0x32129f){if(Array['isArray'](_0xac60e6[_0x2d9b7d]))_0xac60e6[_0x2d9b7d][_0x582e64(0xc5)]==0x0?_0x4e5063[_0x582e64(0xf4)](_0x582e64(0xd3)):_0x4e5063[_0x582e64(0xf4)](_0x4e5063[_0x582e64(0xfe)]+'.'+_0x2d9b7d+_0x582e64(0xe1)+_0x2d9b7d+')',{[_0x582e64(0xe3)+_0x2d9b7d]:_0xac60e6[_0x2d9b7d]});else _0x32129f==_0x582e64(0x115)&&!_0x198999[_0x582e64(0xeb)]?_0x4e5063[_0x582e64(0xf4)](_0x4e5063[_0x582e64(0xfe)]+'.'+_0x2d9b7d+_0x582e64(0xe4)+_0x2d9b7d,{[_0x582e64(0xe3)+_0x2d9b7d]:'%'+_0xac60e6[_0x2d9b7d]+'%'}):_0x4e5063['andWhere'](_0x4e5063[_0x582e64(0xfe)]+'.'+_0x2d9b7d+_0x582e64(0xfb)+_0x2d9b7d,{[_0x582e64(0xe3)+_0x2d9b7d]:_0xac60e6[_0x2d9b7d]});}}}(_0xb8c66a===null||_0xb8c66a===void 0x0?void 0x0:_0xb8c66a['_size'])&&_0x4e5063[_0x582e64(0xbe)](Math[_0x582e64(0x10b)](_0xb8c66a[_0x582e64(0x108)]));(_0xb8c66a===null||_0xb8c66a===void 0x0?void 0x0:_0xb8c66a[_0x582e64(0xcd)])&&(_0xb8c66a===null||_0xb8c66a===void 0x0?void 0x0:_0xb8c66a['_size'])&&_0x4e5063[_0x582e64(0x112)]((Math['abs'](_0xb8c66a[_0x582e64(0xcd)])-0x1)*Math[_0x582e64(0x10b)](_0xb8c66a[_0x582e64(0x108)]));if(_0xb8c66a===null||_0xb8c66a===void 0x0?void 0x0:_0xb8c66a['_order']){if(_0xb8c66a[_0x582e64(0xef)][_0x582e64(0x102)]('.')!==-0x1)_0x4e5063[_0x582e64(0x103)](''+_0xb8c66a[_0x582e64(0xef)],(_0xb8c66a===null||_0xb8c66a===void 0x0?void 0x0:_0xb8c66a['_isreverse'])?_0x582e64(0x11d):'DESC');else this[_0x582e64(0xc9)][_0x582e64(0x10f)](_0xb8c66a['_order'])&&_0x4e5063[_0x582e64(0x103)](_0x4e5063[_0x582e64(0xfe)]+'.'+_0xb8c66a[_0x582e64(0xef)],(_0xb8c66a===null||_0xb8c66a===void 0x0?void 0x0:_0xb8c66a[_0x582e64(0xf0)])?_0x582e64(0x11d):_0x582e64(0x104));}return typeof(_0x491d78===null||_0x491d78===void 0x0?void 0x0:_0x491d78[_0x582e64(0xf5)])==_0x582e64(0x101)&&await(_0x491d78===null||_0x491d78===void 0x0?void 0x0:_0x491d78[_0x582e64(0xf5)](_0x4e5063)),_0x4e5063;}async[a8_0x58678d(0xe9)](_0xaaa78e,..._0x397bda){const _0x3a988d=a8_0x58678d,_0x257d7d=this[_0x3a988d(0xdb)](_0xaaa78e,..._0x397bda);return await this[_0x3a988d(0xe6)](_0x257d7d);}async[a8_0x58678d(0xe2)](_0x58b1bb,..._0x10efc0){const _0x146388=a8_0x58678d,_0x2790f2=this['merge'](this[_0x146388(0xca)](_0x58b1bb),..._0x10efc0);return await this[_0x146388(0xe6)](_0x2790f2);}async['transaction'](_0x5a6a32,_0x124cde){const _0x509d27=a8_0x58678d;return typeof _0x5a6a32==_0x509d27(0x101)?this['manager'][_0x509d27(0xe7)](_0x509d27(0x114),_0x5a6a32):this[_0x509d27(0xce)][_0x509d27(0xe7)](_0x5a6a32,_0x124cde);}[a8_0x58678d(0x119)](_0x22f31b,_0x18bcf9,_0x339219=[]){const _0x28585a=a8_0x58678d,_0x5a9fc5=Object[_0x28585a(0xf7)]({},{..._0x22f31b},{..._0x18bcf9});for(const _0x5caa01 in _0x5a9fc5){if(_0x339219['includes'](_0x5caa01))continue;if((_0x5a9fc5===null||_0x5a9fc5===void 0x0?void 0x0:_0x5a9fc5[_0x5caa01])!=(_0x22f31b===null||_0x22f31b===void 0x0?void 0x0:_0x22f31b[_0x5caa01]))return!![];if((_0x5a9fc5===null||_0x5a9fc5===void 0x0?void 0x0:_0x5a9fc5[_0x5caa01])!=(_0x18bcf9===null||_0x18bcf9===void 0x0?void 0x0:_0x18bcf9[_0x5caa01]))return!![];}return![];}['getDirty'](_0x315acf,_0x249f59,_0x43e56d=[]){const _0x15de77=a8_0x58678d,_0x4a6763={},_0x17b782=Object[_0x15de77(0xf7)]({},{..._0x315acf},{..._0x249f59});for(const _0x4436a6 in _0x17b782){if(_0x43e56d[_0x15de77(0x10a)](_0x4436a6))continue;(_0x17b782===null||_0x17b782===void 0x0?void 0x0:_0x17b782[_0x4436a6])!=(_0x315acf===null||_0x315acf===void 0x0?void 0x0:_0x315acf[_0x4436a6])&&(_0x4a6763[_0x4436a6]=_0x17b782[_0x4436a6]);}return _0x4a6763;}constructor(_0x268704,_0x195eb4,_0x4302ed){const _0x36a618=a8_0x58678d;super(_0x4302ed[_0x36a618(0xfc)],_0x4302ed[_0x36a618(0xce)],_0x4302ed[_0x36a618(0xd2)]),this[_0x36a618(0xc7)]=[];for(const _0x25d4d2 of(0x0,core_1['getClassMetadata'])(interface_1[_0x36a618(0xbf)],this[_0x36a618(0xfc)])||[]){const _0x256b06={'model':_0x25d4d2,'searchs':[],'searchScopes':[]};for(const _0x5ada39 of(0x0,core_1[_0x36a618(0xed)])(interface_1[_0x36a618(0xfd)],_0x25d4d2)||[]){_0x256b06['searchs'][_0x36a618(0xf3)](_0x5ada39);}for(const _0x3a13c7 of(0x0,core_1['getClassMetadata'])(interface_1[_0x36a618(0xf1)],_0x25d4d2)||[]){_0x256b06['searchScopes'][_0x36a618(0xf3)](_0x3a13c7);}this[_0x36a618(0xc7)][_0x36a618(0xf3)](_0x256b06);}this['app']=_0x268704,this['container']=_0x195eb4;}}exports[a8_0x58678d(0xe8)]=Repository;
|
|
1
|
+
const a8_0x1e9583=a8_0x4001;function a8_0x5db1(){const _0x3f1863=['type','getApplicationContext','skip','MODEL_KEY','getAsync','name','length','container','modelSearchs','toLowerCase','assign','__esModule','168244pHeinC','__initialize','NOT\x20FIND\x20IN\x20SET','search','isPrimary','createQueryBuilder','bind','getDirty','mergeSave','MODEL_SEARCH_SCOPE_KEY','orderBy','operator','push','\x20IN(:..._auto_','_auto_','typeorm','function','1\x20=\x202','_size','searchs','7580196xgRboL','isArray','alias','save','queryRunner','_page','getClassMetadata','1858ubscrt','DESC','take','_isreverse','MODEL_SEARCH_KEY','field','\x20=\x20:_auto_','_order','NOT\x20LIKE','../interface','abs','transaction','398LNQknW','methodName','hasOwnProperty','NOT\x20IN','@midwayjs/core','3911180mZeJaw','616oOTWor','FIND\x20IN\x20SET','random','includes','toUpperCase','57AANcLd','2715444dMMUxs','string','findColumnWithPropertyName','apply','undefined','toString','indexOf','create','trim','\x20like\x20:_auto_','target','manager','condition','7266rAujzO','(((.+)+)+)+$','andWhere','app','ISNULL','isDirty','constructor','Repository','26824110cyWyDr','NOT\x20BETWEEN','NOT\x20ISNULL','searchScopes','model','ceil','scope'];a8_0x5db1=function(){return _0x3f1863;};return a8_0x5db1();}(function(_0x3e27b6,_0x1dff01){const _0x2d43f0=a8_0x4001,_0x3bc4fc=_0x3e27b6();while(!![]){try{const _0x4b16e8=parseInt(_0x2d43f0(0x1a9))/0x1*(-parseInt(_0x2d43f0(0x1b5))/0x2)+-parseInt(_0x2d43f0(0x1c0))/0x3*(parseInt(_0x2d43f0(0x1e9))/0x4)+-parseInt(_0x2d43f0(0x1ba))/0x5+parseInt(_0x2d43f0(0x1c1))/0x6+parseInt(_0x2d43f0(0x1ce))/0x7*(parseInt(_0x2d43f0(0x1bb))/0x8)+-parseInt(_0x2d43f0(0x1fd))/0x9+parseInt(_0x2d43f0(0x1d6))/0xa;if(_0x4b16e8===_0x1dff01)break;else _0x3bc4fc['push'](_0x3bc4fc['shift']());}catch(_0x24c423){_0x3bc4fc['push'](_0x3bc4fc['shift']());}}}(a8_0x5db1,0x66e9a));const a8_0x3dab16=(function(){let _0x392022=!![];return function(_0x52d210,_0x30062e){const _0x111152=_0x392022?function(){const _0x5b0506=a8_0x4001;if(_0x30062e){const _0x35ef3e=_0x30062e[_0x5b0506(0x1c4)](_0x52d210,arguments);return _0x30062e=null,_0x35ef3e;}}:function(){};return _0x392022=![],_0x111152;};}()),a8_0x3dcc97=a8_0x3dab16(this,function(){const _0x31b62c=a8_0x4001;return a8_0x3dcc97['toString']()['search']('(((.+)+)+)+$')[_0x31b62c(0x1c6)]()[_0x31b62c(0x1d4)](a8_0x3dcc97)[_0x31b62c(0x1ec)](_0x31b62c(0x1cf));});a8_0x3dcc97();'use strict';Object['defineProperty'](exports,a8_0x1e9583(0x1e8),{'value':!![]}),exports[a8_0x1e9583(0x1d5)]=void 0x0;const core_1=require(a8_0x1e9583(0x1b9)),typeorm_1=require(a8_0x1e9583(0x1f8)),interface_1=require(a8_0x1e9583(0x1b2));function a8_0x4001(_0x2d2562,_0x519bc8){const _0x591e6d=a8_0x5db1();return a8_0x4001=function(_0x3dcc97,_0x3dab16){_0x3dcc97=_0x3dcc97-0x1a9;let _0x5db123=_0x591e6d[_0x3dcc97];return _0x5db123;},a8_0x4001(_0x2d2562,_0x519bc8);}class Repository extends typeorm_1['Repository']{async[a8_0x1e9583(0x1ec)](_0x224516,_0x560a38,_0xd4514d={}){const _0x3a343c=a8_0x1e9583;var _0x282993,_0x1d1355,_0xd74e46,_0x764a94,_0x2b79b5,_0x11d560;const _0xdce9b5=this[_0x3a343c(0x1ee)](undefined,_0xd4514d===null||_0xd4514d===void 0x0?void 0x0:_0xd4514d['queryRunner']),_0x38b708=[];for(const _0x56aa3b of this[_0x3a343c(0x1e5)]){if(_0x56aa3b===null||_0x56aa3b===void 0x0?void 0x0:_0x56aa3b[_0x3a343c(0x1da)]){const _0x3d70fc=await this[_0x3a343c(0x1d1)][_0x3a343c(0x1de)]()[_0x3a343c(0x1e1)](_0x56aa3b[_0x3a343c(0x1da)]);if(_0x3d70fc){typeof _0x3d70fc[_0x3a343c(0x1ea)]==_0x3a343c(0x1f9)&&await _0x3d70fc[_0x3a343c(0x1ea)][_0x3a343c(0x1ef)](_0x3d70fc)(_0xdce9b5,_0x224516,{'app':this['app'],'container':this[_0x3a343c(0x1e4)],'paginate':_0x560a38,'queryRunner':_0xd4514d===null||_0xd4514d===void 0x0?void 0x0:_0xd4514d[_0x3a343c(0x201)]});if(_0xd4514d===null||_0xd4514d===void 0x0?void 0x0:_0xd4514d[_0x3a343c(0x1dc)]){const _0x3c0c67=Array[_0x3a343c(0x1fe)](_0xd4514d['scope'])?_0xd4514d['scope']:[_0xd4514d['scope']];for(const _0x47b643 of(_0x56aa3b===null||_0x56aa3b===void 0x0?void 0x0:_0x56aa3b[_0x3a343c(0x1d9)])||[]){(_0x47b643===null||_0x47b643===void 0x0?void 0x0:_0x47b643['scope'])&&_0x3c0c67['indexOf'](_0x47b643['scope'])!=-0x1&&(_0x47b643===null||_0x47b643===void 0x0?void 0x0:_0x47b643[_0x3a343c(0x1b6)])&&typeof _0x3d70fc[_0x47b643['methodName']]==_0x3a343c(0x1f9)&&await _0x3d70fc[_0x47b643['methodName']][_0x3a343c(0x1ef)](_0x3d70fc)(_0xdce9b5,_0x224516,{'app':this[_0x3a343c(0x1d1)],'container':this[_0x3a343c(0x1e4)],'paginate':_0x560a38,'queryRunner':_0xd4514d===null||_0xd4514d===void 0x0?void 0x0:_0xd4514d[_0x3a343c(0x201)]});}}if(_0x224516)for(const _0x28f5f7 of(_0x56aa3b===null||_0x56aa3b===void 0x0?void 0x0:_0x56aa3b[_0x3a343c(0x1fc)])||[]){(_0x28f5f7===null||_0x28f5f7===void 0x0?void 0x0:_0x28f5f7[_0x3a343c(0x1ae)])&&(_0x28f5f7===null||_0x28f5f7===void 0x0?void 0x0:_0x28f5f7[_0x3a343c(0x1b6)])&&typeof _0x3d70fc[_0x28f5f7['methodName']]==_0x3a343c(0x1f9)&&(typeof(_0x224516===null||_0x224516===void 0x0?void 0x0:_0x224516[_0x28f5f7['field']])!='undefined'&&!((_0x282993=_0x224516===null||_0x224516===void 0x0?void 0x0:_0x224516[_0x28f5f7[_0x3a343c(0x1ae)]])===null||_0x282993===void 0x0?void 0x0:_0x282993[_0x3a343c(0x1b7)]('operator'))&&(_0x38b708[_0x3a343c(0x1c7)](_0x28f5f7[_0x3a343c(0x1ae)])==-0x1&&_0x38b708[_0x3a343c(0x1f5)](_0x28f5f7[_0x3a343c(0x1ae)]),await _0x3d70fc[_0x28f5f7[_0x3a343c(0x1b6)]][_0x3a343c(0x1ef)](_0x3d70fc)(_0xdce9b5,_0x224516[_0x28f5f7[_0x3a343c(0x1ae)]],_0x224516,{'app':this['app'],'container':this[_0x3a343c(0x1e4)],'paginate':_0x560a38,'queryRunner':_0xd4514d===null||_0xd4514d===void 0x0?void 0x0:_0xd4514d[_0x3a343c(0x201)]})));}}}}for(const _0x38e4ea in _0x224516){if(typeof _0x224516[_0x38e4ea]==_0x3a343c(0x1c5))continue;if(_0x38b708[_0x3a343c(0x1c7)](_0x38e4ea)!=-0x1)continue;const _0x3b8624=this['metadata'][_0x3a343c(0x1c3)](_0x38e4ea);if(!_0x3b8624)continue;if((_0x1d1355=_0x224516===null||_0x224516===void 0x0?void 0x0:_0x224516[_0x38e4ea])===null||_0x1d1355===void 0x0?void 0x0:_0x1d1355[_0x3a343c(0x1b7)](_0x3a343c(0x1f4))){const _0x2e47d0=(_0xd74e46=_0x224516[_0x38e4ea])===null||_0xd74e46===void 0x0?void 0x0:_0xd74e46[_0x3a343c(0x1cd)],_0x1231c4=(_0x764a94=_0x224516[_0x38e4ea])===null||_0x764a94===void 0x0?void 0x0:_0x764a94['operator'][_0x3a343c(0x1c9)]()[_0x3a343c(0x1bf)](),_0x2f2ed4=_0x3a343c(0x1f7)+_0x38e4ea+'_'+Math[_0x3a343c(0x1db)](Math['random']()*0xa)+Math[_0x3a343c(0x1db)](Math[_0x3a343c(0x1bd)]()*0xa)+Math[_0x3a343c(0x1db)](Math['random']()*0xa)+Math[_0x3a343c(0x1db)](Math[_0x3a343c(0x1bd)]()*0xa);if(['=','!=','<>','>','>=','<','<=','LIKE',_0x3a343c(0x1b1)]['indexOf'](_0x1231c4)!=-0x1)typeof _0x2e47d0!=_0x3a343c(0x1c5)&&_0xdce9b5[_0x3a343c(0x1d0)](_0xdce9b5['alias']+'.'+_0x38e4ea+'\x20'+_0x1231c4+'\x20:'+_0x2f2ed4,{[_0x2f2ed4]:_0x2e47d0});else{if(['IN',_0x3a343c(0x1b8)]['indexOf'](_0x1231c4)!=-0x1){if(typeof _0x2e47d0!=_0x3a343c(0x1c5)){const _0x12d747=Array[_0x3a343c(0x1fe)](_0x2e47d0)?_0x2e47d0:typeof _0x2e47d0==_0x3a343c(0x1c2)?_0x2e47d0['split'](','):[_0x2e47d0];_0x12d747[_0x3a343c(0x1e3)]==0x0?_0xdce9b5[_0x3a343c(0x1d0)](_0x3a343c(0x1fa)):_0xdce9b5[_0x3a343c(0x1d0)](_0xdce9b5[_0x3a343c(0x1ff)]+'.'+_0x38e4ea+'\x20'+_0x1231c4+'(:...'+_0x2f2ed4+')',{[_0x2f2ed4]:_0x12d747});}else _0xdce9b5[_0x3a343c(0x1d0)]('1\x20=\x202');}else{if([_0x3a343c(0x1bc),_0x3a343c(0x1eb)][_0x3a343c(0x1c7)](_0x1231c4)!=-0x1)typeof _0x2e47d0!='undefined'&&_0xdce9b5[_0x3a343c(0x1d0)](_0x1231c4+'(:'+_0x2f2ed4+','+_0xdce9b5[_0x3a343c(0x1ff)]+'.'+_0x38e4ea+')',{[_0x2f2ed4]:_0x2e47d0});else{if(['BETWEEN',_0x3a343c(0x1d7)]['indexOf'](_0x1231c4)!=-0x1){if(typeof _0x2e47d0!=_0x3a343c(0x1c5)){const _0x324bd6=Array[_0x3a343c(0x1fe)](_0x2e47d0)?_0x2e47d0:typeof _0x2e47d0==_0x3a343c(0x1c2)?_0x2e47d0['split'](','):[_0x2e47d0];_0x324bd6[_0x3a343c(0x1e3)]>0x1&&_0xdce9b5['andWhere'](_0xdce9b5['alias']+'.'+_0x38e4ea+'\x20'+_0x1231c4+'\x20:'+_0x2f2ed4+'\x20AND\x20:'+_0x2f2ed4+'_2',{[''+_0x2f2ed4]:_0x324bd6[0x0],[_0x2f2ed4+'_2']:_0x324bd6[0x1]});}}else[_0x3a343c(0x1d2),_0x3a343c(0x1d8)][_0x3a343c(0x1c7)](_0x1231c4)!=-0x1&&_0xdce9b5[_0x3a343c(0x1d0)](_0x1231c4+'('+_0xdce9b5[_0x3a343c(0x1ff)]+'.'+_0x38e4ea+')');}}}}else{const _0x3dd48e=((_0x11d560=typeof _0x3b8624[_0x3a343c(0x1dd)]=='function'?(_0x2b79b5=_0x3b8624===null||_0x3b8624===void 0x0?void 0x0:_0x3b8624[_0x3a343c(0x1dd)])===null||_0x2b79b5===void 0x0?void 0x0:_0x2b79b5[_0x3a343c(0x1e2)]:_0x3b8624[_0x3a343c(0x1dd)]['toString']())===null||_0x11d560===void 0x0?void 0x0:_0x11d560[_0x3a343c(0x1e6)]())||undefined;if(_0x3dd48e){if(Array[_0x3a343c(0x1fe)](_0x224516[_0x38e4ea]))_0x224516[_0x38e4ea][_0x3a343c(0x1e3)]==0x0?_0xdce9b5[_0x3a343c(0x1d0)](_0x3a343c(0x1fa)):_0xdce9b5[_0x3a343c(0x1d0)](_0xdce9b5[_0x3a343c(0x1ff)]+'.'+_0x38e4ea+_0x3a343c(0x1f6)+_0x38e4ea+')',{['_auto_'+_0x38e4ea]:_0x224516[_0x38e4ea]});else _0x3dd48e==_0x3a343c(0x1c2)&&!_0x3b8624[_0x3a343c(0x1ed)]?_0xdce9b5[_0x3a343c(0x1d0)](_0xdce9b5[_0x3a343c(0x1ff)]+'.'+_0x38e4ea+_0x3a343c(0x1ca)+_0x38e4ea,{[_0x3a343c(0x1f7)+_0x38e4ea]:'%'+_0x224516[_0x38e4ea]+'%'}):_0xdce9b5[_0x3a343c(0x1d0)](_0xdce9b5[_0x3a343c(0x1ff)]+'.'+_0x38e4ea+_0x3a343c(0x1af)+_0x38e4ea,{[_0x3a343c(0x1f7)+_0x38e4ea]:_0x224516[_0x38e4ea]});}}}(_0x560a38===null||_0x560a38===void 0x0?void 0x0:_0x560a38[_0x3a343c(0x1fb)])&&_0xdce9b5[_0x3a343c(0x1ab)](Math[_0x3a343c(0x1b3)](_0x560a38[_0x3a343c(0x1fb)]));(_0x560a38===null||_0x560a38===void 0x0?void 0x0:_0x560a38[_0x3a343c(0x202)])&&(_0x560a38===null||_0x560a38===void 0x0?void 0x0:_0x560a38[_0x3a343c(0x1fb)])&&_0xdce9b5[_0x3a343c(0x1df)]((Math[_0x3a343c(0x1b3)](_0x560a38[_0x3a343c(0x202)])-0x1)*Math[_0x3a343c(0x1b3)](_0x560a38['_size']));if(_0x560a38===null||_0x560a38===void 0x0?void 0x0:_0x560a38[_0x3a343c(0x1b0)]){if(_0x560a38[_0x3a343c(0x1b0)][_0x3a343c(0x1c7)]('.')!==-0x1)_0xdce9b5[_0x3a343c(0x1f3)](''+_0x560a38[_0x3a343c(0x1b0)],(_0x560a38===null||_0x560a38===void 0x0?void 0x0:_0x560a38[_0x3a343c(0x1ac)])?'ASC':_0x3a343c(0x1aa));else this['metadata']['findColumnWithPropertyName'](_0x560a38[_0x3a343c(0x1b0)])&&_0xdce9b5[_0x3a343c(0x1f3)](_0xdce9b5[_0x3a343c(0x1ff)]+'.'+_0x560a38['_order'],(_0x560a38===null||_0x560a38===void 0x0?void 0x0:_0x560a38['_isreverse'])?'ASC':_0x3a343c(0x1aa));}return typeof(_0xd4514d===null||_0xd4514d===void 0x0?void 0x0:_0xd4514d['excess'])==_0x3a343c(0x1f9)&&await(_0xd4514d===null||_0xd4514d===void 0x0?void 0x0:_0xd4514d['excess'](_0xdce9b5)),_0xdce9b5;}async[a8_0x1e9583(0x1f1)](_0x388175,..._0x1d5c70){const _0x15d811=a8_0x1e9583,_0xe8e034=this['merge'](_0x388175,..._0x1d5c70);return await this[_0x15d811(0x200)](_0xe8e034);}async['createSave'](_0x27f6b7,..._0x417be7){const _0xdad12d=a8_0x1e9583,_0x17113c=this['merge'](this[_0xdad12d(0x1c8)](_0x27f6b7),..._0x417be7);return await this[_0xdad12d(0x200)](_0x17113c);}async[a8_0x1e9583(0x1b4)](_0x37ad6e,_0x10df8f){const _0x784c26=a8_0x1e9583;return typeof _0x37ad6e==_0x784c26(0x1f9)?this[_0x784c26(0x1cc)]['transaction']('SERIALIZABLE',_0x37ad6e):this[_0x784c26(0x1cc)][_0x784c26(0x1b4)](_0x37ad6e,_0x10df8f);}[a8_0x1e9583(0x1d3)](_0x48544e,_0x590af1,_0x42a72a=[]){const _0x121cd7=a8_0x1e9583,_0x587c40=Object['assign']({},{..._0x48544e},{..._0x590af1});for(const _0x3d772e in _0x587c40){if(_0x42a72a[_0x121cd7(0x1be)](_0x3d772e))continue;if((_0x587c40===null||_0x587c40===void 0x0?void 0x0:_0x587c40[_0x3d772e])!=(_0x48544e===null||_0x48544e===void 0x0?void 0x0:_0x48544e[_0x3d772e]))return!![];if((_0x587c40===null||_0x587c40===void 0x0?void 0x0:_0x587c40[_0x3d772e])!=(_0x590af1===null||_0x590af1===void 0x0?void 0x0:_0x590af1[_0x3d772e]))return!![];}return![];}[a8_0x1e9583(0x1f0)](_0x56fbe3,_0x253fd7,_0x54fb5b=[]){const _0x5c211b=a8_0x1e9583,_0x127a44={},_0x110d3a=Object[_0x5c211b(0x1e7)]({},{..._0x56fbe3},{..._0x253fd7});for(const _0xbc8a48 in _0x110d3a){if(_0x54fb5b[_0x5c211b(0x1be)](_0xbc8a48))continue;(_0x110d3a===null||_0x110d3a===void 0x0?void 0x0:_0x110d3a[_0xbc8a48])!=(_0x56fbe3===null||_0x56fbe3===void 0x0?void 0x0:_0x56fbe3[_0xbc8a48])&&(_0x127a44[_0xbc8a48]=_0x110d3a[_0xbc8a48]);}return _0x127a44;}constructor(_0x535d01,_0x3a41a2,_0xf9a1f1){const _0x23343a=a8_0x1e9583;super(_0xf9a1f1[_0x23343a(0x1cb)],_0xf9a1f1[_0x23343a(0x1cc)],_0xf9a1f1[_0x23343a(0x201)]),this['modelSearchs']=[];for(const _0x2a4d99 of(0x0,core_1['getClassMetadata'])(interface_1[_0x23343a(0x1e0)],this[_0x23343a(0x1cb)])||[]){const _0x53bf3f={'model':_0x2a4d99,'searchs':[],'searchScopes':[]};for(const _0x3d6376 of(0x0,core_1[_0x23343a(0x203)])(interface_1[_0x23343a(0x1ad)],_0x2a4d99)||[]){_0x53bf3f[_0x23343a(0x1fc)]['push'](_0x3d6376);}for(const _0x1067a8 of(0x0,core_1[_0x23343a(0x203)])(interface_1[_0x23343a(0x1f2)],_0x2a4d99)||[]){_0x53bf3f[_0x23343a(0x1d9)][_0x23343a(0x1f5)](_0x1067a8);}this[_0x23343a(0x1e5)][_0x23343a(0x1f5)](_0x53bf3f);}this['app']=_0x535d01,this[_0x23343a(0x1e4)]=_0x3a41a2;}}exports[a8_0x1e9583(0x1d5)]=Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getDataSourceEntity(source?: string): any[];
|
|
1
|
+
export declare function getDataSourceEntity(source?: string): any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a9_0x1514(){const _0xa92e43=['push','330942zeDtdt','12541696drswWJ','5LGjPwE','9UwQbTH','dataSource','1590426AtFlDM','573500jomtCs','2222085uMXXpI','search','2585786ymUBzI','listModule','getClassMetadata','@midwayjs/core','__esModule','ENTIFY_MODULE_SOURCE','apply','(((.+)+)+)+$','getDataSourceEntity','282826lOOHfp','constructor','../interface','find','ENTIFY_MODULE','toString'];a9_0x1514=function(){return _0xa92e43;};return a9_0x1514();}const a9_0x3e07cb=a9_0x1fe7;function a9_0x1fe7(_0xbc2804,_0x3a8385){const _0x166928=a9_0x1514();return a9_0x1fe7=function(_0x2128d8,_0x1d5145){_0x2128d8=_0x2128d8-0xb0;let _0x15140e=_0x166928[_0x2128d8];return _0x15140e;},a9_0x1fe7(_0xbc2804,_0x3a8385);}(function(_0x428b8e,_0x318ceb){const _0x2eda0a=a9_0x1fe7,_0x4545d5=_0x428b8e();while(!![]){try{const _0xc26952=-parseInt(_0x2eda0a(0xb5))/0x1*(-parseInt(_0x2eda0a(0xc5))/0x2)+parseInt(_0x2eda0a(0xb3))/0x3+parseInt(_0x2eda0a(0xb9))/0x4+parseInt(_0x2eda0a(0xba))/0x5+parseInt(_0x2eda0a(0xb8))/0x6+parseInt(_0x2eda0a(0xbc))/0x7+parseInt(_0x2eda0a(0xb4))/0x8*(-parseInt(_0x2eda0a(0xb6))/0x9);if(_0xc26952===_0x318ceb)break;else _0x4545d5['push'](_0x4545d5['shift']());}catch(_0x1dc1d0){_0x4545d5['push'](_0x4545d5['shift']());}}}(a9_0x1514,0x73378));const a9_0x1d5145=(function(){let _0x262f8b=!![];return function(_0x58e85e,_0x30cafb){const _0x225839=_0x262f8b?function(){const _0x2f7c37=a9_0x1fe7;if(_0x30cafb){const _0x396002=_0x30cafb[_0x2f7c37(0xc2)](_0x58e85e,arguments);return _0x30cafb=null,_0x396002;}}:function(){};return _0x262f8b=![],_0x225839;};}()),a9_0x2128d8=a9_0x1d5145(this,function(){const _0x57d7ca=a9_0x1fe7;return a9_0x2128d8[_0x57d7ca(0xb1)]()[_0x57d7ca(0xbb)](_0x57d7ca(0xc3))[_0x57d7ca(0xb1)]()[_0x57d7ca(0xc6)](a9_0x2128d8)['search'](_0x57d7ca(0xc3));});a9_0x2128d8();'use strict';Object['defineProperty'](exports,a9_0x3e07cb(0xc0),{'value':!![]}),exports[a9_0x3e07cb(0xc4)]=void 0x0;const core_1=require(a9_0x3e07cb(0xbf)),interface_1=require(a9_0x3e07cb(0xc7));function getDataSourceEntity(_0x305cda='default'){const _0x31d8c2=a9_0x3e07cb;var _0x1ae857;const _0x4c463b=[];for(const _0x49b983 of(0x0,core_1[_0x31d8c2(0xbd)])(interface_1[_0x31d8c2(0xb0)])){const _0x3ff35e=(0x0,core_1[_0x31d8c2(0xbe)])(interface_1[_0x31d8c2(0xc1)],_0x49b983);((_0x1ae857=_0x3ff35e===null||_0x3ff35e===void 0x0?void 0x0:_0x3ff35e[_0x31d8c2(0xb7)])===null||_0x1ae857===void 0x0?void 0x0:_0x1ae857[_0x31d8c2(0xc8)](_0xad0b88=>_0xad0b88==_0x305cda))&&_0x4c463b[_0x31d8c2(0xb2)](_0x49b983);}return _0x4c463b;}exports[a9_0x3e07cb(0xc4)]=getDataSourceEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getProvideObserve(): any[];
|
|
1
|
+
export declare function getProvideObserve(): any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a10_0x5737(_0x409913,_0x369d1f){const _0x3db6e0=a10_0x5ae4();return a10_0x5737=function(_0x271df4,_0x243ffe){_0x271df4=_0x271df4-0xf8;let _0x5ae4e6=_0x3db6e0[_0x271df4];return _0x5ae4e6;},a10_0x5737(_0x409913,_0x369d1f);}const a10_0x2410ba=a10_0x5737;(function(_0x59aa0d,_0x446494){const _0x115faf=a10_0x5737,_0x10fc9e=_0x59aa0d();while(!![]){try{const _0x291f33=parseInt(_0x115faf(0xfd))/0x1+-parseInt(_0x115faf(0x108))/0x2+-parseInt(_0x115faf(0x100))/0x3*(-parseInt(_0x115faf(0x101))/0x4)+parseInt(_0x115faf(0x102))/0x5+parseInt(_0x115faf(0xf9))/0x6+-parseInt(_0x115faf(0x105))/0x7+-parseInt(_0x115faf(0xfc))/0x8;if(_0x291f33===_0x446494)break;else _0x10fc9e['push'](_0x10fc9e['shift']());}catch(_0x50e1ea){_0x10fc9e['push'](_0x10fc9e['shift']());}}}(a10_0x5ae4,0x4c9c9));function a10_0x5ae4(){const _0x3f5900=['3499244VybWiQ','@midwayjs/core','__esModule','88418asrlLq','(((.+)+)+)+$','865422uvDQxQ','getProvideObserve','toString','1958296xxKTEK','504531wkjsFF','search','../interface','3yBIvYv','1132024jqRnNI','854575ognPcy','apply','defineProperty'];a10_0x5ae4=function(){return _0x3f5900;};return a10_0x5ae4();}const a10_0x243ffe=(function(){let _0x13561d=!![];return function(_0x399de8,_0x48aa3d){const _0x40c2cb=_0x13561d?function(){const _0x9da8ee=a10_0x5737;if(_0x48aa3d){const _0x367027=_0x48aa3d[_0x9da8ee(0x103)](_0x399de8,arguments);return _0x48aa3d=null,_0x367027;}}:function(){};return _0x13561d=![],_0x40c2cb;};}()),a10_0x271df4=a10_0x243ffe(this,function(){const _0x552d1e=a10_0x5737;return a10_0x271df4['toString']()[_0x552d1e(0xfe)](_0x552d1e(0xf8))[_0x552d1e(0xfb)]()['constructor'](a10_0x271df4)[_0x552d1e(0xfe)](_0x552d1e(0xf8));});a10_0x271df4();'use strict';Object[a10_0x2410ba(0x104)](exports,a10_0x2410ba(0x107),{'value':!![]}),exports[a10_0x2410ba(0xfa)]=void 0x0;const core_1=require(a10_0x2410ba(0x106)),interface_1=require(a10_0x2410ba(0xff));function getProvideObserve(){return(0x0,core_1['listModule'])(interface_1['REPOSITORY_OBSERVE_KEY'])||[];}exports[a10_0x2410ba(0xfa)]=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
|
-
|
|
1
|
+
var a11_0x15ab4e=a11_0x1963;(function(_0x2f7789,_0x36f5f9){var _0x4ca096=a11_0x1963,_0x1372e6=_0x2f7789();while(!![]){try{var _0x261952=-parseInt(_0x4ca096(0x193))/0x1*(parseInt(_0x4ca096(0x196))/0x2)+parseInt(_0x4ca096(0x195))/0x3+parseInt(_0x4ca096(0x19b))/0x4*(parseInt(_0x4ca096(0x191))/0x5)+-parseInt(_0x4ca096(0x18d))/0x6+parseInt(_0x4ca096(0x19d))/0x7+-parseInt(_0x4ca096(0x19e))/0x8*(-parseInt(_0x4ca096(0x19c))/0x9)+parseInt(_0x4ca096(0x18f))/0xa*(-parseInt(_0x4ca096(0x190))/0xb);if(_0x261952===_0x36f5f9)break;else _0x1372e6['push'](_0x1372e6['shift']());}catch(_0x1a05b6){_0x1372e6['push'](_0x1372e6['shift']());}}}(a11_0x1f84,0x1968a));var a11_0x1b94aa=(function(){var _0x85a53=!![];return function(_0x1094be,_0x164eaa){var _0x1a8564=_0x85a53?function(){var _0x3a8937=a11_0x1963;if(_0x164eaa){var _0x4ba89a=_0x164eaa[_0x3a8937(0x199)](_0x1094be,arguments);return _0x164eaa=null,_0x4ba89a;}}:function(){};return _0x85a53=![],_0x1a8564;};}()),a11_0x2edacc=a11_0x1b94aa(this,function(){var _0x3cda8e=a11_0x1963;return a11_0x2edacc['toString']()[_0x3cda8e(0x19a)](_0x3cda8e(0x197))[_0x3cda8e(0x198)]()[_0x3cda8e(0x194)](a11_0x2edacc)[_0x3cda8e(0x19a)](_0x3cda8e(0x197));});function a11_0x1f84(){var _0x50990e=['443168qAWhgz','181980TBCnwf','__esModule','100kkNGCV','117942AKRFzD','28685viGsnN','sleep','96931SYxFQp','constructor','554391HLnJFe','2xHZIjN','(((.+)+)+)+$','toString','apply','search','40QyhMee','9KirFhL','286944XBQwTc'];a11_0x1f84=function(){return _0x50990e;};return a11_0x1f84();}a11_0x2edacc();function a11_0x1963(_0x48f549,_0x15802f){var _0x54e80c=a11_0x1f84();return a11_0x1963=function(_0x2edacc,_0x1b94aa){_0x2edacc=_0x2edacc-0x18d;var _0x1f84a7=_0x54e80c[_0x2edacc];return _0x1f84a7;},a11_0x1963(_0x48f549,_0x15802f);}'use strict';Object['defineProperty'](exports,a11_0x15ab4e(0x18e),{'value':!![]}),exports[a11_0x15ab4e(0x192)]=void 0x0;function sleep(_0x451c71=0xc8){return new Promise(_0x120aa9=>setTimeout(_0x120aa9,_0x451c71));}exports[a11_0x15ab4e(0x192)]=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
|
|
1
|
+
var a12_0x4a2005=a12_0x31de;(function(_0x473714,_0x2c7394){var _0x434944=a12_0x31de,_0x3fd747=_0x473714();while(!![]){try{var _0x35aef3=-parseInt(_0x434944(0xbe))/0x1*(-parseInt(_0x434944(0xc4))/0x2)+-parseInt(_0x434944(0xc0))/0x3*(parseInt(_0x434944(0xb4))/0x4)+parseInt(_0x434944(0xb5))/0x5+parseInt(_0x434944(0xb6))/0x6*(-parseInt(_0x434944(0xde))/0x7)+parseInt(_0x434944(0xc6))/0x8*(parseInt(_0x434944(0xe2))/0x9)+-parseInt(_0x434944(0xb9))/0xa+parseInt(_0x434944(0xba))/0xb*(-parseInt(_0x434944(0xd6))/0xc);if(_0x35aef3===_0x2c7394)break;else _0x3fd747['push'](_0x3fd747['shift']());}catch(_0x54e895){_0x3fd747['push'](_0x3fd747['shift']());}}}(a12_0x3c32,0x1adc4));var a12_0x1b4413=(function(){var _0x47066d=!![];return function(_0x365976,_0x11fd5f){var _0x5517fe=_0x47066d?function(){var _0x244b84=a12_0x31de;if(_0x11fd5f){var _0x38faba=_0x11fd5f[_0x244b84(0xe1)](_0x365976,arguments);return _0x11fd5f=null,_0x38faba;}}:function(){};return _0x47066d=![],_0x5517fe;};}()),a12_0x1278b4=a12_0x1b4413(this,function(){var _0x5a9b75=a12_0x31de;return a12_0x1278b4[_0x5a9b75(0xc1)]()[_0x5a9b75(0xdc)](_0x5a9b75(0xc5))['toString']()[_0x5a9b75(0xc2)](a12_0x1278b4)[_0x5a9b75(0xdc)](_0x5a9b75(0xc5));});a12_0x1278b4();'use strict';var __createBinding=this&&this[a12_0x4a2005(0xd5)]||(Object['create']?function(_0x116c26,_0x43ed19,_0x368d6e,_0xa595e8){var _0x56107f=a12_0x4a2005;if(_0xa595e8===undefined)_0xa595e8=_0x368d6e;var _0x486645=Object[_0x56107f(0xbb)](_0x43ed19,_0x368d6e);(!_0x486645||('get'in _0x486645?!_0x43ed19['__esModule']:_0x486645['writable']||_0x486645[_0x56107f(0xd4)]))&&(_0x486645={'enumerable':!![],'get':function(){return _0x43ed19[_0x368d6e];}}),Object['defineProperty'](_0x116c26,_0xa595e8,_0x486645);}:function(_0x5e2c59,_0x260b8b,_0x150337,_0xf3b628){if(_0xf3b628===undefined)_0xf3b628=_0x150337;_0x5e2c59[_0xf3b628]=_0x260b8b[_0x150337];}),__exportStar=this&&this[a12_0x4a2005(0xca)]||function(_0xade565,_0x43d7a1){var _0x590b33=a12_0x4a2005;for(var _0x2e2cf1 in _0xade565)if(_0x2e2cf1!==_0x590b33(0xb1)&&!Object[_0x590b33(0xdd)][_0x590b33(0xcd)][_0x590b33(0xd1)](_0x43d7a1,_0x2e2cf1))__createBinding(_0x43d7a1,_0xade565,_0x2e2cf1);};Object[a12_0x4a2005(0xaf)](exports,'__esModule',{'value':!![]}),exports['ScopeEnum']=exports[a12_0x4a2005(0xbf)]=exports['Inject']=exports[a12_0x4a2005(0xd3)]=exports[a12_0x4a2005(0xdf)]=exports[a12_0x4a2005(0xd8)]=exports['getProvideObserve']=exports['SearchScope']=exports[a12_0x4a2005(0xc3)]=exports[a12_0x4a2005(0xd0)]=exports[a12_0x4a2005(0xd2)]=exports['ProvideObserve']=exports[a12_0x4a2005(0xb7)]=exports[a12_0x4a2005(0xcf)]=exports['InjectEntity']=exports['VirtualColumn']=exports['Repository']=void 0x0,__exportStar(require('typeorm'),exports),__exportStar(require(a12_0x4a2005(0xc9)),exports);var Repository_1=require('./definition/Repository');Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xce),{'enumerable':!![],'get':function(){return Repository_1['Repository'];}});var VirtualColumn_1=require(a12_0x4a2005(0xc7));Object[a12_0x4a2005(0xaf)](exports,'VirtualColumn',{'enumerable':!![],'get':function(){var _0x24ad13=a12_0x4a2005;return VirtualColumn_1[_0x24ad13(0xd7)];}});var InjectEntity_1=require('./decorator/InjectEntity');function a12_0x31de(_0x244365,_0x1323cd){var _0x324bd9=a12_0x3c32();return a12_0x31de=function(_0x1278b4,_0x1b4413){_0x1278b4=_0x1278b4-0xaf;var _0x3c3200=_0x324bd9[_0x1278b4];return _0x3c3200;},a12_0x31de(_0x244365,_0x1323cd);}Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xc8),{'enumerable':!![],'get':function(){return InjectEntity_1['InjectEntity'];}});var InjectRepository_1=require(a12_0x4a2005(0xda));Object[a12_0x4a2005(0xaf)](exports,'InjectRepository',{'enumerable':!![],'get':function(){var _0xd4b17b=a12_0x4a2005;return InjectRepository_1[_0xd4b17b(0xcf)];}});var ProvideEntity_1=require(a12_0x4a2005(0xb3));Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xb7),{'enumerable':!![],'get':function(){var _0x79a09=a12_0x4a2005;return ProvideEntity_1[_0x79a09(0xb7)];}});var ProvideObserve_1=require(a12_0x4a2005(0xbc));Object[a12_0x4a2005(0xaf)](exports,'ProvideObserve',{'enumerable':!![],'get':function(){var _0x39a82a=a12_0x4a2005;return ProvideObserve_1[_0x39a82a(0xbd)];}});var ProvideRepository_1=require(a12_0x4a2005(0xd9));Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xd2),{'enumerable':!![],'get':function(){var _0x3f450d=a12_0x4a2005;return ProvideRepository_1[_0x3f450d(0xd2)];}});var ProvideSearch_1=require(a12_0x4a2005(0xcb));Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xd0),{'enumerable':!![],'get':function(){var _0x34aa40=a12_0x4a2005;return ProvideSearch_1[_0x34aa40(0xd0)];}}),Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xc3),{'enumerable':!![],'get':function(){var _0x2deb4a=a12_0x4a2005;return ProvideSearch_1[_0x2deb4a(0xc3)];}}),Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xe0),{'enumerable':!![],'get':function(){var _0x8aa61=a12_0x4a2005;return ProvideSearch_1[_0x8aa61(0xe0)];}});var getProvideObserve_1=require(a12_0x4a2005(0xb8));Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xe3),{'enumerable':!![],'get':function(){var _0x38bc58=a12_0x4a2005;return getProvideObserve_1[_0x38bc58(0xe3)];}});var getDataSourceEntity_1=require('./helper/getDataSourceEntity');Object['defineProperty'](exports,a12_0x4a2005(0xd8),{'enumerable':!![],'get':function(){var _0x489e23=a12_0x4a2005;return getDataSourceEntity_1[_0x489e23(0xd8)];}});var configuration_1=require('./configuration');function a12_0x3c32(){var _0x536570=['./decorator/ProvideSearch','CustomConfiguration','hasOwnProperty','Repository','InjectRepository','ProvideSearch','call','ProvideRepository','Provide','configurable','__createBinding','192EilZWZ','VirtualColumn','getDataSourceEntity','./decorator/ProvideRepository','./decorator/InjectRepository','@midwayjs/core','search','prototype','21sldioC','Configuration','SearchScope','apply','11574DpAZlq','getProvideObserve','defineProperty','ScopeEnum','default','Inject','./decorator/ProvideEntity','8dFJddM','987075dJtrDB','15396BRpTRN','ProvideEntity','./helper/getProvideObserve','517780fnLxDf','214478iHXQvj','getOwnPropertyDescriptor','./decorator/ProvideObserve','ProvideObserve','24239FHaPLz','Scope','83649FgBLbv','toString','constructor','Search','10EulYCe','(((.+)+)+)+$','1360UFVlQC','./decorator/VirtualColumn','InjectEntity','./interface','__exportStar'];a12_0x3c32=function(){return _0x536570;};return a12_0x3c32();}Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xdf),{'enumerable':!![],'get':function(){var _0x25f5b3=a12_0x4a2005;return configuration_1[_0x25f5b3(0xcc)];}});var core_1=require(a12_0x4a2005(0xdb));Object[a12_0x4a2005(0xaf)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x5f3f73=a12_0x4a2005;return core_1[_0x5f3f73(0xd3)];}}),Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xb2),{'enumerable':!![],'get':function(){var _0x51668b=a12_0x4a2005;return core_1[_0x51668b(0xb2)];}}),Object[a12_0x4a2005(0xaf)](exports,a12_0x4a2005(0xbf),{'enumerable':!![],'get':function(){var _0x357a95=a12_0x4a2005;return core_1[_0x357a95(0xbf)];}}),Object['defineProperty'](exports,a12_0x4a2005(0xb0),{'enumerable':!![],'get':function(){return core_1['ScopeEnum'];}});
|
package/dist/interface.d.ts
CHANGED
|
@@ -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
|
-
function a13_0x4278(_0x362903,_0x2b1c91){const _0x3c2956=a13_0x556d();return a13_0x4278=function(_0x2994b4,_0xf6da16){_0x2994b4=_0x2994b4-0x12b;let _0x556d8e=_0x3c2956[_0x2994b4];return _0x556d8e;},a13_0x4278(_0x362903,_0x2b1c91);}const a13_0x530388=a13_0x4278;(function(_0x48ae38,_0x34c61d){const _0x1ed162=a13_0x4278,_0x3bfd35=_0x48ae38();while(!![]){try{const _0x3e7398=-parseInt(_0x1ed162(0x163))/0x1*(parseInt(_0x1ed162(0x158))/0x2)+parseInt(_0x1ed162(0x139))/0x3+-parseInt(_0x1ed162(0x189))/0x4+-parseInt(_0x1ed162(0x170))/0x5+-parseInt(_0x1ed162(0x161))/0x6+parseInt(_0x1ed162(0x18b))/0x7*(-parseInt(_0x1ed162(0x18d))/0x8)+parseInt(_0x1ed162(0x13c))/0x9*(parseInt(_0x1ed162(0x165))/0xa);if(_0x3e7398===_0x34c61d)break;else _0x3bfd35['push'](_0x3bfd35['shift']());}catch(_0x305ab1){_0x3bfd35['push'](_0x3bfd35['shift']());}}}(a13_0x556d,0xaa9a9));const a13_0xf6da16=(function(){let _0x49fc93=!![];return function(_0x8b3c5c,_0x3f8299){const _0x3bf70a=_0x49fc93?function(){const _0x4e4fad=a13_0x4278;if(_0x3f8299){const _0x45e911=_0x3f8299[_0x4e4fad(0x17c)](_0x8b3c5c,arguments);return _0x3f8299=null,_0x45e911;}}:function(){};return _0x49fc93=![],_0x3bf70a;};}()),a13_0x2994b4=a13_0xf6da16(this,function(){const _0x54b2ed=a13_0x4278;return a13_0x2994b4[_0x54b2ed(0x151)]()[_0x54b2ed(0x169)](_0x54b2ed(0x14b))['toString']()['constructor'](a13_0x2994b4)[_0x54b2ed(0x169)](_0x54b2ed(0x14b));});a13_0x2994b4();'use strict';Object[a13_0x530388(0x15c)](exports,a13_0x530388(0x16f),{'value':!![]}),exports['SearchPaginate']=exports[a13_0x530388(0x153)]=exports['MODEL_SEARCH_SCOPE_KEY']=exports[a13_0x530388(0x13f)]=exports['MODEL_KEY']=exports[a13_0x530388(0x148)]=exports['REPOSITORY_KEY']=exports[a13_0x530388(0x14d)]=exports['ENTIFY_MODULE']=exports[a13_0x530388(0x15f)]=void 0x0;const core_1=require(a13_0x530388(0x184)),typeorm_1=require(a13_0x530388(0x174)),typeorm_2=require(a13_0x530388(0x174)),typeorm_3=require(a13_0x530388(0x174)),sleep_1=require(a13_0x530388(0x16e));function a13_0x556d(){const _0x30fb89=['getManyAndCount','push','skip','513519SzZFwq','andWhere','alias','53174808ZeFodl','metadata','prototype','MODEL_SEARCH_KEY','findOne','abs','take','joinAppends','chunk','many-to-many','updateDateColumn','findOneByOrFail','REPOSITORY_OBSERVE_KEY','setFindOptions','delay','(((.+)+)+)+$','EntityManager','ENTIFY_MODULE_SOURCE','optimistic','name','propertyName','toString','mainAlias','ENTITY_VIRTUAL_COLUMN_KEY','getOne','getCount','one-to-many','getRawAndEntities','1394418NfjKJe','findOneBy','default','ENTIFY_MODULE','defineProperty','joinColumns','clone','ENTIFY_KEY','relationType','8200344FoiPrL','decorator:anncic-api:typeorm:repository','2dWLxZS','findOneOrFail','10xtvfXI','one-to-one','find','getMany','search','lockVersion','number','startsWith','size','./helper/sleep','__esModule','5124455PGVnFa','versionColumn','_appends','substring','typeorm','_joinAppendsResolve','decorator:anncic-api:typeorm:model','string','decorator:anncic-api:typeorm:repository:observe','decorator:anncic-api:typeorm:model:search:scope','SelectQueryBuilder','findOption','apply','relations','getTime','referencedColumnName','connection','all','MODEL_SEARCH_SCOPE_KEY','withDeleted','@midwayjs/core','function','expressionMap','target','OptimisticLockCanNotBeUsedError','3725528vDdZCN','hasOwnProperty','4642939IWTOIU','many-to-one','8ZZNrAm','decorator:anncic-api:typeorm:entify:module','lockMode','decorator:anncic-api:typeorm:model:search','EntityNotFoundError','decorator:anncic-api:typeorm:entify','reject','SearchPaginate','sleep','\x20=\x20:','length','joinColumn','resolve','REPOSITORY_KEY','type','getEntityValue','relation'];a13_0x556d=function(){return _0x30fb89;};return a13_0x556d();}exports[a13_0x530388(0x15f)]=a13_0x530388(0x192),exports[a13_0x530388(0x15b)]=a13_0x530388(0x18e),exports[a13_0x530388(0x14d)]='decorator:anncic-api:typeorm:entify:module:source',exports[a13_0x530388(0x132)]=a13_0x530388(0x162),exports[a13_0x530388(0x148)]=a13_0x530388(0x178),exports['MODEL_KEY']=a13_0x530388(0x176),exports[a13_0x530388(0x13f)]=a13_0x530388(0x190),exports[a13_0x530388(0x182)]=a13_0x530388(0x179),exports[a13_0x530388(0x153)]='decorator:anncic-api:typeorm:entity:virtual:column';class SearchPaginate{}exports[a13_0x530388(0x12c)]=SearchPaginate,typeorm_2[a13_0x530388(0x17a)][a13_0x530388(0x13e)][a13_0x530388(0x144)]=async function(_0x236782,_0x59196d=0x64){const _0x572198=a13_0x530388;let _0x53f695=0x1,_0x2e54e5=!![],_0x2055dd=0x64,_0x1fcb5a=![];if(typeof _0x59196d==_0x572198(0x16b)||typeof _0x59196d==_0x572198(0x177))_0x2055dd=parseInt(''+_0x59196d);else _0x59196d&&((_0x59196d===null||_0x59196d===void 0x0?void 0x0:_0x59196d[_0x572198(0x16d)])&&(_0x2055dd=parseInt(''+_0x59196d['size'])),(_0x59196d===null||_0x59196d===void 0x0?void 0x0:_0x59196d['delay'])&&(_0x1fcb5a=typeof _0x59196d['delay']=='boolean'?0x1f4:parseInt(''+_0x59196d[_0x572198(0x14a)])));while(_0x2e54e5){const _0x49cbd6=await this[_0x572198(0x15e)]()[_0x572198(0x142)](Math[_0x572198(0x141)](_0x2055dd))[_0x572198(0x138)]((Math[_0x572198(0x141)](_0x53f695)-0x1)*Math['abs'](_0x2055dd))[_0x572198(0x168)]();(_0x49cbd6===null||_0x49cbd6===void 0x0?void 0x0:_0x49cbd6[_0x572198(0x12f)])>0x0?(await _0x236782(_0x49cbd6,_0x53f695),_0x49cbd6[_0x572198(0x12f)]=0x0,_0x53f695++,_0x1fcb5a&&typeof _0x1fcb5a=='number'&&await(0x0,sleep_1[_0x572198(0x12d)])(_0x1fcb5a)):_0x2e54e5=![];}},typeorm_3[a13_0x530388(0x14c)]['prototype'][a13_0x530388(0x164)]=async function(_0x22a3a8,_0x20d901){const _0xddf34f=a13_0x530388;return this[_0xddf34f(0x140)](_0x22a3a8,_0x20d901)['then'](_0x54d001=>{const _0x339192=_0xddf34f;if(_0x54d001===null||_0x54d001===undefined)return Promise[_0x339192(0x12b)](new typeorm_3[(_0x339192(0x191))](_0x22a3a8,_0x20d901));return Promise['resolve'](_0x54d001);});},typeorm_3[a13_0x530388(0x14c)]['prototype'][a13_0x530388(0x147)]=async function(_0x4646de,_0x5ae14d){const _0x13288a=a13_0x530388;return this[_0x13288a(0x159)](_0x4646de,_0x5ae14d)['then'](_0x1fc60e=>{const _0x440c00=_0x13288a;if(_0x1fc60e===null||_0x1fc60e===undefined)return Promise[_0x440c00(0x12b)](new typeorm_3[(_0x440c00(0x191))](_0x4646de,_0x5ae14d));return Promise[_0x440c00(0x131)](_0x1fc60e);});},typeorm_2[a13_0x530388(0x17a)][a13_0x530388(0x13e)][a13_0x530388(0x154)]=async function(){const _0x5e367f=a13_0x530388;var _0x5f17ee;const {entities:_0x390ea1,raw:_0x315cf7}=await this[_0x5e367f(0x157)]();if(_0x390ea1[0x0]&&this[_0x5e367f(0x186)][_0x5e367f(0x18f)]==='optimistic'&&this[_0x5e367f(0x186)][_0x5e367f(0x16a)]){const _0x4e8025=this['expressionMap'][_0x5e367f(0x152)][_0x5e367f(0x13d)];if(this[_0x5e367f(0x186)][_0x5e367f(0x16a)]instanceof Date){const _0x58e6e9=_0x4e8025[_0x5e367f(0x146)][_0x5e367f(0x134)](_0x390ea1[0x0]);if(_0x58e6e9['getTime']()!==this[_0x5e367f(0x186)][_0x5e367f(0x16a)][_0x5e367f(0x17e)]())throw new typeorm_2['OptimisticLockVersionMismatchError'](_0x4e8025[_0x5e367f(0x14f)],this[_0x5e367f(0x186)][_0x5e367f(0x16a)],_0x58e6e9);}else{const _0x145594=_0x4e8025[_0x5e367f(0x171)]['getEntityValue'](_0x390ea1[0x0]);if(_0x145594!==this[_0x5e367f(0x186)][_0x5e367f(0x16a)])throw new typeorm_2['OptimisticLockVersionMismatchError'](_0x4e8025[_0x5e367f(0x14f)],this[_0x5e367f(0x186)][_0x5e367f(0x16a)],_0x145594);}}if(_0x390ea1[0x0]&&_0x315cf7[0x0]){const _0x146164=(0x0,core_1['getClassMetadata'])(exports[_0x5e367f(0x153)],_0x390ea1[0x0]);for(const _0x542c70 in _0x146164){_0x315cf7[0x0][_0x5e367f(0x18a)](_0x542c70)&&(_0x390ea1[0x0][_0x542c70]=_0x315cf7[0x0][_0x542c70]||((_0x5f17ee=_0x146164[_0x542c70])===null||_0x5f17ee===void 0x0?void 0x0:_0x5f17ee[_0x5e367f(0x15a)])||'');}}return _0x390ea1[0x0]&&typeof this[_0x5e367f(0x175)]==_0x5e367f(0x185)&&(_0x390ea1[0x0]=await this[_0x5e367f(0x175)](_0x390ea1[0x0])),_0x390ea1[0x0]||null;},typeorm_2[a13_0x530388(0x17a)][a13_0x530388(0x13e)][a13_0x530388(0x168)]=async function(){const _0x2f658d=a13_0x530388;if(this[_0x2f658d(0x186)][_0x2f658d(0x18f)]===_0x2f658d(0x14e))throw new typeorm_2[(_0x2f658d(0x188))]();const {entities:_0x5c8ec7,raw:_0x4235df}=await this[_0x2f658d(0x157)]();return await Promise[_0x2f658d(0x181)](_0x5c8ec7['map'](async(_0x5e2eeb,_0x5a33e4)=>{const _0x45dca4=_0x2f658d;var _0x158859;const _0x222e54=(0x0,core_1['getClassMetadata'])(exports[_0x45dca4(0x153)],_0x5e2eeb)||{};for(const _0x3ba570 in _0x222e54){_0x4235df[_0x5a33e4]&&_0x4235df[_0x5a33e4][_0x45dca4(0x18a)](_0x3ba570)&&(_0x5e2eeb[_0x3ba570]=_0x4235df[_0x5a33e4][_0x3ba570]||((_0x158859=_0x222e54[_0x3ba570])===null||_0x158859===void 0x0?void 0x0:_0x158859[_0x45dca4(0x15a)])||'');}return _0x5e2eeb&&typeof this[_0x45dca4(0x175)]==_0x45dca4(0x185)&&(_0x5e2eeb=await this[_0x45dca4(0x175)](_0x5e2eeb)),_0x5e2eeb;}));},typeorm_2['SelectQueryBuilder'][a13_0x530388(0x13e)][a13_0x530388(0x136)]=async function(){const _0x2b9548=a13_0x530388;return[await this['getMany'](),await this[_0x2b9548(0x155)]()];},typeorm_2[a13_0x530388(0x17a)][a13_0x530388(0x13e)][a13_0x530388(0x143)]=function(_0x1e3890,_0xd0239d){const _0x3b221a=a13_0x530388;_0x1e3890[_0x3b221a(0x16c)](this['alias']+'.')&&(_0x1e3890=_0x1e3890[_0x3b221a(0x173)]((this[_0x3b221a(0x13b)]+'.')[_0x3b221a(0x12f)]));const _0x5f4a33=typeof _0xd0239d==_0x3b221a(0x177)?{'alias':_0xd0239d}:_0xd0239d,_0x1c19db=this[_0x3b221a(0x186)][_0x3b221a(0x152)]['metadata'],_0xf61ca1=(0x0,typeorm_1['getMetadataArgsStorage'])(),_0x3a207f=_0xf61ca1['relations'][_0x3b221a(0x167)](_0x5d3496=>_0x5d3496['target']==_0x1c19db[_0x3b221a(0x187)]&&_0x5d3496[_0x3b221a(0x150)]==_0x1e3890);if((_0x1c19db===null||_0x1c19db===void 0x0?void 0x0:_0x1c19db[_0x3b221a(0x187)])&&(_0x3a207f===null||_0x3a207f===void 0x0?void 0x0:_0x3a207f[_0x3b221a(0x150)])){!this[_0x3b221a(0x172)]&&(this[_0x3b221a(0x172)]=[]);if(_0x3a207f[_0x3b221a(0x160)]==_0x3b221a(0x18c)||_0x3a207f[_0x3b221a(0x160)]==_0x3b221a(0x166)){const _0x13fb57=_0xf61ca1[_0x3b221a(0x15d)][_0x3b221a(0x167)](_0xcd8ac0=>_0xcd8ac0[_0x3b221a(0x187)]==_0x1c19db[_0x3b221a(0x187)]&&_0xcd8ac0[_0x3b221a(0x150)]==_0x1e3890);_0x3a207f[_0x3b221a(0x150)]==(_0x13fb57===null||_0x13fb57===void 0x0?void 0x0:_0x13fb57[_0x3b221a(0x150)])&&(!this['_appends'][_0x3b221a(0x167)](_0x56f881=>_0x56f881['alias']==((_0x5f4a33===null||_0x5f4a33===void 0x0?void 0x0:_0x5f4a33['alias'])||_0x1e3890))&&this['_appends'][_0x3b221a(0x137)]({'alias':(_0x5f4a33===null||_0x5f4a33===void 0x0?void 0x0:_0x5f4a33[_0x3b221a(0x13b)])||_0x1e3890,'relation':_0x3a207f,'joinColumn':_0x13fb57,'findOption':(_0x5f4a33===null||_0x5f4a33===void 0x0?void 0x0:_0x5f4a33['findOption'])||undefined}));}else{if(_0x3a207f[_0x3b221a(0x160)]==_0x3b221a(0x156))try{const _0x13365f=_0xf61ca1[_0x3b221a(0x17d)]['find'](_0x58de08=>_0x58de08[_0x3b221a(0x187)]==_0x3a207f[_0x3b221a(0x133)](_0x3a207f[_0x3b221a(0x150)])&&_0x58de08[_0x3b221a(0x133)](_0x58de08['relationType'])==_0x1c19db[_0x3b221a(0x187)]),_0x1466a6=_0xf61ca1[_0x3b221a(0x15d)][_0x3b221a(0x167)](_0x45a405=>_0x45a405['target']==_0x13365f[_0x3b221a(0x187)]&&_0x45a405[_0x3b221a(0x150)]==_0x13365f['propertyName']);_0x13365f[_0x3b221a(0x150)]==(_0x1466a6===null||_0x1466a6===void 0x0?void 0x0:_0x1466a6[_0x3b221a(0x150)])&&(!this[_0x3b221a(0x172)][_0x3b221a(0x167)](_0x28d8c4=>_0x28d8c4[_0x3b221a(0x13b)]==((_0x5f4a33===null||_0x5f4a33===void 0x0?void 0x0:_0x5f4a33[_0x3b221a(0x13b)])||_0x1e3890))&&this[_0x3b221a(0x172)][_0x3b221a(0x137)]({'alias':(_0x5f4a33===null||_0x5f4a33===void 0x0?void 0x0:_0x5f4a33[_0x3b221a(0x13b)])||_0x1e3890,'relation':_0x3a207f,'joinColumn':_0x1466a6,'findOption':(_0x5f4a33===null||_0x5f4a33===void 0x0?void 0x0:_0x5f4a33['findOption'])||undefined}));}catch(_0x57bba4){}}}return this;},typeorm_2['SelectQueryBuilder'][a13_0x530388(0x13e)][a13_0x530388(0x175)]=async function(_0x374a32){const _0x12f593=a13_0x530388;var _0x3072f1,_0x1a4ac8,_0x4663ef,_0x45bf51;for(const _0x5786c7 of this['_appends']||[]){if(!((_0x3072f1=_0x5786c7===null||_0x5786c7===void 0x0?void 0x0:_0x5786c7['relation'])===null||_0x3072f1===void 0x0?void 0x0:_0x3072f1[_0x12f593(0x160)]))continue;if(!((_0x1a4ac8=_0x5786c7===null||_0x5786c7===void 0x0?void 0x0:_0x5786c7[_0x12f593(0x130)])===null||_0x1a4ac8===void 0x0?void 0x0:_0x1a4ac8['name'])||!((_0x4663ef=_0x5786c7===null||_0x5786c7===void 0x0?void 0x0:_0x5786c7[_0x12f593(0x130)])===null||_0x4663ef===void 0x0?void 0x0:_0x4663ef[_0x12f593(0x17f)]))continue;if(!_0x374a32[_0x5786c7[_0x12f593(0x130)]['referencedColumnName']])continue;if(typeof((_0x45bf51=_0x5786c7===null||_0x5786c7===void 0x0?void 0x0:_0x5786c7['relation'])===null||_0x45bf51===void 0x0?void 0x0:_0x45bf51['type'])!=_0x12f593(0x185))continue;if(_0x5786c7['relation'][_0x12f593(0x160)]==_0x12f593(0x18c)||_0x5786c7[_0x12f593(0x135)][_0x12f593(0x160)]==_0x12f593(0x166)){const _0x23bb23=this[_0x12f593(0x180)]['createQueryBuilder'](_0x5786c7['relation'][_0x12f593(0x133)](_0x5786c7[_0x12f593(0x135)][_0x12f593(0x160)]),_0x5786c7[_0x12f593(0x135)][_0x12f593(0x150)])[_0x12f593(0x183)]();(_0x5786c7===null||_0x5786c7===void 0x0?void 0x0:_0x5786c7[_0x12f593(0x17b)])&&_0x23bb23[_0x12f593(0x149)]({..._0x5786c7[_0x12f593(0x17b)],'skip':0x0,'take':0x1}),_0x374a32[_0x5786c7[_0x12f593(0x13b)]]=await _0x23bb23['andWhere'](_0x23bb23[_0x12f593(0x13b)]+'.'+_0x5786c7[_0x12f593(0x130)][_0x12f593(0x17f)]+_0x12f593(0x12e)+_0x5786c7[_0x12f593(0x130)][_0x12f593(0x17f)],{[_0x5786c7[_0x12f593(0x130)][_0x12f593(0x17f)]]:_0x374a32[_0x5786c7[_0x12f593(0x130)][_0x12f593(0x14f)]]})['getOne']();}else{if(_0x5786c7['relation'][_0x12f593(0x160)]==_0x12f593(0x156)||_0x5786c7['relation'][_0x12f593(0x160)]==_0x12f593(0x145)){const _0x52c18d=this[_0x12f593(0x180)]['createQueryBuilder'](_0x5786c7[_0x12f593(0x135)]['type'](_0x5786c7[_0x12f593(0x135)][_0x12f593(0x160)]),_0x5786c7['relation'][_0x12f593(0x150)])['withDeleted']();(_0x5786c7===null||_0x5786c7===void 0x0?void 0x0:_0x5786c7['findOption'])&&_0x52c18d[_0x12f593(0x149)]({'skip':0x0,'take':0xa,..._0x5786c7[_0x12f593(0x17b)]}),_0x374a32[_0x5786c7[_0x12f593(0x13b)]]=await _0x52c18d[_0x12f593(0x13a)](_0x52c18d[_0x12f593(0x13b)]+'.'+_0x5786c7[_0x12f593(0x130)][_0x12f593(0x14f)]+_0x12f593(0x12e)+_0x5786c7['joinColumn']['name'],{[_0x5786c7[_0x12f593(0x130)][_0x12f593(0x14f)]]:_0x374a32[_0x5786c7['joinColumn'][_0x12f593(0x17f)]]})[_0x12f593(0x168)]();}}}return _0x374a32;};
|
|
1
|
+
const a13_0x2b7e6e=a13_0x31f4;(function(_0x171393,_0x1e5b10){const _0x1a5019=a13_0x31f4,_0x4d8767=_0x171393();while(!![]){try{const _0x3ce08d=-parseInt(_0x1a5019(0xb8))/0x1*(-parseInt(_0x1a5019(0xb1))/0x2)+-parseInt(_0x1a5019(0xcd))/0x3*(parseInt(_0x1a5019(0xbc))/0x4)+-parseInt(_0x1a5019(0x8f))/0x5+parseInt(_0x1a5019(0xd6))/0x6*(-parseInt(_0x1a5019(0xca))/0x7)+parseInt(_0x1a5019(0x8a))/0x8+parseInt(_0x1a5019(0xce))/0x9*(-parseInt(_0x1a5019(0xcf))/0xa)+parseInt(_0x1a5019(0xc2))/0xb;if(_0x3ce08d===_0x1e5b10)break;else _0x4d8767['push'](_0x4d8767['shift']());}catch(_0x2b05b4){_0x4d8767['push'](_0x4d8767['shift']());}}}(a13_0x5afa,0x2890a));const a13_0x2533ca=(function(){let _0x149c7e=!![];return function(_0x1785c1,_0x1123a5){const _0xbbd92e=_0x149c7e?function(){const _0x16c345=a13_0x31f4;if(_0x1123a5){const _0x44f16f=_0x1123a5[_0x16c345(0x91)](_0x1785c1,arguments);return _0x1123a5=null,_0x44f16f;}}:function(){};return _0x149c7e=![],_0xbbd92e;};}()),a13_0x2f1f86=a13_0x2533ca(this,function(){const _0x3d0634=a13_0x31f4;return a13_0x2f1f86[_0x3d0634(0x8c)]()[_0x3d0634(0xad)]('(((.+)+)+)+$')[_0x3d0634(0x8c)]()[_0x3d0634(0x9f)](a13_0x2f1f86)[_0x3d0634(0xad)](_0x3d0634(0x71));});a13_0x2f1f86();'use strict';Object['defineProperty'](exports,a13_0x2b7e6e(0x81),{'value':!![]}),exports[a13_0x2b7e6e(0x73)]=exports['ENTITY_VIRTUAL_COLUMN_KEY']=exports['MODEL_SEARCH_SCOPE_KEY']=exports[a13_0x2b7e6e(0xb9)]=exports[a13_0x2b7e6e(0x82)]=exports[a13_0x2b7e6e(0xc1)]=exports[a13_0x2b7e6e(0x79)]=exports[a13_0x2b7e6e(0xcb)]=exports[a13_0x2b7e6e(0x85)]=exports[a13_0x2b7e6e(0x72)]=void 0x0;const core_1=require(a13_0x2b7e6e(0x99)),typeorm_1=require(a13_0x2b7e6e(0xd2)),typeorm_2=require('typeorm'),typeorm_3=require(a13_0x2b7e6e(0xd2)),sleep_1=require(a13_0x2b7e6e(0xbb));exports['ENTIFY_KEY']=a13_0x2b7e6e(0xba),exports[a13_0x2b7e6e(0x85)]='decorator:anncic-api:typeorm:entify:module',exports[a13_0x2b7e6e(0xcb)]=a13_0x2b7e6e(0x7a),exports['REPOSITORY_KEY']=a13_0x2b7e6e(0x94),exports[a13_0x2b7e6e(0xc1)]=a13_0x2b7e6e(0xbe),exports[a13_0x2b7e6e(0x82)]='decorator:anncic-api:typeorm:model',exports['MODEL_SEARCH_KEY']='decorator:anncic-api:typeorm:model:search',exports['MODEL_SEARCH_SCOPE_KEY']='decorator:anncic-api:typeorm:model:search:scope',exports[a13_0x2b7e6e(0xc8)]='decorator:anncic-api:typeorm:entity:virtual:column';function a13_0x5afa(){const _0x4a1faf=['\x20=\x20:','target','_appends','REPOSITORY_KEY','decorator:anncic-api:typeorm:entify:module:source','length','updateDateColumn','getRawAndEntities','size','propertyName','hasOwnProperty','__esModule','MODEL_KEY','find','function','ENTIFY_MODULE','joinColumn','createQueryBuilder','_joinAppendsResolve','getMany','2550904JfYDAB','prototype','toString','mainAlias','findOneOrFail','585795OVudGQ','lockVersion','apply','expressionMap','getManyAndCount','decorator:anncic-api:typeorm:repository','SelectQueryBuilder','findOne','getClassMetadata','andWhere','@midwayjs/core','alias','joinAppends','string','relation','optimistic','constructor','chunk','boolean','EntityNotFoundError','joinColumns','findOneByOrFail','name','relations','OptimisticLockCanNotBeUsedError','getOne','withDeleted','connection','type','abs','search','getEntityValue','sleep','many-to-many','27766evsbkT','findOption','versionColumn','relationType','getCount','lockMode','getTime','13FibVwb','MODEL_SEARCH_KEY','decorator:anncic-api:typeorm:entify','./helper/sleep','4ppZIqT','getMetadataArgsStorage','decorator:anncic-api:typeorm:repository:observe','OptimisticLockVersionMismatchError','startsWith','REPOSITORY_OBSERVE_KEY','2617681RVFYrn','resolve','EntityManager','reject','substring','setFindOptions','ENTITY_VIRTUAL_COLUMN_KEY','all','14yFdMZO','ENTIFY_MODULE_SOURCE','then','525018solVju','1431702lfeodz','10yAppRh','many-to-one','one-to-many','typeorm','push','referencedColumnName','number','359748EPHily','default','(((.+)+)+)+$','ENTIFY_KEY','SearchPaginate','metadata','delay'];a13_0x5afa=function(){return _0x4a1faf;};return a13_0x5afa();}function a13_0x31f4(_0x32c728,_0x232bac){const _0x15ff8c=a13_0x5afa();return a13_0x31f4=function(_0x2f1f86,_0x2533ca){_0x2f1f86=_0x2f1f86-0x71;let _0x5afa59=_0x15ff8c[_0x2f1f86];return _0x5afa59;},a13_0x31f4(_0x32c728,_0x232bac);}class SearchPaginate{}exports['SearchPaginate']=SearchPaginate,typeorm_2[a13_0x2b7e6e(0x95)][a13_0x2b7e6e(0x8b)][a13_0x2b7e6e(0xa0)]=async function(_0x5824eb,_0x58e503=0x64){const _0x3db492=a13_0x2b7e6e;let _0x4d6f3e=0x1,_0x595040=!![],_0x4f4ca3=0x64,_0x239a95=![];if(typeof _0x58e503==_0x3db492(0xd5)||typeof _0x58e503==_0x3db492(0x9c))_0x4f4ca3=parseInt(''+_0x58e503);else _0x58e503&&((_0x58e503===null||_0x58e503===void 0x0?void 0x0:_0x58e503[_0x3db492(0x7e)])&&(_0x4f4ca3=parseInt(''+_0x58e503[_0x3db492(0x7e)])),(_0x58e503===null||_0x58e503===void 0x0?void 0x0:_0x58e503[_0x3db492(0x75)])&&(_0x239a95=typeof _0x58e503[_0x3db492(0x75)]==_0x3db492(0xa1)?0x1f4:parseInt(''+_0x58e503[_0x3db492(0x75)])));while(_0x595040){const _0x5b5042=await this['clone']()['take'](Math[_0x3db492(0xac)](_0x4f4ca3))['skip']((Math['abs'](_0x4d6f3e)-0x1)*Math[_0x3db492(0xac)](_0x4f4ca3))[_0x3db492(0x89)]();(_0x5b5042===null||_0x5b5042===void 0x0?void 0x0:_0x5b5042[_0x3db492(0x7b)])>0x0?(await _0x5824eb(_0x5b5042,_0x4d6f3e),_0x5b5042[_0x3db492(0x7b)]=0x0,_0x4d6f3e++,_0x239a95&&typeof _0x239a95=='number'&&await(0x0,sleep_1[_0x3db492(0xaf)])(_0x239a95)):_0x595040=![];}},typeorm_3['EntityManager'][a13_0x2b7e6e(0x8b)][a13_0x2b7e6e(0x8e)]=async function(_0x124a7a,_0x5d8773){const _0x1c671c=a13_0x2b7e6e;return this[_0x1c671c(0x96)](_0x124a7a,_0x5d8773)['then'](_0x598479=>{const _0x50d83d=_0x1c671c;if(_0x598479===null||_0x598479===undefined)return Promise[_0x50d83d(0xc5)](new typeorm_3['EntityNotFoundError'](_0x124a7a,_0x5d8773));return Promise[_0x50d83d(0xc3)](_0x598479);});},typeorm_3[a13_0x2b7e6e(0xc4)]['prototype'][a13_0x2b7e6e(0xa4)]=async function(_0x451f46,_0x580fc8){const _0x5c6dcb=a13_0x2b7e6e;return this['findOneBy'](_0x451f46,_0x580fc8)[_0x5c6dcb(0xcc)](_0x129aa1=>{const _0x2fdd03=_0x5c6dcb;if(_0x129aa1===null||_0x129aa1===undefined)return Promise[_0x2fdd03(0xc5)](new typeorm_3[(_0x2fdd03(0xa2))](_0x451f46,_0x580fc8));return Promise[_0x2fdd03(0xc3)](_0x129aa1);});},typeorm_2[a13_0x2b7e6e(0x95)][a13_0x2b7e6e(0x8b)]['getOne']=async function(){const _0x3af51d=a13_0x2b7e6e;var _0x1fa62c;const {entities:_0x21186f,raw:_0x14705f}=await this[_0x3af51d(0x7d)]();if(_0x21186f[0x0]&&this['expressionMap']['lockMode']===_0x3af51d(0x9e)&&this[_0x3af51d(0x92)][_0x3af51d(0x90)]){const _0x1dfa75=this['expressionMap'][_0x3af51d(0x8d)][_0x3af51d(0x74)];if(this[_0x3af51d(0x92)][_0x3af51d(0x90)]instanceof Date){const _0x437875=_0x1dfa75[_0x3af51d(0x7c)]['getEntityValue'](_0x21186f[0x0]);if(_0x437875[_0x3af51d(0xb7)]()!==this[_0x3af51d(0x92)][_0x3af51d(0x90)][_0x3af51d(0xb7)]())throw new typeorm_2[(_0x3af51d(0xbf))](_0x1dfa75['name'],this['expressionMap'][_0x3af51d(0x90)],_0x437875);}else{const _0x21a1ae=_0x1dfa75[_0x3af51d(0xb3)][_0x3af51d(0xae)](_0x21186f[0x0]);if(_0x21a1ae!==this[_0x3af51d(0x92)][_0x3af51d(0x90)])throw new typeorm_2[(_0x3af51d(0xbf))](_0x1dfa75[_0x3af51d(0xa5)],this[_0x3af51d(0x92)][_0x3af51d(0x90)],_0x21a1ae);}}if(_0x21186f[0x0]&&_0x14705f[0x0]){const _0x5134ef=(0x0,core_1[_0x3af51d(0x97)])(exports[_0x3af51d(0xc8)],_0x21186f[0x0]);for(const _0x3b2bd9 in _0x5134ef){_0x14705f[0x0][_0x3af51d(0x80)](_0x3b2bd9)&&(_0x21186f[0x0][_0x3b2bd9]=_0x14705f[0x0][_0x3b2bd9]||((_0x1fa62c=_0x5134ef[_0x3b2bd9])===null||_0x1fa62c===void 0x0?void 0x0:_0x1fa62c[_0x3af51d(0xd7)])||'');}}return _0x21186f[0x0]&&typeof this[_0x3af51d(0x88)]==_0x3af51d(0x84)&&(_0x21186f[0x0]=await this[_0x3af51d(0x88)](_0x21186f[0x0])),_0x21186f[0x0]||null;},typeorm_2['SelectQueryBuilder'][a13_0x2b7e6e(0x8b)][a13_0x2b7e6e(0x89)]=async function(){const _0x4b3f88=a13_0x2b7e6e;if(this['expressionMap'][_0x4b3f88(0xb6)]===_0x4b3f88(0x9e))throw new typeorm_2[(_0x4b3f88(0xa7))]();const {entities:_0x27e0e4,raw:_0x844494}=await this[_0x4b3f88(0x7d)]();return await Promise[_0x4b3f88(0xc9)](_0x27e0e4['map'](async(_0x392b5b,_0x51499e)=>{const _0x2bcd89=_0x4b3f88;var _0x1c71b1;const _0x46da59=(0x0,core_1[_0x2bcd89(0x97)])(exports[_0x2bcd89(0xc8)],_0x392b5b)||{};for(const _0x4203eb in _0x46da59){_0x844494[_0x51499e]&&_0x844494[_0x51499e][_0x2bcd89(0x80)](_0x4203eb)&&(_0x392b5b[_0x4203eb]=_0x844494[_0x51499e][_0x4203eb]||((_0x1c71b1=_0x46da59[_0x4203eb])===null||_0x1c71b1===void 0x0?void 0x0:_0x1c71b1['default'])||'');}return _0x392b5b&&typeof this[_0x2bcd89(0x88)]==_0x2bcd89(0x84)&&(_0x392b5b=await this[_0x2bcd89(0x88)](_0x392b5b)),_0x392b5b;}));},typeorm_2[a13_0x2b7e6e(0x95)][a13_0x2b7e6e(0x8b)][a13_0x2b7e6e(0x93)]=async function(){const _0x7450b3=a13_0x2b7e6e;return[await this[_0x7450b3(0x89)](),await this[_0x7450b3(0xb5)]()];},typeorm_2[a13_0x2b7e6e(0x95)][a13_0x2b7e6e(0x8b)][a13_0x2b7e6e(0x9b)]=function(_0x4db23e,_0x18200a){const _0x39ce30=a13_0x2b7e6e;_0x4db23e[_0x39ce30(0xc0)](this['alias']+'.')&&(_0x4db23e=_0x4db23e[_0x39ce30(0xc6)]((this[_0x39ce30(0x9a)]+'.')[_0x39ce30(0x7b)]));const _0x4b2c0f=typeof _0x18200a=='string'?{'alias':_0x18200a}:_0x18200a,_0x48d309=this[_0x39ce30(0x92)][_0x39ce30(0x8d)][_0x39ce30(0x74)],_0x341d04=(0x0,typeorm_1[_0x39ce30(0xbd)])(),_0x27d7c5=_0x341d04[_0x39ce30(0xa6)]['find'](_0x32fb1f=>_0x32fb1f['target']==_0x48d309['target']&&_0x32fb1f['propertyName']==_0x4db23e);if((_0x48d309===null||_0x48d309===void 0x0?void 0x0:_0x48d309[_0x39ce30(0x77)])&&(_0x27d7c5===null||_0x27d7c5===void 0x0?void 0x0:_0x27d7c5[_0x39ce30(0x7f)])){!this[_0x39ce30(0x78)]&&(this[_0x39ce30(0x78)]=[]);if(_0x27d7c5[_0x39ce30(0xb4)]==_0x39ce30(0xd0)||_0x27d7c5[_0x39ce30(0xb4)]=='one-to-one'){const _0x57cfc4=_0x341d04[_0x39ce30(0xa3)][_0x39ce30(0x83)](_0xaa1e9c=>_0xaa1e9c[_0x39ce30(0x77)]==_0x48d309[_0x39ce30(0x77)]&&_0xaa1e9c['propertyName']==_0x4db23e);_0x27d7c5[_0x39ce30(0x7f)]==(_0x57cfc4===null||_0x57cfc4===void 0x0?void 0x0:_0x57cfc4['propertyName'])&&(!this['_appends'][_0x39ce30(0x83)](_0x1cd25a=>_0x1cd25a[_0x39ce30(0x9a)]==((_0x4b2c0f===null||_0x4b2c0f===void 0x0?void 0x0:_0x4b2c0f[_0x39ce30(0x9a)])||_0x4db23e))&&this[_0x39ce30(0x78)][_0x39ce30(0xd3)]({'alias':(_0x4b2c0f===null||_0x4b2c0f===void 0x0?void 0x0:_0x4b2c0f[_0x39ce30(0x9a)])||_0x4db23e,'relation':_0x27d7c5,'joinColumn':_0x57cfc4,'findOption':(_0x4b2c0f===null||_0x4b2c0f===void 0x0?void 0x0:_0x4b2c0f[_0x39ce30(0xb2)])||undefined}));}else{if(_0x27d7c5[_0x39ce30(0xb4)]==_0x39ce30(0xd1))try{const _0x1a7d8c=_0x341d04[_0x39ce30(0xa6)][_0x39ce30(0x83)](_0x677b9c=>_0x677b9c[_0x39ce30(0x77)]==_0x27d7c5['type'](_0x27d7c5[_0x39ce30(0x7f)])&&_0x677b9c[_0x39ce30(0xab)](_0x677b9c[_0x39ce30(0xb4)])==_0x48d309['target']),_0x413e17=_0x341d04[_0x39ce30(0xa3)]['find'](_0x519e81=>_0x519e81[_0x39ce30(0x77)]==_0x1a7d8c['target']&&_0x519e81[_0x39ce30(0x7f)]==_0x1a7d8c[_0x39ce30(0x7f)]);_0x1a7d8c[_0x39ce30(0x7f)]==(_0x413e17===null||_0x413e17===void 0x0?void 0x0:_0x413e17[_0x39ce30(0x7f)])&&(!this[_0x39ce30(0x78)][_0x39ce30(0x83)](_0xfb1d5b=>_0xfb1d5b[_0x39ce30(0x9a)]==((_0x4b2c0f===null||_0x4b2c0f===void 0x0?void 0x0:_0x4b2c0f['alias'])||_0x4db23e))&&this[_0x39ce30(0x78)]['push']({'alias':(_0x4b2c0f===null||_0x4b2c0f===void 0x0?void 0x0:_0x4b2c0f['alias'])||_0x4db23e,'relation':_0x27d7c5,'joinColumn':_0x413e17,'findOption':(_0x4b2c0f===null||_0x4b2c0f===void 0x0?void 0x0:_0x4b2c0f[_0x39ce30(0xb2)])||undefined}));}catch(_0x578365){}}}return this;},typeorm_2[a13_0x2b7e6e(0x95)][a13_0x2b7e6e(0x8b)]['_joinAppendsResolve']=async function(_0x439ffb){const _0x44d46f=a13_0x2b7e6e;var _0xf4c424,_0x1d76c1,_0x23f3f6,_0x359d69;for(const _0x5ca415 of this[_0x44d46f(0x78)]||[]){if(!((_0xf4c424=_0x5ca415===null||_0x5ca415===void 0x0?void 0x0:_0x5ca415[_0x44d46f(0x9d)])===null||_0xf4c424===void 0x0?void 0x0:_0xf4c424['relationType']))continue;if(!((_0x1d76c1=_0x5ca415===null||_0x5ca415===void 0x0?void 0x0:_0x5ca415[_0x44d46f(0x86)])===null||_0x1d76c1===void 0x0?void 0x0:_0x1d76c1[_0x44d46f(0xa5)])||!((_0x23f3f6=_0x5ca415===null||_0x5ca415===void 0x0?void 0x0:_0x5ca415[_0x44d46f(0x86)])===null||_0x23f3f6===void 0x0?void 0x0:_0x23f3f6[_0x44d46f(0xd4)]))continue;if(!_0x439ffb[_0x5ca415[_0x44d46f(0x86)]['referencedColumnName']])continue;if(typeof((_0x359d69=_0x5ca415===null||_0x5ca415===void 0x0?void 0x0:_0x5ca415['relation'])===null||_0x359d69===void 0x0?void 0x0:_0x359d69[_0x44d46f(0xab)])!=_0x44d46f(0x84))continue;if(_0x5ca415[_0x44d46f(0x9d)]['relationType']==_0x44d46f(0xd0)||_0x5ca415[_0x44d46f(0x9d)][_0x44d46f(0xb4)]=='one-to-one'){const _0x2a6dcb=this[_0x44d46f(0xaa)]['createQueryBuilder'](_0x5ca415[_0x44d46f(0x9d)]['type'](_0x5ca415[_0x44d46f(0x9d)][_0x44d46f(0xb4)]),_0x5ca415[_0x44d46f(0x9d)][_0x44d46f(0x7f)])['withDeleted']();(_0x5ca415===null||_0x5ca415===void 0x0?void 0x0:_0x5ca415[_0x44d46f(0xb2)])&&_0x2a6dcb[_0x44d46f(0xc7)]({..._0x5ca415[_0x44d46f(0xb2)],'skip':0x0,'take':0x1}),_0x439ffb[_0x5ca415[_0x44d46f(0x9a)]]=await _0x2a6dcb[_0x44d46f(0x98)](_0x2a6dcb[_0x44d46f(0x9a)]+'.'+_0x5ca415[_0x44d46f(0x86)][_0x44d46f(0xd4)]+_0x44d46f(0x76)+_0x5ca415[_0x44d46f(0x86)][_0x44d46f(0xd4)],{[_0x5ca415['joinColumn'][_0x44d46f(0xd4)]]:_0x439ffb[_0x5ca415[_0x44d46f(0x86)]['name']]})[_0x44d46f(0xa8)]();}else{if(_0x5ca415[_0x44d46f(0x9d)][_0x44d46f(0xb4)]=='one-to-many'||_0x5ca415[_0x44d46f(0x9d)][_0x44d46f(0xb4)]==_0x44d46f(0xb0)){const _0x2c5a04=this[_0x44d46f(0xaa)][_0x44d46f(0x87)](_0x5ca415[_0x44d46f(0x9d)]['type'](_0x5ca415['relation']['relationType']),_0x5ca415[_0x44d46f(0x9d)][_0x44d46f(0x7f)])[_0x44d46f(0xa9)]();(_0x5ca415===null||_0x5ca415===void 0x0?void 0x0:_0x5ca415[_0x44d46f(0xb2)])&&_0x2c5a04[_0x44d46f(0xc7)]({'skip':0x0,'take':0xa,..._0x5ca415[_0x44d46f(0xb2)]}),_0x439ffb[_0x5ca415[_0x44d46f(0x9a)]]=await _0x2c5a04[_0x44d46f(0x98)](_0x2c5a04[_0x44d46f(0x9a)]+'.'+_0x5ca415[_0x44d46f(0x86)][_0x44d46f(0xa5)]+'\x20=\x20:'+_0x5ca415[_0x44d46f(0x86)][_0x44d46f(0xa5)],{[_0x5ca415['joinColumn']['name']]:_0x439ffb[_0x5ca415[_0x44d46f(0x86)]['referencedColumnName']]})[_0x44d46f(0x89)]();}}}return _0x439ffb;};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/typeorm",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.33",
|
|
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": "
|
|
25
|
+
"gitHead": "6e3dc4cc04c16c5f54d726b20f373b159310d1dc"
|
|
26
26
|
}
|