@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/configuration.js +1 -1
- package/dist/decorator/InjectEntity.js +1 -1
- package/dist/decorator/InjectRepository.js +1 -1
- package/dist/decorator/ModelSearch.js +1 -1
- package/dist/decorator/ProvideEntity.js +1 -1
- package/dist/decorator/ProvideRepository.js +1 -1
- package/dist/decorator/ProvideSearch.js +1 -1
- package/dist/decorator/VirtualColumn.js +1 -1
- package/dist/definition/Repository.d.ts +2 -4
- package/dist/definition/Repository.js +1 -1
- package/dist/definitions/Repository.js +1 -1
- package/dist/helper/getDataSourceEntity.js +1 -1
- package/dist/helpers/getDataSourceEntity.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/interface.d.ts +4 -2
- package/dist/interface.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
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)];}});
|
package/dist/interface.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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.
|
|
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": "
|
|
25
|
+
"gitHead": "5a1add10415cd9a465caa2a1f8fb4d1ea36ce6f2"
|
|
26
26
|
}
|