@anncic-api/typeorm 1.0.8 → 1.0.12

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/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "typeorm";
2
+ export { SearchOption } from './interface';
2
3
  export { Repository } from './definition/Repository';
3
4
  export { VirtualColumn } from "./decorator/VirtualColumn";
4
5
  export { InjectEntity } from './decorator/InjectEntity';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a12_0x4d36dd=a12_0xf344;(function(_0x58914e,_0x4c56e){var _0x34e431=a12_0xf344,_0x1ae82=_0x58914e();while(!![]){try{var _0x3f79d4=-parseInt(_0x34e431(0x16a))/0x1+parseInt(_0x34e431(0x152))/0x2+parseInt(_0x34e431(0x16d))/0x3+parseInt(_0x34e431(0x167))/0x4*(parseInt(_0x34e431(0x14f))/0x5)+parseInt(_0x34e431(0x155))/0x6+-parseInt(_0x34e431(0x16f))/0x7+parseInt(_0x34e431(0x158))/0x8*(-parseInt(_0x34e431(0x154))/0x9);if(_0x3f79d4===_0x4c56e)break;else _0x1ae82['push'](_0x1ae82['shift']());}catch(_0x552b72){_0x1ae82['push'](_0x1ae82['shift']());}}}(a12_0x3063,0xbc974));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x453e7a,_0x358fa0,_0x2d0f5d,_0x525274){var _0x54f50f=a12_0xf344;if(_0x525274===undefined)_0x525274=_0x2d0f5d;var _0x36a1b7=Object[_0x54f50f(0x16e)](_0x358fa0,_0x2d0f5d);(!_0x36a1b7||(_0x54f50f(0x175)in _0x36a1b7?!_0x358fa0[_0x54f50f(0x16b)]:_0x36a1b7[_0x54f50f(0x168)]||_0x36a1b7['configurable']))&&(_0x36a1b7={'enumerable':!![],'get':function(){return _0x358fa0[_0x2d0f5d];}}),Object['defineProperty'](_0x453e7a,_0x525274,_0x36a1b7);}:function(_0x1105be,_0x55e0c9,_0x53baf8,_0x3b13c8){if(_0x3b13c8===undefined)_0x3b13c8=_0x53baf8;_0x1105be[_0x3b13c8]=_0x55e0c9[_0x53baf8];}),__exportStar=this&&this['__exportStar']||function(_0x56caa5,_0x2ada64){var _0x419409=a12_0xf344;for(var _0x226e67 in _0x56caa5)if(_0x226e67!==_0x419409(0x176)&&!Object[_0x419409(0x178)][_0x419409(0x15f)][_0x419409(0x15e)](_0x2ada64,_0x226e67))__createBinding(_0x2ada64,_0x56caa5,_0x226e67);};Object[a12_0x4d36dd(0x164)](exports,'__esModule',{'value':!![]}),exports[a12_0x4d36dd(0x157)]=exports[a12_0x4d36dd(0x166)]=exports['Inject']=exports[a12_0x4d36dd(0x162)]=exports[a12_0x4d36dd(0x172)]=exports['getDataSourceEntity']=exports[a12_0x4d36dd(0x15b)]=exports[a12_0x4d36dd(0x150)]=exports['ProvideRepository']=exports[a12_0x4d36dd(0x174)]=exports[a12_0x4d36dd(0x171)]=exports[a12_0x4d36dd(0x15d)]=exports[a12_0x4d36dd(0x159)]=exports[a12_0x4d36dd(0x169)]=void 0x0,__exportStar(require('typeorm'),exports);var Repository_1=require(a12_0x4d36dd(0x16c));Object[a12_0x4d36dd(0x164)](exports,'Repository',{'enumerable':!![],'get':function(){var _0x21a652=a12_0x4d36dd;return Repository_1[_0x21a652(0x169)];}});var VirtualColumn_1=require(a12_0x4d36dd(0x151));Object[a12_0x4d36dd(0x164)](exports,a12_0x4d36dd(0x159),{'enumerable':!![],'get':function(){return VirtualColumn_1['VirtualColumn'];}});var InjectEntity_1=require(a12_0x4d36dd(0x177));Object[a12_0x4d36dd(0x164)](exports,a12_0x4d36dd(0x15d),{'enumerable':!![],'get':function(){var _0x5c87e6=a12_0x4d36dd;return InjectEntity_1[_0x5c87e6(0x15d)];}});var InjectRepository_1=require(a12_0x4d36dd(0x163));function a12_0xf344(_0x2c5fa0,_0x413a14){var _0x30631c=a12_0x3063();return a12_0xf344=function(_0xf344f6,_0x48dafc){_0xf344f6=_0xf344f6-0x14f;var _0x5331aa=_0x30631c[_0xf344f6];return _0x5331aa;},a12_0xf344(_0x2c5fa0,_0x413a14);}Object[a12_0x4d36dd(0x164)](exports,'InjectRepository',{'enumerable':!![],'get':function(){var _0x1978a7=a12_0x4d36dd;return InjectRepository_1[_0x1978a7(0x171)];}});var ProvideEntity_1=require(a12_0x4d36dd(0x173));Object[a12_0x4d36dd(0x164)](exports,a12_0x4d36dd(0x174),{'enumerable':!![],'get':function(){var _0x17b3a2=a12_0x4d36dd;return ProvideEntity_1[_0x17b3a2(0x174)];}});var ProvideRepository_1=require(a12_0x4d36dd(0x179));Object['defineProperty'](exports,a12_0x4d36dd(0x160),{'enumerable':!![],'get':function(){var _0x428d9b=a12_0x4d36dd;return ProvideRepository_1[_0x428d9b(0x160)];}});var ProvideSearch_1=require(a12_0x4d36dd(0x156));Object[a12_0x4d36dd(0x164)](exports,'ProvideSearch',{'enumerable':!![],'get':function(){var _0x1b8869=a12_0x4d36dd;return ProvideSearch_1[_0x1b8869(0x150)];}}),Object[a12_0x4d36dd(0x164)](exports,a12_0x4d36dd(0x15b),{'enumerable':!![],'get':function(){var _0x101633=a12_0x4d36dd;return ProvideSearch_1[_0x101633(0x15b)];}});var getDataSourceEntity_1=require(a12_0x4d36dd(0x15c));Object[a12_0x4d36dd(0x164)](exports,a12_0x4d36dd(0x170),{'enumerable':!![],'get':function(){var _0x6c53de=a12_0x4d36dd;return getDataSourceEntity_1[_0x6c53de(0x170)];}});var configuration_1=require(a12_0x4d36dd(0x15a));function a12_0x3063(){var _0x528ad1=['hasOwnProperty','ProvideRepository','@midwayjs/decorator','Provide','./decorator/InjectRepository','defineProperty','Inject','Scope','20LjMtPk','writable','Repository','959195DqTgmu','__esModule','./definition/Repository','3535521yNybob','getOwnPropertyDescriptor','4846268AQPxJp','getDataSourceEntity','InjectRepository','Configuration','./decorator/ProvideEntity','ProvideEntity','get','default','./decorator/InjectEntity','prototype','./decorator/ProvideRepository','1074875iHQxOt','ProvideSearch','./decorator/VirtualColumn','2922332unbGqX','CustomConfiguration','18SsVSee','5633670nmKFMT','./decorator/ProvideSearch','ScopeEnum','8918024MyPQaF','VirtualColumn','./configuration','Search','./helper/getDataSourceEntity','InjectEntity','call'];a12_0x3063=function(){return _0x528ad1;};return a12_0x3063();}Object[a12_0x4d36dd(0x164)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x1709a2=a12_0x4d36dd;return configuration_1[_0x1709a2(0x153)];}});var decorator_1=require(a12_0x4d36dd(0x161));Object[a12_0x4d36dd(0x164)](exports,a12_0x4d36dd(0x162),{'enumerable':!![],'get':function(){return decorator_1['Provide'];}}),Object[a12_0x4d36dd(0x164)](exports,a12_0x4d36dd(0x165),{'enumerable':!![],'get':function(){var _0x27df70=a12_0x4d36dd;return decorator_1[_0x27df70(0x165)];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){var _0x1b3cd3=a12_0x4d36dd;return decorator_1[_0x1b3cd3(0x166)];}}),Object['defineProperty'](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x56a110=a12_0x4d36dd;return decorator_1[_0x56a110(0x157)];}});
