@anncic-api/typeorm 1.0.11 → 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_0xe46caa=a12_0x4eae;(function(_0x2bdbdd,_0x5501c0){var _0x495b69=a12_0x4eae,_0x7951a=_0x2bdbdd();while(!![]){try{var _0x4ff7f9=-parseInt(_0x495b69(0x1b2))/0x1*(parseInt(_0x495b69(0x1a3))/0x2)+-parseInt(_0x495b69(0x19f))/0x3+-parseInt(_0x495b69(0x1bf))/0x4+-parseInt(_0x495b69(0x1ac))/0x5+parseInt(_0x495b69(0x1b7))/0x6*(-parseInt(_0x495b69(0x1ab))/0x7)+-parseInt(_0x495b69(0x1a0))/0x8+parseInt(_0x495b69(0x1a7))/0x9;if(_0x4ff7f9===_0x5501c0)break;else _0x7951a['push'](_0x7951a['shift']());}catch(_0x4d0fd6){_0x7951a['push'](_0x7951a['shift']());}}}(a12_0x6702,0x9dcf4));function a12_0x4eae(_0x57d66b,_0x205994){var _0x6702a4=a12_0x6702();return a12_0x4eae=function(_0x4eaeaa,_0x5de7ad){_0x4eaeaa=_0x4eaeaa-0x193;var _0xd1c314=_0x6702a4[_0x4eaeaa];return _0xd1c314;},a12_0x4eae(_0x57d66b,_0x205994);}var __createBinding=this&&this['__createBinding']||(Object[a12_0xe46caa(0x193)]?function(_0x31216f,_0x15ac16,_0x58d02d,_0x586f09){var _0x57f99e=a12_0xe46caa;if(_0x586f09===undefined)_0x586f09=_0x58d02d;var _0x147822=Object[_0x57f99e(0x1ad)](_0x15ac16,_0x58d02d);(!_0x147822||(_0x57f99e(0x1a2)in _0x147822?!_0x15ac16['__esModule']:_0x147822[_0x57f99e(0x1b1)]||_0x147822[_0x57f99e(0x1b4)]))&&(_0x147822={'enumerable':!![],'get':function(){return _0x15ac16[_0x58d02d];}}),Object[_0x57f99e(0x1bc)](_0x31216f,_0x586f09,_0x147822);}:function(_0x37078a,_0x593335,_0x463693,_0x544462){if(_0x544462===undefined)_0x544462=_0x463693;_0x37078a[_0x544462]=_0x593335[_0x463693];}),__exportStar=this&&this[a12_0xe46caa(0x19e)]||function(_0x1b3e96,_0xb51b1){var _0x644c19=a12_0xe46caa;for(var _0x341557 in _0x1b3e96)if(_0x341557!==_0x644c19(0x198)&&!Object[_0x644c19(0x19d)][_0x644c19(0x1a4)][_0x644c19(0x19c)](_0xb51b1,_0x341557))__createBinding(_0xb51b1,_0x1b3e96,_0x341557);};function a12_0x6702(){var _0x34c010=['Repository','ScopeEnum','call','prototype','__exportStar','1500195GuyZnp','10070376eFLaYa','./decorator/VirtualColumn','get','11026lvKGuP','hasOwnProperty','CustomConfiguration','./decorator/ProvideRepository','48833865hwTRCL','./decorator/InjectRepository','Scope','./helper/getDataSourceEntity','95529nlKqRu','4411775SYnIYk','getOwnPropertyDescriptor','getDataSourceEntity','ProvideEntity','ProvideSearch','writable','127eNejIt','InjectRepository','configurable','Search','__esModule','498DXzFnJ','VirtualColumn','@midwayjs/decorator','./configuration','Inject','defineProperty','InjectEntity','./decorator/ProvideEntity','1222112KGZdnv','create','Configuration','Provide','typeorm','ProvideRepository','default','./decorator/ProvideSearch'];a12_0x6702=function(){return _0x34c010;};return a12_0x6702();}Object[a12_0xe46caa(0x1bc)](exports,a12_0xe46caa(0x1b6),{'value':!![]}),exports[a12_0xe46caa(0x19b)]=exports[a12_0xe46caa(0x1a9)]=exports[a12_0xe46caa(0x1bb)]=exports[a12_0xe46caa(0x195)]=exports[a12_0xe46caa(0x194)]=exports[a12_0xe46caa(0x1ae)]=exports[a12_0xe46caa(0x1b5)]=exports[a12_0xe46caa(0x1b0)]=exports[a12_0xe46caa(0x197)]=exports[a12_0xe46caa(0x1af)]=exports['InjectRepository']=exports[a12_0xe46caa(0x1bd)]=exports[a12_0xe46caa(0x1b8)]=exports[a12_0xe46caa(0x19a)]=void 0x0,__exportStar(require(a12_0xe46caa(0x196)),exports);var Repository_1=require('./definition/Repository');Object[a12_0xe46caa(0x1bc)](exports,a12_0xe46caa(0x19a),{'enumerable':!![],'get':function(){var _0x80c034=a12_0xe46caa;return Repository_1[_0x80c034(0x19a)];}});var VirtualColumn_1=require(a12_0xe46caa(0x1a1));Object[a12_0xe46caa(0x1bc)](exports,a12_0xe46caa(0x1b8),{'enumerable':!![],'get':function(){var _0x431d91=a12_0xe46caa;return VirtualColumn_1[_0x431d91(0x1b8)];}});var InjectEntity_1=require('./decorator/InjectEntity');Object['defineProperty'](exports,'InjectEntity',{'enumerable':!![],'get':function(){return InjectEntity_1['InjectEntity'];}});var InjectRepository_1=require(a12_0xe46caa(0x1a8));Object[a12_0xe46caa(0x1bc)](exports,a12_0xe46caa(0x1b3),{'enumerable':!![],'get':function(){var _0x4d3c8e=a12_0xe46caa;return InjectRepository_1[_0x4d3c8e(0x1b3)];}});var ProvideEntity_1=require(a12_0xe46caa(0x1be));Object['defineProperty'](exports,a12_0xe46caa(0x1af),{'enumerable':!![],'get':function(){var _0x6d66e5=a12_0xe46caa;return ProvideEntity_1[_0x6d66e5(0x1af)];}});var ProvideRepository_1=require(a12_0xe46caa(0x1a6));Object['defineProperty'](exports,a12_0xe46caa(0x197),{'enumerable':!![],'get':function(){var _0x1ac9fb=a12_0xe46caa;return ProvideRepository_1[_0x1ac9fb(0x197)];}});var ProvideSearch_1=require(a12_0xe46caa(0x199));Object['defineProperty'](exports,a12_0xe46caa(0x1b0),{'enumerable':!![],'get':function(){var _0xf9c7da=a12_0xe46caa;return ProvideSearch_1[_0xf9c7da(0x1b0)];}}),Object[a12_0xe46caa(0x1bc)](exports,a12_0xe46caa(0x1b5),{'enumerable':!![],'get':function(){var _0x24b7ed=a12_0xe46caa;return ProvideSearch_1[_0x24b7ed(0x1b5)];}});var getDataSourceEntity_1=require(a12_0xe46caa(0x1aa));Object['defineProperty'](exports,a12_0xe46caa(0x1ae),{'enumerable':!![],'get':function(){var _0x1f5f11=a12_0xe46caa;return getDataSourceEntity_1[_0x1f5f11(0x1ae)];}});var configuration_1=require(a12_0xe46caa(0x1ba));Object['defineProperty'](exports,a12_0xe46caa(0x194),{'enumerable':!![],'get':function(){var _0x38fddc=a12_0xe46caa;return configuration_1[_0x38fddc(0x1a5)];}});var decorator_1=require(a12_0xe46caa(0x1b9));Object[a12_0xe46caa(0x1bc)](exports,a12_0xe46caa(0x195),{'enumerable':!![],'get':function(){return decorator_1['Provide'];}}),Object[a12_0xe46caa(0x1bc)](exports,a12_0xe46caa(0x1bb),{'enumerable':!![],'get':function(){return decorator_1['Inject'];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){var _0x1db003=a12_0xe46caa;return decorator_1[_0x1db003(0x1a9)];}}),Object[a12_0xe46caa(0x1bc)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x63b24a=a12_0xe46caa;return decorator_1[_0x63b24a(0x19b)];}});
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_0x2473a5=a13_0x5344;(function(_0x128150,_0x5f33fb){const _0x4c5a1a=a13_0x5344,_0x2826a6=_0x128150();while(!![]){try{const _0x575e20=parseInt(_0x4c5a1a(0x139))/0x1+parseInt(_0x4c5a1a(0x124))/0x2+-parseInt(_0x4c5a1a(0x122))/0x3*(parseInt(_0x4c5a1a(0x134))/0x4)+parseInt(_0x4c5a1a(0x126))/0x5*(parseInt(_0x4c5a1a(0x133))/0x6)+parseInt(_0x4c5a1a(0x135))/0x7+-parseInt(_0x4c5a1a(0x120))/0x8*(parseInt(_0x4c5a1a(0x13a))/0x9)+-parseInt(_0x4c5a1a(0x11f))/0xa*(-parseInt(_0x4c5a1a(0x13b))/0xb);if(_0x575e20===_0x5f33fb)break;else _0x2826a6['push'](_0x2826a6['shift']());}catch(_0x45bb8f){_0x2826a6['push'](_0x2826a6['shift']());}}}(a13_0x3f83,0x740b3));function a13_0x5344(_0x1e9808,_0x2e76f4){const _0x3f8371=a13_0x3f83();return a13_0x5344=function(_0x5344f6,_0x58084a){_0x5344f6=_0x5344f6-0x11f;let _0x278822=_0x3f8371[_0x5344f6];return _0x278822;},a13_0x5344(_0x1e9808,_0x2e76f4);}Object['defineProperty'](exports,a13_0x2473a5(0x123),{'value':!![]}),exports[a13_0x2473a5(0x138)]=exports[a13_0x2473a5(0x127)]=exports[a13_0x2473a5(0x13f)]=exports[a13_0x2473a5(0x12e)]=exports[a13_0x2473a5(0x131)]=exports['ENTIFY_MODULE_SOURCE']=exports[a13_0x2473a5(0x12d)]=exports[a13_0x2473a5(0x12b)]=void 0x0;const typeorm_1=require(a13_0x2473a5(0x129));function a13_0x3f83(){const _0x1d596e=['resolve','ENTIFY_KEY','reject','ENTIFY_MODULE','MODEL_KEY','decorator:anncic-api:typeorm:model','decorator:anncic-api:typeorm:model:search','REPOSITORY_KEY','findOneOrFail','6SCGspT','964hTNKRb','3750866DLBdKV','findOneBy','then','SearchPaginateOption','420227JIDkAO','5386068uRllnb','11rxkNKF','decorator:anncic-api:typeorm:entify','prototype','EntityNotFoundError','MODEL_SEARCH_KEY','findOneByOrFail','decorator:anncic-api:typeorm:entity:virtual:column','6874030tzyFNS','8MTJbUy','decorator:anncic-api:typeorm:entify:module','10155ieuhdG','__esModule','332014tRxDnh','EntityManager','400385pWFEYS','ENTITY_VIRTUAL_COLUMN_KEY','findOne','typeorm'];a13_0x3f83=function(){return _0x1d596e;};return a13_0x3f83();}exports[a13_0x2473a5(0x12b)]=a13_0x2473a5(0x13c),exports[a13_0x2473a5(0x12d)]=a13_0x2473a5(0x121),exports['ENTIFY_MODULE_SOURCE']='decorator:anncic-api:typeorm:entify:module:source',exports['REPOSITORY_KEY']='decorator:anncic-api:typeorm:repository',exports[a13_0x2473a5(0x12e)]=a13_0x2473a5(0x12f),exports[a13_0x2473a5(0x13f)]=a13_0x2473a5(0x130),exports[a13_0x2473a5(0x127)]=a13_0x2473a5(0x141);class SearchPaginateOption{}exports[a13_0x2473a5(0x138)]=SearchPaginateOption,typeorm_1[a13_0x2473a5(0x125)][a13_0x2473a5(0x13d)][a13_0x2473a5(0x132)]=async function(_0x2551ff,_0x159382){const _0x153875=a13_0x2473a5;return this[_0x153875(0x128)](_0x2551ff,_0x159382)[_0x153875(0x137)](_0xeb082f=>{const _0x5d1968=_0x153875;if(_0xeb082f===null||_0xeb082f===undefined)return Promise[_0x5d1968(0x12c)](new typeorm_1[(_0x5d1968(0x13e))](_0x2551ff,_0x159382));return Promise['resolve'](_0xeb082f);});},typeorm_1[a13_0x2473a5(0x125)][a13_0x2473a5(0x13d)][a13_0x2473a5(0x140)]=async function(_0x28ab78,_0x2180fe){const _0x128181=a13_0x2473a5;return this[_0x128181(0x136)](_0x28ab78,_0x2180fe)['then'](_0x16fca3=>{const _0x3fb3a6=_0x128181;if(_0x16fca3===null||_0x16fca3===undefined)return Promise[_0x3fb3a6(0x12c)](new typeorm_1['EntityNotFoundError'](_0x28ab78,_0x2180fe));return Promise[_0x3fb3a6(0x12a)](_0x16fca3);});};
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.11",
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": "17c114c579d7fe94caf96b0d4c89892c4813c11f"
25
+ "gitHead": "5a1add10415cd9a465caa2a1f8fb4d1ea36ce6f2"
26
26
  }