@anncic-api/typeorm 3.4.32 → 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
|
-
const
|
|
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
|
-
const a8_0x3d52e6=a8_0x2348;function a8_0x5f02(){const _0x371654=['length','isPrimary','andWhere','\x20=\x20:_auto_','4731632SVAyuv','modelSearchs','indexOf','findColumnWithPropertyName','DESC','../interface','266982grkgHt','methodName','NOT\x20BETWEEN','create','_auto_','orderBy','type','model','toString','getDirty','(((.+)+)+)+$','_isreverse','searchScopes','split','trim','NOT\x20IN','\x20like\x20:_auto_','target','bind','scope','getClassMetadata','(:...','NOT\x20FIND\x20IN\x20SET','hasOwnProperty','Repository','createQueryBuilder','container','_page','NOT\x20ISNULL','\x20IN(:..._auto_','_size','MODEL_SEARCH_KEY','field','search','6870285fFXvUB','undefined','function','apply','string','_order','includes','searchs','metadata','LIKE','BETWEEN','isArray','182819obMLsb','ceil','random','toLowerCase','operator','manager','1388604rcjbMd','constructor','MODEL_KEY','594GSIfQK','getApplicationContext','queryRunner','@midwayjs/core','__esModule','assign','20195BHWpkP','1\x20=\x202','3FuGYVt','abs','push','MODEL_SEARCH_SCOPE_KEY','ISNULL','ASC','\x20AND\x20:','take','toUpperCase','merge','alias','save','3127838EzWBxQ','app','NOT\x20LIKE','__initialize','transaction','isDirty'];a8_0x5f02=function(){return _0x371654;};return a8_0x5f02();}(function(_0x4702ff,_0x30c8fb){const _0x428078=a8_0x2348,_0x3e68eb=_0x4702ff();while(!![]){try{const _0x8e763d=-parseInt(_0x428078(0x10b))/0x1+-parseInt(_0x428078(0x138))/0x2*(-parseInt(_0x428078(0x11c))/0x3)+parseInt(_0x428078(0x111))/0x4+-parseInt(_0x428078(0x11a))/0x5*(-parseInt(_0x428078(0x114))/0x6)+-parseInt(_0x428078(0x128))/0x7+-parseInt(_0x428078(0x132))/0x8+parseInt(_0x428078(0xff))/0x9;if(_0x8e763d===_0x30c8fb)break;else _0x3e68eb['push'](_0x3e68eb['shift']());}catch(_0x527abe){_0x3e68eb['push'](_0x3e68eb['shift']());}}}(a8_0x5f02,0x67369));const a8_0x5be37d=(function(){let _0x10600a=!![];return function(_0xc8619c,_0x268770){const _0x5ee9bf=_0x10600a?function(){const _0x3cc977=a8_0x2348;if(_0x268770){const _0x1df7c1=_0x268770[_0x3cc977(0x102)](_0xc8619c,arguments);return _0x268770=null,_0x1df7c1;}}:function(){};return _0x10600a=![],_0x5ee9bf;};}()),a8_0x39afcd=a8_0x5be37d(this,function(){const _0x298aea=a8_0x2348;return a8_0x39afcd[_0x298aea(0x140)]()[_0x298aea(0xfe)](_0x298aea(0x142))[_0x298aea(0x140)]()[_0x298aea(0x112)](a8_0x39afcd)[_0x298aea(0xfe)]('(((.+)+)+)+$');});a8_0x39afcd();'use strict';Object['defineProperty'](exports,a8_0x3d52e6(0x118),{'value':!![]}),exports[a8_0x3d52e6(0x150)]=void 0x0;const core_1=require(a8_0x3d52e6(0x117)),typeorm_1=require('typeorm'),interface_1=require(a8_0x3d52e6(0x137));class Repository extends typeorm_1[a8_0x3d52e6(0x150)]{async[a8_0x3d52e6(0xfe)](_0x47c425,_0x376be3,_0x40dee4={}){const _0x5c65b8=a8_0x3d52e6;var _0x422b3f,_0x2661b2,_0x258527,_0x44d4e9,_0x1d9740,_0x6ee685;const _0x44629c=this[_0x5c65b8(0x151)](undefined,_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x116)]),_0x74f106=[];for(const _0x588426 of this[_0x5c65b8(0x133)]){if(_0x588426===null||_0x588426===void 0x0?void 0x0:_0x588426['model']){const _0x577393=await this[_0x5c65b8(0x129)][_0x5c65b8(0x115)]()['getAsync'](_0x588426[_0x5c65b8(0x13f)]);if(_0x577393){typeof _0x577393[_0x5c65b8(0x12b)]==_0x5c65b8(0x101)&&await _0x577393[_0x5c65b8(0x12b)][_0x5c65b8(0x14a)](_0x577393)(_0x44629c,_0x47c425,{'app':this[_0x5c65b8(0x129)],'container':this[_0x5c65b8(0x152)],'paginate':_0x376be3,'queryRunner':_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x116)]});if(_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x14b)]){const _0x584e9e=Array[_0x5c65b8(0x10a)](_0x40dee4['scope'])?_0x40dee4[_0x5c65b8(0x14b)]:[_0x40dee4[_0x5c65b8(0x14b)]];for(const _0x4f6ba7 of(_0x588426===null||_0x588426===void 0x0?void 0x0:_0x588426[_0x5c65b8(0x144)])||[]){(_0x4f6ba7===null||_0x4f6ba7===void 0x0?void 0x0:_0x4f6ba7[_0x5c65b8(0x14b)])&&_0x584e9e[_0x5c65b8(0x134)](_0x4f6ba7[_0x5c65b8(0x14b)])!=-0x1&&(_0x4f6ba7===null||_0x4f6ba7===void 0x0?void 0x0:_0x4f6ba7[_0x5c65b8(0x139)])&&typeof _0x577393[_0x4f6ba7[_0x5c65b8(0x139)]]=='function'&&await _0x577393[_0x4f6ba7[_0x5c65b8(0x139)]][_0x5c65b8(0x14a)](_0x577393)(_0x44629c,_0x47c425,{'app':this[_0x5c65b8(0x129)],'container':this[_0x5c65b8(0x152)],'paginate':_0x376be3,'queryRunner':_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x116)]});}}if(_0x47c425)for(const _0x35cdc9 of(_0x588426===null||_0x588426===void 0x0?void 0x0:_0x588426[_0x5c65b8(0x106)])||[]){(_0x35cdc9===null||_0x35cdc9===void 0x0?void 0x0:_0x35cdc9[_0x5c65b8(0xfd)])&&(_0x35cdc9===null||_0x35cdc9===void 0x0?void 0x0:_0x35cdc9[_0x5c65b8(0x139)])&&typeof _0x577393[_0x35cdc9['methodName']]==_0x5c65b8(0x101)&&(typeof(_0x47c425===null||_0x47c425===void 0x0?void 0x0:_0x47c425[_0x35cdc9[_0x5c65b8(0xfd)]])!=_0x5c65b8(0x100)&&!((_0x422b3f=_0x47c425===null||_0x47c425===void 0x0?void 0x0:_0x47c425[_0x35cdc9[_0x5c65b8(0xfd)]])===null||_0x422b3f===void 0x0?void 0x0:_0x422b3f[_0x5c65b8(0x14f)]('operator'))&&(_0x74f106[_0x5c65b8(0x134)](_0x35cdc9[_0x5c65b8(0xfd)])==-0x1&&_0x74f106['push'](_0x35cdc9[_0x5c65b8(0xfd)]),await _0x577393[_0x35cdc9[_0x5c65b8(0x139)]]['bind'](_0x577393)(_0x44629c,_0x47c425[_0x35cdc9[_0x5c65b8(0xfd)]],_0x47c425,{'app':this['app'],'container':this[_0x5c65b8(0x152)],'paginate':_0x376be3,'queryRunner':_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4[_0x5c65b8(0x116)]})));}}}}for(const _0x2cf362 in _0x47c425){if(typeof _0x47c425[_0x2cf362]==_0x5c65b8(0x100))continue;if(_0x74f106[_0x5c65b8(0x134)](_0x2cf362)!=-0x1)continue;const _0x2726df=this[_0x5c65b8(0x107)]['findColumnWithPropertyName'](_0x2cf362);if(!_0x2726df)continue;if((_0x2661b2=_0x47c425===null||_0x47c425===void 0x0?void 0x0:_0x47c425[_0x2cf362])===null||_0x2661b2===void 0x0?void 0x0:_0x2661b2['hasOwnProperty'](_0x5c65b8(0x10f))){const _0x519a10=(_0x258527=_0x47c425[_0x2cf362])===null||_0x258527===void 0x0?void 0x0:_0x258527['condition'],_0x14f209=(_0x44d4e9=_0x47c425[_0x2cf362])===null||_0x44d4e9===void 0x0?void 0x0:_0x44d4e9[_0x5c65b8(0x10f)][_0x5c65b8(0x146)]()[_0x5c65b8(0x124)](),_0x4639f6=_0x5c65b8(0x13c)+_0x2cf362+'_'+Math[_0x5c65b8(0x10c)](Math[_0x5c65b8(0x10d)]()*0xa)+Math['ceil'](Math[_0x5c65b8(0x10d)]()*0xa)+Math[_0x5c65b8(0x10c)](Math[_0x5c65b8(0x10d)]()*0xa)+Math['ceil'](Math['random']()*0xa);if(['=','!=','<>','>','>=','<','<=',_0x5c65b8(0x108),_0x5c65b8(0x12a)][_0x5c65b8(0x134)](_0x14f209)!=-0x1)typeof _0x519a10!='undefined'&&_0x44629c[_0x5c65b8(0x130)](_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+'\x20'+_0x14f209+'\x20:'+_0x4639f6,{[_0x4639f6]:_0x519a10});else{if(['IN',_0x5c65b8(0x147)][_0x5c65b8(0x134)](_0x14f209)!=-0x1){if(typeof _0x519a10!=_0x5c65b8(0x100)){const _0x1924a3=Array['isArray'](_0x519a10)?_0x519a10:typeof _0x519a10==_0x5c65b8(0x103)?_0x519a10[_0x5c65b8(0x145)](','):[_0x519a10];_0x1924a3['length']==0x0?_0x44629c[_0x5c65b8(0x130)](_0x5c65b8(0x11b)):_0x44629c[_0x5c65b8(0x130)](_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+'\x20'+_0x14f209+_0x5c65b8(0x14d)+_0x4639f6+')',{[_0x4639f6]:_0x1924a3});}else _0x44629c[_0x5c65b8(0x130)](_0x5c65b8(0x11b));}else{if(['FIND\x20IN\x20SET',_0x5c65b8(0x14e)][_0x5c65b8(0x134)](_0x14f209)!=-0x1)typeof _0x519a10!=_0x5c65b8(0x100)&&_0x44629c[_0x5c65b8(0x130)](_0x14f209+'(:'+_0x4639f6+','+_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+')',{[_0x4639f6]:_0x519a10});else{if([_0x5c65b8(0x109),_0x5c65b8(0x13a)][_0x5c65b8(0x134)](_0x14f209)!=-0x1){if(typeof _0x519a10!=_0x5c65b8(0x100)){const _0x469e26=Array[_0x5c65b8(0x10a)](_0x519a10)?_0x519a10:typeof _0x519a10==_0x5c65b8(0x103)?_0x519a10[_0x5c65b8(0x145)](','):[_0x519a10];_0x469e26[_0x5c65b8(0x12e)]>0x1&&_0x44629c[_0x5c65b8(0x130)](_0x44629c['alias']+'.'+_0x2cf362+'\x20'+_0x14f209+'\x20:'+_0x4639f6+_0x5c65b8(0x122)+_0x4639f6+'_2',{[''+_0x4639f6]:_0x469e26[0x0],[_0x4639f6+'_2']:_0x469e26[0x1]});}}else[_0x5c65b8(0x120),_0x5c65b8(0x154)][_0x5c65b8(0x134)](_0x14f209)!=-0x1&&_0x44629c['andWhere'](_0x14f209+'('+_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+')');}}}}else{const _0x206fb9=((_0x6ee685=typeof _0x2726df[_0x5c65b8(0x13e)]==_0x5c65b8(0x101)?(_0x1d9740=_0x2726df===null||_0x2726df===void 0x0?void 0x0:_0x2726df[_0x5c65b8(0x13e)])===null||_0x1d9740===void 0x0?void 0x0:_0x1d9740['name']:_0x2726df[_0x5c65b8(0x13e)][_0x5c65b8(0x140)]())===null||_0x6ee685===void 0x0?void 0x0:_0x6ee685[_0x5c65b8(0x10e)]())||undefined;if(_0x206fb9){if(Array['isArray'](_0x47c425[_0x2cf362]))_0x47c425[_0x2cf362][_0x5c65b8(0x12e)]==0x0?_0x44629c[_0x5c65b8(0x130)]('1\x20=\x202'):_0x44629c['andWhere'](_0x44629c['alias']+'.'+_0x2cf362+_0x5c65b8(0x155)+_0x2cf362+')',{[_0x5c65b8(0x13c)+_0x2cf362]:_0x47c425[_0x2cf362]});else _0x206fb9==_0x5c65b8(0x103)&&!_0x2726df[_0x5c65b8(0x12f)]?_0x44629c[_0x5c65b8(0x130)](_0x44629c[_0x5c65b8(0x126)]+'.'+_0x2cf362+_0x5c65b8(0x148)+_0x2cf362,{[_0x5c65b8(0x13c)+_0x2cf362]:'%'+_0x47c425[_0x2cf362]+'%'}):_0x44629c['andWhere'](_0x44629c['alias']+'.'+_0x2cf362+_0x5c65b8(0x131)+_0x2cf362,{['_auto_'+_0x2cf362]:_0x47c425[_0x2cf362]});}}}(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x156)])&&_0x44629c[_0x5c65b8(0x123)](Math[_0x5c65b8(0x11d)](_0x376be3[_0x5c65b8(0x156)]));(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x153)])&&(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x156)])&&_0x44629c['skip']((Math['abs'](_0x376be3['_page'])-0x1)*Math['abs'](_0x376be3[_0x5c65b8(0x156)]));if(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3['_order']){if(_0x376be3['_order'][_0x5c65b8(0x134)]('.')!==-0x1)_0x44629c[_0x5c65b8(0x13d)](''+_0x376be3['_order'],(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x143)])?_0x5c65b8(0x121):_0x5c65b8(0x136));else this[_0x5c65b8(0x107)][_0x5c65b8(0x135)](_0x376be3[_0x5c65b8(0x104)])&&_0x44629c[_0x5c65b8(0x13d)](_0x44629c[_0x5c65b8(0x126)]+'.'+_0x376be3[_0x5c65b8(0x104)],(_0x376be3===null||_0x376be3===void 0x0?void 0x0:_0x376be3[_0x5c65b8(0x143)])?_0x5c65b8(0x121):_0x5c65b8(0x136));}return typeof(_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4['excess'])=='function'&&await(_0x40dee4===null||_0x40dee4===void 0x0?void 0x0:_0x40dee4['excess'](_0x44629c)),_0x44629c;}async['mergeSave'](_0x56e54f,..._0x2ebf51){const _0x1f9fe8=a8_0x3d52e6,_0x133de3=this[_0x1f9fe8(0x125)](_0x56e54f,..._0x2ebf51);return await this[_0x1f9fe8(0x127)](_0x133de3);}async['createSave'](_0x1f018c,..._0x5304c6){const _0x2a396a=a8_0x3d52e6,_0x332fb2=this[_0x2a396a(0x125)](this[_0x2a396a(0x13b)](_0x1f018c),..._0x5304c6);return await this[_0x2a396a(0x127)](_0x332fb2);}async[a8_0x3d52e6(0x12c)](_0x403fe4,_0x54b513){const _0x5821fd=a8_0x3d52e6;return typeof _0x403fe4==_0x5821fd(0x101)?this[_0x5821fd(0x110)]['transaction']('SERIALIZABLE',_0x403fe4):this[_0x5821fd(0x110)][_0x5821fd(0x12c)](_0x403fe4,_0x54b513);}[a8_0x3d52e6(0x12d)](_0x16ca65,_0x2e9e09,_0x5c89f0=[]){const _0xe735a9=a8_0x3d52e6,_0x28c7ee=Object[_0xe735a9(0x119)]({},{..._0x16ca65},{..._0x2e9e09});for(const _0xfa84bc in _0x28c7ee){if(_0x5c89f0[_0xe735a9(0x105)](_0xfa84bc))continue;if((_0x28c7ee===null||_0x28c7ee===void 0x0?void 0x0:_0x28c7ee[_0xfa84bc])!=(_0x16ca65===null||_0x16ca65===void 0x0?void 0x0:_0x16ca65[_0xfa84bc]))return!![];if((_0x28c7ee===null||_0x28c7ee===void 0x0?void 0x0:_0x28c7ee[_0xfa84bc])!=(_0x2e9e09===null||_0x2e9e09===void 0x0?void 0x0:_0x2e9e09[_0xfa84bc]))return!![];}return![];}[a8_0x3d52e6(0x141)](_0x53dcce,_0x32c235,_0x577ead=[]){const _0x138c1d=a8_0x3d52e6,_0x46acb4={},_0x5afeb4=Object[_0x138c1d(0x119)]({},{..._0x53dcce},{..._0x32c235});for(const _0xe3b4bf in _0x5afeb4){if(_0x577ead[_0x138c1d(0x105)](_0xe3b4bf))continue;(_0x5afeb4===null||_0x5afeb4===void 0x0?void 0x0:_0x5afeb4[_0xe3b4bf])!=(_0x53dcce===null||_0x53dcce===void 0x0?void 0x0:_0x53dcce[_0xe3b4bf])&&(_0x46acb4[_0xe3b4bf]=_0x5afeb4[_0xe3b4bf]);}return _0x46acb4;}constructor(_0x3823d2,_0x46c08e,_0x21fd18){const _0x3abdfa=a8_0x3d52e6;super(_0x21fd18[_0x3abdfa(0x149)],_0x21fd18[_0x3abdfa(0x110)],_0x21fd18[_0x3abdfa(0x116)]),this[_0x3abdfa(0x133)]=[];for(const _0x4efda2 of(0x0,core_1[_0x3abdfa(0x14c)])(interface_1[_0x3abdfa(0x113)],this['target'])||[]){const _0x51d002={'model':_0x4efda2,'searchs':[],'searchScopes':[]};for(const _0x1e56a1 of(0x0,core_1['getClassMetadata'])(interface_1[_0x3abdfa(0x157)],_0x4efda2)||[]){_0x51d002[_0x3abdfa(0x106)][_0x3abdfa(0x11e)](_0x1e56a1);}for(const _0x4a84be of(0x0,core_1[_0x3abdfa(0x14c)])(interface_1[_0x3abdfa(0x11f)],_0x4efda2)||[]){_0x51d002[_0x3abdfa(0x144)][_0x3abdfa(0x11e)](_0x4a84be);}this[_0x3abdfa(0x133)][_0x3abdfa(0x11e)](_0x51d002);}this[_0x3abdfa(0x129)]=_0x3823d2,this[_0x3abdfa(0x152)]=_0x46c08e;}}function a8_0x2348(_0x3d3961,_0x2de844){const _0x517f60=a8_0x5f02();return a8_0x2348=function(_0x39afcd,_0x5be37d){_0x39afcd=_0x39afcd-0xfd;let _0x5f0237=_0x517f60[_0x39afcd];return _0x5f0237;},a8_0x2348(_0x3d3961,_0x2de844);}exports['Repository']=Repository;
|
|
1
|
+
const a8_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
|
-
var
|
|
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
|
-
const a13_0x4393cd=a13_0x3ce2;(function(_0x28ef5f,_0x37209b){const _0x38a1b8=a13_0x3ce2,_0x3f7fab=_0x28ef5f();while(!![]){try{const _0x3914d8=-parseInt(_0x38a1b8(0x1c8))/0x1*(-parseInt(_0x38a1b8(0x203))/0x2)+parseInt(_0x38a1b8(0x210))/0x3*(-parseInt(_0x38a1b8(0x206))/0x4)+parseInt(_0x38a1b8(0x20b))/0x5+parseInt(_0x38a1b8(0x1b3))/0x6*(-parseInt(_0x38a1b8(0x1da))/0x7)+parseInt(_0x38a1b8(0x1e4))/0x8*(parseInt(_0x38a1b8(0x1f2))/0x9)+-parseInt(_0x38a1b8(0x1c7))/0xa*(parseInt(_0x38a1b8(0x1dc))/0xb)+parseInt(_0x38a1b8(0x1fe))/0xc;if(_0x3914d8===_0x37209b)break;else _0x3f7fab['push'](_0x3f7fab['shift']());}catch(_0x5233e8){_0x3f7fab['push'](_0x3f7fab['shift']());}}}(a13_0x1de0,0x304be));const a13_0x32e9ca=(function(){let _0x381dc9=!![];return function(_0x84da64,_0x4f430e){const _0xf5d683=_0x381dc9?function(){const _0x1f1108=a13_0x3ce2;if(_0x4f430e){const _0x136bef=_0x4f430e[_0x1f1108(0x1d0)](_0x84da64,arguments);return _0x4f430e=null,_0x136bef;}}:function(){};return _0x381dc9=![],_0xf5d683;};}()),a13_0x198ae5=a13_0x32e9ca(this,function(){const _0x587f63=a13_0x3ce2;return a13_0x198ae5[_0x587f63(0x1b5)]()[_0x587f63(0x1c0)](_0x587f63(0x1fa))[_0x587f63(0x1b5)]()[_0x587f63(0x1b7)](a13_0x198ae5)[_0x587f63(0x1c0)](_0x587f63(0x1fa));});a13_0x198ae5();'use strict';function a13_0x3ce2(_0x448a2f,_0x4d1246){const _0x5bbcf3=a13_0x1de0();return a13_0x3ce2=function(_0x198ae5,_0x32e9ca){_0x198ae5=_0x198ae5-0x1ad;let _0x1de055=_0x5bbcf3[_0x198ae5];return _0x1de055;},a13_0x3ce2(_0x448a2f,_0x4d1246);}Object[a13_0x4393cd(0x1e3)](exports,'__esModule',{'value':!![]}),exports[a13_0x4393cd(0x20a)]=exports[a13_0x4393cd(0x1c5)]=exports[a13_0x4393cd(0x1af)]=exports['MODEL_SEARCH_KEY']=exports[a13_0x4393cd(0x1fd)]=exports['REPOSITORY_OBSERVE_KEY']=exports[a13_0x4393cd(0x1d4)]=exports[a13_0x4393cd(0x201)]=exports['ENTIFY_MODULE']=exports[a13_0x4393cd(0x1ff)]=void 0x0;function a13_0x1de0(){const _0x6ee9b2=['defineProperty','56kaXMGW','name','one-to-one','reject','mainAlias','getClassMetadata','joinAppends','REPOSITORY_OBSERVE_KEY','joinColumn','metadata','\x20=\x20:','connection','EntityManager','getCount','140103movtxk','function','map','optimistic','prototype','decorator:anncic-api:typeorm:model:search','hasOwnProperty','string','(((.+)+)+)+$','decorator:anncic-api:typeorm:repository','propertyName','MODEL_KEY','915876xtLyWJ','ENTIFY_KEY','SelectQueryBuilder','ENTIFY_MODULE_SOURCE','length','90UHhrrV','decorator:anncic-api:typeorm:repository:observe','EntityNotFoundError','2636TIASqM','getEntityValue','resolve','many-to-many','SearchPaginate','188010QEtInj','getMany','findOneOrFail','updateDateColumn','_joinAppendsResolve','435jnJUnQ','ENTIFY_MODULE','alias','skip','chunk','relation','MODEL_SEARCH_SCOPE_KEY','delay','decorator:anncic-api:typeorm:entify','relationType','238806BfyvcH','@midwayjs/core','toString','getRawAndEntities','constructor','all','target','find','andWhere','joinColumns','decorator:anncic-api:typeorm:entity:virtual:column','abs','boolean','search','OptimisticLockVersionMismatchError','lockVersion','number','startsWith','ENTITY_VIRTUAL_COLUMN_KEY','decorator:anncic-api:typeorm:model:search:scope','530EIsMbL','4606yttvZH','./helper/sleep','_appends','decorator:anncic-api:typeorm:model','then','expressionMap','findOneBy','type','apply','getOne','lockMode','relations','REPOSITORY_KEY','decorator:anncic-api:typeorm:entify:module','findOne','default','push','setFindOptions','21pLWWMV','getTime','3608uiWdeD','withDeleted','typeorm','one-to-many','take','referencedColumnName','findOption'];a13_0x1de0=function(){return _0x6ee9b2;};return a13_0x1de0();}const core_1=require(a13_0x4393cd(0x1b4)),typeorm_1=require(a13_0x4393cd(0x1de)),typeorm_2=require(a13_0x4393cd(0x1de)),typeorm_3=require(a13_0x4393cd(0x1de)),sleep_1=require(a13_0x4393cd(0x1c9));exports[a13_0x4393cd(0x1ff)]=a13_0x4393cd(0x1b1),exports[a13_0x4393cd(0x211)]=a13_0x4393cd(0x1d5),exports[a13_0x4393cd(0x201)]='decorator:anncic-api:typeorm:entify:module:source',exports[a13_0x4393cd(0x1d4)]=a13_0x4393cd(0x1fb),exports[a13_0x4393cd(0x1eb)]=a13_0x4393cd(0x204),exports[a13_0x4393cd(0x1fd)]=a13_0x4393cd(0x1cb),exports['MODEL_SEARCH_KEY']=a13_0x4393cd(0x1f7),exports['MODEL_SEARCH_SCOPE_KEY']=a13_0x4393cd(0x1c6),exports['ENTITY_VIRTUAL_COLUMN_KEY']=a13_0x4393cd(0x1bd);class SearchPaginate{}exports[a13_0x4393cd(0x20a)]=SearchPaginate,typeorm_2[a13_0x4393cd(0x200)][a13_0x4393cd(0x1f6)][a13_0x4393cd(0x1ad)]=async function(_0x43c3fb,_0x208735=0x64){const _0x28c27d=a13_0x4393cd;let _0x2fd54d=0x1,_0x40c452=!![],_0x5163b6=0x64,_0x6b97d4=![];if(typeof _0x208735==_0x28c27d(0x1c3)||typeof _0x208735=='string')_0x5163b6=parseInt(''+_0x208735);else _0x208735&&((_0x208735===null||_0x208735===void 0x0?void 0x0:_0x208735['size'])&&(_0x5163b6=parseInt(''+_0x208735['size'])),(_0x208735===null||_0x208735===void 0x0?void 0x0:_0x208735[_0x28c27d(0x1b0)])&&(_0x6b97d4=typeof _0x208735[_0x28c27d(0x1b0)]==_0x28c27d(0x1bf)?0x1f4:parseInt(''+_0x208735[_0x28c27d(0x1b0)])));while(_0x40c452){const _0x38ab31=await this['clone']()[_0x28c27d(0x1e0)](Math[_0x28c27d(0x1be)](_0x5163b6))[_0x28c27d(0x213)]((Math[_0x28c27d(0x1be)](_0x2fd54d)-0x1)*Math[_0x28c27d(0x1be)](_0x5163b6))[_0x28c27d(0x20c)]();(_0x38ab31===null||_0x38ab31===void 0x0?void 0x0:_0x38ab31[_0x28c27d(0x202)])>0x0?(await _0x43c3fb(_0x38ab31,_0x2fd54d),_0x38ab31['length']=0x0,_0x2fd54d++,_0x6b97d4&&typeof _0x6b97d4=='number'&&await(0x0,sleep_1['sleep'])(_0x6b97d4)):_0x40c452=![];}},typeorm_3[a13_0x4393cd(0x1f0)][a13_0x4393cd(0x1f6)][a13_0x4393cd(0x20d)]=async function(_0x5acd20,_0x2f7e49){const _0x496a29=a13_0x4393cd;return this[_0x496a29(0x1d6)](_0x5acd20,_0x2f7e49)[_0x496a29(0x1cc)](_0xf218df=>{const _0x4e5915=_0x496a29;if(_0xf218df===null||_0xf218df===undefined)return Promise[_0x4e5915(0x1e7)](new typeorm_3[(_0x4e5915(0x205))](_0x5acd20,_0x2f7e49));return Promise[_0x4e5915(0x208)](_0xf218df);});},typeorm_3[a13_0x4393cd(0x1f0)]['prototype']['findOneByOrFail']=async function(_0x531e04,_0x36245e){const _0x1f28bd=a13_0x4393cd;return this[_0x1f28bd(0x1ce)](_0x531e04,_0x36245e)['then'](_0xf7f8d7=>{const _0x1eb83=_0x1f28bd;if(_0xf7f8d7===null||_0xf7f8d7===undefined)return Promise[_0x1eb83(0x1e7)](new typeorm_3['EntityNotFoundError'](_0x531e04,_0x36245e));return Promise[_0x1eb83(0x208)](_0xf7f8d7);});},typeorm_2[a13_0x4393cd(0x200)][a13_0x4393cd(0x1f6)]['getOne']=async function(){const _0x171485=a13_0x4393cd;var _0x315c81;const {entities:_0x2b9dd4,raw:_0x41978e}=await this[_0x171485(0x1b6)]();if(_0x2b9dd4[0x0]&&this['expressionMap'][_0x171485(0x1d2)]===_0x171485(0x1f5)&&this['expressionMap']['lockVersion']){const _0x270418=this[_0x171485(0x1cd)][_0x171485(0x1e8)][_0x171485(0x1ed)];if(this[_0x171485(0x1cd)][_0x171485(0x1c2)]instanceof Date){const _0x2a840a=_0x270418[_0x171485(0x20e)][_0x171485(0x207)](_0x2b9dd4[0x0]);if(_0x2a840a[_0x171485(0x1db)]()!==this[_0x171485(0x1cd)][_0x171485(0x1c2)]['getTime']())throw new typeorm_2[(_0x171485(0x1c1))](_0x270418[_0x171485(0x1e5)],this[_0x171485(0x1cd)][_0x171485(0x1c2)],_0x2a840a);}else{const _0xf3665e=_0x270418['versionColumn']['getEntityValue'](_0x2b9dd4[0x0]);if(_0xf3665e!==this[_0x171485(0x1cd)][_0x171485(0x1c2)])throw new typeorm_2[(_0x171485(0x1c1))](_0x270418[_0x171485(0x1e5)],this['expressionMap'][_0x171485(0x1c2)],_0xf3665e);}}if(_0x2b9dd4[0x0]&&_0x41978e[0x0]){const _0x508ef2=(0x0,core_1['getClassMetadata'])(exports['ENTITY_VIRTUAL_COLUMN_KEY'],_0x2b9dd4[0x0]);for(const _0x4590f6 in _0x508ef2){_0x41978e[0x0][_0x171485(0x1f8)](_0x4590f6)&&(_0x2b9dd4[0x0][_0x4590f6]=_0x41978e[0x0][_0x4590f6]||((_0x315c81=_0x508ef2[_0x4590f6])===null||_0x315c81===void 0x0?void 0x0:_0x315c81[_0x171485(0x1d7)])||'');}}return _0x2b9dd4[0x0]&&typeof this[_0x171485(0x20f)]==_0x171485(0x1f3)&&(_0x2b9dd4[0x0]=await this[_0x171485(0x20f)](_0x2b9dd4[0x0])),_0x2b9dd4[0x0]||null;},typeorm_2[a13_0x4393cd(0x200)]['prototype'][a13_0x4393cd(0x20c)]=async function(){const _0x545551=a13_0x4393cd;if(this['expressionMap'][_0x545551(0x1d2)]===_0x545551(0x1f5))throw new typeorm_2['OptimisticLockCanNotBeUsedError']();const {entities:_0x1e38fd,raw:_0x3620c7}=await this['getRawAndEntities']();return await Promise[_0x545551(0x1b8)](_0x1e38fd[_0x545551(0x1f4)](async(_0x4e4f73,_0x48aeb6)=>{const _0x4a962c=_0x545551;var _0x1a2226;const _0x5740e3=(0x0,core_1[_0x4a962c(0x1e9)])(exports[_0x4a962c(0x1c5)],_0x4e4f73)||{};for(const _0x17e6dd in _0x5740e3){_0x3620c7[_0x48aeb6]&&_0x3620c7[_0x48aeb6][_0x4a962c(0x1f8)](_0x17e6dd)&&(_0x4e4f73[_0x17e6dd]=_0x3620c7[_0x48aeb6][_0x17e6dd]||((_0x1a2226=_0x5740e3[_0x17e6dd])===null||_0x1a2226===void 0x0?void 0x0:_0x1a2226[_0x4a962c(0x1d7)])||'');}return _0x4e4f73&&typeof this[_0x4a962c(0x20f)]==_0x4a962c(0x1f3)&&(_0x4e4f73=await this[_0x4a962c(0x20f)](_0x4e4f73)),_0x4e4f73;}));},typeorm_2[a13_0x4393cd(0x200)][a13_0x4393cd(0x1f6)]['getManyAndCount']=async function(){const _0x22e63e=a13_0x4393cd;return[await this[_0x22e63e(0x20c)](),await this[_0x22e63e(0x1f1)]()];},typeorm_2[a13_0x4393cd(0x200)][a13_0x4393cd(0x1f6)][a13_0x4393cd(0x1ea)]=function(_0x27dd98,_0x3c59c4){const _0x28e755=a13_0x4393cd;_0x27dd98[_0x28e755(0x1c4)](this[_0x28e755(0x212)]+'.')&&(_0x27dd98=_0x27dd98['substring']((this['alias']+'.')[_0x28e755(0x202)]));const _0x4bdc04=typeof _0x3c59c4==_0x28e755(0x1f9)?{'alias':_0x3c59c4}:_0x3c59c4,_0x367d70=this[_0x28e755(0x1cd)][_0x28e755(0x1e8)][_0x28e755(0x1ed)],_0x52c0fb=(0x0,typeorm_1['getMetadataArgsStorage'])(),_0x5a3667=_0x52c0fb[_0x28e755(0x1d3)][_0x28e755(0x1ba)](_0x22df8a=>_0x22df8a['target']==_0x367d70['target']&&_0x22df8a[_0x28e755(0x1fc)]==_0x27dd98);if((_0x367d70===null||_0x367d70===void 0x0?void 0x0:_0x367d70[_0x28e755(0x1b9)])&&(_0x5a3667===null||_0x5a3667===void 0x0?void 0x0:_0x5a3667[_0x28e755(0x1fc)])){!this[_0x28e755(0x1ca)]&&(this[_0x28e755(0x1ca)]=[]);if(_0x5a3667[_0x28e755(0x1b2)]=='many-to-one'||_0x5a3667['relationType']==_0x28e755(0x1e6)){const _0x48b39d=_0x52c0fb['joinColumns']['find'](_0x457cce=>_0x457cce[_0x28e755(0x1b9)]==_0x367d70[_0x28e755(0x1b9)]&&_0x457cce[_0x28e755(0x1fc)]==_0x27dd98);_0x5a3667[_0x28e755(0x1fc)]==(_0x48b39d===null||_0x48b39d===void 0x0?void 0x0:_0x48b39d[_0x28e755(0x1fc)])&&(!this['_appends'][_0x28e755(0x1ba)](_0x28eb36=>_0x28eb36[_0x28e755(0x212)]==((_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04['alias'])||_0x27dd98))&&this[_0x28e755(0x1ca)][_0x28e755(0x1d8)]({'alias':(_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04['alias'])||_0x27dd98,'relation':_0x5a3667,'joinColumn':_0x48b39d,'findOption':(_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04[_0x28e755(0x1e2)])||undefined}));}else{if(_0x5a3667[_0x28e755(0x1b2)]==_0x28e755(0x1df))try{const _0x14e804=_0x52c0fb[_0x28e755(0x1d3)]['find'](_0x32f7e5=>_0x32f7e5[_0x28e755(0x1b9)]==_0x5a3667[_0x28e755(0x1cf)](_0x5a3667['propertyName'])&&_0x32f7e5['type'](_0x32f7e5[_0x28e755(0x1b2)])==_0x367d70['target']),_0x5c976b=_0x52c0fb[_0x28e755(0x1bc)][_0x28e755(0x1ba)](_0x5ceeee=>_0x5ceeee[_0x28e755(0x1b9)]==_0x14e804[_0x28e755(0x1b9)]&&_0x5ceeee[_0x28e755(0x1fc)]==_0x14e804[_0x28e755(0x1fc)]);_0x14e804[_0x28e755(0x1fc)]==(_0x5c976b===null||_0x5c976b===void 0x0?void 0x0:_0x5c976b[_0x28e755(0x1fc)])&&(!this[_0x28e755(0x1ca)]['find'](_0x51574d=>_0x51574d[_0x28e755(0x212)]==((_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04[_0x28e755(0x212)])||_0x27dd98))&&this['_appends']['push']({'alias':(_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04[_0x28e755(0x212)])||_0x27dd98,'relation':_0x5a3667,'joinColumn':_0x5c976b,'findOption':(_0x4bdc04===null||_0x4bdc04===void 0x0?void 0x0:_0x4bdc04[_0x28e755(0x1e2)])||undefined}));}catch(_0x5f0f83){}}}return this;},typeorm_2['SelectQueryBuilder'][a13_0x4393cd(0x1f6)][a13_0x4393cd(0x20f)]=async function(_0x346179){const _0x47f116=a13_0x4393cd;var _0x57319e,_0x15f818,_0x15bcb8,_0x17e001;for(const _0x86da97 of this[_0x47f116(0x1ca)]||[]){if(!((_0x57319e=_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1ae)])===null||_0x57319e===void 0x0?void 0x0:_0x57319e[_0x47f116(0x1b2)]))continue;if(!((_0x15f818=_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97['joinColumn'])===null||_0x15f818===void 0x0?void 0x0:_0x15f818['name'])||!((_0x15bcb8=_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1ec)])===null||_0x15bcb8===void 0x0?void 0x0:_0x15bcb8['referencedColumnName']))continue;if(!_0x346179[_0x86da97[_0x47f116(0x1ec)]['referencedColumnName']])continue;if(typeof((_0x17e001=_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1ae)])===null||_0x17e001===void 0x0?void 0x0:_0x17e001['type'])!='function')continue;if(_0x86da97[_0x47f116(0x1ae)][_0x47f116(0x1b2)]=='many-to-one'||_0x86da97['relation'][_0x47f116(0x1b2)]=='one-to-one'){const _0x5193c4=this[_0x47f116(0x1ef)]['createQueryBuilder'](_0x86da97[_0x47f116(0x1ae)][_0x47f116(0x1cf)](_0x86da97[_0x47f116(0x1ae)][_0x47f116(0x1b2)]),_0x86da97['relation'][_0x47f116(0x1fc)])['withDeleted']();(_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1e2)])&&_0x5193c4[_0x47f116(0x1d9)]({..._0x86da97['findOption'],'skip':0x0,'take':0x1}),_0x346179[_0x86da97['alias']]=await _0x5193c4[_0x47f116(0x1bb)](_0x5193c4['alias']+'.'+_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e1)]+_0x47f116(0x1ee)+_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e1)],{[_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e1)]]:_0x346179[_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e5)]]})[_0x47f116(0x1d1)]();}else{if(_0x86da97['relation'][_0x47f116(0x1b2)]==_0x47f116(0x1df)||_0x86da97[_0x47f116(0x1ae)][_0x47f116(0x1b2)]==_0x47f116(0x209)){const _0x16275d=this['connection']['createQueryBuilder'](_0x86da97[_0x47f116(0x1ae)]['type'](_0x86da97[_0x47f116(0x1ae)]['relationType']),_0x86da97[_0x47f116(0x1ae)]['propertyName'])[_0x47f116(0x1dd)]();(_0x86da97===null||_0x86da97===void 0x0?void 0x0:_0x86da97[_0x47f116(0x1e2)])&&_0x16275d[_0x47f116(0x1d9)]({'skip':0x0,'take':0xa,..._0x86da97[_0x47f116(0x1e2)]}),_0x346179[_0x86da97['alias']]=await _0x16275d[_0x47f116(0x1bb)](_0x16275d[_0x47f116(0x212)]+'.'+_0x86da97['joinColumn']['name']+_0x47f116(0x1ee)+_0x86da97[_0x47f116(0x1ec)]['name'],{[_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e5)]]:_0x346179[_0x86da97[_0x47f116(0x1ec)][_0x47f116(0x1e1)]]})[_0x47f116(0x20c)]();}}}return _0x346179;};
|
|
1
|
+
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
|
}
|