1
+ 'use strict';var a12_0x358fcb=a12_0x1219;(function(_0x4f95e8,_0x502011){var _0x21dc18=a12_0x1219,_0x1cca8d=_0x4f95e8();while(!![]){try{var _0x3dbb0c=-parseInt(_0x21dc18(0x11a))/0x1+-parseInt(_0x21dc18(0x10e))/0x2*(parseInt(_0x21dc18(0xfc))/0x3)+-parseInt(_0x21dc18(0xf6))/0x4+parseInt(_0x21dc18(0x106))/0x5+-parseInt(_0x21dc18(0xf8))/0x6*(-parseInt(_0x21dc18(0x11b))/0x7)+parseInt(_0x21dc18(0x111))/0x8*(-parseInt(_0x21dc18(0x10a))/0x9)+parseInt(_0x21dc18(0x107))/0xa;if(_0x3dbb0c===_0x502011)break;else _0x1cca8d['push'](_0x1cca8d['shift']());}catch(_0x548243){_0x1cca8d['push'](_0x1cca8d['shift']());}}}(a12_0x18ca,0x1fdb2));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x44584a,_0x4f77a4,_0x123be4,_0x2f2f89){var _0x3c60f6=a12_0x1219;if(_0x2f2f89===undefined)_0x2f2f89=_0x123be4;var _0x4cf173=Object[_0x3c60f6(0xfe)](_0x4f77a4,_0x123be4);(!_0x4cf173||(_0x3c60f6(0x10f)in _0x4cf173?!_0x4f77a4[_0x3c60f6(0x112)]:_0x4cf173[_0x3c60f6(0x109)]||_0x4cf173['configurable']))&&(_0x4cf173={'enumerable':!![],'get':function(){return _0x4f77a4[_0x123be4];}}),Object['defineProperty'](_0x44584a,_0x2f2f89,_0x4cf173);}:function(_0x2f8b45,_0xc3e3f2,_0x107a41,_0x329099){if(_0x329099===undefined)_0x329099=_0x107a41;_0x2f8b45[_0x329099]=_0xc3e3f2[_0x107a41];}),__exportStar=this&&this['__exportStar']||function(_0x1ed0a0,_0x4a46eb){var _0x3a44bd=a12_0x1219;for(var _0x366d67 in _0x1ed0a0)if(_0x366d67!==_0x3a44bd(0x119)&&!Object[_0x3a44bd(0x118)][_0x3a44bd(0x115)][_0x3a44bd(0x103)](_0x4a46eb,_0x366d67))__createBinding(_0x4a46eb,_0x1ed0a0,_0x366d67);};Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0x112),{'value':!![]}),exports[a12_0x358fcb(0xff)]=exports[a12_0x358fcb(0x11c)]=exports[a12_0x358fcb(0xf5)]=exports[a12_0x358fcb(0x116)]=exports['Configuration']=exports['getDataSourceEntity']=exports[a12_0x358fcb(0x11d)]=exports[a12_0x358fcb(0x110)]=exports[a12_0x358fcb(0x104)]=exports[a12_0x358fcb(0x11e)]=exports['InjectRepository']=exports['InjectEntity']=exports['VirtualColumn']=exports['Repository']=void 0x0,__exportStar(require('typeorm'),exports);var Repository_1=require(a12_0x358fcb(0x10d));function a12_0x1219(_0x573e07,_0x362682){var _0x18cacd=a12_0x18ca();return a12_0x1219=function(_0x1219e6,_0x23e355){_0x1219e6=_0x1219e6-0xf5;var _0x4aaf56=_0x18cacd[_0x1219e6];return _0x4aaf56;},a12_0x1219(_0x573e07,_0x362682);}Object[a12_0x358fcb(0xf9)](exports,'Repository',{'enumerable':!![],'get':function(){var _0x33f240=a12_0x358fcb;return Repository_1[_0x33f240(0x113)];}});var VirtualColumn_1=require(a12_0x358fcb(0xfd));Object[a12_0x358fcb(0xf9)](exports,'VirtualColumn',{'enumerable':!![],'get':function(){return VirtualColumn_1['VirtualColumn'];}});var InjectEntity_1=require(a12_0x358fcb(0x105));Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0x114),{'enumerable':!![],'get':function(){return InjectEntity_1['InjectEntity'];}});var InjectRepository_1=require(a12_0x358fcb(0x101));Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0x102),{'enumerable':!![],'get':function(){return InjectRepository_1['InjectRepository'];}});var ProvideEntity_1=require('./decorator/ProvideEntity');Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0x11e),{'enumerable':!![],'get':function(){return ProvideEntity_1['ProvideEntity'];}});var ProvideRepository_1=require(a12_0x358fcb(0x10c));function a12_0x18ca(){var _0x4ed97e=['Search','ProvideEntity','Inject','277264FwXZCr','./decorator/ProvideSearch','23286tjvWNV','defineProperty','./helper/getDataSourceEntity','./configuration','33xLMjMo','./decorator/VirtualColumn','getOwnPropertyDescriptor','ScopeEnum','@midwayjs/decorator','./decorator/InjectRepository','InjectRepository','call','ProvideRepository','./decorator/InjectEntity','919515LuWJGt','2598750kVLTgK','CustomConfiguration','writable','9zXeRky','Configuration','./decorator/ProvideRepository','./definition/Repository','44994QhwsCb','get','ProvideSearch','1360488sgWeqe','__esModule','Repository','InjectEntity','hasOwnProperty','Provide','getDataSourceEntity','prototype','default','32145BGFmse','371iPxNBG','Scope'];a12_0x18ca=function(){return _0x4ed97e;};return a12_0x18ca();}Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0x104),{'enumerable':!![],'get':function(){return ProvideRepository_1['ProvideRepository'];}});var ProvideSearch_1=require(a12_0x358fcb(0xf7));Object['defineProperty'](exports,a12_0x358fcb(0x110),{'enumerable':!![],'get':function(){var _0x5cc0ad=a12_0x358fcb;return ProvideSearch_1[_0x5cc0ad(0x110)];}}),Object[a12_0x358fcb(0xf9)](exports,'Search',{'enumerable':!![],'get':function(){var _0x409842=a12_0x358fcb;return ProvideSearch_1[_0x409842(0x11d)];}});var getDataSourceEntity_1=require(a12_0x358fcb(0xfa));Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0x117),{'enumerable':!![],'get':function(){var _0x271f45=a12_0x358fcb;return getDataSourceEntity_1[_0x271f45(0x117)];}});var configuration_1=require(a12_0x358fcb(0xfb));Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0x10b),{'enumerable':!![],'get':function(){var _0x32c535=a12_0x358fcb;return configuration_1[_0x32c535(0x108)];}});var decorator_1=require(a12_0x358fcb(0x100));Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0x116),{'enumerable':!![],'get':function(){var _0x90fc45=a12_0x358fcb;return decorator_1[_0x90fc45(0x116)];}}),Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0xf5),{'enumerable':!![],'get':function(){var _0x44b76c=a12_0x358fcb;return decorator_1[_0x44b76c(0xf5)];}}),Object[a12_0x358fcb(0xf9)](exports,a12_0x358fcb(0x11c),{'enumerable':!![],'get':function(){var _0x1cb968=a12_0x358fcb;return decorator_1[_0x1cb968(0x11c)];}}),Object['defineProperty'](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x5354d4=a12_0x358fcb;return decorator_1[_0x5354d4(0xff)];}});
@@ -1,4 +1,4 @@
1
- import { FindOptionsWhereProperty } from 'typeorm';
1
+ import { FindOptionsWhereProperty, DeepPartial } from 'typeorm';
2
2
  export declare const ENTIFY_KEY = "decorator:anncic-api:typeorm:entify";
