UNPKG

lambdaorm

Version:
1 lines 4.54 kB
'use strict';const a99z=a99y;(function(s,y){const r=a99y,g=s();while(!![]){try{const x=parseInt(r(0x1ca))/0x1+parseInt(r(0x1a0))/0x2+-parseInt(r(0x1c9))/0x3*(parseInt(r(0x1b4))/0x4)+-parseInt(r(0x1c7))/0x5+parseInt(r(0x1b2))/0x6*(parseInt(r(0x1b8))/0x7)+parseInt(r(0x1b5))/0x8*(-parseInt(r(0x1c6))/0x9)+-parseInt(r(0x1b1))/0xa;if(x===y)break;else g['push'](g['shift']());}catch(m){g['push'](g['shift']());}}}(a99s,0x862ef));var __awaiter=this&&this[a99z(0x1a2)]||function(s,y,P,g){function x(m){return m instanceof P?m:new P(function(w){w(m);});}return new(P||(P=Promise))(function(m,w){const p=a99y;function t(c){const d=a99y;try{a(g[d(0x1bd)](c));}catch(k){w(k);}}function v(c){const i=a99y;try{a(g[i(0x1be)](c));}catch(k){w(k);}}function a(c){const o=a99y;c['done']?m(c[o(0x1b6)]):x(c['value'])[o(0x1b3)](t,v);}a((g=g[p(0x1ae)](s,y||[]))[p(0x1bd)]());});};Object[a99z(0x1ce)](exports,a99z(0x1bb),{'value':!![]}),exports['Repository']=void 0x0;const __1=require(a99z(0x1a6)),domain_1=require('../domain'),lambdaorm_base_1=require(a99z(0x1c8));class Repository{constructor(s,y,g=__1[a99z(0x1a9)]){const f=a99z;this['name']=s,this[f(0x1c5)]=y,this[f(0x1a9)]=g;}[a99z(0x19f)](s,y){const q=a99z;return this[q(0x1b0)](this[q(0x1ad)]+'.upsert()',undefined,y,s);}[a99z(0x1cb)](s,y){const j=a99z;return this['_execute'](this[j(0x1ad)]+j(0x1a7),undefined,y,s);}['bulkMerge'](s,y){const b=a99z;return this[b(0x1b0)](this['name']+b(0x1a1),undefined,y,s);}[a99z(0x1b0)](s,y,g){return __awaiter(this,arguments,void 0x0,function*(x,m,w,t={}){const l=a99y;let v=''+x;return m!==undefined&&(v=v+l(0x1ab)+m[l(0x1aa)]()+')'),w!==undefined&&(v=v+l(0x1cc)+w['toString']()+')'),this[l(0x1a9)][l(0x1b7)](v,t,{'stage':this[l(0x1c5)]});});}[a99z(0x1b7)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const u=a99y;return this[u(0x1a9)]['execute'](''+this[u(0x1ad)]+s,y,{'stage':this[u(0x1c5)]});});}[a99z(0x1ac)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const e=a99y;return this[e(0x1b0)](this[e(0x1ad)]+e(0x1bc),undefined,y,s);});}['bulkInsert'](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const n=a99y;return this[n(0x1b0)](this[n(0x1ad)]+'.bulkInsert()',undefined,y,s);});}['update'](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){return this['_execute'](this['name']+'.update()',undefined,y,s);});}[a99z(0x1cd)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){const h=a99y;return this['_execute'](this[h(0x1ad)]+h(0x1c2)+y['toString']()+')',g,x,s);});}[a99z(0x1c3)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s0=a99y;return this[s0(0x1b0)](this[s0(0x1ad)]+'.merge()',undefined,y,s);});}[a99z(0x1c4)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s1=a99y;return this[s1(0x1b0)](this[s1(0x1ad)]+'.delete()',undefined,y,s);});}[a99z(0x1a8)](s,y,g){return __awaiter(this,void 0x0,void 0x0,function*(){const s2=a99y;return this[s2(0x1b0)](this[s2(0x1ad)]+s2(0x1bf),y,g,s);});}[a99z(0x1c0)](s,y,g){return __awaiter(this,void 0x0,void 0x0,function*(){const s3=a99y;return this[s3(0x1b0)](''+this[s3(0x1ad)],y,g,s);});}[a99z(0x1af)](s,y,g){return __awaiter(this,void 0x0,void 0x0,function*(){const s4=a99y;return this[s4(0x1b0)](this['name']+s4(0x1a4),y,g,s);});}[a99z(0x1d0)](s,y,g){return __awaiter(this,void 0x0,void 0x0,function*(){const s5=a99y,x=yield this[s5(0x1b0)](this[s5(0x1ad)]+s5(0x1cf),y,g,s);return x[s5(0x1a5)]>=0x1?x[0x0]:null;});}[a99z(0x1a3)](s,y,g){return __awaiter(this,void 0x0,void 0x0,function*(){const s6=a99y,x=yield this[s6(0x1b0)](this[s6(0x1ad)]+'.last()',y,g,s);return x[s6(0x1a5)]>=0x1?x[0x0]:null;});}[a99z(0x1c1)](){const s7=a99z;return new lambdaorm_base_1[(s7(0x1b9))](new domain_1['QueryActionsImpl'](this[s7(0x1ad)],this[s7(0x1a9)],this[s7(0x1c5)]),'');}}function a99y(s,y){const O=a99s();return a99y=function(D,g){D=D-0x19f;let M=O[D];return M;},a99y(s,y);}exports[a99z(0x1ba)]=Repository;function a99s(){const s8=['.bulkMerge()','__awaiter','last','.distinct()','length','../../','.bulkDelete()','deleteAll','orm','toString','.filter(','insert','name','apply','distinct','_execute','954340IOJHCM','1266648XbkEqe','then','136RotAed','416KkWQiT','value','execute','28rpfNZw','Queryable','Repository','__esModule','.insert()','next','throw','.deleteAll()','list','query','.updateAll(','merge','delete','stage','162855adudIV','101740GTGeSf','lambdaorm-base','35898BrIfyQ','665169WIqsEY','bulkDelete','.include(','updateAll','defineProperty','.first()','first','upsert','1007160yFhWru'];a99s=function(){return s8;};return a99s();}