3
3
  export declare const ENTIFY_MODULE = "decorator:anncic-api:typeorm:entify:module";
4
4
  export declare const ENTIFY_MODULE_SOURCE = "decorator:anncic-api:typeorm:entify:module:source";
@@ -6,7 +6,7 @@ export declare const REPOSITORY_KEY = "decorator:anncic-api:typeorm:repository";
6
6
  export declare const MODEL_KEY = "decorator:anncic-api:typeorm:model";
7
7
  export declare const MODEL_SEARCH_KEY = "decorator:anncic-api:typeorm:model:search";
8
8
  export declare const ENTITY_VIRTUAL_COLUMN_KEY = "decorator:anncic-api:typeorm:entity:virtual:column";
9
- export declare type SearchOperatorOption<Entity> = {
9
+ export declare type SearchOption<Entity> = {
10
10
  [P in keyof Entity]?: {
11
11
  operator: '=' | '!=' | '<>' | '>' | '>=' | '<' | '<=' | 'LIKE' | 'NOT LIKE';
12
12
  condition: FindOptionsWhereProperty<NonNullable<Entity[P]>>;
@@ -22,6 +22,8 @@ export declare type SearchOperatorOption<Entity> = {
22
22
  } | {
23
23
  operator: 'ISNULL' | 'NOT ISNULL';
24
24
  };
25
+ } | DeepPartial<Entity> | {
26
+ [key: string]: any;
25
27
  };
26
28
  export declare class SearchPaginateOption {
27
29
  _page?: number;
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a13_0x21dd94=a13_0x3b25;(function(_0x1c9f87,_0x2a7b50){const _0x32bae7=a13_0x3b25,_0x5525b0=_0x1c9f87();while(!![]){try{const _0x43a8a1=-parseInt(_0x32bae7(0x1fa))/0x1+parseInt(_0x32bae7(0x1ee))/0x2*(-parseInt(_0x32bae7(0x1e5))/0x3)+parseInt(_0x32bae7(0x1f4))/0x4*(parseInt(_0x32bae7(0x1ef))/0x5)+-parseInt(_0x32bae7(0x202))/0x6*(parseInt(_0x32bae7(0x205))/0x7)+-parseInt(_0x32bae7(0x1f5))/0x8+parseInt(_0x32bae7(0x1f8))/0x9*(-parseInt(_0x32bae7(0x1fe))/0xa)+parseInt(_0x32bae7(0x1e6))/0xb;if(_0x43a8a1===_0x2a7b50)break;else _0x5525b0['push'](_0x5525b0['shift']());}catch(_0x2366d4){_0x5525b0['push'](_0x5525b0['shift']());}}}(a13_0x2985,0xb3896));Object[a13_0x21dd94(0x204)](exports,'__esModule',{'value':!![]}),exports[a13_0x21dd94(0x1f6)]=exports['ENTITY_VIRTUAL_COLUMN_KEY']=exports[a13_0x21dd94(0x1fb)]=exports[a13_0x21dd94(0x1f7)]=exports['REPOSITORY_KEY']=exports[a13_0x21dd94(0x1f3)]=exports[a13_0x21dd94(0x200)]=exports[a13_0x21dd94(0x1e8)]=void 0x0;const typeorm_1=require(a13_0x21dd94(0x201));exports[a13_0x21dd94(0x1e8)]=a13_0x21dd94(0x1ea),exports[a13_0x21dd94(0x200)]=a13_0x21dd94(0x1ed),exports[a13_0x21dd94(0x1f3)]=a13_0x21dd94(0x1f9),exports[a13_0x21dd94(0x1ec)]=a13_0x21dd94(0x1fc),exports[a13_0x21dd94(0x1f7)]=a13_0x21dd94(0x1e7),exports[a13_0x21dd94(0x1fb)]=a13_0x21dd94(0x1e9),exports[a13_0x21dd94(0x1eb)]=a13_0x21dd94(0x203);class SearchPaginateOption{}function a13_0x3b25(_0x1e9359,_0xaf5163){const _0x2985ff=a13_0x2985();return a13_0x3b25=function(_0x3b2585,_0x3d92a8){_0x3b2585=_0x3b2585-0x1e4;let _0x58d071=_0x2985ff[_0x3b2585];return _0x58d071;},a13_0x3b25(_0x1e9359,_0xaf5163);}function a13_0x2985(){const _0x26b9c6=['decorator:anncic-api:typeorm:entify:module','38dKDKrF','67775rLPuny','resolve','reject','findOneByOrFail','ENTIFY_MODULE_SOURCE','104URdNDS','4304360DPtVbS','SearchPaginateOption','MODEL_KEY','3592899LxDBxZ','decorator:anncic-api:typeorm:entify:module:source','1063372hYZlwC','MODEL_SEARCH_KEY','decorator:anncic-api:typeorm:repository','findOneOrFail','10WTmmdg','prototype','ENTIFY_MODULE','typeorm','56634wjZEvG','decorator:anncic-api:typeorm:entity:virtual:column','defineProperty','665ieKdyw','EntityManager','then','11247jOLpHX','36866676zrzsuq','decorator:anncic-api:typeorm:model','ENTIFY_KEY','decorator:anncic-api:typeorm:model:search','decorator:anncic-api:typeorm:entify','ENTITY_VIRTUAL_COLUMN_KEY','REPOSITORY_KEY'];a13_0x2985=function(){return _0x26b9c6;};return a13_0x2985();}exports[a13_0x21dd94(0x1f6)]=SearchPaginateOption,typeorm_1['EntityManager']['prototype'][a13_0x21dd94(0x1fd)]=async function(_0x582a6e,_0x2fcdb9){const _0x5408bb=a13_0x21dd94;return this['findOne'](_0x582a6e,_0x2fcdb9)[_0x5408bb(0x1e4)](_0x302809=>{const _0x292325=_0x5408bb;if(_0x302809===null||_0x302809===undefined)return Promise[_0x292325(0x1f1)](new typeorm_1['EntityNotFoundError'](_0x582a6e,_0x2fcdb9));return Promise[_0x292325(0x1f0)](_0x302809);});},typeorm_1[a13_0x21dd94(0x206)][a13_0x21dd94(0x1ff)][a13_0x21dd94(0x1f2)]=async function(_0x489fef,_0x8c3e2f){const _0x5e59f2=a13_0x21dd94;return this['findOneBy'](_0x489fef,_0x8c3e2f)[_0x5e59f2(0x1e4)](_0x50146a=>{const _0x47b16c=_0x5e59f2;if(_0x50146a===null||_0x50146a===undefined)return Promise[_0x47b16c(0x1f1)](new typeorm_1['EntityNotFoundError'](_0x489fef,_0x8c3e2f));return Promise[_0x47b16c(0x1f0)](_0x50146a);});};
1
+ 'use strict';const a13_0x36ba65=a13_0x3adc;(function(_0x4e7b74,_0x30a0e7){const _0x3e5e36=a13_0x3adc,_0x41933b=_0x4e7b74();while(!![]){try{const _0x16c8b5=-parseInt(_0x3e5e36(0xd6))/0x1+-parseInt(_0x3e5e36(0xcf))/0x2+parseInt(_0x3e5e36(0xd4))/0x3*(-parseInt(_0x3e5e36(0xe5))/0x4)+parseInt(_0x3e5e36(0xe0))/0x5+-parseInt(_0x3e5e36(0xd0))/0x6+-parseInt(_0x3e5e36(0xdd))/0x7+parseInt(_0x3e5e36(0xe8))/0x8*(parseInt(_0x3e5e36(0xd7))/0x9);if(_0x16c8b5===_0x30a0e7)break;else _0x41933b['push'](_0x41933b['shift']());}catch(_0x1a6877){_0x41933b['push'](_0x41933b['shift']());}}}(a13_0x21bd,0x33e83));Object['defineProperty'](exports,a13_0x36ba65(0xd8),{'value':!![]}),exports[a13_0x36ba65(0xd2)]=exports[a13_0x36ba65(0xeb)]=exports['MODEL_SEARCH_KEY']=exports[a13_0x36ba65(0xea)]=exports[a13_0x36ba65(0xd3)]=exports[a13_0x36ba65(0xe7)]=exports['ENTIFY_MODULE']=exports[a13_0x36ba65(0xe6)]=void 0x0;function a13_0x3adc(_0x2291f4,_0x1ebdf9){const _0x21bd9b=a13_0x21bd();return a13_0x3adc=function(_0x3adc0f,_0x12c441){_0x3adc0f=_0x3adc0f-0xce;let _0x3228d2=_0x21bd9b[_0x3adc0f];return _0x3228d2;},a13_0x3adc(_0x2291f4,_0x1ebdf9);}const typeorm_1=require('typeorm');exports[a13_0x36ba65(0xe6)]=a13_0x36ba65(0xda),exports[a13_0x36ba65(0xdc)]=a13_0x36ba65(0xdf),exports[a13_0x36ba65(0xe7)]='decorator:anncic-api:typeorm:entify:module:source',exports['REPOSITORY_KEY']=a13_0x36ba65(0xe2),exports[a13_0x36ba65(0xea)]=a13_0x36ba65(0xce),exports[a13_0x36ba65(0xe9)]=a13_0x36ba65(0xec),exports[a13_0x36ba65(0xeb)]='decorator:anncic-api:typeorm:entity:virtual:column';class SearchPaginateOption{}exports[a13_0x36ba65(0xd2)]=SearchPaginateOption,typeorm_1[a13_0x36ba65(0xde)]['prototype'][a13_0x36ba65(0xd5)]=async function(_0x524d09,_0x97afd){const _0x28fb80=a13_0x36ba65;return this[_0x28fb80(0xe1)](_0x524d09,_0x97afd)[_0x28fb80(0xd1)](_0x2fb0b5=>{const _0x4372e1=_0x28fb80;if(_0x2fb0b5===null||_0x2fb0b5===undefined)return Promise[_0x4372e1(0xd9)](new typeorm_1[(_0x4372e1(0xe4))](_0x524d09,_0x97afd));return Promise[_0x4372e1(0xdb)](_0x2fb0b5);});},typeorm_1[a13_0x36ba65(0xde)][a13_0x36ba65(0xe3)]['findOneByOrFail']=async function(_0x5b83b1,_0x5d9720){const _0x44fb01=a13_0x36ba65;return this['findOneBy'](_0x5b83b1,_0x5d9720)[_0x44fb01(0xd1)](_0x1f4974=>{const _0x5a5328=_0x44fb01;if(_0x1f4974===null||_0x1f4974===undefined)return Promise[_0x5a5328(0xd9)](new typeorm_1[(_0x5a5328(0xe4))](_0x5b83b1,_0x5d9720));return Promise[_0x5a5328(0xdb)](_0x1f4974);});};function a13_0x21bd(){const _0x1da2af=['6bgyZSw','findOneOrFail','199493sDxRth','533844AvejnU','__esModule','reject','decorator:anncic-api:typeorm:entify','resolve','ENTIFY_MODULE','25291yMRGLK','EntityManager','decorator:anncic-api:typeorm:entify:module','330120UQbgew','findOne','decorator:anncic-api:typeorm:repository','prototype','EntityNotFoundError','441568hGRToR','ENTIFY_KEY','ENTIFY_MODULE_SOURCE','168efcUBu','MODEL_SEARCH_KEY','MODEL_KEY','ENTITY_VIRTUAL_COLUMN_KEY','decorator:anncic-api:typeorm:model:search','decorator:anncic-api:typeorm:model','733904eEDRAj','1849242ikuqmb','then','SearchPaginateOption','REPOSITORY_KEY'];a13_0x21bd=function(){return _0x1da2af;};return a13_0x21bd();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/typeorm",
3
- "version": "1.0.8",
3
+ "version": "1.0.12",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -22,5 +22,5 @@
22
22
  "javascript-obfuscator": "2.19.0",
23
23
  "typescript": "^4.7.4"
24
24
  },
25
- "gitHead": "252a82375c75725a7c95ab215f172521d1729ff5"
25
+ "gitHead": "5a1add10415cd9a465caa2a1f8fb4d1ea36ce6f2"
26
26
  }