@lovrabet/dataset-mcp-server 1.2.1-beta.0 → 1.2.2

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.
@@ -1 +1 @@
1
- function a0_0x58c5(_0x4e9df9,_0x118a18){const _0x938f1=a0_0x938f();return a0_0x58c5=function(_0x58c560,_0x3cd6fc){_0x58c560=_0x58c560-0x133;let _0x2cd0e2=_0x938f1[_0x58c560];return _0x2cd0e2;},a0_0x58c5(_0x4e9df9,_0x118a18);}const a0_0x57b24a=a0_0x58c5;(function(_0x219990,_0x5651ba){const _0x3c0af4=a0_0x58c5,_0x301526=_0x219990();while(!![]){try{const _0x2a597f=-parseInt(_0x3c0af4(0x162))/0x1+parseInt(_0x3c0af4(0x18e))/0x2+-parseInt(_0x3c0af4(0x181))/0x3+parseInt(_0x3c0af4(0x14f))/0x4*(-parseInt(_0x3c0af4(0x167))/0x5)+parseInt(_0x3c0af4(0x17b))/0x6+parseInt(_0x3c0af4(0x142))/0x7*(parseInt(_0x3c0af4(0x144))/0x8)+-parseInt(_0x3c0af4(0x15b))/0x9;if(_0x2a597f===_0x5651ba)break;else _0x301526['push'](_0x301526['shift']());}catch(_0x3576f1){_0x301526['push'](_0x301526['shift']());}}}(a0_0x938f,0xd95ee));import{DatasetList,DrivenDataDetailPlus,formatDbType}from'@lovrabet/dsparser';export class DatasetAnalyzer{[a0_0x57b24a(0x190)](_0x18800e){const _0x476378=a0_0x57b24a,_0x1a1594=_0x18800e[_0x476378(0x150)]?.[_0x476378(0x147)]||_0x18800e[_0x476378(0x147)]||_0x18800e,_0x32cccc=new DatasetList(_0x1a1594);return{'total':_0x32cccc[_0x476378(0x16e)](),'datasets':_0x32cccc[_0x476378(0x14a)]()[_0x476378(0x14c)](_0x557f3f=>this[_0x476378(0x141)](_0x557f3f))};}[a0_0x57b24a(0x141)](_0x643c6b){const _0x4d9ae4=a0_0x57b24a;return{'id':_0x643c6b['id']||0x0,'name':_0x643c6b['name']||'','code':_0x643c6b[_0x4d9ae4(0x153)]||'','tableName':_0x643c6b[_0x4d9ae4(0x166)]?.()||_0x643c6b['tableName']||'','source':_0x643c6b[_0x4d9ae4(0x14d)]||'','description':_0x643c6b[_0x4d9ae4(0x15f)]||'','isVirtual':_0x643c6b[_0x4d9ae4(0x183)]?.()||![]};}[a0_0x57b24a(0x193)](_0x4e9897){const _0x38a819=a0_0x57b24a,_0xcae9=_0x4e9897[_0x38a819(0x150)]||_0x4e9897,_0x232e61=new DrivenDataDetailPlus(_0xcae9),_0x5b898f={'name':_0x232e61[_0x38a819(0x180)],'code':_0x232e61[_0x38a819(0x153)],'tableName':_0x232e61[_0x38a819(0x166)](),'tableKey':_0x232e61[_0x38a819(0x172)](),'datasetSDKKey':_0x232e61[_0x38a819(0x160)](),'modelAlias':_0x232e61[_0x38a819(0x145)]()},_0x5a7821=_0x232e61['getFieldList'](),_0x5ac14b=_0x5a7821[_0x38a819(0x15c)]()[_0x38a819(0x14c)](_0x32c840=>{const _0xacf400=_0x38a819,_0x314dc6=_0x32c840['extend'],_0x267fbc=_0x32c840['raw'],_0xbaffc8={'name':_0x32c840['name'],'type':_0x32c840['type'],'required':_0x32c840[_0xacf400(0x137)](),'primaryKey':_0x32c840['isPrimaryKey'](),'description':_0x32c840[_0xacf400(0x15f)]||'','autoIncrement':Boolean(_0x314dc6[_0xacf400(0x14b)]),'createTime':Boolean(_0x314dc6['createTime']),'updateTime':Boolean(_0x314dc6['updateTime']),'dbType':typeof _0x267fbc[_0xacf400(0x188)]===_0xacf400(0x135)?_0x267fbc[_0xacf400(0x188)]:undefined,'dbTypeLen':typeof _0x267fbc[_0xacf400(0x156)]===_0xacf400(0x139)?_0x267fbc[_0xacf400(0x156)]:undefined};if(_0x32c840[_0xacf400(0x17d)]()){const _0x4fb241=_0x32c840[_0xacf400(0x169)]();if(_0x4fb241){_0xbaffc8[_0xacf400(0x17d)]=!![],_0xbaffc8[_0xacf400(0x164)]=_0x4fb241[_0xacf400(0x192)];if(_0x4fb241[_0xacf400(0x163)]&&_0x4fb241['options']['length']>0x0)_0xbaffc8[_0xacf400(0x165)]=_0x4fb241[_0xacf400(0x163)];else _0x4fb241['selectItemsSource']&&(_0xbaffc8[_0xacf400(0x198)]=_0x4fb241[_0xacf400(0x187)]);}}return _0xbaffc8;}),_0xb9fddb=_0x232e61['getEnabledOperationAnalyses']()[_0x38a819(0x14c)](_0x4eaa11=>{const _0x8fd3df=_0x38a819,_0x151168={'name':_0x4eaa11['name'],'displayName':_0x4eaa11[_0x8fd3df(0x16d)],'type':_0x4eaa11[_0x8fd3df(0x186)],'method':_0x4eaa11[_0x8fd3df(0x18b)],'path':_0x4eaa11[_0x8fd3df(0x14e)],'requestFields':_0x4eaa11['requestFields'],'requestFieldsCount':_0x4eaa11[_0x8fd3df(0x154)][_0x8fd3df(0x16b)],'requestExample':_0x4eaa11[_0x8fd3df(0x18a)],'responseExample':_0x4eaa11[_0x8fd3df(0x146)],'enabled':_0x4eaa11['enabled'],'fullUrl':_0x4eaa11[_0x8fd3df(0x18c)]};return _0x151168;});return{'basic':_0x5b898f,'fields':_0x5ac14b,'operations':_0xb9fddb,'supportsCRUD':_0x232e61[_0x38a819(0x195)](),'fieldCount':_0x232e61[_0x38a819(0x161)](),'operationCount':_0x232e61[_0x38a819(0x17c)](),'enabledOperationCount':_0xb9fddb[_0x38a819(0x16b)]};}[a0_0x57b24a(0x13a)](_0x31c853,_0x9de2dc){const _0x209f06=a0_0x57b24a,_0x59fc57=_0x31c853['data']||_0x31c853,_0x3c86b5=new DrivenDataDetailPlus(_0x59fc57),_0x1e28ba=_0x3c86b5[_0x209f06(0x191)](_0x9de2dc);if(!_0x1e28ba)return null;return{'name':_0x1e28ba[_0x209f06(0x180)],'displayName':_0x1e28ba[_0x209f06(0x16d)],'type':_0x1e28ba[_0x209f06(0x186)],'method':_0x1e28ba['method'],'path':_0x1e28ba[_0x209f06(0x14e)],'requestFields':_0x1e28ba[_0x209f06(0x154)],'requestFieldsCount':_0x1e28ba['requestFields']['length'],'requestExample':_0x1e28ba[_0x209f06(0x18a)],'responseExample':_0x1e28ba['responseExample'],'enabled':_0x1e28ba[_0x209f06(0x182)],'fullUrl':_0x1e28ba[_0x209f06(0x18c)]};}[a0_0x57b24a(0x171)](_0x29ce99,_0x1de394,_0x2b1272,_0x57afac=a0_0x57b24a(0x170)){const _0x5d762d=a0_0x57b24a,_0x872405=_0x29ce99[_0x5d762d(0x150)]||_0x29ce99,_0x40826e=new DrivenDataDetailPlus(_0x872405),_0x275dd2=_0x40826e[_0x5d762d(0x151)](_0x1de394);if(!_0x275dd2)return null;const _0x272b55=_0x40826e[_0x5d762d(0x172)](),_0x509ad2=_0x40826e[_0x5d762d(0x166)](),_0x3dbce3=this[_0x5d762d(0x13e)](_0x509ad2),_0x40214a=_0x40826e[_0x5d762d(0x191)](_0x1de394),_0x531827=_0x40826e[_0x5d762d(0x175)](_0x1de394,_0x2b1272);return{'code':_0x275dd2['sdkCall'][_0x5d762d(0x16f)],'sdkCallInfo':{'modelName':_0x3dbce3,'tableName':_0x509ad2,'tableKey':_0x272b55,'datasetCode':_0x40826e[_0x5d762d(0x153)],'operationName':_0x1de394},'requestExample':_0x40214a?.['requestExample'],'responseExample':_0x40214a?.[_0x5d762d(0x146)],'sdkInitCode':_0x40826e['generateSDKInitCode'](_0x272b55),'usageExample':_0x275dd2[_0x5d762d(0x152)],'fullExample':_0x531827||undefined,'aliasExplanation':_0x40826e['generateAliasExplanation']()};}[a0_0x57b24a(0x178)](_0x28fa62){const _0x86efee=a0_0x57b24a,_0x175ee3=_0x28fa62[_0x86efee(0x150)]||_0x28fa62,_0x319d18=new DrivenDataDetailPlus(_0x175ee3),_0x4d3f98=_0x319d18[_0x86efee(0x17a)]()['map'](_0x4355d3=>({'name':_0x4355d3['name'],'displayName':_0x4355d3[_0x86efee(0x16d)],'description':_0x4355d3[_0x86efee(0x16d)]+'\x20operation\x20for\x20'+_0x319d18['name'],'method':_0x4355d3[_0x86efee(0x18b)],'path':_0x4355d3[_0x86efee(0x14e)],'requestParams':_0x4355d3[_0x86efee(0x154)],'requestExample':JSON['stringify'](_0x4355d3[_0x86efee(0x18a)],null,0x2),'responseExample':JSON[_0x86efee(0x189)](_0x4355d3['responseExample'],null,0x2)}));return{'datasetName':_0x319d18[_0x86efee(0x180)],'tableName':_0x319d18['getTableName'](),'operations':_0x4d3f98};}[a0_0x57b24a(0x173)](_0x3fdb6d,_0x251fac){const _0x89f66e=a0_0x57b24a,_0x20914f=new DatasetList(_0x3fdb6d),_0x166b9c=_0x251fac[_0x89f66e(0x140)]();return _0x20914f['toArray']()[_0x89f66e(0x13c)](_0x2b214d=>{const _0x183b59=_0x89f66e,_0x495294=(_0x2b214d[_0x183b59(0x180)]||'')[_0x183b59(0x140)]()[_0x183b59(0x149)](_0x166b9c),_0x362d77=(_0x2b214d[_0x183b59(0x166)]?.()||_0x2b214d[_0x183b59(0x15d)]||'')[_0x183b59(0x140)]()['includes'](_0x166b9c),_0x4884f9=(_0x2b214d[_0x183b59(0x153)]||'')[_0x183b59(0x140)]()[_0x183b59(0x149)](_0x166b9c),_0x131ce2=(_0x2b214d[_0x183b59(0x15f)]||'')[_0x183b59(0x140)]()[_0x183b59(0x149)](_0x166b9c);return _0x495294||_0x362d77||_0x4884f9||_0x131ce2;})[_0x89f66e(0x14c)](_0x35d205=>this[_0x89f66e(0x141)](_0x35d205));}[a0_0x57b24a(0x136)](_0x3c81fe){const _0x580b67=a0_0x57b24a,_0x35144b=_0x3c81fe[_0x580b67(0x150)]||_0x3c81fe,_0x487866=new DrivenDataDetailPlus(_0x35144b);let _0x38b9b8='#\x20'+_0x487866[_0x580b67(0x180)]+'\x0a\x0a';_0x38b9b8+=_0x580b67(0x197)+_0x487866['datasetCode']+'\x0a',_0x38b9b8+=_0x580b67(0x17f)+_0x487866[_0x580b67(0x166)]()+'\x0a',_0x38b9b8+='**Table\x20Key:**\x20'+_0x487866[_0x580b67(0x172)]()+'\x0a\x0a',_0x38b9b8+='##\x20Fields\x0a\x0a';const _0x5d2851=_0x487866['getFieldList']();_0x5d2851[_0x580b67(0x16b)]>0x0&&(_0x38b9b8+='|\x20Field\x20Name\x20|\x20Code\x20|\x20DB\x20Type\x20|\x20UI\x20Type\x20|\x20Required\x20|\x20Primary\x20Key\x20|\x20Enum\x20Values\x20|\x20Description\x20|\x0a',_0x38b9b8+=_0x580b67(0x18f),_0x5d2851[_0x580b67(0x15c)]()[_0x580b67(0x177)](_0x33a037=>{const _0x391d61=_0x580b67,_0x4226a6=_0x33a037[_0x391d61(0x13f)],_0x3f0b1d=formatDbType(typeof _0x4226a6[_0x391d61(0x188)]===_0x391d61(0x135)?_0x4226a6[_0x391d61(0x188)]:undefined,typeof _0x4226a6[_0x391d61(0x156)]==='number'?_0x4226a6['dbTypeLen']:undefined);let _0x329be3='';if(_0x33a037[_0x391d61(0x17d)]()){const _0x5e9928=_0x33a037[_0x391d61(0x169)]();if(_0x5e9928&&_0x5e9928[_0x391d61(0x192)][_0x391d61(0x16b)]>0x0){const _0x3e08a6=_0x5e9928['values'][_0x391d61(0x16c)](0x0,0x5);_0x329be3=_0x3e08a6[_0x391d61(0x18d)](',\x20'),_0x5e9928['values']['length']>0x5&&(_0x329be3+='\x20...\x20('+_0x5e9928[_0x391d61(0x192)][_0x391d61(0x16b)]+_0x391d61(0x17e));}}_0x38b9b8+='|\x20'+_0x33a037[_0x391d61(0x180)]+_0x391d61(0x196)+_0x33a037['code']+'\x20|\x20'+_0x3f0b1d+_0x391d61(0x196)+_0x33a037[_0x391d61(0x186)]+'\x20|\x20'+(_0x33a037[_0x391d61(0x137)]()?'✅':'')+_0x391d61(0x196)+(_0x33a037[_0x391d61(0x199)]()?'🔑':'')+'\x20|\x20'+_0x329be3+'\x20|\x20'+(_0x33a037['description']||'')+'\x20|\x0a';}),_0x38b9b8+='\x0a');_0x38b9b8+=_0x580b67(0x184);const _0x22f0bd=_0x487866['getEnabledOperationAnalyses']();_0x22f0bd[_0x580b67(0x177)](_0xb438fe=>{const _0x4a4cdb=_0x580b67;_0x38b9b8+=_0x4a4cdb(0x159)+_0xb438fe[_0x4a4cdb(0x16d)]+'\x20('+_0xb438fe[_0x4a4cdb(0x180)]+_0x4a4cdb(0x143),_0x38b9b8+=_0x4a4cdb(0x15e)+_0xb438fe[_0x4a4cdb(0x18b)]+'\x0a',_0x38b9b8+=_0x4a4cdb(0x176)+_0xb438fe['path']+'\x0a',_0xb438fe[_0x4a4cdb(0x18c)]&&(_0x38b9b8+='-\x20**Full\x20URL:**\x20'+_0xb438fe[_0x4a4cdb(0x18c)]+'\x0a'),_0xb438fe[_0x4a4cdb(0x154)]&&_0xb438fe['requestFields'][_0x4a4cdb(0x16b)]>0x0&&(_0x38b9b8+=_0x4a4cdb(0x15a)+_0xb438fe[_0x4a4cdb(0x154)][_0x4a4cdb(0x18d)](',\x20')+'\x0a'),_0xb438fe[_0x4a4cdb(0x18a)]&&(_0x38b9b8+=_0x4a4cdb(0x174)+JSON[_0x4a4cdb(0x189)](_0xb438fe['requestExample'],null,0x2)+'\x0a```\x0a'),_0xb438fe[_0x4a4cdb(0x146)]&&(_0x38b9b8+=_0x4a4cdb(0x148)+JSON[_0x4a4cdb(0x189)](_0xb438fe['responseExample'],null,0x2)+_0x4a4cdb(0x134)),_0x38b9b8+='\x0a';});const _0x2cceb4=_0x487866[_0x580b67(0x172)](),_0xedccae=_0x487866['generateSDKInitCode'](_0x2cceb4);return _0xedccae&&(_0x38b9b8+=_0x580b67(0x16a),_0x38b9b8+=_0x580b67(0x194),_0x38b9b8+=_0xedccae,_0x38b9b8+=_0x580b67(0x13d)),_0x38b9b8;}['compareDatasets'](_0x4bf199,_0x5978f2){const _0x4088d6=a0_0x57b24a,_0x2b9555=_0x4bf199[_0x4088d6(0x150)]||_0x4bf199,_0x24bcd0=_0x5978f2[_0x4088d6(0x150)]||_0x5978f2,_0x5643be=new DrivenDataDetailPlus(_0x2b9555),_0x4114fd=new DrivenDataDetailPlus(_0x24bcd0),_0x37a67a=new Set(_0x5643be[_0x4088d6(0x138)]()[_0x4088d6(0x15c)]()[_0x4088d6(0x14c)](_0x12d3ba=>_0x12d3ba[_0x4088d6(0x180)])),_0xe374c7=new Set(_0x4114fd['getFieldList']()[_0x4088d6(0x15c)]()[_0x4088d6(0x14c)](_0x4e8c96=>_0x4e8c96['name'])),_0x316f22=new Set(_0x5643be[_0x4088d6(0x17a)]()[_0x4088d6(0x14c)](_0x358800=>_0x358800['name'])),_0xd15b3a=new Set(_0x4114fd[_0x4088d6(0x17a)]()[_0x4088d6(0x14c)](_0x42e17d=>_0x42e17d['name'])),_0x3a615e={'fields':{'added':Array[_0x4088d6(0x133)](_0xe374c7)[_0x4088d6(0x13c)](_0xf9f6e=>!_0x37a67a[_0x4088d6(0x168)](_0xf9f6e)),'removed':Array['from'](_0x37a67a)[_0x4088d6(0x13c)](_0x242507=>!_0xe374c7[_0x4088d6(0x168)](_0x242507)),'modified':[]},'operations':{'added':Array[_0x4088d6(0x133)](_0xd15b3a)[_0x4088d6(0x13c)](_0x54276e=>!_0x316f22[_0x4088d6(0x168)](_0x54276e)),'removed':Array[_0x4088d6(0x133)](_0x316f22)['filter'](_0x205ec4=>!_0xd15b3a['has'](_0x205ec4))}},_0x5e3ae6='Fields:\x20+'+_0x3a615e[_0x4088d6(0x13b)][_0x4088d6(0x157)][_0x4088d6(0x16b)]+'/-'+_0x3a615e['fields'][_0x4088d6(0x185)][_0x4088d6(0x16b)]+',\x20'+('Operations:\x20+'+_0x3a615e['operations'][_0x4088d6(0x157)][_0x4088d6(0x16b)]+'/-'+_0x3a615e[_0x4088d6(0x158)][_0x4088d6(0x185)][_0x4088d6(0x16b)]);return{'differences':_0x3a615e,'summary':_0x5e3ae6};}[a0_0x57b24a(0x13e)](_0x388e4b){const _0x340404=a0_0x57b24a;return _0x388e4b['replace'](/[-_\s]+(.)?/g,(_0xaad3ab,_0xbd3c8e)=>_0xbd3c8e?_0xbd3c8e[_0x340404(0x155)]():'')[_0x340404(0x179)](/^(.)/,(_0x4e2e17,_0x44246f)=>_0x44246f['toUpperCase']());}}function a0_0x938f(){const _0x165511=['tableData','\x0a**Response\x20Example:**\x0a```json\x0a','includes','toArray','autoIncrement','map','source','path','620yLHIjL','data','getOperationDocMeta','usageExample','datasetCode','requestFields','toUpperCase','dbTypeLen','added','operations','###\x20','-\x20**Request\x20Fields:**\x20','3143106tQzoDF','all','tableName','-\x20**Method:**\x20','description','getDatasetSDKKey','getFieldCount','364658bdHqFG','options','enumValues','enumOptions','getTableName','24065lOIUCF','has','getEnumMeta','##\x20SDK\x20Usage\x0a\x0a','length','slice','displayName','getCount','code','online','generateSDKCode','getTableKey','searchDatasets','\x0a**Request\x20Example:**\x0a```json\x0a','generateFullSDKExample','-\x20**Path:**\x20','forEach','generateApiDoc','replace','getEnabledOperationAnalyses','18222DqRZrT','getOperationCount','isEnum','\x20total)','**Table\x20Name:**\x20','name','1578360muUqCY','enabled','isVirtualTable','##\x20Operations\x0a\x0a','removed','type','selectItemsSource','dbType','stringify','requestExample','method','fullUrl','join','2825912qampRW','|------------|------|---------|---------|----------|-------------|-------------|-------------|\x0a','analyzeDatasetList','getOperationAnalysis','values','analyzeDatasetDetail','```typescript\x0a','supportsCRUD','\x20|\x20','**Dataset\x20Code:**\x20','enumSource','isPrimaryKey','from','\x0a```\x0a','string','generateMarkdownDoc','isRequired','getFieldList','number','getOperationDetail','fields','filter','```\x0a','toPascalCase','raw','toLowerCase','analyzeDatasetItem','2632WXrMFf',')\x0a\x0a','31072BPoZtr','getModelAlias','responseExample'];a0_0x938f=function(){return _0x165511;};return a0_0x938f();}
1
+ const a0_0x305d23=a0_0x5325;(function(_0x3b2c55,_0x20f739){const _0xede043=a0_0x5325,_0x5f278b=_0x3b2c55();while(!![]){try{const _0x476354=-parseInt(_0xede043(0x127))/0x1+parseInt(_0xede043(0xe8))/0x2*(-parseInt(_0xede043(0x139))/0x3)+-parseInt(_0xede043(0x100))/0x4+-parseInt(_0xede043(0x13a))/0x5*(parseInt(_0xede043(0x12b))/0x6)+-parseInt(_0xede043(0xf4))/0x7*(parseInt(_0xede043(0x117))/0x8)+parseInt(_0xede043(0xf6))/0x9+-parseInt(_0xede043(0xf9))/0xa*(-parseInt(_0xede043(0x108))/0xb);if(_0x476354===_0x20f739)break;else _0x5f278b['push'](_0x5f278b['shift']());}catch(_0x55b670){_0x5f278b['push'](_0x5f278b['shift']());}}}(a0_0x1c97,0x70230));function a0_0x5325(_0xcf53c4,_0x1a782b){_0xcf53c4=_0xcf53c4-0xe3;const _0x1c97a0=a0_0x1c97();let _0x5325c6=_0x1c97a0[_0xcf53c4];return _0x5325c6;}function a0_0x1c97(){const _0x114b33=['code','isPrimaryKey','added','fullUrl','toLowerCase','searchDatasets','generateAliasExplanation','861UKYTIn','-\x20**Method:**\x20','3262032QrTkZo','getEnabledOperationAnalyses','requestExample','10146530HeUPOW','slice','values','toUpperCase','stringify','updateTime','analyzeDatasetDetail','2014644ApbBCz','getOperationAnalysis','###\x20','getDatasetSDKKey','has','usageExample','\x0a```\x0a','options','33gkhtYR','\x0a**Request\x20Example:**\x0a```json\x0a','length','##\x20Operations\x0a\x0a','join','**Dataset\x20Code:**\x20','removed','requestFields','name','dbTypeLen','generateFullSDKExample','from','filter','-\x20**Request\x20Fields:**\x20','data','30904Uamjhs','##\x20Fields\x0a\x0a','analyzeDatasetItem','createTime','displayName','\x20operation\x20for\x20','enabled','\x20...\x20(','**Table\x20Key:**\x20','getOperationDetail','\x0a**Response\x20Example:**\x0a```json\x0a','string','supportsCRUD','getCount','replace','getTableName','230033TXrlkN','autoIncrement','operations','description','5224290GJJZUw','responseExample','all','isEnum','compareDatasets','number','|------------|------|---------|---------|----------|-------------|-------------|-------------|\x0a','|\x20Field\x20Name\x20|\x20Code\x20|\x20DB\x20Type\x20|\x20UI\x20Type\x20|\x20Required\x20|\x20Primary\x20Key\x20|\x20Enum\x20Values\x20|\x20Description\x20|\x0a','raw','map','forEach','generateSDKInitCode','datasetCode','getTableKey','207mrnfDu','5VzNQRt','getFieldCount','includes','enumSource','toPascalCase','generateSDKCode','path','method','##\x20SDK\x20Usage\x0a\x0a','enumOptions',')\x0a\x0a','getOperationDocMeta','isRequired','getFieldList','Fields:\x20+','getModelAlias','tableData','```\x0a','\x20|\x20','getEnumMeta','dbType','fields','selectItemsSource','\x20|\x0a','getOperationCount','tableName','25146AkJyLY','type','sdkCall','isVirtualTable','toArray'];a0_0x1c97=function(){return _0x114b33;};return a0_0x1c97();}import{DatasetList,DrivenDataDetailPlus,formatDbType}from'@lovrabet/dsparser';export class DatasetAnalyzer{['analyzeDatasetList'](_0x26f966){const _0x27ae93=a0_0x5325,_0x3f5b07=_0x26f966[_0x27ae93(0x116)]?.[_0x27ae93(0x14a)]||_0x26f966[_0x27ae93(0x14a)]||_0x26f966,_0x4cb221=new DatasetList(_0x3f5b07);return{'total':_0x4cb221[_0x27ae93(0x124)](),'datasets':_0x4cb221[_0x27ae93(0xec)]()[_0x27ae93(0x134)](_0x2a9375=>this[_0x27ae93(0x119)](_0x2a9375))};}[a0_0x305d23(0x119)](_0x10fe6f){const _0x5a0e57=a0_0x305d23;return{'id':_0x10fe6f['id']||0x0,'name':_0x10fe6f[_0x5a0e57(0x110)]||'','code':_0x10fe6f['datasetCode']||'','tableName':_0x10fe6f[_0x5a0e57(0x126)]?.()||_0x10fe6f[_0x5a0e57(0xe7)]||'','source':_0x10fe6f['source']||'','description':_0x10fe6f[_0x5a0e57(0x12a)]||'','isVirtual':_0x10fe6f[_0x5a0e57(0xeb)]?.()||![]};}[a0_0x305d23(0xff)](_0xe82c55){const _0xed882b=a0_0x305d23,_0x377e6a=_0xe82c55['data']||_0xe82c55,_0x25da6d=new DrivenDataDetailPlus(_0x377e6a),_0x471304={'name':_0x25da6d[_0xed882b(0x110)],'code':_0x25da6d[_0xed882b(0x137)],'tableName':_0x25da6d[_0xed882b(0x126)](),'tableKey':_0x25da6d[_0xed882b(0x138)](),'datasetSDKKey':_0x25da6d[_0xed882b(0x103)](),'modelAlias':_0x25da6d[_0xed882b(0x149)]()},_0x2954da=_0x25da6d[_0xed882b(0x147)](),_0x4aa3cf=_0x2954da[_0xed882b(0x12d)]()[_0xed882b(0x134)](_0x5c28d4=>{const _0x3cbec6=_0xed882b,_0x1b4a57=_0x5c28d4['extend'],_0x18c50f=_0x5c28d4[_0x3cbec6(0x133)],_0x2e73d1={'name':_0x5c28d4[_0x3cbec6(0x110)],'type':_0x5c28d4[_0x3cbec6(0xe9)],'required':_0x5c28d4['isRequired'](),'primaryKey':_0x5c28d4['isPrimaryKey'](),'description':_0x5c28d4['description']||'','autoIncrement':Boolean(_0x1b4a57[_0x3cbec6(0x128)]),'createTime':Boolean(_0x1b4a57[_0x3cbec6(0x11a)]),'updateTime':Boolean(_0x1b4a57[_0x3cbec6(0xfe)]),'dbType':typeof _0x18c50f[_0x3cbec6(0x14e)]===_0x3cbec6(0x122)?_0x18c50f[_0x3cbec6(0x14e)]:undefined,'dbTypeLen':typeof _0x18c50f[_0x3cbec6(0x111)]==='number'?_0x18c50f[_0x3cbec6(0x111)]:undefined};if(_0x5c28d4[_0x3cbec6(0x12e)]()){const _0x5daf93=_0x5c28d4[_0x3cbec6(0x14d)]();if(_0x5daf93){_0x2e73d1[_0x3cbec6(0x12e)]=!![],_0x2e73d1['enumValues']=_0x5daf93[_0x3cbec6(0xfb)];if(_0x5daf93[_0x3cbec6(0x107)]&&_0x5daf93[_0x3cbec6(0x107)]['length']>0x0)_0x2e73d1[_0x3cbec6(0x143)]=_0x5daf93[_0x3cbec6(0x107)];else _0x5daf93[_0x3cbec6(0xe4)]&&(_0x2e73d1[_0x3cbec6(0x13d)]=_0x5daf93[_0x3cbec6(0xe4)]);}}return _0x2e73d1;}),_0x95238c=_0x25da6d[_0xed882b(0xf7)]()['map'](_0x363beb=>{const _0x5343b2=_0xed882b,_0x12d93e={'name':_0x363beb[_0x5343b2(0x110)],'displayName':_0x363beb['displayName'],'type':_0x363beb[_0x5343b2(0xe9)],'method':_0x363beb[_0x5343b2(0x141)],'path':_0x363beb['path'],'requestFields':_0x363beb[_0x5343b2(0x10f)],'requestFieldsCount':_0x363beb[_0x5343b2(0x10f)][_0x5343b2(0x10a)],'requestExample':_0x363beb['requestExample'],'responseExample':_0x363beb[_0x5343b2(0x12c)],'enabled':_0x363beb[_0x5343b2(0x11d)],'fullUrl':_0x363beb[_0x5343b2(0xf0)]};return _0x12d93e;});return{'basic':_0x471304,'fields':_0x4aa3cf,'operations':_0x95238c,'supportsCRUD':_0x25da6d[_0xed882b(0x123)](),'fieldCount':_0x25da6d[_0xed882b(0x13b)](),'operationCount':_0x25da6d[_0xed882b(0xe6)](),'enabledOperationCount':_0x95238c[_0xed882b(0x10a)]};}[a0_0x305d23(0x120)](_0xa364d0,_0x36d3da){const _0x263d88=a0_0x305d23,_0x3645e5=_0xa364d0[_0x263d88(0x116)]||_0xa364d0,_0x256816=new DrivenDataDetailPlus(_0x3645e5),_0x109fdb=_0x256816[_0x263d88(0x101)](_0x36d3da);if(!_0x109fdb)return null;return{'name':_0x109fdb['name'],'displayName':_0x109fdb[_0x263d88(0x11b)],'type':_0x109fdb['type'],'method':_0x109fdb[_0x263d88(0x141)],'path':_0x109fdb[_0x263d88(0x140)],'requestFields':_0x109fdb['requestFields'],'requestFieldsCount':_0x109fdb[_0x263d88(0x10f)][_0x263d88(0x10a)],'requestExample':_0x109fdb['requestExample'],'responseExample':_0x109fdb[_0x263d88(0x12c)],'enabled':_0x109fdb[_0x263d88(0x11d)],'fullUrl':_0x109fdb['fullUrl']};}[a0_0x305d23(0x13f)](_0x40278e,_0x3f19e7,_0x339619,_0x4a7ccc='online'){const _0x1b15bb=a0_0x305d23,_0x50bb4d=_0x40278e[_0x1b15bb(0x116)]||_0x40278e,_0x4868dd=new DrivenDataDetailPlus(_0x50bb4d),_0xf38265=_0x4868dd[_0x1b15bb(0x145)](_0x3f19e7);if(!_0xf38265)return null;const _0x87c73a=_0x4868dd[_0x1b15bb(0x138)](),_0x225500=_0x4868dd['getTableName'](),_0x180e1f=this[_0x1b15bb(0x13e)](_0x225500),_0x597063=_0x4868dd[_0x1b15bb(0x101)](_0x3f19e7),_0x3ab597=_0x4868dd[_0x1b15bb(0x112)](_0x3f19e7,_0x339619);return{'code':_0xf38265[_0x1b15bb(0xea)][_0x1b15bb(0xed)],'sdkCallInfo':{'modelName':_0x180e1f,'tableName':_0x225500,'tableKey':_0x87c73a,'datasetCode':_0x4868dd[_0x1b15bb(0x137)],'operationName':_0x3f19e7},'requestExample':_0x597063?.[_0x1b15bb(0xf8)],'responseExample':_0x597063?.['responseExample'],'sdkInitCode':_0x4868dd[_0x1b15bb(0x136)](_0x87c73a),'usageExample':_0xf38265[_0x1b15bb(0x105)],'fullExample':_0x3ab597||undefined,'aliasExplanation':_0x4868dd[_0x1b15bb(0xf3)]()};}['generateApiDoc'](_0x5b1128){const _0x4ae443=a0_0x305d23,_0x3f7a35=_0x5b1128['data']||_0x5b1128,_0x5f0ea2=new DrivenDataDetailPlus(_0x3f7a35),_0x216a65=_0x5f0ea2[_0x4ae443(0xf7)]()[_0x4ae443(0x134)](_0x1fed8b=>({'name':_0x1fed8b['name'],'displayName':_0x1fed8b[_0x4ae443(0x11b)],'description':_0x1fed8b[_0x4ae443(0x11b)]+_0x4ae443(0x11c)+_0x5f0ea2['name'],'method':_0x1fed8b['method'],'path':_0x1fed8b['path'],'requestParams':_0x1fed8b[_0x4ae443(0x10f)],'requestExample':JSON[_0x4ae443(0xfd)](_0x1fed8b[_0x4ae443(0xf8)],null,0x2),'responseExample':JSON[_0x4ae443(0xfd)](_0x1fed8b[_0x4ae443(0x12c)],null,0x2)}));return{'datasetName':_0x5f0ea2[_0x4ae443(0x110)],'tableName':_0x5f0ea2[_0x4ae443(0x126)](),'operations':_0x216a65};}[a0_0x305d23(0xf2)](_0x682186,_0x202c52){const _0x2e75a6=a0_0x305d23,_0x5b1f2d=new DatasetList(_0x682186),_0x58caed=_0x202c52[_0x2e75a6(0xf1)]();return _0x5b1f2d[_0x2e75a6(0xec)]()[_0x2e75a6(0x114)](_0x55bc5e=>{const _0xa51f3=_0x2e75a6,_0x4b8216=(_0x55bc5e[_0xa51f3(0x110)]||'')[_0xa51f3(0xf1)]()['includes'](_0x58caed),_0x39bd72=(_0x55bc5e['getTableName']?.()||_0x55bc5e['tableName']||'')[_0xa51f3(0xf1)]()[_0xa51f3(0x13c)](_0x58caed),_0x5db161=(_0x55bc5e[_0xa51f3(0x137)]||'')[_0xa51f3(0xf1)]()['includes'](_0x58caed),_0x3b5cb0=(_0x55bc5e['description']||'')['toLowerCase']()[_0xa51f3(0x13c)](_0x58caed);return _0x4b8216||_0x39bd72||_0x5db161||_0x3b5cb0;})[_0x2e75a6(0x134)](_0xa01ef6=>this[_0x2e75a6(0x119)](_0xa01ef6));}['generateMarkdownDoc'](_0x5d8d2e){const _0x551ab5=a0_0x305d23,_0x59b014=_0x5d8d2e[_0x551ab5(0x116)]||_0x5d8d2e,_0x3098d5=new DrivenDataDetailPlus(_0x59b014);let _0x5d6a54='#\x20'+_0x3098d5[_0x551ab5(0x110)]+'\x0a\x0a';_0x5d6a54+=_0x551ab5(0x10d)+_0x3098d5[_0x551ab5(0x137)]+'\x0a',_0x5d6a54+='**Table\x20Name:**\x20'+_0x3098d5[_0x551ab5(0x126)]()+'\x0a',_0x5d6a54+=_0x551ab5(0x11f)+_0x3098d5[_0x551ab5(0x138)]()+'\x0a\x0a',_0x5d6a54+=_0x551ab5(0x118);const _0xd4225b=_0x3098d5[_0x551ab5(0x147)]();_0xd4225b[_0x551ab5(0x10a)]>0x0&&(_0x5d6a54+=_0x551ab5(0x132),_0x5d6a54+=_0x551ab5(0x131),_0xd4225b[_0x551ab5(0x12d)]()[_0x551ab5(0x135)](_0x9d98d3=>{const _0x48df71=_0x551ab5,_0x5effd9=_0x9d98d3['raw'],_0x387bea=formatDbType(typeof _0x5effd9['dbType']==='string'?_0x5effd9['dbType']:undefined,typeof _0x5effd9['dbTypeLen']===_0x48df71(0x130)?_0x5effd9[_0x48df71(0x111)]:undefined);let _0x256668='';if(_0x9d98d3['isEnum']()){const _0x1d822e=_0x9d98d3[_0x48df71(0x14d)]();if(_0x1d822e&&_0x1d822e['values']['length']>0x0){const _0x47aa8b=_0x1d822e[_0x48df71(0xfb)][_0x48df71(0xfa)](0x0,0x5);_0x256668=_0x47aa8b[_0x48df71(0x10c)](',\x20'),_0x1d822e['values']['length']>0x5&&(_0x256668+=_0x48df71(0x11e)+_0x1d822e['values'][_0x48df71(0x10a)]+'\x20total)');}}_0x5d6a54+='|\x20'+_0x9d98d3[_0x48df71(0x110)]+_0x48df71(0x14c)+_0x9d98d3[_0x48df71(0xed)]+_0x48df71(0x14c)+_0x387bea+'\x20|\x20'+_0x9d98d3[_0x48df71(0xe9)]+_0x48df71(0x14c)+(_0x9d98d3[_0x48df71(0x146)]()?'✅':'')+_0x48df71(0x14c)+(_0x9d98d3[_0x48df71(0xee)]()?'🔑':'')+_0x48df71(0x14c)+_0x256668+_0x48df71(0x14c)+(_0x9d98d3[_0x48df71(0x12a)]||'')+_0x48df71(0xe5);}),_0x5d6a54+='\x0a');_0x5d6a54+=_0x551ab5(0x10b);const _0x1d1501=_0x3098d5[_0x551ab5(0xf7)]();_0x1d1501[_0x551ab5(0x135)](_0x3128d9=>{const _0x1d17dd=_0x551ab5;_0x5d6a54+=_0x1d17dd(0x102)+_0x3128d9[_0x1d17dd(0x11b)]+'\x20('+_0x3128d9[_0x1d17dd(0x110)]+_0x1d17dd(0x144),_0x5d6a54+=_0x1d17dd(0xf5)+_0x3128d9[_0x1d17dd(0x141)]+'\x0a',_0x5d6a54+='-\x20**Path:**\x20'+_0x3128d9[_0x1d17dd(0x140)]+'\x0a',_0x3128d9[_0x1d17dd(0xf0)]&&(_0x5d6a54+='-\x20**Full\x20URL:**\x20'+_0x3128d9[_0x1d17dd(0xf0)]+'\x0a'),_0x3128d9[_0x1d17dd(0x10f)]&&_0x3128d9['requestFields'][_0x1d17dd(0x10a)]>0x0&&(_0x5d6a54+=_0x1d17dd(0x115)+_0x3128d9[_0x1d17dd(0x10f)]['join'](',\x20')+'\x0a'),_0x3128d9[_0x1d17dd(0xf8)]&&(_0x5d6a54+=_0x1d17dd(0x109)+JSON[_0x1d17dd(0xfd)](_0x3128d9[_0x1d17dd(0xf8)],null,0x2)+_0x1d17dd(0x106)),_0x3128d9['responseExample']&&(_0x5d6a54+=_0x1d17dd(0x121)+JSON[_0x1d17dd(0xfd)](_0x3128d9[_0x1d17dd(0x12c)],null,0x2)+'\x0a```\x0a'),_0x5d6a54+='\x0a';});const _0x1445c2=_0x3098d5[_0x551ab5(0x138)](),_0x161024=_0x3098d5[_0x551ab5(0x136)](_0x1445c2);return _0x161024&&(_0x5d6a54+=_0x551ab5(0x142),_0x5d6a54+='```typescript\x0a',_0x5d6a54+=_0x161024,_0x5d6a54+=_0x551ab5(0x14b)),_0x5d6a54;}[a0_0x305d23(0x12f)](_0x5c7533,_0x8e725a){const _0x12b37f=a0_0x305d23,_0xf50ed0=_0x5c7533[_0x12b37f(0x116)]||_0x5c7533,_0x4e448a=_0x8e725a['data']||_0x8e725a,_0x1a9343=new DrivenDataDetailPlus(_0xf50ed0),_0x356229=new DrivenDataDetailPlus(_0x4e448a),_0x1af415=new Set(_0x1a9343[_0x12b37f(0x147)]()[_0x12b37f(0x12d)]()[_0x12b37f(0x134)](_0x54f5b7=>_0x54f5b7[_0x12b37f(0x110)])),_0x163f32=new Set(_0x356229[_0x12b37f(0x147)]()['all']()[_0x12b37f(0x134)](_0x4d55af=>_0x4d55af[_0x12b37f(0x110)])),_0x4683c8=new Set(_0x1a9343['getEnabledOperationAnalyses']()['map'](_0xc1dc6e=>_0xc1dc6e['name'])),_0x392e5e=new Set(_0x356229[_0x12b37f(0xf7)]()[_0x12b37f(0x134)](_0x348c32=>_0x348c32['name'])),_0x10e63f={'fields':{'added':Array[_0x12b37f(0x113)](_0x163f32)[_0x12b37f(0x114)](_0x3f281f=>!_0x1af415[_0x12b37f(0x104)](_0x3f281f)),'removed':Array[_0x12b37f(0x113)](_0x1af415)[_0x12b37f(0x114)](_0x2d685a=>!_0x163f32[_0x12b37f(0x104)](_0x2d685a)),'modified':[]},'operations':{'added':Array[_0x12b37f(0x113)](_0x392e5e)[_0x12b37f(0x114)](_0x51780f=>!_0x4683c8['has'](_0x51780f)),'removed':Array[_0x12b37f(0x113)](_0x4683c8)[_0x12b37f(0x114)](_0x53dbbd=>!_0x392e5e[_0x12b37f(0x104)](_0x53dbbd))}},_0x4ff266=_0x12b37f(0x148)+_0x10e63f[_0x12b37f(0xe3)][_0x12b37f(0xef)]['length']+'/-'+_0x10e63f[_0x12b37f(0xe3)][_0x12b37f(0x10e)][_0x12b37f(0x10a)]+',\x20'+('Operations:\x20+'+_0x10e63f[_0x12b37f(0x129)]['added'][_0x12b37f(0x10a)]+'/-'+_0x10e63f[_0x12b37f(0x129)][_0x12b37f(0x10e)][_0x12b37f(0x10a)]);return{'differences':_0x10e63f,'summary':_0x4ff266};}[a0_0x305d23(0x13e)](_0x4a1330){const _0x45834d=a0_0x305d23;return _0x4a1330[_0x45834d(0x125)](/[-_\s]+(.)?/g,(_0x3d6878,_0x384770)=>_0x384770?_0x384770[_0x45834d(0xfc)]():'')[_0x45834d(0x125)](/^(.)/,(_0x9f85e,_0x31d4e9)=>_0x31d4e9['toUpperCase']());}}
package/dist/api/cache.js CHANGED
@@ -1 +1 @@
1
- const a1_0x20e51a=a1_0xa2ad;(function(_0x27adb6,_0x20ebb9){const _0x90f5f7=a1_0xa2ad,_0x18087e=_0x27adb6();while(!![]){try{const _0x5ce36c=parseInt(_0x90f5f7(0x10d))/0x1+-parseInt(_0x90f5f7(0x118))/0x2+parseInt(_0x90f5f7(0x107))/0x3*(-parseInt(_0x90f5f7(0x10e))/0x4)+-parseInt(_0x90f5f7(0x11c))/0x5+-parseInt(_0x90f5f7(0x11b))/0x6+-parseInt(_0x90f5f7(0x10f))/0x7*(-parseInt(_0x90f5f7(0x10a))/0x8)+-parseInt(_0x90f5f7(0x112))/0x9*(-parseInt(_0x90f5f7(0x114))/0xa);if(_0x5ce36c===_0x20ebb9)break;else _0x18087e['push'](_0x18087e['shift']());}catch(_0x2f37e9){_0x18087e['push'](_0x18087e['shift']());}}}(a1_0x3475,0x27393));function a1_0xa2ad(_0x5ddd26,_0x55a82a){const _0x34758e=a1_0x3475();return a1_0xa2ad=function(_0xa2ad99,_0x423b5c){_0xa2ad99=_0xa2ad99-0x107;let _0x693aa3=_0x34758e[_0xa2ad99];return _0x693aa3;},a1_0xa2ad(_0x5ddd26,_0x55a82a);}function a1_0x3475(){const _0x5a06f9=['set','34984FfwjzT','defaultTTL','data','757110tXDRHS','57870lljrTh','now','15unrUJA','clear','get','728YYZIQO','keys','floor','38024mMHgwB','218264pCsoOY','12229LIWINP','from','getStats','3525651RlhuRq','delete','10aApGsW','cache','size'];a1_0x3475=function(){return _0x5a06f9;};return a1_0x3475();}export class SimpleCache{[a1_0x20e51a(0x115)]=new Map();[a1_0x20e51a(0x119)];constructor(_0x766f3c=0x5){const _0x2af637=a1_0x20e51a;this[_0x2af637(0x119)]=_0x766f3c*0x3c*0x3e8;}[a1_0x20e51a(0x109)](_0x3cdd52){const _0x2e4343=a1_0x20e51a,_0x360e12=this[_0x2e4343(0x115)][_0x2e4343(0x109)](_0x3cdd52);if(!_0x360e12)return null;const _0x58ed8a=Date[_0x2e4343(0x11d)](),_0x4eaf91=_0x58ed8a-_0x360e12['timestamp'];if(_0x4eaf91>this[_0x2e4343(0x119)])return this['cache'][_0x2e4343(0x113)](_0x3cdd52),null;const _0xda12ae=Math[_0x2e4343(0x10c)](_0x4eaf91/0x3e8);return _0x360e12[_0x2e4343(0x11a)];}[a1_0x20e51a(0x117)](_0xe6e196,_0x48c215){const _0x2234b7=a1_0x20e51a;this[_0x2234b7(0x115)]['set'](_0xe6e196,{'data':_0x48c215,'timestamp':Date['now']()});}[a1_0x20e51a(0x108)](_0xd58063){const _0x35410b=a1_0x20e51a;_0xd58063?this[_0x35410b(0x115)][_0x35410b(0x113)](_0xd58063):this[_0x35410b(0x115)][_0x35410b(0x108)]();}[a1_0x20e51a(0x111)](){const _0x6d62c4=a1_0x20e51a;return{'size':this[_0x6d62c4(0x115)][_0x6d62c4(0x116)],'ttlMinutes':this[_0x6d62c4(0x119)]/0xea60,'entries':Array[_0x6d62c4(0x110)](this[_0x6d62c4(0x115)][_0x6d62c4(0x10b)]())};}}export const apiCache=new SimpleCache(0x5);
1
+ const a1_0x4ccbc5=a1_0x4573;(function(_0x150d6d,_0x4d3e5f){const _0x3183ee=a1_0x4573,_0xb6bb79=_0x150d6d();while(!![]){try{const _0x52e418=-parseInt(_0x3183ee(0x126))/0x1+-parseInt(_0x3183ee(0x123))/0x2*(parseInt(_0x3183ee(0x12c))/0x3)+parseInt(_0x3183ee(0x127))/0x4+-parseInt(_0x3183ee(0x134))/0x5*(-parseInt(_0x3183ee(0x120))/0x6)+-parseInt(_0x3183ee(0x131))/0x7*(parseInt(_0x3183ee(0x133))/0x8)+parseInt(_0x3183ee(0x121))/0x9+parseInt(_0x3183ee(0x128))/0xa*(parseInt(_0x3183ee(0x130))/0xb);if(_0x52e418===_0x4d3e5f)break;else _0xb6bb79['push'](_0xb6bb79['shift']());}catch(_0x4d93d6){_0xb6bb79['push'](_0xb6bb79['shift']());}}}(a1_0x3be0,0x908cd));function a1_0x3be0(){const _0x4cb8c3=['1231936visxTb','265ubSIgZ','13458mzNuNA','5497704bDcfhp','defaultTTL','1845666wbsRrw','now','getStats','244543YjMgxz','1123108gszSez','3710WvUOGG','keys','size','data','3soVWyJ','set','delete','clear','40469ntHhHT','28HJvlWL','cache'];a1_0x3be0=function(){return _0x4cb8c3;};return a1_0x3be0();}export class SimpleCache{[a1_0x4ccbc5(0x132)]=new Map();[a1_0x4ccbc5(0x122)];constructor(_0x3a7da1=0x5){this['defaultTTL']=_0x3a7da1*0x3c*0x3e8;}['get'](_0x26d2a2){const _0x2c6e1e=a1_0x4ccbc5,_0x408e0b=this[_0x2c6e1e(0x132)]['get'](_0x26d2a2);if(!_0x408e0b)return null;const _0x6eb8fe=Date[_0x2c6e1e(0x124)](),_0x25b4a6=_0x6eb8fe-_0x408e0b['timestamp'];if(_0x25b4a6>this[_0x2c6e1e(0x122)])return this['cache'][_0x2c6e1e(0x12e)](_0x26d2a2),null;const _0x3c8dba=Math['floor'](_0x25b4a6/0x3e8);return _0x408e0b[_0x2c6e1e(0x12b)];}[a1_0x4ccbc5(0x12d)](_0x3e10e7,_0x33bceb){const _0x30d2a1=a1_0x4ccbc5;this[_0x30d2a1(0x132)][_0x30d2a1(0x12d)](_0x3e10e7,{'data':_0x33bceb,'timestamp':Date['now']()});}[a1_0x4ccbc5(0x12f)](_0x2703f){const _0x1d3e9e=a1_0x4ccbc5;_0x2703f?this[_0x1d3e9e(0x132)][_0x1d3e9e(0x12e)](_0x2703f):this[_0x1d3e9e(0x132)][_0x1d3e9e(0x12f)]();}[a1_0x4ccbc5(0x125)](){const _0xb1432c=a1_0x4ccbc5;return{'size':this[_0xb1432c(0x132)][_0xb1432c(0x12a)],'ttlMinutes':this[_0xb1432c(0x122)]/0xea60,'entries':Array['from'](this[_0xb1432c(0x132)][_0xb1432c(0x129)]())};}}function a1_0x4573(_0x36a093,_0x2028eb){_0x36a093=_0x36a093-0x120;const _0x3be010=a1_0x3be0();let _0x4573a3=_0x3be010[_0x36a093];return _0x4573a3;}export const apiCache=new SimpleCache(0x5);
@@ -1 +1 @@
1
- function a2_0xeda0(_0x3d5113,_0x4ed498){const _0x2fe393=a2_0x2fe3();return a2_0xeda0=function(_0xeda08e,_0x2033ff){_0xeda08e=_0xeda08e-0x119;let _0x449678=_0x2fe393[_0xeda08e];return _0x449678;},a2_0xeda0(_0x3d5113,_0x4ed498);}const a2_0x38374b=a2_0xeda0;(function(_0x369032,_0x3bb8f2){const _0x2c3c93=a2_0xeda0,_0x25d1af=_0x369032();while(!![]){try{const _0x171f6b=-parseInt(_0x2c3c93(0x139))/0x1+parseInt(_0x2c3c93(0x125))/0x2*(-parseInt(_0x2c3c93(0x13f))/0x3)+parseInt(_0x2c3c93(0x14a))/0x4+-parseInt(_0x2c3c93(0x119))/0x5*(-parseInt(_0x2c3c93(0x133))/0x6)+-parseInt(_0x2c3c93(0x132))/0x7+parseInt(_0x2c3c93(0x11d))/0x8+parseInt(_0x2c3c93(0x127))/0x9;if(_0x171f6b===_0x3bb8f2)break;else _0x25d1af['push'](_0x25d1af['shift']());}catch(_0x35e3d3){_0x25d1af['push'](_0x25d1af['shift']());}}}(a2_0x2fe3,0xa0672));import{getCookie}from'../auth/cookie-manager.js';import{getApiDomain}from'../auth/constants.js';function a2_0x2fe3(){const _0x424922=['env','dataset-detail:','getDatasetDetail','searchDatasets','Authentication\x20failed.\x20Please\x20login\x20again.','message','application/json','598EFMKzH','stringify','7179111YlJphx','request','cookie','description','errorMsg','tableData','postRequest','currentPage','name','object','includes','1888901SRhMrZ','1673106VwOHbB','getDatasetList','online','sqlCode','forceRefresh','No\x20authentication\x20cookie\x20found.\x20Please\x20login\x20first.','596283EiNuHr','appCode','Unknown\x20error','toLowerCase','json','code','6840HPolEN','/smartapi/dataset/get-driven-data?id=','data','API\x20error:\x20','/smartapi/custom/queryUserCustomSqlList','get','dbtableConfig','apiDomain','success','getCustomSqlList','pageSize','125552beblWK','params','set','API\x20request\x20failed:\x20HTTP\x20','/api/custom/executeSql','5kikfqW','status','/smartapi/dataset/getList?appCode=','dataset-list:','8775504XoFnxt'];a2_0x2fe3=function(){return _0x424922;};return a2_0x2fe3();}import{apiCache}from'./cache.js';export class DevApiClient{['appCode'];[a2_0x38374b(0x11e)];[a2_0x38374b(0x129)];['apiDomain'];constructor(_0x2e3876){const _0x3d2876=a2_0x38374b;this[_0x3d2876(0x13a)]=_0x2e3876['appCode'],this[_0x3d2876(0x11e)]=_0x2e3876[_0x3d2876(0x11e)]||_0x3d2876(0x135),this[_0x3d2876(0x129)]=_0x2e3876['cookie']||getCookie(),this[_0x3d2876(0x146)]=getApiDomain(this[_0x3d2876(0x11e)]);if(!this[_0x3d2876(0x129)])throw new Error(_0x3d2876(0x138));}async['request'](_0x50121b){const _0x5afbc0=a2_0x38374b,_0x38a0ee=await fetch(_0x50121b,{'headers':{'Cookie':this[_0x5afbc0(0x129)]}});if(!_0x38a0ee['ok']){if(_0x38a0ee[_0x5afbc0(0x11a)]===0x191)throw new Error(_0x5afbc0(0x122));let _0x505a7c='';try{_0x505a7c=await _0x38a0ee['text']();}catch{}throw new Error(_0x5afbc0(0x14d)+_0x38a0ee[_0x5afbc0(0x11a)]+(_0x505a7c?'\x0a'+_0x505a7c:''));}const _0x302041=await _0x38a0ee[_0x5afbc0(0x13d)]();if(_0x302041&&typeof _0x302041===_0x5afbc0(0x130)&&'success'in _0x302041&&!_0x302041[_0x5afbc0(0x147)]){const _0x11560d=_0x302041;throw new Error(_0x5afbc0(0x142)+(_0x11560d[_0x5afbc0(0x123)]||_0x11560d[_0x5afbc0(0x12b)]||_0x5afbc0(0x13b)));}return _0x302041;}async[a2_0x38374b(0x12d)](_0x51eb80,_0x147b9c){const _0x58a3fe=a2_0x38374b,_0x3621a4=await fetch(_0x51eb80,{'method':'POST','headers':{'Content-Type':_0x58a3fe(0x124),'Cookie':this[_0x58a3fe(0x129)]},'body':JSON[_0x58a3fe(0x126)](_0x147b9c)});if(!_0x3621a4['ok']){if(_0x3621a4[_0x58a3fe(0x11a)]===0x191)throw new Error('Authentication\x20failed.\x20Please\x20login\x20again.');let _0x423dcb='';try{_0x423dcb=await _0x3621a4['text']();}catch{}throw new Error(_0x58a3fe(0x14d)+_0x3621a4['status']+(_0x423dcb?'\x0a'+_0x423dcb:''));}const _0x3d7375=await _0x3621a4[_0x58a3fe(0x13d)]();if(_0x3d7375&&typeof _0x3d7375===_0x58a3fe(0x130)&&_0x58a3fe(0x147)in _0x3d7375&&!_0x3d7375[_0x58a3fe(0x147)]){const _0xf632bd=_0x3d7375;throw new Error(_0x58a3fe(0x142)+(_0xf632bd[_0x58a3fe(0x123)]||_0xf632bd['errorMsg']||_0x58a3fe(0x13b)));}return _0x3d7375;}async[a2_0x38374b(0x134)](_0x33087c){const _0x212305=a2_0x38374b,_0x2b8e68=_0x33087c?.[_0x212305(0x149)]||0x3e7,_0x453e4f=_0x33087c?.[_0x212305(0x12e)]||0x1,_0x57494f=_0x33087c?.[_0x212305(0x137)]||![],_0xa0e034=_0x212305(0x11c)+this['appCode']+':'+this[_0x212305(0x11e)]+':'+_0x2b8e68+':'+_0x453e4f;if(!_0x57494f){const _0x45ab28=apiCache[_0x212305(0x144)](_0xa0e034);if(_0x45ab28)return _0x45ab28;}const _0x2ad6a0=this[_0x212305(0x146)]+_0x212305(0x11b)+this[_0x212305(0x13a)]+'&pageSize='+_0x2b8e68+'&currentPage='+_0x453e4f,_0xa342f=await this[_0x212305(0x128)](_0x2ad6a0);return apiCache[_0x212305(0x14c)](_0xa0e034,_0xa342f),_0xa342f;}async[a2_0x38374b(0x120)](_0x236d67,_0x51078c=![]){const _0x59a2d7=a2_0x38374b,_0xa40d3f=_0x59a2d7(0x11f)+this[_0x59a2d7(0x13a)]+':'+this[_0x59a2d7(0x11e)]+':'+_0x236d67;if(!_0x51078c){const _0x15f9de=apiCache['get'](_0xa40d3f);if(_0x15f9de)return _0x15f9de;}const _0x2f77e7=this[_0x59a2d7(0x146)]+_0x59a2d7(0x140)+_0x236d67,_0x15b9d4=await this[_0x59a2d7(0x128)](_0x2f77e7);return apiCache['set'](_0xa40d3f,_0x15b9d4),_0x15b9d4;}async[a2_0x38374b(0x121)](_0x3c4e87){const _0x45543a=a2_0x38374b,_0x174a0f=await this['getDatasetList']({'pageSize':0x3e7});if(!_0x174a0f[_0x45543a(0x147)]||!_0x174a0f[_0x45543a(0x141)]?.['tableData'])return{'success':!![],'data':{'tableData':[]}};const _0xbf6a24=_0x174a0f[_0x45543a(0x141)][_0x45543a(0x12c)]['filter'](_0x43228b=>{const _0x1037e9=_0x45543a,_0x4b5ea9=_0x3c4e87[_0x1037e9(0x13c)]();return _0x43228b[_0x1037e9(0x12f)]?.[_0x1037e9(0x13c)]()[_0x1037e9(0x131)](_0x4b5ea9)||_0x43228b[_0x1037e9(0x13e)]?.[_0x1037e9(0x13c)]()['includes'](_0x4b5ea9)||_0x43228b[_0x1037e9(0x145)]?.['tableName']?.[_0x1037e9(0x13c)]()['includes'](_0x4b5ea9)||_0x43228b[_0x1037e9(0x12a)]?.[_0x1037e9(0x13c)]()[_0x1037e9(0x131)](_0x4b5ea9);});return{'success':!![],'data':{'tableData':_0xbf6a24,'paging':{'totalCount':_0xbf6a24['length'],'currentPage':0x1,'pageSize':0x3e7}}};}async[a2_0x38374b(0x148)](_0x2cfe00){const _0x591db3=a2_0x38374b,_0x304503=_0x2cfe00?.['currentPage']||0x1,_0x19c658=_0x2cfe00?.[_0x591db3(0x149)]||0x3e7,_0x58c2eb=this['apiDomain']+_0x591db3(0x143),_0x424db1={'appCode':this[_0x591db3(0x13a)],'currentPage':_0x304503,'pageSize':_0x19c658},_0x2b1d38=await this[_0x591db3(0x12d)](_0x58c2eb,_0x424db1);return _0x2b1d38;}async['executeSql'](_0x30525f){const _0x47f76a=a2_0x38374b,_0x274d4b=this['apiDomain']+_0x47f76a(0x14e),_0xca9d8c={'sqlCode':_0x30525f[_0x47f76a(0x136)],..._0x30525f[_0x47f76a(0x14b)]&&{'params':_0x30525f['params']}};return await this['postRequest'](_0x274d4b,_0xca9d8c);}}
1
+ function a2_0x2442(_0x573e6e,_0x4663a9){_0x573e6e=_0x573e6e-0x125;const _0x352950=a2_0x3529();let _0x2442ad=_0x352950[_0x573e6e];return _0x2442ad;}const a2_0x1b3fea=a2_0x2442;(function(_0x12bc05,_0x44bd20){const _0x263b28=a2_0x2442,_0x54f14e=_0x12bc05();while(!![]){try{const _0x3e1c8c=-parseInt(_0x263b28(0x136))/0x1*(parseInt(_0x263b28(0x144))/0x2)+-parseInt(_0x263b28(0x141))/0x3*(parseInt(_0x263b28(0x14f))/0x4)+parseInt(_0x263b28(0x13a))/0x5*(-parseInt(_0x263b28(0x140))/0x6)+-parseInt(_0x263b28(0x155))/0x7*(parseInt(_0x263b28(0x143))/0x8)+-parseInt(_0x263b28(0x12f))/0x9+-parseInt(_0x263b28(0x151))/0xa+parseInt(_0x263b28(0x130))/0xb*(parseInt(_0x263b28(0x148))/0xc);if(_0x3e1c8c===_0x44bd20)break;else _0x54f14e['push'](_0x54f14e['shift']());}catch(_0x335eb4){_0x54f14e['push'](_0x54f14e['shift']());}}}(a2_0x3529,0x47b77));function a2_0x3529(){const _0x484a30=['getDatasetDetail','516396tvXBfE','Unknown\x20error','5868840kapzbo','cookie','pageSize','appCode','14qtkRVZ','length','API\x20error:\x20','getCustomSqlList','currentPage','stringify','API\x20request\x20failed:\x20HTTP\x20','errorMsg','success','dataset-list:','code','set','postRequest','Authentication\x20failed.\x20Please\x20login\x20again.','tableName','1073457IHtDpN','11mpYuCS','toLowerCase','data','status','tableData','&pageSize=','1rJHePR','online','filter','text','5ugdoHV','/smartapi/dataset/get-driven-data?id=','object','includes','request','name','2762742vCVrBU','3VGLTEz','json','2347192FTFeBe','780034UarAmk','message','dbtableConfig','params','30795348NqZdiB','POST','env','getDatasetList','apiDomain','get'];a2_0x3529=function(){return _0x484a30;};return a2_0x3529();}import{getCookie}from'../auth/cookie-manager.js';import{getApiDomain}from'../auth/constants.js';import{apiCache}from'./cache.js';export class DevApiClient{['appCode'];[a2_0x1b3fea(0x14a)];[a2_0x1b3fea(0x152)];[a2_0x1b3fea(0x14c)];constructor(_0xe01438){const _0x14b51b=a2_0x1b3fea;this[_0x14b51b(0x154)]=_0xe01438[_0x14b51b(0x154)],this[_0x14b51b(0x14a)]=_0xe01438[_0x14b51b(0x14a)]||_0x14b51b(0x137),this['cookie']=_0xe01438['cookie']||getCookie(),this[_0x14b51b(0x14c)]=getApiDomain(this[_0x14b51b(0x14a)]);if(!this[_0x14b51b(0x152)])throw new Error('No\x20authentication\x20cookie\x20found.\x20Please\x20login\x20first.');}async[a2_0x1b3fea(0x13e)](_0x44e7d4){const _0xbd2ec8=a2_0x1b3fea,_0x33b05b=await fetch(_0x44e7d4,{'headers':{'Cookie':this[_0xbd2ec8(0x152)]}});if(!_0x33b05b['ok']){if(_0x33b05b[_0xbd2ec8(0x133)]===0x191)throw new Error('Authentication\x20failed.\x20Please\x20login\x20again.');let _0x1d6f09='';try{_0x1d6f09=await _0x33b05b[_0xbd2ec8(0x139)]();}catch{}throw new Error(_0xbd2ec8(0x126)+_0x33b05b[_0xbd2ec8(0x133)]+(_0x1d6f09?'\x0a'+_0x1d6f09:''));}const _0x3b0ba2=await _0x33b05b[_0xbd2ec8(0x142)]();if(_0x3b0ba2&&typeof _0x3b0ba2===_0xbd2ec8(0x13c)&&_0xbd2ec8(0x128)in _0x3b0ba2&&!_0x3b0ba2[_0xbd2ec8(0x128)]){const _0x6f1465=_0x3b0ba2;throw new Error(_0xbd2ec8(0x157)+(_0x6f1465[_0xbd2ec8(0x145)]||_0x6f1465[_0xbd2ec8(0x127)]||_0xbd2ec8(0x150)));}return _0x3b0ba2;}async['postRequest'](_0x14dccd,_0x5a2060){const _0x2418a0=a2_0x1b3fea,_0x21f646=await fetch(_0x14dccd,{'method':_0x2418a0(0x149),'headers':{'Content-Type':'application/json','Cookie':this['cookie']},'body':JSON[_0x2418a0(0x125)](_0x5a2060)});if(!_0x21f646['ok']){if(_0x21f646[_0x2418a0(0x133)]===0x191)throw new Error(_0x2418a0(0x12d));let _0x4bea7d='';try{_0x4bea7d=await _0x21f646[_0x2418a0(0x139)]();}catch{}throw new Error(_0x2418a0(0x126)+_0x21f646[_0x2418a0(0x133)]+(_0x4bea7d?'\x0a'+_0x4bea7d:''));}const _0x1cc209=await _0x21f646['json']();if(_0x1cc209&&typeof _0x1cc209==='object'&&'success'in _0x1cc209&&!_0x1cc209[_0x2418a0(0x128)]){const _0x2ee1b8=_0x1cc209;throw new Error('API\x20error:\x20'+(_0x2ee1b8[_0x2418a0(0x145)]||_0x2ee1b8[_0x2418a0(0x127)]||'Unknown\x20error'));}return _0x1cc209;}async[a2_0x1b3fea(0x14b)](_0x33e922){const _0x126974=a2_0x1b3fea,_0x364003=_0x33e922?.['pageSize']||0x3e7,_0x59c28c=_0x33e922?.[_0x126974(0x159)]||0x1,_0x56ae18=_0x33e922?.['forceRefresh']||![],_0x3ca7c5=_0x126974(0x129)+this[_0x126974(0x154)]+':'+this[_0x126974(0x14a)]+':'+_0x364003+':'+_0x59c28c;if(!_0x56ae18){const _0x33ef67=apiCache[_0x126974(0x14d)](_0x3ca7c5);if(_0x33ef67)return _0x33ef67;}const _0x23bb74=this[_0x126974(0x14c)]+'/smartapi/dataset/getList?appCode='+this['appCode']+_0x126974(0x135)+_0x364003+'&currentPage='+_0x59c28c,_0x1b4385=await this[_0x126974(0x13e)](_0x23bb74);return apiCache[_0x126974(0x12b)](_0x3ca7c5,_0x1b4385),_0x1b4385;}async[a2_0x1b3fea(0x14e)](_0x34be7d,_0x3003b7=![]){const _0x5e9ba3=a2_0x1b3fea,_0xe58b08='dataset-detail:'+this[_0x5e9ba3(0x154)]+':'+this['env']+':'+_0x34be7d;if(!_0x3003b7){const _0x469a0b=apiCache['get'](_0xe58b08);if(_0x469a0b)return _0x469a0b;}const _0x233ee8=this['apiDomain']+_0x5e9ba3(0x13b)+_0x34be7d,_0x4c157d=await this['request'](_0x233ee8);return apiCache['set'](_0xe58b08,_0x4c157d),_0x4c157d;}async['searchDatasets'](_0x3e894a){const _0x81ea69=a2_0x1b3fea,_0xc4f2ef=await this[_0x81ea69(0x14b)]({'pageSize':0x3e7});if(!_0xc4f2ef[_0x81ea69(0x128)]||!_0xc4f2ef[_0x81ea69(0x132)]?.[_0x81ea69(0x134)])return{'success':!![],'data':{'tableData':[]}};const _0x5f1c63=_0xc4f2ef[_0x81ea69(0x132)][_0x81ea69(0x134)][_0x81ea69(0x138)](_0x1ddc36=>{const _0x4021d9=_0x81ea69,_0x5becfd=_0x3e894a['toLowerCase']();return _0x1ddc36[_0x4021d9(0x13f)]?.[_0x4021d9(0x131)]()[_0x4021d9(0x13d)](_0x5becfd)||_0x1ddc36[_0x4021d9(0x12a)]?.['toLowerCase']()[_0x4021d9(0x13d)](_0x5becfd)||_0x1ddc36[_0x4021d9(0x146)]?.[_0x4021d9(0x12e)]?.[_0x4021d9(0x131)]()[_0x4021d9(0x13d)](_0x5becfd)||_0x1ddc36['description']?.[_0x4021d9(0x131)]()[_0x4021d9(0x13d)](_0x5becfd);});return{'success':!![],'data':{'tableData':_0x5f1c63,'paging':{'totalCount':_0x5f1c63[_0x81ea69(0x156)],'currentPage':0x1,'pageSize':0x3e7}}};}async[a2_0x1b3fea(0x158)](_0x5a58a3){const _0x11c2cd=a2_0x1b3fea,_0x1b5dc8=_0x5a58a3?.[_0x11c2cd(0x159)]||0x1,_0x2e750c=_0x5a58a3?.[_0x11c2cd(0x153)]||0x3e7,_0x7e54b6=this[_0x11c2cd(0x14c)]+'/smartapi/custom/queryUserCustomSqlList',_0x2ef728={'appCode':this[_0x11c2cd(0x154)],'currentPage':_0x1b5dc8,'pageSize':_0x2e750c},_0x495fbb=await this[_0x11c2cd(0x12c)](_0x7e54b6,_0x2ef728);return _0x495fbb;}async['executeSql'](_0x21c95d){const _0x4d4545=a2_0x1b3fea,_0xc8008e=this[_0x4d4545(0x14c)]+'/api/custom/executeSql',_0x529c5e={'sqlCode':_0x21c95d['sqlCode'],..._0x21c95d[_0x4d4545(0x147)]&&{'params':_0x21c95d['params']}};return await this[_0x4d4545(0x12c)](_0xc8008e,_0x529c5e);}}
@@ -1 +1 @@
1
- const a3_0x47a4b7=a3_0xd8e0;(function(_0xea28ae,_0x23fc35){const _0x169382=a3_0xd8e0,_0x582d8e=_0xea28ae();while(!![]){try{const _0x5c51e8=parseInt(_0x169382(0xa6))/0x1+-parseInt(_0x169382(0xa8))/0x2+-parseInt(_0x169382(0xa7))/0x3*(parseInt(_0x169382(0x9f))/0x4)+parseInt(_0x169382(0xa1))/0x5+-parseInt(_0x169382(0xa3))/0x6+parseInt(_0x169382(0xa9))/0x7*(-parseInt(_0x169382(0xaa))/0x8)+parseInt(_0x169382(0xab))/0x9;if(_0x5c51e8===_0x23fc35)break;else _0x582d8e['push'](_0x582d8e['shift']());}catch(_0xcd2970){_0x582d8e['push'](_0x582d8e['shift']());}}}(a3_0x4011,0x5674e));import{mkdirSync}from'node:fs';import{homedir}from'node:os';function a3_0xd8e0(_0xbd5bcb,_0x2d75ac){const _0x4011e1=a3_0x4011();return a3_0xd8e0=function(_0xd8e00d,_0x10c263){_0xd8e00d=_0xd8e00d-0x9f;let _0xa51def=_0x4011e1[_0xd8e00d];return _0xa51def;},a3_0xd8e0(_0xbd5bcb,_0x2d75ac);}export const configDir=homedir()+a3_0x47a4b7(0xa0);function a3_0x4011(){const _0x261974=['128532BcRDzn','650678XhrPXH','167755jmfUkR','88OrklIZ','15151365AzSAdM','https://user.lovrabet.com','https://api.lovrabet.com','44EJmOVI','/.lovrabet','89450FykRBj','/cookie','3473778sEAnRa','https://user-daily.lovrabet.com','online','291952kiteLr'];a3_0x4011=function(){return _0x261974;};return a3_0x4011();}export const cookieFile=configDir+a3_0x47a4b7(0xa2);mkdirSync(configDir,{'recursive':!![]});export const getApiDomain=(_0x6be5aa='online')=>_0x6be5aa===a3_0x47a4b7(0xa5)?a3_0x47a4b7(0xad):'https://daily-api.lovrabet.com';export const getUserDomain=(_0x3c539a='online')=>_0x3c539a===a3_0x47a4b7(0xa5)?a3_0x47a4b7(0xac):a3_0x47a4b7(0xa4);
1
+ const a3_0x5d1cca=a3_0x57d4;(function(_0x80b78d,_0x835223){const _0x445ea5=a3_0x57d4,_0x167d13=_0x80b78d();while(!![]){try{const _0xe43009=parseInt(_0x445ea5(0x14a))/0x1+parseInt(_0x445ea5(0x14e))/0x2+-parseInt(_0x445ea5(0x14f))/0x3*(parseInt(_0x445ea5(0x153))/0x4)+parseInt(_0x445ea5(0x159))/0x5*(parseInt(_0x445ea5(0x158))/0x6)+-parseInt(_0x445ea5(0x152))/0x7+-parseInt(_0x445ea5(0x154))/0x8*(parseInt(_0x445ea5(0x150))/0x9)+parseInt(_0x445ea5(0x156))/0xa*(parseInt(_0x445ea5(0x155))/0xb);if(_0xe43009===_0x835223)break;else _0x167d13['push'](_0x167d13['shift']());}catch(_0x262fd8){_0x167d13['push'](_0x167d13['shift']());}}}(a3_0x5a2c,0x5d190));import{mkdirSync}from'node:fs';import{homedir}from'node:os';export const configDir=homedir()+a3_0x5d1cca(0x157);function a3_0x5a2c(){const _0x255cdb=['76944GfNOMZ','6LgDgJQ','18TPlGyv','https://user-daily.lovrabet.com','1004528maysCh','540316ICEYFR','39448ECtjcR','2444849EqdRwA','20HnoEuZ','/.lovrabet','12wHQNoB','74775HwMoeF','https://api.lovrabet.com','291952BRflfP','https://daily-api.lovrabet.com','online','https://user.lovrabet.com'];a3_0x5a2c=function(){return _0x255cdb;};return a3_0x5a2c();}function a3_0x57d4(_0x1338b1,_0x4f7ac2){_0x1338b1=_0x1338b1-0x149;const _0x5a2ce7=a3_0x5a2c();let _0x57d4a6=_0x5a2ce7[_0x1338b1];return _0x57d4a6;}export const cookieFile=configDir+'/cookie';mkdirSync(configDir,{'recursive':!![]});export const getApiDomain=(_0x1bd0f4=a3_0x5d1cca(0x14c))=>_0x1bd0f4==='online'?a3_0x5d1cca(0x149):a3_0x5d1cca(0x14b);export const getUserDomain=(_0x6b4cdd=a3_0x5d1cca(0x14c))=>_0x6b4cdd===a3_0x5d1cca(0x14c)?a3_0x5d1cca(0x14d):a3_0x5d1cca(0x151);
@@ -1 +1 @@
1
- (function(_0x19cdb6,_0x3074d0){const _0x19a351=a4_0x3bc3,_0x5b496b=_0x19cdb6();while(!![]){try{const _0x551b1e=-parseInt(_0x19a351(0xae))/0x1+-parseInt(_0x19a351(0xa9))/0x2*(parseInt(_0x19a351(0xaa))/0x3)+-parseInt(_0x19a351(0xaf))/0x4+parseInt(_0x19a351(0xa4))/0x5+-parseInt(_0x19a351(0xa6))/0x6+-parseInt(_0x19a351(0xa8))/0x7+parseInt(_0x19a351(0xa5))/0x8*(parseInt(_0x19a351(0xab))/0x9);if(_0x551b1e===_0x3074d0)break;else _0x5b496b['push'](_0x5b496b['shift']());}catch(_0x4a4e2a){_0x5b496b['push'](_0x5b496b['shift']());}}}(a4_0x37d1,0xcde74));import{readFileSync,writeFileSync}from'node:fs';import{cookieFile}from'./constants.js';export function getCookie(){const _0x387628=a4_0x3bc3;try{return readFileSync(cookieFile,_0x387628(0xac))[_0x387628(0xad)]();}catch{return'';}}export function saveCookie(_0x107d5a){const _0x3287a2=a4_0x3bc3;try{writeFileSync(cookieFile,_0x107d5a,'utf-8');}catch(_0x163e98){throw new Error(_0x3287a2(0xb0)+cookieFile+':\x20'+_0x163e98['message']);}}export function hasCookie(){const _0x3ca2db=a4_0x3bc3,_0x5b7585=getCookie();return _0x5b7585[_0x3ca2db(0xa7)]>0x0;}function a4_0x3bc3(_0x601d72,_0x1bab1f){const _0x37d1e4=a4_0x37d1();return a4_0x3bc3=function(_0x3bc324,_0x5aeb88){_0x3bc324=_0x3bc324-0xa4;let _0x4dc4cc=_0x37d1e4[_0x3bc324];return _0x4dc4cc;},a4_0x3bc3(_0x601d72,_0x1bab1f);}export function clearCookie(){const _0x463ce8=a4_0x3bc3;try{writeFileSync(cookieFile,'',_0x463ce8(0xac));}catch{}}function a4_0x37d1(){const _0x583b58=['6936321eMDbkz','7724QbsEIO','1200Emkjxz','18663354BJkALV','utf-8','trim','228238mKOYVj','411048TbPTJg','Failed\x20to\x20save\x20cookie\x20to\x20','6006620phwmtM','16HyFuta','9831918MfWuoo','length'];a4_0x37d1=function(){return _0x583b58;};return a4_0x37d1();}
1
+ function a4_0x3c15(_0x109d64,_0x813814){_0x109d64=_0x109d64-0x10f;const _0x21cf36=a4_0x21cf();let _0x3c15bb=_0x21cf36[_0x109d64];return _0x3c15bb;}(function(_0x1a9657,_0x19a271){const _0x3f9dbd=a4_0x3c15,_0xe74654=_0x1a9657();while(!![]){try{const _0x4addd3=parseInt(_0x3f9dbd(0x10f))/0x1+-parseInt(_0x3f9dbd(0x110))/0x2+parseInt(_0x3f9dbd(0x117))/0x3+parseInt(_0x3f9dbd(0x11a))/0x4+parseInt(_0x3f9dbd(0x112))/0x5*(-parseInt(_0x3f9dbd(0x116))/0x6)+parseInt(_0x3f9dbd(0x118))/0x7+parseInt(_0x3f9dbd(0x113))/0x8;if(_0x4addd3===_0x19a271)break;else _0xe74654['push'](_0xe74654['shift']());}catch(_0x29e685){_0xe74654['push'](_0xe74654['shift']());}}}(a4_0x21cf,0xaa8bf));import{readFileSync,writeFileSync}from'node:fs';import{cookieFile}from'./constants.js';export function getCookie(){const _0x584ae2=a4_0x3c15;try{return readFileSync(cookieFile,'utf-8')[_0x584ae2(0x119)]();}catch{return'';}}function a4_0x21cf(){const _0x4dc309=['4263385LwysWW','trim','1246268wXWLQS','92795TuYEPl','2140852IRPLdI','Failed\x20to\x20save\x20cookie\x20to\x20','9365GybOtr','9945024kaFsyc','message','length','4434CzKQlL','2689761WDzkKC'];a4_0x21cf=function(){return _0x4dc309;};return a4_0x21cf();}export function saveCookie(_0x32782a){const _0x241844=a4_0x3c15;try{writeFileSync(cookieFile,_0x32782a,'utf-8');}catch(_0x34d5eb){throw new Error(_0x241844(0x111)+cookieFile+':\x20'+_0x34d5eb[_0x241844(0x114)]);}}export function hasCookie(){const _0xe87d7a=a4_0x3c15,_0x20f31f=getCookie();return _0x20f31f[_0xe87d7a(0x115)]>0x0;}export function clearCookie(){try{writeFileSync(cookieFile,'','utf-8');}catch{}}
@@ -1 +1 @@
1
- const a5_0x2a85e6=a5_0x5087;function a5_0x5087(_0x22d7c2,_0x14ee14){const _0x4a7d31=a5_0x4a7d();return a5_0x5087=function(_0x50877f,_0x4a8d19){_0x50877f=_0x50877f-0x110;let _0x473fa9=_0x4a7d31[_0x50877f];return _0x473fa9;},a5_0x5087(_0x22d7c2,_0x14ee14);}(function(_0x3caabb,_0x5c8e44){const _0x164a43=a5_0x5087,_0x14ffd7=_0x3caabb();while(!![]){try{const _0x205a96=-parseInt(_0x164a43(0x112))/0x1+-parseInt(_0x164a43(0x117))/0x2*(parseInt(_0x164a43(0x115))/0x3)+parseInt(_0x164a43(0x111))/0x4+-parseInt(_0x164a43(0x110))/0x5+parseInt(_0x164a43(0x116))/0x6*(-parseInt(_0x164a43(0x113))/0x7)+parseInt(_0x164a43(0x114))/0x8+parseInt(_0x164a43(0x118))/0x9;if(_0x205a96===_0x5c8e44)break;else _0x14ffd7['push'](_0x14ffd7['shift']());}catch(_0x51a3bd){_0x14ffd7['push'](_0x14ffd7['shift']());}}}(a5_0x4a7d,0xb0be9));import{getCookie}from'./cookie-manager.js';function a5_0x4a7d(){const _0x360f6f=['session','5453100MfNsEs','3068604NJSekd','320549xhRTmX','63vwrOXI','4773456zaMIvc','12gzWUfu','796842Jmjqwl','500868ULVRss','26714520ILIqNh','json','online'];a5_0x4a7d=function(){return _0x360f6f;};return a5_0x4a7d();}import{getUserDomain}from'./constants.js';export async function isSessionValid(_0xcfd095=a5_0x2a85e6(0x11a)){const _0xc3e566=a5_0x2a85e6,_0x5a596e=getCookie();if(!_0x5a596e)return![];try{const _0x14a3e0=await fetch(getUserDomain(_0xcfd095)+'/api/auth/get-session',{'headers':{'cookie':_0x5a596e}});if(!_0x14a3e0['ok'])return![];const _0x4ebeea=await _0x14a3e0[_0xc3e566(0x119)]();return!!(_0x4ebeea?.[_0xc3e566(0x11b)]&&_0x4ebeea?.['user']);}catch{return![];}}
1
+ function a5_0x31c5(_0x1354ae,_0x1ba8d7){_0x1354ae=_0x1354ae-0x128;const _0x20d280=a5_0x20d2();let _0x31c504=_0x20d280[_0x1354ae];return _0x31c504;}const a5_0x65d17e=a5_0x31c5;(function(_0x37f60f,_0xd89ae7){const _0x3b443c=a5_0x31c5,_0xb3d3fc=_0x37f60f();while(!![]){try{const _0xf4e8ec=-parseInt(_0x3b443c(0x134))/0x1*(parseInt(_0x3b443c(0x12a))/0x2)+parseInt(_0x3b443c(0x131))/0x3*(-parseInt(_0x3b443c(0x132))/0x4)+parseInt(_0x3b443c(0x12b))/0x5+-parseInt(_0x3b443c(0x12e))/0x6*(-parseInt(_0x3b443c(0x130))/0x7)+-parseInt(_0x3b443c(0x12c))/0x8+-parseInt(_0x3b443c(0x12d))/0x9+parseInt(_0x3b443c(0x12f))/0xa;if(_0xf4e8ec===_0xd89ae7)break;else _0xb3d3fc['push'](_0xb3d3fc['shift']());}catch(_0x21dd17){_0xb3d3fc['push'](_0xb3d3fc['shift']());}}}(a5_0x20d2,0xe2d20));import{getCookie}from'./cookie-manager.js';function a5_0x20d2(){const _0x4ee994=['724840yvZLJx','online','19XKtueu','user','/api/auth/get-session','json','24532rJyPLD','5319600cyzuLM','4233304NyNeAd','13374855PvrEKX','117354RojYyV','24626450ObOKOb','329VSrHXd','21WsBMsu'];a5_0x20d2=function(){return _0x4ee994;};return a5_0x20d2();}import{getUserDomain}from'./constants.js';export async function isSessionValid(_0x3aae19=a5_0x65d17e(0x133)){const _0x6e2427=a5_0x65d17e,_0x30e679=getCookie();if(!_0x30e679)return![];try{const _0x3c9f03=await fetch(getUserDomain(_0x3aae19)+_0x6e2427(0x128),{'headers':{'cookie':_0x30e679}});if(!_0x3c9f03['ok'])return![];const _0x1ac0d1=await _0x3c9f03[_0x6e2427(0x129)]();return!!(_0x1ac0d1?.['session']&&_0x1ac0d1?.[_0x6e2427(0x135)]);}catch{return![];}}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a6_0x534815=a6_0x5928;(function(_0x3dd92b,_0x47d61c){const _0x3759e3=a6_0x5928,_0x3fb8ea=_0x3dd92b();while(!![]){try{const _0x5aa317=parseInt(_0x3759e3(0x12d))/0x1+-parseInt(_0x3759e3(0x12a))/0x2+parseInt(_0x3759e3(0x127))/0x3+parseInt(_0x3759e3(0x130))/0x4+-parseInt(_0x3759e3(0x129))/0x5*(parseInt(_0x3759e3(0x131))/0x6)+parseInt(_0x3759e3(0x12f))/0x7+parseInt(_0x3759e3(0x138))/0x8*(-parseInt(_0x3759e3(0x137))/0x9);if(_0x5aa317===_0x47d61c)break;else _0x3fb8ea['push'](_0x3fb8ea['shift']());}catch(_0x2c0ce3){_0x3fb8ea['push'](_0x3fb8ea['shift']());}}}(a6_0x25ea,0xebea0));import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';function a6_0x25ea(){const _0x147474=['SIGTERM','log','Shutting\x20down\x20Lovrabet\x20Dataset\x20MCP\x20Server...','env','catch','414yqgZAC','564880PgbjYN','error','5699175eFBKoQ','logInfo','10yAzoeO','555398NeRrAV','connect','exit','1239399rIRlDn','MCP_DEBUG','98469SkBwGF','6903872oTrTTA','1161288liDKXy'];a6_0x25ea=function(){return _0x147474;};return a6_0x25ea();}import{createServer}from'./server.js';function a6_0x5928(_0x296bdb,_0x25b9e2){const _0x25ea7c=a6_0x25ea();return a6_0x5928=function(_0x592844,_0x54e5b9){_0x592844=_0x592844-0x126;let _0x3278c4=_0x25ea7c[_0x592844];return _0x3278c4;},a6_0x5928(_0x296bdb,_0x25b9e2);}async function main(){const _0x342ec3=a6_0x5928;try{const _0x20583e=createServer(),_0x3720b8=new StdioServerTransport();_0x20583e[_0x342ec3(0x128)](),await _0x20583e[_0x342ec3(0x12b)](_0x3720b8),process['on']('SIGINT',async()=>{const _0x47ac4a=_0x342ec3;process[_0x47ac4a(0x135)]['MCP_DEBUG']&&console[_0x47ac4a(0x133)](_0x47ac4a(0x134)),process[_0x47ac4a(0x12c)](0x0);}),process['on'](_0x342ec3(0x132),async()=>{const _0x46f1b4=_0x342ec3;process[_0x46f1b4(0x135)][_0x46f1b4(0x12e)]&&console['log'](_0x46f1b4(0x134)),process[_0x46f1b4(0x12c)](0x0);});}catch(_0xe7fb1d){console[_0x342ec3(0x126)]('Failed\x20to\x20start\x20Lovrabet\x20Dataset\x20MCP\x20Server:',_0xe7fb1d),process[_0x342ec3(0x12c)](0x1);}}main()[a6_0x534815(0x136)](_0xc30a0b=>{const _0x88f184=a6_0x534815;console[_0x88f184(0x126)]('Unhandled\x20error:',_0xc30a0b),process[_0x88f184(0x12c)](0x1);});
2
+ const a6_0x814088=a6_0x4cb0;(function(_0x594492,_0xf2cec2){const _0x5cf0de=a6_0x4cb0,_0x175b4e=_0x594492();while(!![]){try{const _0x24475a=parseInt(_0x5cf0de(0x1cc))/0x1*(parseInt(_0x5cf0de(0x1c1))/0x2)+parseInt(_0x5cf0de(0x1be))/0x3*(-parseInt(_0x5cf0de(0x1c4))/0x4)+-parseInt(_0x5cf0de(0x1c9))/0x5*(parseInt(_0x5cf0de(0x1bf))/0x6)+-parseInt(_0x5cf0de(0x1c7))/0x7*(parseInt(_0x5cf0de(0x1d1))/0x8)+-parseInt(_0x5cf0de(0x1c8))/0x9*(parseInt(_0x5cf0de(0x1c0))/0xa)+parseInt(_0x5cf0de(0x1cd))/0xb*(parseInt(_0x5cf0de(0x1cb))/0xc)+parseInt(_0x5cf0de(0x1cf))/0xd;if(_0x24475a===_0xf2cec2)break;else _0x175b4e['push'](_0x175b4e['shift']());}catch(_0x260e1a){_0x175b4e['push'](_0x175b4e['shift']());}}}(a6_0x3ceb,0x29b16));function a6_0x3ceb(){const _0x3b0788=['5065YBmQVd','log','67752rMAVOB','8WsFrdE','88kiNSbG','Unhandled\x20error:','9435998lVbfjf','error','8dSsPDD','logInfo','catch','MCP_DEBUG','Failed\x20to\x20start\x20Lovrabet\x20Dataset\x20MCP\x20Server:','Shutting\x20down\x20Lovrabet\x20Dataset\x20MCP\x20Server...','438321yFZgCs','342fryNOI','170WDDNtX','886xnjgHj','exit','SIGTERM','4YreImC','env','SIGINT','693490TDJEJc','159282AMaqmg'];a6_0x3ceb=function(){return _0x3b0788;};return a6_0x3ceb();}function a6_0x4cb0(_0x3880e3,_0x164f7a){_0x3880e3=_0x3880e3-0x1ba;const _0x3ceb48=a6_0x3ceb();let _0x4cb028=_0x3ceb48[_0x3880e3];return _0x4cb028;}import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{createServer}from'./server.js';async function main(){const _0x34055c=a6_0x4cb0;try{const _0x50583b=createServer(),_0x388816=new StdioServerTransport();_0x50583b[_0x34055c(0x1d2)](),await _0x50583b['connect'](_0x388816),process['on'](_0x34055c(0x1c6),async()=>{const _0x291ae4=_0x34055c;process[_0x291ae4(0x1c5)][_0x291ae4(0x1bb)]&&console[_0x291ae4(0x1ca)]('Shutting\x20down\x20Lovrabet\x20Dataset\x20MCP\x20Server...'),process[_0x291ae4(0x1c2)](0x0);}),process['on'](_0x34055c(0x1c3),async()=>{const _0x4d4696=_0x34055c;process[_0x4d4696(0x1c5)]['MCP_DEBUG']&&console[_0x4d4696(0x1ca)](_0x4d4696(0x1bd)),process[_0x4d4696(0x1c2)](0x0);});}catch(_0x134431){console[_0x34055c(0x1d0)](_0x34055c(0x1bc),_0x134431),process[_0x34055c(0x1c2)](0x1);}}main()[a6_0x814088(0x1ba)](_0x3e70eb=>{const _0x1f18c6=a6_0x814088;console[_0x1f18c6(0x1d0)](_0x1f18c6(0x1ce),_0x3e70eb),process[_0x1f18c6(0x1c2)](0x1);});
package/dist/server.js CHANGED
@@ -1 +1 @@
1
- const a7_0x5d9e59=a7_0x1777;(function(_0xa8c022,_0x5687dc){const _0x7a569e=a7_0x1777,_0x45a18e=_0xa8c022();while(!![]){try{const _0x38805d=-parseInt(_0x7a569e(0x14e))/0x1+-parseInt(_0x7a569e(0x146))/0x2+-parseInt(_0x7a569e(0x14d))/0x3*(-parseInt(_0x7a569e(0x140))/0x4)+-parseInt(_0x7a569e(0x161))/0x5+-parseInt(_0x7a569e(0x150))/0x6*(-parseInt(_0x7a569e(0x185))/0x7)+-parseInt(_0x7a569e(0x15a))/0x8*(parseInt(_0x7a569e(0x157))/0x9)+-parseInt(_0x7a569e(0x15e))/0xa;if(_0x38805d===_0x5687dc)break;else _0x45a18e['push'](_0x45a18e['shift']());}catch(_0x34f051){_0x45a18e['push'](_0x45a18e['shift']());}}}(a7_0x278c,0x3daa3));function a7_0x1777(_0x41e8d6,_0x220afa){const _0x278c8e=a7_0x278c();return a7_0x1777=function(_0x1777cf,_0x56fdd3){_0x1777cf=_0x1777cf-0x135;let _0x2190e1=_0x278c8e[_0x1777cf];return _0x2190e1;},a7_0x1777(_0x41e8d6,_0x220afa);}import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{z}from'zod';import{createRequire}from'module';import{login,listDatasets,getDatasetDetail,getDatasetOperations,getOperationDetail,generateSDKCode,searchDatasets,listSqlQueries}from'./tools/index.js';const require=createRequire(import.meta[a7_0x5d9e59(0x163)]),packageJson=require(a7_0x5d9e59(0x160)),authSchema={'appCode':z[a7_0x5d9e59(0x17c)]()[a7_0x5d9e59(0x176)]()[a7_0x5d9e59(0x167)](a7_0x5d9e59(0x13a)),'cookie':z['string']()['optional']()[a7_0x5d9e59(0x167)](a7_0x5d9e59(0x16f)),'env':z[a7_0x5d9e59(0x139)]([a7_0x5d9e59(0x13f),a7_0x5d9e59(0x183)])[a7_0x5d9e59(0x176)]()[a7_0x5d9e59(0x167)](a7_0x5d9e59(0x16e))};function a7_0x278c(){const _0x5b5b30=['967086aEAiAR','Environment\x20to\x20login\x20to\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)','mcpServer','16bUrjoV','Get\x20list\x20of\x20all\x20datasets\x20for\x20an\x20application','registerGenerateSDKCodeTool','Generate\x20SDK\x20code\x20example\x20for\x20calling\x20a\x20specific\x20operation,\x20including\x20complete\x20field\x20metadata\x20(required,\x20enum\x20values,\x20etc.).\x0a\x0aCRITICAL\x20-\x20SDK\x20Version\x20Requirement:\x0a•\x20dataset_[code]\x20pattern\x20and\x20alias\x20mode\x20require\x20@lovrabet/sdk\x20>=\x201.2.0\x0a•\x20For\x20SDK\x20<\x201.2.0,\x20only\x20client.models.[key]\x20pattern\x20is\x20supported\x20(key\x20defined\x20in\x20createClient/registerModels)\x0a•\x20FIRST\x20check\x20user\x27s\x20package.json\x20for\x20@lovrabet/sdk\x20version\x20before\x20generating\x20code\x0a\x0aCRITICAL\x20-\x20Model\x20Access\x20Patterns:\x0a•\x20SDK\x20>=\x201.2.0:\x20Use\x20dataset_[code]\x20pattern\x20by\x20default\x20(stable,\x20no\x20config\x20needed)\x0a•\x20SDK\x20<\x201.2.0:\x20Must\x20use\x20the\x20key\x20configured\x20in\x20createClient/registerModels\x0a•\x20If\x20user\x20wants\x20alias\x20mode\x20(SDK\x20>=\x201.2.0),\x20MUST\x20first\x20search\x20for\x20createClient()\x20or\x20registerModels()\x20in\x20user\x27s\x20codebase\x0a•\x20DO\x20NOT\x20assume\x20the\x20alias\x20is\x20the\x20default\x20camelCase\x20table\x20name\x20-\x20user\x20may\x20have\x20customized\x20it\x0a\x0aCRITICAL\x20-\x20Data\x20Query\x20Best\x20Practices:\x0a•\x20ALWAYS\x20use\x20filter\x20operation\x20for\x20querying\x20data\x20(most\x20flexible,\x20supports\x20complex\x20conditions)\x0a•\x20ONLY\x20use\x20getOne\x20when\x20you\x20have\x20a\x20specific\x20primary\x20key\x20ID\x0a•\x20filter\x20supports:\x20complex\x20where\x20conditions,\x20pagination,\x20sorting,\x20field\x20selection\x0a•\x20getOne\x20is\x20for:\x20single\x20record\x20retrieval\x20by\x20ID\x20only\x0a\x0aIMPORTANT\x20-\x20SDK\x20Return\x20Value\x20Behavior:\x0a•\x20On\x20Success:\x20Returns\x20ONLY\x20the\x20\x27data\x27\x20field\x20from\x20the\x20API\x20response\x20(not\x20the\x20full\x20JSON)\x0a\x20\x20Example:\x20create()\x20returns\x20{\x20id:\x20123,\x20name:\x20\x22...\x22\x20}\x20directly\x0a•\x20On\x20Error:\x20Throws\x20a\x20LovrabetError\x20exception\x20containing\x20the\x20full\x20response\x20JSON\x0a\x20\x20Error\x20has\x20properties:\x20message,\x20status\x20(HTTP\x20code),\x20code\x20(business\x20error\x20code),\x20data\x20(full\x20error\x20response)\x0a\x0aAlways\x20use\x20try-catch\x20when\x20calling\x20SDK\x20methods\x20like\x20create(),\x20update(),\x20filter(),\x20etc.','378240ldlair','\x20\x20Use\x20the\x20\x22login\x22\x20tool\x20first\x20to\x20authenticate.','../package.json','202715ViYJqp','📌\x20Version:\x20','url','stringify','\x20\x20-\x20get_dataset_operations:\x20Get\x20list\x20of\x20operations\x20for\x20a\x20dataset','Get\x20Operations','describe','Operation\x20name\x20(e.g.,\x20filter,\x20getOne,\x20create,\x20update).\x20Prefer\x20\x22filter\x22\x20for\x20queries.','Search\x20datasets\x20by\x20keyword\x20(searches\x20in\x20name,\x20table\x20name,\x20code,\x20and\x20description)','Get\x20detailed\x20information\x20about\x20a\x20specific\x20operation\x20including\x20request/response\x20examples.\x0a\x0aCRITICAL\x20-\x20Data\x20Query\x20Best\x20Practices:\x0a•\x20ALWAYS\x20use\x20filter\x20operation\x20for\x20querying\x20data\x20(most\x20flexible,\x20supports\x20complex\x20conditions)\x0a•\x20ONLY\x20use\x20getOne\x20when\x20you\x20have\x20a\x20specific\x20primary\x20key\x20ID\x0a•\x20AVOID\x20using\x20getList\x20unless\x20the\x20requirement\x20explicitly\x20needs\x20simple\x20listing\x20without\x20conditions\x0a•\x20filter\x20supports:\x20complex\x20where\x20conditions,\x20pagination,\x20sorting,\x20field\x20selection\x0a•\x20getOne\x20is\x20for:\x20single\x20record\x20retrieval\x20by\x20ID\x20only\x0a•\x20getList\x20is\x20for:\x20simple\x20unfiltered\x20listing\x20(rarely\x20needed\x20in\x20practice)\x0a\x0aNote:\x20SDK\x20methods\x20(create,\x20update,\x20getList,\x20filter,\x20etc.)\x20return\x20ONLY\x20the\x20\x27data\x27\x20field\x20on\x20success,\x20and\x20throw\x20LovrabetError\x20on\x20failure.\x20Always\x20use\x20try-catch.','Include\x20import\x20statements\x20and\x20full\x20example\x20(default:\x20true)','\x20\x20This\x20server\x20uses\x20cookie-based\x20authentication.','login','Environment\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)','Authentication\x20cookie\x20(optional,\x20uses\x20stored\x20cookie\x20from\x20login\x20if\x20not\x20provided)','number','✅\x20Server\x20started\x20successfully\x20(using\x20McpServer\x20API)','list_sql_queries','Login\x20to\x20Lovrabet\x20to\x20authenticate\x20for\x20dataset\x20queries','\x20\x20-\x20generate_sdk_code:\x20Generate\x20SDK\x20code\x20for\x20an\x20operation','generate_sdk_code','optional','registerTool','close','Available\x20tools:','connect','registerListDatasetsTool','string','registerGetOperationsTool','Search\x20Datasets','Get\x20list\x20of\x20all\x20API\x20operations\x20available\x20for\x20a\x20dataset.\x0a\x0aCRITICAL\x20-\x20Data\x20Query\x20Best\x20Practices:\x0a•\x20ALWAYS\x20use\x20filter\x20operation\x20for\x20querying\x20data\x20(most\x20flexible,\x20supports\x20complex\x20conditions)\x0a•\x20ONLY\x20use\x20getOne\x20when\x20you\x20have\x20a\x20specific\x20primary\x20key\x20ID\x0a•\x20AVOID\x20using\x20getList\x20unless\x20the\x20requirement\x20explicitly\x20needs\x20simple\x20listing\x20without\x20conditions\x0a•\x20filter\x20supports:\x20complex\x20where\x20conditions,\x20pagination,\x20sorting,\x20field\x20selection\x0a•\x20getOne\x20is\x20for:\x20single\x20record\x20retrieval\x20by\x20ID\x20only\x0a•\x20getList\x20is\x20for:\x20simple\x20unfiltered\x20listing\x20(rarely\x20needed\x20in\x20practice)','version','Optional:\x20filter\x20by\x20category\x20(report,\x20analysis,\x20export,\x20etc.)','get_operation_detail','daily','\x20\x20-\x20get_operation_detail:\x20Get\x20detailed\x20operation\x20information','7wiwSXS','Search\x20keyword','registerAllTools','MCP_DEBUG','Login','enum','Application\x20code\x20(optional\x20if\x20LOVRABET_APP_CODE\x20env\x20var\x20is\x20set)','Generate\x20SDK\x20Code','env','\x20\x20-\x20get_dataset_detail:\x20Get\x20detailed\x20dataset\x20information','search_datasets','online','4kTzQzg','registerGetOperationDetailTool','\x20\x20-\x20list_sql_queries:\x20List\x20all\x20available\x20SQL\x20queries','log','Dataset\x20code/ID','registerSearchDatasetsTool','180896HjoSWO','Get\x20Dataset\x20Detail','registerLoginTool','List\x20Datasets','Number\x20of\x20items\x20per\x20page\x20(default:\x20999)','\x20\x20-\x20list_datasets:\x20Get\x20list\x20of\x20all\x20datasets','Number\x20of\x20datasets\x20per\x20page\x20(default:\x20999)','642426wfWEWM','7384CuAKoO','Bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20API\x20(default:\x20false).\x20Set\x20to\x20true\x20when\x20you\x20need\x20the\x20latest\x20data.','2577264HTPNXw','text','get_dataset_detail','Page\x20number\x20to\x20fetch\x20(default:\x201)','registerGetDatasetDetailTool','boolean','registerListSqlQueriesTool'];a7_0x278c=function(){return _0x5b5b30;};return a7_0x278c();}function createToolHandler(_0x2fa2e1){return async _0x17bc97=>{const _0x2a441b=a7_0x1777;try{const _0x41e599=await _0x2fa2e1(_0x17bc97);return{'content':[{'type':_0x2a441b(0x151),'text':JSON[_0x2a441b(0x164)](_0x41e599,null,0x2)}]};}catch(_0x516ec8){return{'content':[{'type':'text','text':JSON['stringify']({'error':!![],'message':_0x516ec8['message']||'Unknown\x20error\x20occurred'},null,0x2)}],'isError':!![]};}};}export class LovrabetDatasetMCPServer{[a7_0x5d9e59(0x159)];constructor(){const _0x4a1a21=a7_0x5d9e59;this[_0x4a1a21(0x159)]=new McpServer({'name':'lovrabet-dataset-mcp','version':packageJson[_0x4a1a21(0x180)]},{'capabilities':{'tools':{}}}),this[_0x4a1a21(0x136)]();}['registerAllTools'](){const _0x1e6ba4=a7_0x5d9e59;this[_0x1e6ba4(0x148)](),this[_0x1e6ba4(0x17b)](),this['registerGetDatasetDetailTool'](),this[_0x1e6ba4(0x17d)](),this['registerGetOperationDetailTool'](),this[_0x1e6ba4(0x15c)](),this[_0x1e6ba4(0x145)](),this[_0x1e6ba4(0x156)]();}[a7_0x5d9e59(0x148)](){const _0x161cb1=a7_0x5d9e59;this[_0x161cb1(0x159)][_0x161cb1(0x177)](_0x161cb1(0x16d),{'title':_0x161cb1(0x138),'description':_0x161cb1(0x173),'inputSchema':{'env':z[_0x161cb1(0x139)]([_0x161cb1(0x13f),_0x161cb1(0x183)])[_0x161cb1(0x176)]()[_0x161cb1(0x167)](_0x161cb1(0x158))},'annotations':{'readOnlyHint':![],'destructiveHint':![],'idempotentHint':!![]}},createToolHandler(_0x471597=>login(_0x471597||{})));}['registerListDatasetsTool'](){const _0x401ef5=a7_0x5d9e59;this[_0x401ef5(0x159)][_0x401ef5(0x177)]('list_datasets',{'title':_0x401ef5(0x149),'description':_0x401ef5(0x15b),'inputSchema':{...authSchema,'pageSize':z[_0x401ef5(0x170)]()['optional']()[_0x401ef5(0x167)](_0x401ef5(0x14c)),'currentPage':z['number']()[_0x401ef5(0x176)]()[_0x401ef5(0x167)]('Page\x20number\x20to\x20fetch\x20(default:\x201)'),'forceRefresh':z[_0x401ef5(0x155)]()['optional']()[_0x401ef5(0x167)]('Bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20API\x20(default:\x20false).\x20Set\x20to\x20true\x20when\x20you\x20need\x20the\x20latest\x20data.')},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},createToolHandler(_0x50ee86=>listDatasets(_0x50ee86)));}[a7_0x5d9e59(0x154)](){const _0x5c2af4=a7_0x5d9e59;this['mcpServer'][_0x5c2af4(0x177)](_0x5c2af4(0x152),{'title':_0x5c2af4(0x147),'description':'Get\x20detailed\x20information\x20about\x20a\x20specific\x20dataset\x20including\x20all\x20field\x20definitions','inputSchema':{...authSchema,'datasetCode':z[_0x5c2af4(0x17c)]()[_0x5c2af4(0x167)](_0x5c2af4(0x144)),'forceRefresh':z[_0x5c2af4(0x155)]()[_0x5c2af4(0x176)]()[_0x5c2af4(0x167)](_0x5c2af4(0x14f))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},createToolHandler(_0x3080af=>getDatasetDetail(_0x3080af)));}[a7_0x5d9e59(0x17d)](){const _0x6d8dea=a7_0x5d9e59;this[_0x6d8dea(0x159)]['registerTool']('get_dataset_operations',{'title':_0x6d8dea(0x166),'description':_0x6d8dea(0x17f),'inputSchema':{...authSchema,'datasetCode':z[_0x6d8dea(0x17c)]()['describe'](_0x6d8dea(0x144))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},createToolHandler(_0x2f3af5=>getDatasetOperations(_0x2f3af5)));}[a7_0x5d9e59(0x141)](){const _0x37e444=a7_0x5d9e59;this[_0x37e444(0x159)][_0x37e444(0x177)](_0x37e444(0x182),{'title':'Get\x20Operation\x20Detail','description':_0x37e444(0x16a),'inputSchema':{...authSchema,'datasetCode':z['string']()[_0x37e444(0x167)](_0x37e444(0x144)),'operationName':z[_0x37e444(0x17c)]()[_0x37e444(0x167)](_0x37e444(0x168))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},createToolHandler(_0x26f3dc=>getOperationDetail(_0x26f3dc)));}[a7_0x5d9e59(0x15c)](){const _0x3bb268=a7_0x5d9e59;this[_0x3bb268(0x159)][_0x3bb268(0x177)](_0x3bb268(0x175),{'title':_0x3bb268(0x13b),'description':_0x3bb268(0x15d),'inputSchema':{...authSchema,'datasetCode':z[_0x3bb268(0x17c)]()[_0x3bb268(0x167)]('Dataset\x20code/ID'),'operationName':z[_0x3bb268(0x17c)]()['describe'](_0x3bb268(0x168)),'includeImports':z[_0x3bb268(0x155)]()[_0x3bb268(0x176)]()[_0x3bb268(0x167)](_0x3bb268(0x16b)),'useAlias':z[_0x3bb268(0x155)]()[_0x3bb268(0x176)]()['describe']('Use\x20camelCase\x20alias\x20instead\x20of\x20dataset_[code]\x20pattern\x20(default:\x20false).\x20Only\x20set\x20to\x20true\x20if\x20user\x20explicitly\x20requests\x20human-friendly\x20alias\x20mode.')},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},createToolHandler(_0x39e7ba=>generateSDKCode(_0x39e7ba)));}[a7_0x5d9e59(0x145)](){const _0x4972e1=a7_0x5d9e59;this[_0x4972e1(0x159)][_0x4972e1(0x177)](_0x4972e1(0x13e),{'title':_0x4972e1(0x17e),'description':_0x4972e1(0x169),'inputSchema':{...authSchema,'keyword':z[_0x4972e1(0x17c)]()[_0x4972e1(0x167)](_0x4972e1(0x135))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},createToolHandler(_0x157404=>searchDatasets(_0x157404)));}['registerListSqlQueriesTool'](){const _0x44e645=a7_0x5d9e59;this['mcpServer'][_0x44e645(0x177)](_0x44e645(0x172),{'title':'List\x20SQL\x20Queries','description':'List\x20all\x20available\x20SQL\x20queries\x20with\x20complete,\x20ready-to-use\x20code\x20examples.\x0a\x0aThis\x20is\x20the\x20ONLY\x20tool\x20needed\x20for\x20SQL\x20queries.\x20It\x20provides\x20EVERYTHING:\x0a•\x20Complete\x20list\x20of\x20available\x20SQL\x20queries\x20for\x20the\x20application\x0a•\x20Each\x20SQL\x20includes\x20full\x20executable\x20TypeScript\x20code\x20in\x20codeExample\x20field\x0a•\x20Parameters\x20with\x20example\x20values\x0a•\x20Important\x20usage\x20notes\x20and\x20error\x20handling\x20patterns\x0a\x0aIMPORTANT:\x20The\x20execution\x20pattern\x20is\x20ALWAYS\x20the\x20same\x20for\x20ALL\x20SQLs:\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(sqlCode,\x20params);\x0aif\x20(!data.execSuccess)\x20{\x0a\x20\x20throw\x20new\x20Error(data.execError\x20||\x20\x27SQL\x20execution\x20failed\x27);\x0a}\x0aconst\x20results\x20=\x20data.execResult\x20||\x20[];\x0a\x0aKey\x20points\x20emphasized\x20in\x20each\x20SQL\x27s\x20code\x20example:\x0a•\x20SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[],\x20execError?:\x20string\x20}\x0a•\x20Always\x20check\x20execSuccess\x20before\x20using\x20execResult\x0a•\x20Use\x20try-catch\x20for\x20HTTP\x20errors\x20(network,\x20auth)\x0a•\x20Business\x20errors\x20are\x20in\x20data.execError\x20(not\x20thrown)\x0a\x0aYou\x20do\x20NOT\x20need\x20to\x20execute\x20SQLs\x20-\x20just\x20show\x20users\x20the\x20provided\x20code\x20examples.','inputSchema':{...authSchema,'keyword':z[_0x44e645(0x17c)]()[_0x44e645(0x176)]()['describe']('Optional:\x20search\x20SQL\x20queries\x20by\x20name,\x20description,\x20or\x20SQL\x20content'),'category':z[_0x44e645(0x17c)]()[_0x44e645(0x176)]()[_0x44e645(0x167)](_0x44e645(0x181)),'pageSize':z['number']()[_0x44e645(0x176)]()[_0x44e645(0x167)](_0x44e645(0x14a)),'currentPage':z[_0x44e645(0x170)]()[_0x44e645(0x176)]()[_0x44e645(0x167)](_0x44e645(0x153))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},createToolHandler(_0x5c785d=>listSqlQueries(_0x5c785d)));}get['server'](){return this['mcpServer'];}async['connect'](_0x51d08c){const _0xa312=a7_0x5d9e59;await this[_0xa312(0x159)][_0xa312(0x17a)](_0x51d08c);}async[a7_0x5d9e59(0x178)](){const _0x1c343a=a7_0x5d9e59;await this[_0x1c343a(0x159)]['close']();}['logInfo'](){const _0x2d9b20=a7_0x5d9e59;if(!process[_0x2d9b20(0x13c)][_0x2d9b20(0x137)])return;console[_0x2d9b20(0x143)]('🚀\x20Lovrabet\x20Dataset\x20MCP\x20Server\x20(Development\x20API)'),console[_0x2d9b20(0x143)](_0x2d9b20(0x162)+packageJson[_0x2d9b20(0x180)]),console[_0x2d9b20(0x143)](_0x2d9b20(0x171)),console[_0x2d9b20(0x143)](''),console[_0x2d9b20(0x143)]('🔐\x20Authentication:'),console[_0x2d9b20(0x143)](_0x2d9b20(0x16c)),console[_0x2d9b20(0x143)](_0x2d9b20(0x15f)),console[_0x2d9b20(0x143)](''),console[_0x2d9b20(0x143)](_0x2d9b20(0x179)),console[_0x2d9b20(0x143)]('\x20\x20-\x20login:\x20Login\x20to\x20Lovrabet\x20to\x20authenticate'),console['log'](_0x2d9b20(0x14b)),console[_0x2d9b20(0x143)](_0x2d9b20(0x13d)),console['log'](_0x2d9b20(0x165)),console[_0x2d9b20(0x143)](_0x2d9b20(0x184)),console['log'](_0x2d9b20(0x174)),console[_0x2d9b20(0x143)]('\x20\x20-\x20search_datasets:\x20Search\x20datasets\x20by\x20keyword'),console[_0x2d9b20(0x143)](_0x2d9b20(0x142));}}export function createServer(){return new LovrabetDatasetMCPServer();}
1
+ const a7_0x40f01d=a7_0x2609;function a7_0x2609(_0x651132,_0x5681d0){_0x651132=_0x651132-0xc5;const _0x5a190a=a7_0x5a19();let _0x2609d5=_0x5a190a[_0x651132];return _0x2609d5;}(function(_0x44fbb5,_0x40a816){const _0xb326ce=a7_0x2609,_0x49b085=_0x44fbb5();while(!![]){try{const _0x5d349f=-parseInt(_0xb326ce(0xd8))/0x1*(parseInt(_0xb326ce(0xfd))/0x2)+-parseInt(_0xb326ce(0x112))/0x3+parseInt(_0xb326ce(0x114))/0x4+-parseInt(_0xb326ce(0xdd))/0x5+parseInt(_0xb326ce(0xe4))/0x6+-parseInt(_0xb326ce(0x105))/0x7*(parseInt(_0xb326ce(0xec))/0x8)+parseInt(_0xb326ce(0xd5))/0x9*(parseInt(_0xb326ce(0x10d))/0xa);if(_0x5d349f===_0x40a816)break;else _0x49b085['push'](_0x49b085['shift']());}catch(_0x5aabb9){_0x49b085['push'](_0x49b085['shift']());}}}(a7_0x5a19,0x412fb));import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';function a7_0x5a19(){const _0x390cd4=['number','13578giZIjp','Generate\x20SDK\x20code\x20example\x20for\x20calling\x20a\x20specific\x20operation,\x20including\x20complete\x20field\x20metadata\x20(required,\x20enum\x20values,\x20etc.).\x0a\x0aCRITICAL\x20-\x20SDK\x20Version\x20Requirement:\x0a•\x20dataset_[code]\x20pattern\x20and\x20alias\x20mode\x20require\x20@lovrabet/sdk\x20>=\x201.2.0\x0a•\x20For\x20SDK\x20<\x201.2.0,\x20only\x20client.models.[key]\x20pattern\x20is\x20supported\x20(key\x20defined\x20in\x20createClient/registerModels)\x0a•\x20FIRST\x20check\x20user\x27s\x20package.json\x20for\x20@lovrabet/sdk\x20version\x20before\x20generating\x20code\x0a\x0aCRITICAL\x20-\x20Model\x20Access\x20Patterns:\x0a•\x20SDK\x20>=\x201.2.0:\x20Use\x20dataset_[code]\x20pattern\x20by\x20default\x20(stable,\x20no\x20config\x20needed)\x0a•\x20SDK\x20<\x201.2.0:\x20Must\x20use\x20the\x20key\x20configured\x20in\x20createClient/registerModels\x0a•\x20If\x20user\x20wants\x20alias\x20mode\x20(SDK\x20>=\x201.2.0),\x20MUST\x20first\x20search\x20for\x20createClient()\x20or\x20registerModels()\x20in\x20user\x27s\x20codebase\x0a•\x20DO\x20NOT\x20assume\x20the\x20alias\x20is\x20the\x20default\x20camelCase\x20table\x20name\x20-\x20user\x20may\x20have\x20customized\x20it\x0a\x0aCRITICAL\x20-\x20Data\x20Query\x20Best\x20Practices:\x0a•\x20ALWAYS\x20use\x20filter\x20operation\x20for\x20querying\x20data\x20(most\x20flexible,\x20supports\x20complex\x20conditions)\x0a•\x20ONLY\x20use\x20getOne\x20when\x20you\x20have\x20a\x20specific\x20primary\x20key\x20ID\x0a•\x20filter\x20supports:\x20complex\x20where\x20conditions,\x20pagination,\x20sorting,\x20field\x20selection\x0a•\x20getOne\x20is\x20for:\x20single\x20record\x20retrieval\x20by\x20ID\x20only\x0a\x0aIMPORTANT\x20-\x20SDK\x20Return\x20Value\x20Behavior:\x0a•\x20On\x20Success:\x20Returns\x20ONLY\x20the\x20\x27data\x27\x20field\x20from\x20the\x20API\x20response\x20(not\x20the\x20full\x20JSON)\x0a\x20\x20Example:\x20create()\x20returns\x20{\x20id:\x20123,\x20name:\x20\x22...\x22\x20}\x20directly\x0a•\x20On\x20Error:\x20Throws\x20a\x20LovrabetError\x20exception\x20containing\x20the\x20full\x20response\x20JSON\x0a\x20\x20Error\x20has\x20properties:\x20message,\x20status\x20(HTTP\x20code),\x20code\x20(business\x20error\x20code),\x20data\x20(full\x20error\x20response)\x0a\x0aAlways\x20use\x20try-catch\x20when\x20calling\x20SDK\x20methods\x20like\x20create(),\x20update(),\x20filter(),\x20etc.','Get\x20detailed\x20information\x20about\x20a\x20specific\x20dataset\x20including\x20all\x20field\x20definitions','registerSearchDatasetsTool','MCP_DEBUG','\x20\x20-\x20list_sql_queries:\x20List\x20all\x20available\x20SQL\x20queries','Login','get_dataset_detail','12887pMeUSh','../package.json','mcpServer','generate_sdk_code','enum','Bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20API\x20(default:\x20false).\x20Set\x20to\x20true\x20when\x20you\x20need\x20the\x20latest\x20data.','close','\x20\x20This\x20server\x20uses\x20cookie-based\x20authentication.','620qRufyd','Get\x20Operation\x20Detail','list_sql_queries','Get\x20list\x20of\x20all\x20API\x20operations\x20available\x20for\x20a\x20dataset.\x0a\x0aCRITICAL\x20-\x20Data\x20Query\x20Best\x20Practices:\x0a•\x20ALWAYS\x20use\x20filter\x20operation\x20for\x20querying\x20data\x20(most\x20flexible,\x20supports\x20complex\x20conditions)\x0a•\x20ONLY\x20use\x20getOne\x20when\x20you\x20have\x20a\x20specific\x20primary\x20key\x20ID\x0a•\x20AVOID\x20using\x20getList\x20unless\x20the\x20requirement\x20explicitly\x20needs\x20simple\x20listing\x20without\x20conditions\x0a•\x20filter\x20supports:\x20complex\x20where\x20conditions,\x20pagination,\x20sorting,\x20field\x20selection\x0a•\x20getOne\x20is\x20for:\x20single\x20record\x20retrieval\x20by\x20ID\x20only\x0a•\x20getList\x20is\x20for:\x20simple\x20unfiltered\x20listing\x20(rarely\x20needed\x20in\x20practice)','stringify','74037yYTeVW','🔐\x20Authentication:','1207304IDIsPj','Get\x20detailed\x20information\x20about\x20a\x20specific\x20operation\x20including\x20request/response\x20examples.\x0a\x0aCRITICAL\x20-\x20Data\x20Query\x20Best\x20Practices:\x0a•\x20ALWAYS\x20use\x20filter\x20operation\x20for\x20querying\x20data\x20(most\x20flexible,\x20supports\x20complex\x20conditions)\x0a•\x20ONLY\x20use\x20getOne\x20when\x20you\x20have\x20a\x20specific\x20primary\x20key\x20ID\x0a•\x20AVOID\x20using\x20getList\x20unless\x20the\x20requirement\x20explicitly\x20needs\x20simple\x20listing\x20without\x20conditions\x0a•\x20filter\x20supports:\x20complex\x20where\x20conditions,\x20pagination,\x20sorting,\x20field\x20selection\x0a•\x20getOne\x20is\x20for:\x20single\x20record\x20retrieval\x20by\x20ID\x20only\x0a•\x20getList\x20is\x20for:\x20simple\x20unfiltered\x20listing\x20(rarely\x20needed\x20in\x20practice)\x0a\x0aNote:\x20SDK\x20methods\x20(create,\x20update,\x20getList,\x20filter,\x20etc.)\x20return\x20ONLY\x20the\x20\x27data\x27\x20field\x20on\x20success,\x20and\x20throw\x20LovrabetError\x20on\x20failure.\x20Always\x20use\x20try-catch.','optional','Environment\x20to\x20login\x20to\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)','Number\x20of\x20datasets\x20per\x20page\x20(default:\x20999)','\x20\x20-\x20login:\x20Login\x20to\x20Lovrabet\x20to\x20authenticate','Operation\x20name\x20(e.g.,\x20filter,\x20getOne,\x20create,\x20update).\x20Prefer\x20\x22filter\x22\x20for\x20queries.','Login\x20to\x20Lovrabet\x20to\x20authenticate\x20for\x20dataset\x20queries','Search\x20Datasets','✅\x20Server\x20started\x20successfully\x20(using\x20McpServer\x20API)','\x20\x20Use\x20the\x20\x22login\x22\x20tool\x20first\x20to\x20authenticate.','registerAllTools','\x20\x20-\x20search_datasets:\x20Search\x20datasets\x20by\x20keyword','Use\x20camelCase\x20alias\x20instead\x20of\x20dataset_[code]\x20pattern\x20(default:\x20false).\x20Only\x20set\x20to\x20true\x20if\x20user\x20explicitly\x20requests\x20human-friendly\x20alias\x20mode.','registerListSqlQueriesTool','env','log','68049OLnSzw','\x20\x20-\x20get_operation_detail:\x20Get\x20detailed\x20operation\x20information','registerGetDatasetDetailTool','43SwYkRb','Search\x20keyword','daily','Available\x20tools:','get_dataset_operations','2190665GwcAJF','List\x20Datasets','Include\x20import\x20statements\x20and\x20full\x20example\x20(default:\x20true)','registerGetOperationsTool','message','Unknown\x20error\x20occurred','List\x20SQL\x20Queries','2081196XvYCiN','\x20\x20-\x20generate_sdk_code:\x20Generate\x20SDK\x20code\x20for\x20an\x20operation','string','lovrabet-dataset-mcp','\x20\x20-\x20list_datasets:\x20Get\x20list\x20of\x20all\x20datasets','Generate\x20SDK\x20Code','version','Optional:\x20filter\x20by\x20category\x20(report,\x20analysis,\x20export,\x20etc.)','416xvJwrE','online','Search\x20datasets\x20by\x20keyword\x20(searches\x20in\x20name,\x20table\x20name,\x20code,\x20and\x20description)','registerListDatasetsTool','text','registerGenerateSDKCodeTool','Dataset\x20code/ID','login','Page\x20number\x20to\x20fetch\x20(default:\x201)','registerTool','describe','Number\x20of\x20items\x20per\x20page\x20(default:\x20999)','📌\x20Version:\x20','registerGetOperationDetailTool','logInfo','boolean'];a7_0x5a19=function(){return _0x390cd4;};return a7_0x5a19();}import{z}from'zod';import{createRequire}from'module';import{login,listDatasets,getDatasetDetail,getDatasetOperations,getOperationDetail,generateSDKCode,searchDatasets,listSqlQueries}from'./tools/index.js';const require=createRequire(import.meta.url),packageJson=require(a7_0x40f01d(0x106)),authSchema={'appCode':z[a7_0x40f01d(0xe6)]()[a7_0x40f01d(0xc6)]()['describe']('Application\x20code\x20(optional\x20if\x20LOVRABET_APP_CODE\x20env\x20var\x20is\x20set)'),'cookie':z[a7_0x40f01d(0xe6)]()[a7_0x40f01d(0xc6)]()[a7_0x40f01d(0xf6)]('Authentication\x20cookie\x20(optional,\x20uses\x20stored\x20cookie\x20from\x20login\x20if\x20not\x20provided)'),'env':z[a7_0x40f01d(0x109)]([a7_0x40f01d(0xed),a7_0x40f01d(0xda)])[a7_0x40f01d(0xc6)]()['describe']('Environment\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)')};function registerToolWithOptions(_0x4130a3,_0x11417e,_0x5f3cde,_0x26d87c){const _0xbb7223=a7_0x40f01d;_0x4130a3[_0xbb7223(0xf5)](_0x11417e,_0x5f3cde,_0x26d87c);}export class LovrabetDatasetMCPServer{[a7_0x40f01d(0x107)];constructor(){const _0x3cac61=a7_0x40f01d;this['mcpServer']=new McpServer({'name':_0x3cac61(0xe7),'version':packageJson['version']},{'capabilities':{'tools':{}}}),this[_0x3cac61(0xcf)]();}[a7_0x40f01d(0xcf)](){const _0x147854=a7_0x40f01d;this['registerLoginTool'](),this[_0x147854(0xef)](),this[_0x147854(0xd7)](),this[_0x147854(0xe0)](),this[_0x147854(0xf9)](),this['registerGenerateSDKCodeTool'](),this[_0x147854(0x100)](),this[_0x147854(0xd2)]();}['registerLoginTool'](){const _0x17f8ac=a7_0x40f01d;registerToolWithOptions(this[_0x17f8ac(0x107)],_0x17f8ac(0xf3),{'title':_0x17f8ac(0x103),'description':_0x17f8ac(0xcb),'inputSchema':{'env':z[_0x17f8ac(0x109)](['online',_0x17f8ac(0xda)])[_0x17f8ac(0xc6)]()[_0x17f8ac(0xf6)](_0x17f8ac(0xc7))},'annotations':{'readOnlyHint':![],'destructiveHint':![],'idempotentHint':!![]}},async _0x1696df=>{const _0x35abad=_0x17f8ac;try{const _0x3dbad5=await login(_0x1696df||{});return{'content':[{'type':_0x35abad(0xf0),'text':JSON[_0x35abad(0x111)](_0x3dbad5,null,0x2)}]};}catch(_0x4471fb){return{'content':[{'type':_0x35abad(0xf0),'text':JSON[_0x35abad(0x111)]({'error':!![],'message':_0x4471fb[_0x35abad(0xe1)]||'Unknown\x20error\x20occurred'},null,0x2)}],'isError':!![]};}});}['registerListDatasetsTool'](){const _0x414e71=a7_0x40f01d;registerToolWithOptions(this['mcpServer'],'list_datasets',{'title':_0x414e71(0xde),'description':'Get\x20list\x20of\x20all\x20datasets\x20for\x20an\x20application','inputSchema':{...authSchema,'pageSize':z['number']()[_0x414e71(0xc6)]()[_0x414e71(0xf6)](_0x414e71(0xc8)),'currentPage':z[_0x414e71(0xfc)]()[_0x414e71(0xc6)]()[_0x414e71(0xf6)](_0x414e71(0xf4)),'forceRefresh':z[_0x414e71(0xfb)]()[_0x414e71(0xc6)]()[_0x414e71(0xf6)](_0x414e71(0x10a))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},async _0x55cc93=>{const _0x5b23ed=_0x414e71;try{const _0x399fe0=await listDatasets(_0x55cc93);return{'content':[{'type':'text','text':JSON[_0x5b23ed(0x111)](_0x399fe0,null,0x2)}]};}catch(_0xb664c5){return{'content':[{'type':_0x5b23ed(0xf0),'text':JSON[_0x5b23ed(0x111)]({'error':!![],'message':_0xb664c5['message']||_0x5b23ed(0xe2)},null,0x2)}],'isError':!![]};}});}[a7_0x40f01d(0xd7)](){const _0x10af53=a7_0x40f01d;registerToolWithOptions(this[_0x10af53(0x107)],_0x10af53(0x104),{'title':'Get\x20Dataset\x20Detail','description':_0x10af53(0xff),'inputSchema':{...authSchema,'datasetCode':z[_0x10af53(0xe6)]()[_0x10af53(0xf6)](_0x10af53(0xf2)),'forceRefresh':z[_0x10af53(0xfb)]()['optional']()[_0x10af53(0xf6)]('Bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20API\x20(default:\x20false).\x20Set\x20to\x20true\x20when\x20you\x20need\x20the\x20latest\x20data.')},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},async _0x4ac3be=>{const _0x579631=_0x10af53;try{const _0x6a401f=await getDatasetDetail(_0x4ac3be);return{'content':[{'type':'text','text':JSON[_0x579631(0x111)](_0x6a401f,null,0x2)}]};}catch(_0x4e5ce8){return{'content':[{'type':_0x579631(0xf0),'text':JSON[_0x579631(0x111)]({'error':!![],'message':_0x4e5ce8[_0x579631(0xe1)]||_0x579631(0xe2)},null,0x2)}],'isError':!![]};}});}[a7_0x40f01d(0xe0)](){const _0x33efb9=a7_0x40f01d;registerToolWithOptions(this['mcpServer'],_0x33efb9(0xdc),{'title':'Get\x20Operations','description':_0x33efb9(0x110),'inputSchema':{...authSchema,'datasetCode':z[_0x33efb9(0xe6)]()['describe'](_0x33efb9(0xf2))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},async _0x2a3b9b=>{const _0x2d3005=_0x33efb9;try{const _0x8f31d4=await getDatasetOperations(_0x2a3b9b);return{'content':[{'type':'text','text':JSON[_0x2d3005(0x111)](_0x8f31d4,null,0x2)}]};}catch(_0x2af4ad){return{'content':[{'type':_0x2d3005(0xf0),'text':JSON[_0x2d3005(0x111)]({'error':!![],'message':_0x2af4ad[_0x2d3005(0xe1)]||'Unknown\x20error\x20occurred'},null,0x2)}],'isError':!![]};}});}[a7_0x40f01d(0xf9)](){const _0x4a1133=a7_0x40f01d;registerToolWithOptions(this[_0x4a1133(0x107)],'get_operation_detail',{'title':_0x4a1133(0x10e),'description':_0x4a1133(0xc5),'inputSchema':{...authSchema,'datasetCode':z[_0x4a1133(0xe6)]()[_0x4a1133(0xf6)](_0x4a1133(0xf2)),'operationName':z[_0x4a1133(0xe6)]()[_0x4a1133(0xf6)](_0x4a1133(0xca))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},async _0xd5afb2=>{const _0x41cda5=_0x4a1133;try{const _0x54ac49=await getOperationDetail(_0xd5afb2);return{'content':[{'type':_0x41cda5(0xf0),'text':JSON[_0x41cda5(0x111)](_0x54ac49,null,0x2)}]};}catch(_0x1f42a9){return{'content':[{'type':_0x41cda5(0xf0),'text':JSON['stringify']({'error':!![],'message':_0x1f42a9[_0x41cda5(0xe1)]||_0x41cda5(0xe2)},null,0x2)}],'isError':!![]};}});}[a7_0x40f01d(0xf1)](){const _0x2187d7=a7_0x40f01d;registerToolWithOptions(this[_0x2187d7(0x107)],_0x2187d7(0x108),{'title':_0x2187d7(0xe9),'description':_0x2187d7(0xfe),'inputSchema':{...authSchema,'datasetCode':z['string']()['describe'](_0x2187d7(0xf2)),'operationName':z[_0x2187d7(0xe6)]()['describe']('Operation\x20name\x20(e.g.,\x20filter,\x20getOne,\x20create,\x20update).\x20Prefer\x20\x22filter\x22\x20for\x20queries.'),'includeImports':z['boolean']()['optional']()[_0x2187d7(0xf6)](_0x2187d7(0xdf)),'useAlias':z[_0x2187d7(0xfb)]()[_0x2187d7(0xc6)]()[_0x2187d7(0xf6)](_0x2187d7(0xd1))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},async _0x3731ad=>{const _0x25181a=_0x2187d7;try{const _0x4ff32b=await generateSDKCode(_0x3731ad);return{'content':[{'type':_0x25181a(0xf0),'text':JSON[_0x25181a(0x111)](_0x4ff32b,null,0x2)}]};}catch(_0x4a8e5e){return{'content':[{'type':_0x25181a(0xf0),'text':JSON[_0x25181a(0x111)]({'error':!![],'message':_0x4a8e5e['message']||_0x25181a(0xe2)},null,0x2)}],'isError':!![]};}});}['registerSearchDatasetsTool'](){const _0x32ad59=a7_0x40f01d;registerToolWithOptions(this[_0x32ad59(0x107)],'search_datasets',{'title':_0x32ad59(0xcc),'description':_0x32ad59(0xee),'inputSchema':{...authSchema,'keyword':z[_0x32ad59(0xe6)]()[_0x32ad59(0xf6)](_0x32ad59(0xd9))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},async _0x2425a8=>{const _0x3f5a7c=_0x32ad59;try{const _0x1effc5=await searchDatasets(_0x2425a8);return{'content':[{'type':_0x3f5a7c(0xf0),'text':JSON[_0x3f5a7c(0x111)](_0x1effc5,null,0x2)}]};}catch(_0x27fd79){return{'content':[{'type':'text','text':JSON['stringify']({'error':!![],'message':_0x27fd79['message']||_0x3f5a7c(0xe2)},null,0x2)}],'isError':!![]};}});}[a7_0x40f01d(0xd2)](){const _0x333f22=a7_0x40f01d;registerToolWithOptions(this[_0x333f22(0x107)],_0x333f22(0x10f),{'title':_0x333f22(0xe3),'description':'List\x20all\x20available\x20SQL\x20queries\x20with\x20complete,\x20ready-to-use\x20code\x20examples.\x0a\x0aThis\x20is\x20the\x20ONLY\x20tool\x20needed\x20for\x20SQL\x20queries.\x20It\x20provides\x20EVERYTHING:\x0a•\x20Complete\x20list\x20of\x20available\x20SQL\x20queries\x20for\x20the\x20application\x0a•\x20Each\x20SQL\x20includes\x20full\x20executable\x20TypeScript\x20code\x20in\x20codeExample\x20field\x0a•\x20Parameters\x20with\x20example\x20values\x0a•\x20Important\x20usage\x20notes\x20and\x20error\x20handling\x20patterns\x0a\x0aIMPORTANT:\x20The\x20execution\x20pattern\x20is\x20ALWAYS\x20the\x20same\x20for\x20ALL\x20SQLs:\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(sqlCode,\x20params);\x0aif\x20(!data.execSuccess)\x20{\x0a\x20\x20throw\x20new\x20Error(data.execError\x20||\x20\x27SQL\x20execution\x20failed\x27);\x0a}\x0aconst\x20results\x20=\x20data.execResult\x20||\x20[];\x0a\x0aKey\x20points\x20emphasized\x20in\x20each\x20SQL\x27s\x20code\x20example:\x0a•\x20SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[],\x20execError?:\x20string\x20}\x0a•\x20Always\x20check\x20execSuccess\x20before\x20using\x20execResult\x0a•\x20Use\x20try-catch\x20for\x20HTTP\x20errors\x20(network,\x20auth)\x0a•\x20Business\x20errors\x20are\x20in\x20data.execError\x20(not\x20thrown)\x0a\x0aYou\x20do\x20NOT\x20need\x20to\x20execute\x20SQLs\x20-\x20just\x20show\x20users\x20the\x20provided\x20code\x20examples.','inputSchema':{...authSchema,'keyword':z[_0x333f22(0xe6)]()['optional']()['describe']('Optional:\x20search\x20SQL\x20queries\x20by\x20name,\x20description,\x20or\x20SQL\x20content'),'category':z[_0x333f22(0xe6)]()[_0x333f22(0xc6)]()[_0x333f22(0xf6)](_0x333f22(0xeb)),'pageSize':z[_0x333f22(0xfc)]()[_0x333f22(0xc6)]()[_0x333f22(0xf6)](_0x333f22(0xf7)),'currentPage':z[_0x333f22(0xfc)]()[_0x333f22(0xc6)]()[_0x333f22(0xf6)](_0x333f22(0xf4))},'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![]}},async _0x267a98=>{const _0x18dbdc=_0x333f22;try{const _0xba0d61=await listSqlQueries(_0x267a98);return{'content':[{'type':_0x18dbdc(0xf0),'text':JSON[_0x18dbdc(0x111)](_0xba0d61,null,0x2)}]};}catch(_0x26196d){return{'content':[{'type':_0x18dbdc(0xf0),'text':JSON[_0x18dbdc(0x111)]({'error':!![],'message':_0x26196d['message']||_0x18dbdc(0xe2)},null,0x2)}],'isError':!![]};}});}get['server'](){const _0x5c3f71=a7_0x40f01d;return this[_0x5c3f71(0x107)];}async['connect'](_0x229ad8){const _0x54b28a=a7_0x40f01d;await this[_0x54b28a(0x107)]['connect'](_0x229ad8);}async[a7_0x40f01d(0x10b)](){const _0x156278=a7_0x40f01d;await this[_0x156278(0x107)]['close']();}[a7_0x40f01d(0xfa)](){const _0x551743=a7_0x40f01d;if(!process[_0x551743(0xd3)][_0x551743(0x101)])return;console[_0x551743(0xd4)]('🚀\x20Lovrabet\x20Dataset\x20MCP\x20Server\x20(Development\x20API)'),console[_0x551743(0xd4)](_0x551743(0xf8)+packageJson[_0x551743(0xea)]),console[_0x551743(0xd4)](_0x551743(0xcd)),console['log'](''),console['log'](_0x551743(0x113)),console['log'](_0x551743(0x10c)),console[_0x551743(0xd4)](_0x551743(0xce)),console[_0x551743(0xd4)](''),console[_0x551743(0xd4)](_0x551743(0xdb)),console[_0x551743(0xd4)](_0x551743(0xc9)),console[_0x551743(0xd4)](_0x551743(0xe8)),console[_0x551743(0xd4)]('\x20\x20-\x20get_dataset_detail:\x20Get\x20detailed\x20dataset\x20information'),console['log']('\x20\x20-\x20get_dataset_operations:\x20Get\x20list\x20of\x20operations\x20for\x20a\x20dataset'),console[_0x551743(0xd4)](_0x551743(0xd6)),console['log'](_0x551743(0xe5)),console[_0x551743(0xd4)](_0x551743(0xd0)),console[_0x551743(0xd4)](_0x551743(0x102));}}export function createServer(){return new LovrabetDatasetMCPServer();}
@@ -1 +1 @@
1
- (function(_0x5d74cf,_0x5b0f4d){const _0x509268=a8_0x42e6,_0x240a8a=_0x5d74cf();while(!![]){try{const _0xd3c999=-parseInt(_0x509268(0x91))/0x1+parseInt(_0x509268(0x89))/0x2+-parseInt(_0x509268(0xa7))/0x3+-parseInt(_0x509268(0xaa))/0x4*(-parseInt(_0x509268(0xab))/0x5)+parseInt(_0x509268(0x9b))/0x6*(parseInt(_0x509268(0xa4))/0x7)+-parseInt(_0x509268(0x96))/0x8+parseInt(_0x509268(0xa2))/0x9*(-parseInt(_0x509268(0x8b))/0xa);if(_0xd3c999===_0x5b0f4d)break;else _0x240a8a['push'](_0x240a8a['shift']());}catch(_0x3166a9){_0x240a8a['push'](_0x240a8a['shift']());}}}(a8_0x2a8f,0xc88cd));function a8_0x42e6(_0x41a579,_0x354bdd){const _0x2a8f3b=a8_0x2a8f();return a8_0x42e6=function(_0x42e61e,_0x529951){_0x42e61e=_0x42e61e-0x87;let _0x3693ac=_0x2a8f3b[_0x42e61e];return _0x3693ac;},a8_0x42e6(_0x41a579,_0x354bdd);}function a8_0x2a8f(){const _0x2bcc64=['CRITICAL:\x20Always\x20use\x20try-catch\x20when\x20calling\x20SDK\x20methods.\x20Success\x20case\x20returns\x20data\x20directly\x20(e.g.,\x20{\x20id:\x20123,\x20name:\x20\x22...\x22\x20}),\x20but\x20failure\x20case\x20throws\x20exception\x20instead\x20of\x20returning\x20error\x20info.','使用别名前,必须先在用户代码中搜索\x20createClient\x20或\x20registerModels,查找该数据集实际配置的\x20alias。默认值\x20\x22','operationName\x20is\x20required','96MTyOwi','getDatasetDetail','dataset_[code]\x20模式和\x20alias\x20模式需要\x20@lovrabet/sdk\x20>=\x201.2.0。如果用户\x20SDK\x20版本\x20<\x201.2.0,只能使用\x20createClient/registerModels\x20中配置的\x20key。请先检查\x20package.json\x20中的\x20SDK\x20版本。','LOVRABET_ENV','code','analyzeDatasetDetail','getDatasetList','2826963WzcUCq','name','691726Jozrsk','datasetCode\x20is\x20required','//\x20数据集:\x20','168741biPFxF','usageExample','online','5533356lpgoLi','5YXZfqk','modelAlias','aliasExplanation','Cannot\x20generate\x20SDK\x20code\x20for\x20operation\x20\x27','typescript','responseExample','datasetSDKKey','\x20|\x20数据表:\x20','env','877012KibFft','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','40ZdaGXM','generateSDKCode','sdkCallInfo','LOVRABET_APP_CODE','\x27\x20in\x20dataset\x20\x27','sdkInitCode','665231rzaIEX','fields','requestExample','replace','basic','4828592zDjlTZ','data'];a8_0x2a8f=function(){return _0x2bcc64;};return a8_0x2a8f();}import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function generateSDKCode(_0x471121){const _0x2fc76c=a8_0x42e6,{appCode:appCode=process[_0x2fc76c(0x88)][_0x2fc76c(0x8e)],cookie:_0x20ca5a,env:env=process[_0x2fc76c(0x88)][_0x2fc76c(0x9e)]||_0x2fc76c(0xa9),datasetCode:_0x123b65,operationName:_0x48c95c,includeImports:includeImports=!![],useAlias:useAlias=![]}=_0x471121;if(!appCode)throw new Error(_0x2fc76c(0x8a));if(!_0x123b65)throw new Error(_0x2fc76c(0xa5));if(!_0x48c95c)throw new Error(_0x2fc76c(0x9a));const _0x335e70=new DevApiClient({'appCode':appCode,'cookie':_0x20ca5a,'env':env}),_0x30efd2=/^\d+$/['test'](_0x123b65);let _0x5234e5;if(_0x30efd2)_0x5234e5=_0x123b65;else{const _0x5a1c74=await _0x335e70[_0x2fc76c(0xa1)]({'pageSize':0x3e7}),_0x539193=_0x5a1c74[_0x2fc76c(0x97)]?.['tableData']||[],_0x1fee79=_0x539193['find'](_0xd21380=>_0xd21380['code']===_0x123b65);if(!_0x1fee79)throw new Error('Dataset\x20not\x20found\x20with\x20code:\x20'+_0x123b65);_0x5234e5=String(_0x1fee79['id']);}const _0x5462f2=await _0x335e70[_0x2fc76c(0x9c)](_0x5234e5),_0x135afd=new DatasetAnalyzer(),_0x15b3c3=_0x135afd[_0x2fc76c(0x8c)](_0x5462f2,_0x48c95c,appCode,env);if(!_0x15b3c3)throw new Error(_0x2fc76c(0xae)+_0x48c95c+_0x2fc76c(0x8f)+_0x123b65+'\x27');const _0x5aa578=_0x135afd[_0x2fc76c(0xa0)](_0x5462f2),_0x57e4a0=_0x5aa578[_0x2fc76c(0x95)][_0x2fc76c(0xb1)],_0x5ad255=_0x5aa578['basic'][_0x2fc76c(0xac)];let _0x5bfd14=_0x15b3c3[_0x2fc76c(0x9f)],_0x1d68fc=_0x15b3c3['fullExample'];useAlias&&(_0x5bfd14=_0x5bfd14[_0x2fc76c(0x94)](new RegExp(_0x57e4a0,'g'),_0x5ad255),_0x1d68fc&&(_0x1d68fc=_0x1d68fc[_0x2fc76c(0x94)](new RegExp(_0x57e4a0,'g'),_0x5ad255)));const _0x3a82f9=_0x5aa578['basic'][_0x2fc76c(0xa3)],_0x418230=_0x5aa578['basic']['tableName'],_0x25ab30=_0x2fc76c(0xa6)+_0x3a82f9+_0x2fc76c(0x87)+_0x418230+'\x0a',_0x4a8b33=_0x25ab30+_0x5bfd14,_0x24155e=_0x1d68fc?_0x2fc76c(0xa6)+_0x3a82f9+_0x2fc76c(0x87)+_0x418230+'\x0a'+_0x1d68fc:undefined;return{'appCode':appCode,'env':env,'datasetName':_0x3a82f9,'language':_0x2fc76c(0xaf),'code':_0x4a8b33,'fullExample':includeImports?_0x24155e:undefined,'sdkCallInfo':_0x15b3c3[_0x2fc76c(0x8d)],'fields':_0x5aa578[_0x2fc76c(0x92)],'requestExample':_0x15b3c3[_0x2fc76c(0x93)],'responseExample':_0x15b3c3[_0x2fc76c(0xb0)],'sdkInitCode':_0x15b3c3[_0x2fc76c(0x90)],'usageExample':_0x15b3c3[_0x2fc76c(0xa8)],'sdkReturnValueBehavior':{'onSuccess':'Returns\x20ONLY\x20the\x20\x27data\x27\x20field\x20content.\x20Full\x20API\x20response\x20is\x20{\x20success:\x20true,\x20data:\x20{...},\x20msg:\x20\x22\x22,\x20errorMsg:\x20\x22\x22,\x20errorCode:\x20\x220000\x22\x20},\x20but\x20SDK\x20returns\x20just\x20the\x20{...}\x20part\x20from\x20\x27data\x27.','onError':'Throws\x20LovrabetError\x20exception\x20with\x20full\x20response.\x20The\x20error\x20object\x20contains:\x20{\x20message:\x20string,\x20status?:\x20number\x20(HTTP\x20code),\x20code?:\x20string\x20(business\x20error\x20code),\x20data?:\x20any\x20(full\x20error\x20response)\x20}','note':_0x2fc76c(0x98)},'aliasExplanation':useAlias?_0x15b3c3[_0x2fc76c(0xad)]:undefined,'aliasHint':{'defaultAlias':_0x5ad255,'datasetSDKKey':_0x57e4a0,'note':_0x2fc76c(0x99)+_0x5ad255+'\x22\x20仅供参考,用户可能已自定义为其他名称。','versionNote':_0x2fc76c(0x9d)}};}
1
+ function a8_0x4333(){const _0x15bc88=['66146AmQbcl','name','requestExample','270760GSLjTy','test','fullExample','LOVRABET_APP_CODE','\x20|\x20数据表:\x20','4hIojor','23370688FZFqgD','Throws\x20LovrabetError\x20exception\x20with\x20full\x20response.\x20The\x20error\x20object\x20contains:\x20{\x20message:\x20string,\x20status?:\x20number\x20(HTTP\x20code),\x20code?:\x20string\x20(business\x20error\x20code),\x20data?:\x20any\x20(full\x20error\x20response)\x20}','Returns\x20ONLY\x20the\x20\x27data\x27\x20field\x20content.\x20Full\x20API\x20response\x20is\x20{\x20success:\x20true,\x20data:\x20{...},\x20msg:\x20\x22\x22,\x20errorMsg:\x20\x22\x22,\x20errorCode:\x20\x220000\x22\x20},\x20but\x20SDK\x20returns\x20just\x20the\x20{...}\x20part\x20from\x20\x27data\x27.','online','data','fields','tableName','5514649aEtOyB','datasetCode\x20is\x20required','CRITICAL:\x20Always\x20use\x20try-catch\x20when\x20calling\x20SDK\x20methods.\x20Success\x20case\x20returns\x20data\x20directly\x20(e.g.,\x20{\x20id:\x20123,\x20name:\x20\x22...\x22\x20}),\x20but\x20failure\x20case\x20throws\x20exception\x20instead\x20of\x20returning\x20error\x20info.','aliasExplanation','getDatasetList','sdkCallInfo','962859yWxNdV','//\x20数据集:\x20','9292648jDCZqj','8KikInz','modelAlias','Dataset\x20not\x20found\x20with\x20code:\x20','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','usageExample','env','dataset_[code]\x20模式和\x20alias\x20模式需要\x20@lovrabet/sdk\x20>=\x201.2.0。如果用户\x20SDK\x20版本\x20<\x201.2.0,只能使用\x20createClient/registerModels\x20中配置的\x20key。请先检查\x20package.json\x20中的\x20SDK\x20版本。','code','45850yFTVFY','使用别名前,必须先在用户代码中搜索\x20createClient\x20或\x20registerModels,查找该数据集实际配置的\x20alias。默认值\x20\x22','312ZNqvwg','414MMPOwT','\x27\x20in\x20dataset\x20\x27','replace','analyzeDatasetDetail','Cannot\x20generate\x20SDK\x20code\x20for\x20operation\x20\x27','typescript','basic','generateSDKCode'];a8_0x4333=function(){return _0x15bc88;};return a8_0x4333();}(function(_0x4fccc8,_0x413484){const _0x2890cc=a8_0x3083,_0x2c87a9=_0x4fccc8();while(!![]){try{const _0x123347=-parseInt(_0x2890cc(0xa6))/0x1*(parseInt(_0x2890cc(0xb9))/0x2)+parseInt(_0x2890cc(0xa3))/0x3*(parseInt(_0x2890cc(0x95))/0x4)+-parseInt(_0x2890cc(0xae))/0x5*(parseInt(_0x2890cc(0xb0))/0x6)+parseInt(_0x2890cc(0x9d))/0x7+parseInt(_0x2890cc(0xa5))/0x8+parseInt(_0x2890cc(0xb1))/0x9*(parseInt(_0x2890cc(0x90))/0xa)+-parseInt(_0x2890cc(0x96))/0xb;if(_0x123347===_0x413484)break;else _0x2c87a9['push'](_0x2c87a9['shift']());}catch(_0x3cfd81){_0x2c87a9['push'](_0x2c87a9['shift']());}}}(a8_0x4333,0x9ea4d));function a8_0x3083(_0xf9b4b1,_0x48dbd3){_0xf9b4b1=_0xf9b4b1-0x90;const _0x4333b9=a8_0x4333();let _0x3083cf=_0x4333b9[_0xf9b4b1];return _0x3083cf;}import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function generateSDKCode(_0x1171ee){const _0x1c27ef=a8_0x3083,{appCode:appCode=process[_0x1c27ef(0xab)][_0x1c27ef(0x93)],cookie:_0x18c4a1,env:env=process[_0x1c27ef(0xab)]['LOVRABET_ENV']||_0x1c27ef(0x99),datasetCode:_0x4216da,operationName:_0x1bb8e4,includeImports:includeImports=!![],useAlias:useAlias=![]}=_0x1171ee;if(!appCode)throw new Error(_0x1c27ef(0xa9));if(!_0x4216da)throw new Error(_0x1c27ef(0x9e));if(!_0x1bb8e4)throw new Error('operationName\x20is\x20required');const _0x25a062=new DevApiClient({'appCode':appCode,'cookie':_0x18c4a1,'env':env}),_0x106b22=/^\d+$/[_0x1c27ef(0x91)](_0x4216da);let _0x57613f;if(_0x106b22)_0x57613f=_0x4216da;else{const _0x1298e8=await _0x25a062[_0x1c27ef(0xa1)]({'pageSize':0x3e7}),_0x341e64=_0x1298e8[_0x1c27ef(0x9a)]?.['tableData']||[],_0x589441=_0x341e64['find'](_0x2260e1=>_0x2260e1[_0x1c27ef(0xad)]===_0x4216da);if(!_0x589441)throw new Error(_0x1c27ef(0xa8)+_0x4216da);_0x57613f=String(_0x589441['id']);}const _0x469fd8=await _0x25a062['getDatasetDetail'](_0x57613f),_0x4fc1dc=new DatasetAnalyzer(),_0x51db94=_0x4fc1dc[_0x1c27ef(0xb8)](_0x469fd8,_0x1bb8e4,appCode,env);if(!_0x51db94)throw new Error(_0x1c27ef(0xb5)+_0x1bb8e4+_0x1c27ef(0xb2)+_0x4216da+'\x27');const _0x1bfa0c=_0x4fc1dc[_0x1c27ef(0xb4)](_0x469fd8),_0x33438b=_0x1bfa0c[_0x1c27ef(0xb7)]['datasetSDKKey'],_0x1e6730=_0x1bfa0c[_0x1c27ef(0xb7)][_0x1c27ef(0xa7)];let _0x1f3eb1=_0x51db94[_0x1c27ef(0xad)],_0x315f91=_0x51db94[_0x1c27ef(0x92)];useAlias&&(_0x1f3eb1=_0x1f3eb1[_0x1c27ef(0xb3)](new RegExp(_0x33438b,'g'),_0x1e6730),_0x315f91&&(_0x315f91=_0x315f91[_0x1c27ef(0xb3)](new RegExp(_0x33438b,'g'),_0x1e6730)));const _0x5a3797=_0x1bfa0c['basic'][_0x1c27ef(0xba)],_0x549033=_0x1bfa0c[_0x1c27ef(0xb7)][_0x1c27ef(0x9c)],_0x369098=_0x1c27ef(0xa4)+_0x5a3797+_0x1c27ef(0x94)+_0x549033+'\x0a',_0x3cc038=_0x369098+_0x1f3eb1,_0x3a91bd=_0x315f91?'//\x20数据集:\x20'+_0x5a3797+_0x1c27ef(0x94)+_0x549033+'\x0a'+_0x315f91:undefined;return{'appCode':appCode,'env':env,'datasetName':_0x5a3797,'language':_0x1c27ef(0xb6),'code':_0x3cc038,'fullExample':includeImports?_0x3a91bd:undefined,'sdkCallInfo':_0x51db94[_0x1c27ef(0xa2)],'fields':_0x1bfa0c[_0x1c27ef(0x9b)],'requestExample':_0x51db94[_0x1c27ef(0xbb)],'responseExample':_0x51db94['responseExample'],'sdkInitCode':_0x51db94['sdkInitCode'],'usageExample':_0x51db94[_0x1c27ef(0xaa)],'sdkReturnValueBehavior':{'onSuccess':_0x1c27ef(0x98),'onError':_0x1c27ef(0x97),'note':_0x1c27ef(0x9f)},'aliasExplanation':useAlias?_0x51db94[_0x1c27ef(0xa0)]:undefined,'aliasHint':{'defaultAlias':_0x1e6730,'datasetSDKKey':_0x33438b,'note':_0x1c27ef(0xaf)+_0x1e6730+'\x22\x20仅供参考,用户可能已自定义为其他名称。','versionNote':_0x1c27ef(0xac)}};}
@@ -1 +1 @@
1
- function a9_0x59e8(){const _0x364143=['enabledOperationCount','supportsCRUD','376015WNTcLE','732138otcKBt','9767358BFEkFH','getDatasetList','1699kdZecw','fields','506syWRuj','2883258Enjrnh','analyzeDatasetDetail','getDatasetDetail','data','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','3112UwLAgQ','find','LOVRABET_ENV','env','6839dugfcA','1107856eNcdjB','tableData','test'];a9_0x59e8=function(){return _0x364143;};return a9_0x59e8();}function a9_0x176e(_0x1eeebd,_0x2e1bd3){const _0x59e831=a9_0x59e8();return a9_0x176e=function(_0x176e93,_0x2fed3d){_0x176e93=_0x176e93-0x12a;let _0x126c93=_0x59e831[_0x176e93];return _0x126c93;},a9_0x176e(_0x1eeebd,_0x2e1bd3);}(function(_0xeceec5,_0x593015){const _0x56c6b7=a9_0x176e,_0x5ea51e=_0xeceec5();while(!![]){try{const _0x53822e=parseInt(_0x56c6b7(0x13c))/0x1*(parseInt(_0x56c6b7(0x13e))/0x2)+parseInt(_0x56c6b7(0x139))/0x3+-parseInt(_0x56c6b7(0x133))/0x4+parseInt(_0x56c6b7(0x138))/0x5+parseInt(_0x56c6b7(0x13f))/0x6+-parseInt(_0x56c6b7(0x132))/0x7*(-parseInt(_0x56c6b7(0x12e))/0x8)+-parseInt(_0x56c6b7(0x13a))/0x9;if(_0x53822e===_0x593015)break;else _0x5ea51e['push'](_0x5ea51e['shift']());}catch(_0x2f119a){_0x5ea51e['push'](_0x5ea51e['shift']());}}}(a9_0x59e8,0x3c6aa));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getDatasetDetail(_0x297b59){const _0x3bd7ff=a9_0x176e,{appCode:appCode=process[_0x3bd7ff(0x131)]['LOVRABET_APP_CODE'],cookie:_0x3d416f,env:env=process[_0x3bd7ff(0x131)][_0x3bd7ff(0x130)]||'online',datasetCode:_0x49dfed,forceRefresh:forceRefresh=![]}=_0x297b59;if(!appCode)throw new Error(_0x3bd7ff(0x12d));if(!_0x49dfed)throw new Error('datasetCode\x20is\x20required');const _0x52c243=new DevApiClient({'appCode':appCode,'cookie':_0x3d416f,'env':env}),_0x29ac0e=/^\d+$/[_0x3bd7ff(0x135)](_0x49dfed);let _0x3fa013;if(_0x29ac0e)_0x3fa013=_0x49dfed;else{const _0x274471=await _0x52c243[_0x3bd7ff(0x13b)]({'pageSize':0x3e7,'forceRefresh':forceRefresh}),_0x2c4890=_0x274471[_0x3bd7ff(0x12c)]?.[_0x3bd7ff(0x134)]||[],_0x2766b2=_0x2c4890[_0x3bd7ff(0x12f)](_0x9f7dfe=>_0x9f7dfe['code']===_0x49dfed);if(!_0x2766b2)throw new Error('Dataset\x20not\x20found\x20with\x20code:\x20'+_0x49dfed);_0x3fa013=String(_0x2766b2['id']);}const _0x5ddf65=await _0x52c243[_0x3bd7ff(0x12b)](_0x3fa013,forceRefresh),_0x7c7e5e=new DatasetAnalyzer(),_0x5df3f0=_0x7c7e5e[_0x3bd7ff(0x12a)](_0x5ddf65);return{'appCode':appCode,'env':env,'basic':_0x5df3f0['basic'],'fields':_0x5df3f0[_0x3bd7ff(0x13d)],'operations':_0x5df3f0['operations'],'stats':{'fieldCount':_0x5df3f0['fieldCount'],'operationCount':_0x5df3f0['operationCount'],'enabledOperationCount':_0x5df3f0[_0x3bd7ff(0x136)],'supportsCRUD':_0x5df3f0[_0x3bd7ff(0x137)]}};}
1
+ (function(_0x5729c8,_0x39e0d7){const _0xac948e=a9_0x5e88,_0x1c79f9=_0x5729c8();while(!![]){try{const _0x54ea62=parseInt(_0xac948e(0x1f4))/0x1+parseInt(_0xac948e(0x1f2))/0x2*(parseInt(_0xac948e(0x1fe))/0x3)+-parseInt(_0xac948e(0x1fa))/0x4+-parseInt(_0xac948e(0x1f1))/0x5*(-parseInt(_0xac948e(0x1f6))/0x6)+parseInt(_0xac948e(0x1f3))/0x7+parseInt(_0xac948e(0x1eb))/0x8*(parseInt(_0xac948e(0x1ed))/0x9)+-parseInt(_0xac948e(0x1f9))/0xa;if(_0x54ea62===_0x39e0d7)break;else _0x1c79f9['push'](_0x1c79f9['shift']());}catch(_0x4c8954){_0x1c79f9['push'](_0x1c79f9['shift']());}}}(a9_0x2570,0xa298f));import{DevApiClient}from'../api/dev-api-client.js';function a9_0x5e88(_0x27938d,_0x1bdf9b){_0x27938d=_0x27938d-0x1ea;const _0x25701c=a9_0x2570();let _0x5e88fc=_0x25701c[_0x27938d];return _0x5e88fc;}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a9_0x2570(){const _0x32cd9e=['LOVRABET_APP_CODE','fieldCount','20413970tFNvSq','1405428xcLOdz','enabledOperationCount','operationCount','getDatasetDetail','1584939murYwc','supportsCRUD','test','operations','env','code','8yGECEw','Dataset\x20not\x20found\x20with\x20code:\x20','4451499VtcOVP','online','data','datasetCode\x20is\x20required','4157695zFLtWI','2xNSkUG','2341178NMhyxu','869836umiCWc','LOVRABET_ENV','6DeRGmG'];a9_0x2570=function(){return _0x32cd9e;};return a9_0x2570();}export async function getDatasetDetail(_0x5da6be){const _0x509e3d=a9_0x5e88,{appCode:appCode=process[_0x509e3d(0x202)][_0x509e3d(0x1f7)],cookie:_0x2462b6,env:env=process[_0x509e3d(0x202)][_0x509e3d(0x1f5)]||_0x509e3d(0x1ee),datasetCode:_0x19f057,forceRefresh:forceRefresh=![]}=_0x5da6be;if(!appCode)throw new Error('appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.');if(!_0x19f057)throw new Error(_0x509e3d(0x1f0));const _0x42179a=new DevApiClient({'appCode':appCode,'cookie':_0x2462b6,'env':env}),_0x5dfc4f=/^\d+$/[_0x509e3d(0x200)](_0x19f057);let _0x301f7b;if(_0x5dfc4f)_0x301f7b=_0x19f057;else{const _0x11d42b=await _0x42179a['getDatasetList']({'pageSize':0x3e7,'forceRefresh':forceRefresh}),_0x81b00f=_0x11d42b[_0x509e3d(0x1ef)]?.['tableData']||[],_0x209a65=_0x81b00f['find'](_0x26c609=>_0x26c609[_0x509e3d(0x1ea)]===_0x19f057);if(!_0x209a65)throw new Error(_0x509e3d(0x1ec)+_0x19f057);_0x301f7b=String(_0x209a65['id']);}const _0x1d908c=await _0x42179a[_0x509e3d(0x1fd)](_0x301f7b,forceRefresh),_0x4408ad=new DatasetAnalyzer(),_0x298748=_0x4408ad['analyzeDatasetDetail'](_0x1d908c);return{'appCode':appCode,'env':env,'basic':_0x298748['basic'],'fields':_0x298748['fields'],'operations':_0x298748[_0x509e3d(0x201)],'stats':{'fieldCount':_0x298748[_0x509e3d(0x1f8)],'operationCount':_0x298748[_0x509e3d(0x1fc)],'enabledOperationCount':_0x298748[_0x509e3d(0x1fb)],'supportsCRUD':_0x298748[_0x509e3d(0x1ff)]}};}
@@ -1 +1 @@
1
- (function(_0x4cca2e,_0x4a4190){const _0xef2fa1=a10_0x2807,_0x1229b3=_0x4cca2e();while(!![]){try{const _0x318b51=-parseInt(_0xef2fa1(0x13c))/0x1+-parseInt(_0xef2fa1(0x12a))/0x2+parseInt(_0xef2fa1(0x130))/0x3+-parseInt(_0xef2fa1(0x12c))/0x4+-parseInt(_0xef2fa1(0x13b))/0x5*(-parseInt(_0xef2fa1(0x131))/0x6)+-parseInt(_0xef2fa1(0x13f))/0x7+parseInt(_0xef2fa1(0x13d))/0x8;if(_0x318b51===_0x4a4190)break;else _0x1229b3['push'](_0x1229b3['shift']());}catch(_0x5f4e52){_0x1229b3['push'](_0x1229b3['shift']());}}}(a10_0x3dc1,0x58033));function a10_0x2807(_0x336dde,_0x3aa287){const _0x3dc11e=a10_0x3dc1();return a10_0x2807=function(_0x2807f8,_0x4d57e4){_0x2807f8=_0x2807f8-0x128;let _0x33a437=_0x3dc11e[_0x2807f8];return _0x33a437;},a10_0x2807(_0x336dde,_0x3aa287);}import{DevApiClient}from'../api/dev-api-client.js';function a10_0x3dc1(){const _0x481048=['code','2609642OoBrAD','Throws\x20LovrabetError\x20exception\x20with\x20full\x20response.\x20The\x20error\x20object\x20contains:\x20{\x20message:\x20string,\x20status?:\x20number\x20(HTTP\x20code),\x20code?:\x20string\x20(business\x20error\x20code),\x20data?:\x20any\x20(full\x20error\x20response)\x20}','Operation\x20\x27','1236170imDQNl','operationName\x20is\x20required','1290460WtPZnj','Returns\x20ONLY\x20the\x20\x27data\x27\x20field\x20content.\x20Full\x20API\x20response\x20is\x20{\x20success:\x20true,\x20data:\x20{...},\x20msg:\x20\x22\x22,\x20errorMsg:\x20\x22\x22,\x20errorCode:\x20\x220000\x22\x20},\x20but\x20SDK\x20returns\x20just\x20the\x20{...}\x20part\x20from\x20\x27data\x27.','datasetCode\x20is\x20required','getOperationDetail','634767hzlbEF','6YZiABc','test','name','tableData','getDatasetList','Dataset\x20not\x20found\x20with\x20code:\x20','data','getDatasetDetail','online','LOVRABET_ENV','2608345prswSi','40511meKIHa','7850064AxoKDb'];a10_0x3dc1=function(){return _0x481048;};return a10_0x3dc1();}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getOperationDetail(_0x2a3b0c){const _0x13dd48=a10_0x2807,{appCode:appCode=process['env']['LOVRABET_APP_CODE'],cookie:_0x413730,env:env=process['env'][_0x13dd48(0x13a)]||_0x13dd48(0x139),datasetCode:_0x50ecea,operationName:_0x1a4273}=_0x2a3b0c;if(!appCode)throw new Error('appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.');if(!_0x50ecea)throw new Error(_0x13dd48(0x12e));if(!_0x1a4273)throw new Error(_0x13dd48(0x12b));const _0x2c090e=new DevApiClient({'appCode':appCode,'cookie':_0x413730,'env':env}),_0x351669=/^\d+$/[_0x13dd48(0x132)](_0x50ecea);let _0xc26b34;if(_0x351669)_0xc26b34=_0x50ecea;else{const _0x132651=await _0x2c090e[_0x13dd48(0x135)]({'pageSize':0x3e7}),_0x38802f=_0x132651[_0x13dd48(0x137)]?.[_0x13dd48(0x134)]||[],_0xec4a95=_0x38802f['find'](_0x5da79f=>_0x5da79f[_0x13dd48(0x13e)]===_0x50ecea);if(!_0xec4a95)throw new Error(_0x13dd48(0x136)+_0x50ecea);_0xc26b34=String(_0xec4a95['id']);}const _0x39a897=await _0x2c090e[_0x13dd48(0x138)](_0xc26b34),_0xd9ea3c=new DatasetAnalyzer(),_0x2efd40=_0xd9ea3c[_0x13dd48(0x12f)](_0x39a897,_0x1a4273);if(!_0x2efd40)throw new Error(_0x13dd48(0x129)+_0x1a4273+'\x27\x20not\x20found\x20in\x20dataset\x20\x27'+_0x50ecea+'\x27');const _0x39016c=_0xd9ea3c['analyzeDatasetDetail'](_0x39a897);return{'appCode':appCode,'env':env,'datasetName':_0x39016c['basic'][_0x13dd48(0x133)],'operation':_0x2efd40,'sdkReturnValueBehavior':{'onSuccess':_0x13dd48(0x12d),'onError':_0x13dd48(0x128),'note':'CRITICAL:\x20Always\x20use\x20try-catch\x20when\x20calling\x20SDK\x20methods.\x20Success\x20case\x20returns\x20data\x20directly\x20(e.g.,\x20{\x20id:\x20123,\x20name:\x20\x22...\x22\x20}),\x20but\x20failure\x20case\x20throws\x20exception\x20instead\x20of\x20returning\x20error\x20info.'}};}
1
+ (function(_0x190829,_0x242c34){const _0x257b56=a10_0x5409,_0x5d94a1=_0x190829();while(!![]){try{const _0x594dc7=-parseInt(_0x257b56(0xf6))/0x1+parseInt(_0x257b56(0xf2))/0x2+-parseInt(_0x257b56(0xf8))/0x3+parseInt(_0x257b56(0xf7))/0x4*(-parseInt(_0x257b56(0xed))/0x5)+parseInt(_0x257b56(0xe6))/0x6+-parseInt(_0x257b56(0xe8))/0x7*(parseInt(_0x257b56(0xfb))/0x8)+parseInt(_0x257b56(0xfc))/0x9;if(_0x594dc7===_0x242c34)break;else _0x5d94a1['push'](_0x5d94a1['shift']());}catch(_0xbeb409){_0x5d94a1['push'](_0x5d94a1['shift']());}}}(a10_0x4528,0xf3c19));function a10_0x5409(_0x149e07,_0x159997){_0x149e07=_0x149e07-0xe5;const _0x452887=a10_0x4528();let _0x54092a=_0x452887[_0x149e07];return _0x54092a;}import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getOperationDetail(_0x14470b){const _0x1c40fb=a10_0x5409,{appCode:appCode=process[_0x1c40fb(0xf0)][_0x1c40fb(0xe7)],cookie:_0x361361,env:env=process[_0x1c40fb(0xf0)][_0x1c40fb(0xf3)]||_0x1c40fb(0xfe),datasetCode:_0x6f0c43,operationName:_0x53aa04}=_0x14470b;if(!appCode)throw new Error(_0x1c40fb(0xec));if(!_0x6f0c43)throw new Error(_0x1c40fb(0xeb));if(!_0x53aa04)throw new Error('operationName\x20is\x20required');const _0x2771d7=new DevApiClient({'appCode':appCode,'cookie':_0x361361,'env':env}),_0x37aea3=/^\d+$/['test'](_0x6f0c43);let _0x2a3f76;if(_0x37aea3)_0x2a3f76=_0x6f0c43;else{const _0x15d63e=await _0x2771d7['getDatasetList']({'pageSize':0x3e7}),_0x469b6=_0x15d63e[_0x1c40fb(0xe5)]?.['tableData']||[],_0x1009c6=_0x469b6['find'](_0x4b8920=>_0x4b8920[_0x1c40fb(0xfd)]===_0x6f0c43);if(!_0x1009c6)throw new Error(_0x1c40fb(0xf4)+_0x6f0c43);_0x2a3f76=String(_0x1009c6['id']);}const _0x5645b8=await _0x2771d7[_0x1c40fb(0xea)](_0x2a3f76),_0x376753=new DatasetAnalyzer(),_0x51ac5b=_0x376753[_0x1c40fb(0xee)](_0x5645b8,_0x53aa04);if(!_0x51ac5b)throw new Error(_0x1c40fb(0xf5)+_0x53aa04+_0x1c40fb(0xf1)+_0x6f0c43+'\x27');const _0x5a91a4=_0x376753[_0x1c40fb(0xf9)](_0x5645b8);return{'appCode':appCode,'env':env,'datasetName':_0x5a91a4[_0x1c40fb(0xe9)]['name'],'operation':_0x51ac5b,'sdkReturnValueBehavior':{'onSuccess':_0x1c40fb(0xfa),'onError':_0x1c40fb(0xef),'note':'CRITICAL:\x20Always\x20use\x20try-catch\x20when\x20calling\x20SDK\x20methods.\x20Success\x20case\x20returns\x20data\x20directly\x20(e.g.,\x20{\x20id:\x20123,\x20name:\x20\x22...\x22\x20}),\x20but\x20failure\x20case\x20throws\x20exception\x20instead\x20of\x20returning\x20error\x20info.'}};}function a10_0x4528(){const _0x18628b=['1575736OIlWkb','36745182rWPsiQ','code','online','data','10115418NOeQJU','LOVRABET_APP_CODE','63PSfBKc','basic','getDatasetDetail','datasetCode\x20is\x20required','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','665YRwEui','getOperationDetail','Throws\x20LovrabetError\x20exception\x20with\x20full\x20response.\x20The\x20error\x20object\x20contains:\x20{\x20message:\x20string,\x20status?:\x20number\x20(HTTP\x20code),\x20code?:\x20string\x20(business\x20error\x20code),\x20data?:\x20any\x20(full\x20error\x20response)\x20}','env','\x27\x20not\x20found\x20in\x20dataset\x20\x27','1396502wchysL','LOVRABET_ENV','Dataset\x20not\x20found\x20with\x20code:\x20','Operation\x20\x27','437188yeyBVH','58364vBKpDG','3954099nyOJhS','analyzeDatasetDetail','Returns\x20ONLY\x20the\x20\x27data\x27\x20field\x20content.\x20Full\x20API\x20response\x20is\x20{\x20success:\x20true,\x20data:\x20{...},\x20msg:\x20\x22\x22,\x20errorMsg:\x20\x22\x22,\x20errorCode:\x20\x220000\x22\x20},\x20but\x20SDK\x20returns\x20just\x20the\x20{...}\x20part\x20from\x20\x27data\x27.'];a10_0x4528=function(){return _0x18628b;};return a10_0x4528();}
@@ -1 +1 @@
1
- (function(_0x25d14f,_0x476c77){const _0x113af6=a11_0x3f7b,_0x2ca605=_0x25d14f();while(!![]){try{const _0x3a6918=parseInt(_0x113af6(0x171))/0x1*(parseInt(_0x113af6(0x178))/0x2)+-parseInt(_0x113af6(0x189))/0x3+parseInt(_0x113af6(0x182))/0x4+-parseInt(_0x113af6(0x17a))/0x5*(-parseInt(_0x113af6(0x170))/0x6)+-parseInt(_0x113af6(0x185))/0x7*(parseInt(_0x113af6(0x17b))/0x8)+parseInt(_0x113af6(0x186))/0x9+-parseInt(_0x113af6(0x17d))/0xa*(parseInt(_0x113af6(0x18a))/0xb);if(_0x3a6918===_0x476c77)break;else _0x2ca605['push'](_0x2ca605['shift']());}catch(_0x519346){_0x2ca605['push'](_0x2ca605['shift']());}}}(a11_0xf181,0xcfbd5));import{DevApiClient}from'../api/dev-api-client.js';function a11_0x3f7b(_0x692a3f,_0x209bee){const _0xf181fc=a11_0xf181();return a11_0x3f7b=function(_0x3f7b74,_0x5f1344){_0x3f7b74=_0x3f7b74-0x16c;let _0x5d55ea=_0xf181fc[_0x3f7b74];return _0x5d55ea;},a11_0x3f7b(_0x692a3f,_0x209bee);}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getDatasetOperations(_0x4e55cb){const _0x2a56c6=a11_0x3f7b,{appCode:appCode=process[_0x2a56c6(0x188)][_0x2a56c6(0x18b)],cookie:_0x3ff568,env:env=process[_0x2a56c6(0x188)][_0x2a56c6(0x173)]||_0x2a56c6(0x16f),datasetCode:_0x460d24}=_0x4e55cb;if(!appCode)throw new Error('appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.');if(!_0x460d24)throw new Error(_0x2a56c6(0x179));const _0x17c8a8=new DevApiClient({'appCode':appCode,'cookie':_0x3ff568,'env':env}),_0x59c940=/^\d+$/[_0x2a56c6(0x172)](_0x460d24);let _0x24838d;if(_0x59c940)_0x24838d=_0x460d24;else{const _0x23e35c=await _0x17c8a8['getDatasetList']({'pageSize':0x3e7}),_0x479bb8=_0x23e35c[_0x2a56c6(0x174)]?.[_0x2a56c6(0x187)]||[],_0x3b3a51=_0x479bb8['find'](_0x1e3756=>_0x1e3756['code']===_0x460d24);if(!_0x3b3a51)throw new Error('Dataset\x20not\x20found\x20with\x20code:\x20'+_0x460d24);_0x24838d=String(_0x3b3a51['id']);}const _0x250351=await _0x17c8a8[_0x2a56c6(0x177)](_0x24838d),_0x205477=new DatasetAnalyzer(),_0x55a1b1=_0x205477[_0x2a56c6(0x176)](_0x250351);return{'appCode':appCode,'env':env,'datasetName':_0x55a1b1[_0x2a56c6(0x17f)][_0x2a56c6(0x181)],'tableName':_0x55a1b1[_0x2a56c6(0x17f)][_0x2a56c6(0x17e)],'operations':_0x55a1b1[_0x2a56c6(0x184)][_0x2a56c6(0x183)](_0x516c00=>({'name':_0x516c00[_0x2a56c6(0x181)],'displayName':_0x516c00[_0x2a56c6(0x175)],'type':_0x516c00['type'],'method':_0x516c00[_0x2a56c6(0x16e)],'path':_0x516c00[_0x2a56c6(0x180)],'requestFieldsCount':_0x516c00['requestFieldsCount'],'enabled':_0x516c00['enabled']})),'stats':{'total':_0x55a1b1[_0x2a56c6(0x16d)],'enabled':_0x55a1b1[_0x2a56c6(0x17c)],'supportsCRUD':_0x55a1b1[_0x2a56c6(0x16c)]}};}function a11_0xf181(){const _0x18d89c=['tableData','env','2176377IatKlZ','2923756tnZfld','LOVRABET_APP_CODE','supportsCRUD','operationCount','method','online','19542ugGhtx','50057HSDRzx','test','LOVRABET_ENV','data','displayName','analyzeDatasetDetail','getDatasetDetail','38cbReiZ','datasetCode\x20is\x20required','2455vgBmrE','1728zKukAA','enabledOperationCount','60PmttGe','tableName','basic','path','name','167716ADIGCI','map','operations','30373xEeMlw','13645449Jbbotz'];a11_0xf181=function(){return _0x18d89c;};return a11_0xf181();}
1
+ (function(_0x5f09df,_0x226ff9){const _0xaf29da=a11_0x115f,_0x23ec0a=_0x5f09df();while(!![]){try{const _0x2c91af=-parseInt(_0xaf29da(0xa7))/0x1+parseInt(_0xaf29da(0xa6))/0x2*(-parseInt(_0xaf29da(0xc0))/0x3)+parseInt(_0xaf29da(0xb9))/0x4*(-parseInt(_0xaf29da(0xb3))/0x5)+parseInt(_0xaf29da(0xb4))/0x6+parseInt(_0xaf29da(0xa0))/0x7*(parseInt(_0xaf29da(0xb7))/0x8)+-parseInt(_0xaf29da(0xaf))/0x9*(parseInt(_0xaf29da(0xb0))/0xa)+parseInt(_0xaf29da(0xbd))/0xb*(parseInt(_0xaf29da(0xba))/0xc);if(_0x2c91af===_0x226ff9)break;else _0x23ec0a['push'](_0x23ec0a['shift']());}catch(_0x58698b){_0x23ec0a['push'](_0x23ec0a['shift']());}}}(a11_0x1965,0x22b7f));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a11_0x115f(_0x1feecf,_0x584219){_0x1feecf=_0x1feecf-0xa0;const _0x1965c2=a11_0x1965();let _0x115f78=_0x1965c2[_0x1feecf];return _0x115f78;}export async function getDatasetOperations(_0x4bbbfe){const _0x1d24e7=a11_0x115f,{appCode:appCode=process[_0x1d24e7(0xae)][_0x1d24e7(0xa5)],cookie:_0x3da9df,env:env=process[_0x1d24e7(0xae)]['LOVRABET_ENV']||_0x1d24e7(0xa8),datasetCode:_0x586e25}=_0x4bbbfe;if(!appCode)throw new Error(_0x1d24e7(0xbb));if(!_0x586e25)throw new Error(_0x1d24e7(0xab));const _0x194d9f=new DevApiClient({'appCode':appCode,'cookie':_0x3da9df,'env':env}),_0x2ef9b8=/^\d+$/[_0x1d24e7(0xa1)](_0x586e25);let _0x38a087;if(_0x2ef9b8)_0x38a087=_0x586e25;else{const _0x1ee4b6=await _0x194d9f[_0x1d24e7(0xbf)]({'pageSize':0x3e7}),_0x584c35=_0x1ee4b6['data']?.['tableData']||[],_0x38c503=_0x584c35[_0x1d24e7(0xa3)](_0x4699b1=>_0x4699b1[_0x1d24e7(0xb2)]===_0x586e25);if(!_0x38c503)throw new Error(_0x1d24e7(0xad)+_0x586e25);_0x38a087=String(_0x38c503['id']);}const _0x4420d8=await _0x194d9f[_0x1d24e7(0xb8)](_0x38a087),_0x4d78af=new DatasetAnalyzer(),_0x5c9ed8=_0x4d78af[_0x1d24e7(0xb6)](_0x4420d8);return{'appCode':appCode,'env':env,'datasetName':_0x5c9ed8[_0x1d24e7(0xb1)][_0x1d24e7(0xa9)],'tableName':_0x5c9ed8['basic'][_0x1d24e7(0xac)],'operations':_0x5c9ed8[_0x1d24e7(0xbe)][_0x1d24e7(0xaa)](_0x185db0=>({'name':_0x185db0['name'],'displayName':_0x185db0['displayName'],'type':_0x185db0[_0x1d24e7(0xa2)],'method':_0x185db0[_0x1d24e7(0xbc)],'path':_0x185db0['path'],'requestFieldsCount':_0x185db0['requestFieldsCount'],'enabled':_0x185db0[_0x1d24e7(0xa4)]})),'stats':{'total':_0x5c9ed8['operationCount'],'enabled':_0x5c9ed8['enabledOperationCount'],'supportsCRUD':_0x5c9ed8[_0x1d24e7(0xb5)]}};}function a11_0x1965(){const _0x397d28=['Dataset\x20not\x20found\x20with\x20code:\x20','env','3474zxztgQ','1930eqGynH','basic','code','1190DYTgtB','1508334oksZZL','supportsCRUD','analyzeDatasetDetail','440680GiRIlG','getDatasetDetail','1772zVHiGy','544164HwSgvV','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','method','33xYaKbj','operations','getDatasetList','233070iMNrsm','7XNmJRP','test','type','find','enabled','LOVRABET_APP_CODE','2TjETiQ','42686KoakRq','online','name','map','datasetCode\x20is\x20required','tableName'];a11_0x1965=function(){return _0x397d28;};return a11_0x1965();}
@@ -1 +1 @@
1
- (function(_0x2b8d92,_0x2ea02a){var _0x4e4bfb=a12_0x3392,_0x2c63db=_0x2b8d92();while(!![]){try{var _0xc6dc41=-parseInt(_0x4e4bfb(0xaf))/0x1+-parseInt(_0x4e4bfb(0xba))/0x2*(parseInt(_0x4e4bfb(0xb7))/0x3)+-parseInt(_0x4e4bfb(0xb4))/0x4*(parseInt(_0x4e4bfb(0xb8))/0x5)+parseInt(_0x4e4bfb(0xb0))/0x6*(parseInt(_0x4e4bfb(0xb1))/0x7)+-parseInt(_0x4e4bfb(0xb6))/0x8+-parseInt(_0x4e4bfb(0xb9))/0x9*(parseInt(_0x4e4bfb(0xb5))/0xa)+parseInt(_0x4e4bfb(0xb2))/0xb*(parseInt(_0x4e4bfb(0xb3))/0xc);if(_0xc6dc41===_0x2ea02a)break;else _0x2c63db['push'](_0x2c63db['shift']());}catch(_0x2a9dee){_0x2c63db['push'](_0x2c63db['shift']());}}}(a12_0x5db0,0xa45ec));export{login}from'./login.js';export{listDatasets}from'./list-datasets.js';function a12_0x5db0(){var _0x5efeb8=['93FKfSCj','8465kPXQOT','99NHbySv','23186gQQECY','1224418wmMNlJ','406182ACmtkv','133bntUtV','11SKWZMh','43302348bQsmQV','492abWcOt','1121630zSwTLu','9565432LlWpwM'];a12_0x5db0=function(){return _0x5efeb8;};return a12_0x5db0();}export{getDatasetDetail}from'./get-dataset-detail.js';function a12_0x3392(_0x4e7a06,_0x37493e){var _0x5db09a=a12_0x5db0();return a12_0x3392=function(_0x339247,_0x59243d){_0x339247=_0x339247-0xaf;var _0x2980e9=_0x5db09a[_0x339247];return _0x2980e9;},a12_0x3392(_0x4e7a06,_0x37493e);}export{getDatasetOperations}from'./get-operations.js';export{getOperationDetail}from'./get-operation-detail.js';export{generateSDKCode}from'./generate-sdk-code.js';export{searchDatasets}from'./search-datasets.js';export{listSqlQueries}from'./list-sql-queries.js';
1
+ (function(_0x57abaf,_0x4b00b0){var _0x42d40d=a12_0x1b96,_0x5739cd=_0x57abaf();while(!![]){try{var _0x261299=-parseInt(_0x42d40d(0x11c))/0x1*(parseInt(_0x42d40d(0x11b))/0x2)+-parseInt(_0x42d40d(0x119))/0x3*(-parseInt(_0x42d40d(0x11a))/0x4)+parseInt(_0x42d40d(0x116))/0x5*(parseInt(_0x42d40d(0x11f))/0x6)+parseInt(_0x42d40d(0x11e))/0x7*(-parseInt(_0x42d40d(0x114))/0x8)+parseInt(_0x42d40d(0x11d))/0x9*(-parseInt(_0x42d40d(0x115))/0xa)+-parseInt(_0x42d40d(0x117))/0xb+parseInt(_0x42d40d(0x118))/0xc;if(_0x261299===_0x4b00b0)break;else _0x5739cd['push'](_0x5739cd['shift']());}catch(_0x3f67e7){_0x5739cd['push'](_0x5739cd['shift']());}}}(a12_0x4c35,0xa84c6));function a12_0x4c35(){var _0x5d8707=['5358JxmMfu','706160eouctO','860FoSGKD','4735DTvJYw','2367816GprQlK','15629100TAqdgW','12PumCDq','860012BqnsEC','32sYouOF','59258sQxSpr','83961XriLyt','28ATsVJY'];a12_0x4c35=function(){return _0x5d8707;};return a12_0x4c35();}export{login}from'./login.js';export{listDatasets}from'./list-datasets.js';export{getDatasetDetail}from'./get-dataset-detail.js';export{getDatasetOperations}from'./get-operations.js';export{getOperationDetail}from'./get-operation-detail.js';function a12_0x1b96(_0x23f851,_0x5451ec){_0x23f851=_0x23f851-0x114;var _0x4c3597=a12_0x4c35();var _0x1b964b=_0x4c3597[_0x23f851];return _0x1b964b;}export{generateSDKCode}from'./generate-sdk-code.js';export{searchDatasets}from'./search-datasets.js';export{listSqlQueries}from'./list-sql-queries.js';
@@ -1 +1 @@
1
- (function(_0x3973cc,_0x5649a0){const _0x24123d=a13_0x38a0,_0x1cc957=_0x3973cc();while(!![]){try{const _0x5b82b6=-parseInt(_0x24123d(0x1fa))/0x1*(parseInt(_0x24123d(0x1f5))/0x2)+parseInt(_0x24123d(0x1f0))/0x3*(parseInt(_0x24123d(0x1e9))/0x4)+parseInt(_0x24123d(0x1ee))/0x5*(parseInt(_0x24123d(0x1ec))/0x6)+parseInt(_0x24123d(0x1eb))/0x7+-parseInt(_0x24123d(0x1f2))/0x8*(-parseInt(_0x24123d(0x1f9))/0x9)+parseInt(_0x24123d(0x1f1))/0xa+-parseInt(_0x24123d(0x1ef))/0xb;if(_0x5b82b6===_0x5649a0)break;else _0x1cc957['push'](_0x1cc957['shift']());}catch(_0x272b58){_0x1cc957['push'](_0x1cc957['shift']());}}}(a13_0x5337,0x1cdd1));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function listDatasets(_0x33eec1={}){const _0x44fa19=a13_0x38a0,{appCode:appCode=process[_0x44fa19(0x1f4)]['LOVRABET_APP_CODE'],env:env=process[_0x44fa19(0x1f4)][_0x44fa19(0x1f8)]||_0x44fa19(0x1f6),cookie:_0x537d19,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1,forceRefresh:forceRefresh=![]}=_0x33eec1;if(!appCode)throw new Error(_0x44fa19(0x1f7));const _0x5644c4=new DevApiClient({'appCode':appCode,'env':env,'cookie':_0x537d19}),_0x2a0100=await _0x5644c4['getDatasetList']({'pageSize':pageSize,'currentPage':currentPage,'forceRefresh':forceRefresh}),_0x51c55a=new DatasetAnalyzer(),_0x20943b=_0x51c55a[_0x44fa19(0x1f3)](_0x2a0100);return{'appCode':appCode,'env':env,'total':_0x20943b[_0x44fa19(0x1ea)],'datasets':_0x20943b[_0x44fa19(0x1ed)]};}function a13_0x38a0(_0x5f1397,_0x125f95){const _0x5337f8=a13_0x5337();return a13_0x38a0=function(_0x38a026,_0x471ab1){_0x38a026=_0x38a026-0x1e9;let _0x2e294b=_0x5337f8[_0x38a026];return _0x2e294b;},a13_0x38a0(_0x5f1397,_0x125f95);}function a13_0x5337(){const _0x1a2287=['50WOSNji','1220780LzcJYg','1197EvDUGM','27730DrAUrH','8VTqlwm','analyzeDatasetList','env','229796oKCDmO','online','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','LOVRABET_ENV','1731249KNSDGW','2YyEQIo','1264CyMyUh','total','105651XiMrQw','73614KcVZsu','datasets'];a13_0x5337=function(){return _0x1a2287;};return a13_0x5337();}
1
+ (function(_0x258b6c,_0xc2ed86){const _0x4f219b=a13_0x158a,_0x54b011=_0x258b6c();while(!![]){try{const _0x27496=-parseInt(_0x4f219b(0x12a))/0x1*(-parseInt(_0x4f219b(0x12d))/0x2)+parseInt(_0x4f219b(0x11d))/0x3+-parseInt(_0x4f219b(0x124))/0x4*(-parseInt(_0x4f219b(0x129))/0x5)+-parseInt(_0x4f219b(0x130))/0x6+-parseInt(_0x4f219b(0x121))/0x7*(-parseInt(_0x4f219b(0x12c))/0x8)+parseInt(_0x4f219b(0x11f))/0x9*(-parseInt(_0x4f219b(0x12e))/0xa)+-parseInt(_0x4f219b(0x127))/0xb*(parseInt(_0x4f219b(0x12f))/0xc);if(_0x27496===_0xc2ed86)break;else _0x54b011['push'](_0x54b011['shift']());}catch(_0xb52885){_0x54b011['push'](_0x54b011['shift']());}}}(a13_0x49f9,0x697d9));function a13_0x158a(_0x3b7258,_0x5bd566){_0x3b7258=_0x3b7258-0x11d;const _0x49f953=a13_0x49f9();let _0x158ab8=_0x49f953[_0x3b7258];return _0x158ab8;}import{DevApiClient}from'../api/dev-api-client.js';function a13_0x49f9(){const _0x4e9c51=['12XeKyQv','214392UcpTTE','LOVRABET_APP_CODE','617073dKCeqD','env','27SDVRLO','getDatasetList','161420QtRCbi','online','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','68NjPVTp','datasets','LOVRABET_ENV','7859291FqVCZn','total','144975rGTnrM','37WYaYji','analyzeDatasetList','184iFDBFT','1018kpmmoT','218390MijJjQ'];a13_0x49f9=function(){return _0x4e9c51;};return a13_0x49f9();}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function listDatasets(_0x34f932={}){const _0x148cd9=a13_0x158a,{appCode:appCode=process[_0x148cd9(0x11e)][_0x148cd9(0x131)],env:env=process[_0x148cd9(0x11e)][_0x148cd9(0x126)]||_0x148cd9(0x122),cookie:_0x4943ba,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1,forceRefresh:forceRefresh=![]}=_0x34f932;if(!appCode)throw new Error(_0x148cd9(0x123));const _0x2faa7b=new DevApiClient({'appCode':appCode,'env':env,'cookie':_0x4943ba}),_0x1485dc=await _0x2faa7b[_0x148cd9(0x120)]({'pageSize':pageSize,'currentPage':currentPage,'forceRefresh':forceRefresh}),_0x16cc0a=new DatasetAnalyzer(),_0x4013d=_0x16cc0a[_0x148cd9(0x12b)](_0x1485dc);return{'appCode':appCode,'env':env,'total':_0x4013d[_0x148cd9(0x128)],'datasets':_0x4013d[_0x148cd9(0x125)]};}
@@ -1 +1 @@
1
- (function(_0x3a9491,_0x484f42){const _0x511f8a=a14_0x288e,_0x202f25=_0x3a9491();while(!![]){try{const _0x2abc91=parseInt(_0x511f8a(0x17a))/0x1*(parseInt(_0x511f8a(0x155))/0x2)+parseInt(_0x511f8a(0x182))/0x3+parseInt(_0x511f8a(0x16b))/0x4+parseInt(_0x511f8a(0x171))/0x5+parseInt(_0x511f8a(0x15a))/0x6+-parseInt(_0x511f8a(0x175))/0x7*(-parseInt(_0x511f8a(0x148))/0x8)+-parseInt(_0x511f8a(0x178))/0x9*(parseInt(_0x511f8a(0x160))/0xa);if(_0x2abc91===_0x484f42)break;else _0x202f25['push'](_0x202f25['shift']());}catch(_0x2ca307){_0x202f25['push'](_0x202f25['shift']());}}}(a14_0x364e,0x963ac));function a14_0x288e(_0xc8605b,_0x52aa76){const _0x364e36=a14_0x364e();return a14_0x288e=function(_0x288e7a,_0x392111){_0x288e7a=_0x288e7a-0x143;let _0x2b68a3=_0x364e36[_0x288e7a];return _0x2b68a3;},a14_0x288e(_0xc8605b,_0x52aa76);}import{DevApiClient}from'../api/dev-api-client.js';function a14_0x364e(){const _0x5055f9=['This\x20SQL\x20requires\x20parameters:\x20','toLowerCase','ceil','29520osIDkn','IMPORTANT:\x20Use\x20try-catch\x20to\x20handle\x20HTTP\x20errors\x20(network\x20issues,\x20auth\x20failures)','stringify','join','sqlId','all','replace','sql','count','value','sqlName','includes','createTime','\x27,\x0a});\x0a\x0a//\x20Execute\x20the\x20SQL\x20query:\x20','sqlContent','This\x20SQL\x20does\x20not\x20require\x20any\x20parameters','length','249784KHcjEk','\x22\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27','date','env','category','\x27,\x0a\x20\x20env:\x20\x27','Execute\x20SQL\x20query:\x20','LOVRABET_ENV','time','On\x20HTTP\x20error,\x20SDK\x20throws\x20LovrabetError\x20exception\x20-\x20use\x20try-catch\x20for\x20error\x20handling','Custom\x20SQL','slice','SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[]\x20}\x20-\x20Always\x20check\x20execSuccess\x20before\x20using\x20execResult','64OsCztQ','message','Parameter:\x20','IMPORTANT:\x20The\x20SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[],\x20execError?:\x20string\x20}','tableData','3559656uxBnGd','updatedTime','sql_list','example','match','limit','10UNQJpZ','import\x20{\x20LovrabetClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;\x0a\x0a//\x20Initialize\x20the\x20SDK\x20client\x0aconst\x20client\x20=\x20new\x20LovrabetClient({\x0a\x20\x20appCode:\x20\x27','The\x20execResult\x20contains\x20an\x20array\x20of\x20row\x20objects\x20matching\x20your\x20SQL\x20query\x20structure','map','Failed\x20to\x20list\x20SQL\x20queries:\x20','other','updateTime','IMPORTANT:\x20All\x20SQL\x20queries\x20use\x20the\x20same\x20execution\x20pattern\x20-\x20client.api.executeSql(sqlCode,\x20params)','name','online','SQL\x20Query','344308eOWkKB','LOVRABET_APP_CODE','filter','string','sqlDesc','type','1106380WkeZHY','description','reduce','\x0a//\x20Example:\x20Using\x20SQL\x20\x22','70cHrTnW','data','sqlCode','14967927eLscXN','SQL-','32992xRDYkx','getCustomSqlList','\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27','IMPORTANT:\x20Always\x20check\x20data.execSuccess\x20before\x20using\x20data.execResult','sqlType'];a14_0x364e=function(){return _0x5055f9;};return a14_0x364e();}export async function listSqlQueries(_0x55dae3={}){const _0xcbfae0=a14_0x288e,{appCode:appCode=process[_0xcbfae0(0x14b)][_0xcbfae0(0x16c)],cookie:_0x240083,env:env=process[_0xcbfae0(0x14b)][_0xcbfae0(0x14f)]||_0xcbfae0(0x169),keyword:_0x5a6f22,category:_0x311ccf,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1}=_0x55dae3;if(!appCode)throw new Error('appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.');const _0x5a2d43=new DevApiClient({'appCode':appCode,'cookie':_0x240083,'env':env});try{const _0x1d7c54=await _0x5a2d43[_0xcbfae0(0x17b)]({'pageSize':pageSize,'currentPage':currentPage}),_0x1d083e=_0x1d7c54[_0xcbfae0(0x176)]||_0x1d7c54,_0x24d559=_0x1d083e[_0xcbfae0(0x159)]||[],_0x2b1817=_0x1d083e['total']||_0x24d559[_0xcbfae0(0x147)];let _0x1ec6c9=_0x24d559[_0xcbfae0(0x163)](_0x1da2bc=>{const _0x38d556=_0xcbfae0,_0x4c862a=_0x1da2bc['sqlCode']||appCode+'-'+(_0x1da2bc[_0x38d556(0x186)]||_0x1da2bc['id']),_0x549de7=_0x1da2bc['sqlId']||_0x1da2bc['id'];let _0x5ea89a;if(_0x1da2bc[_0x38d556(0x145)]||_0x1da2bc[_0x38d556(0x189)]){const _0x94e909=_0x1da2bc[_0x38d556(0x145)]||_0x1da2bc[_0x38d556(0x189)],_0x3fea75=_0x94e909[_0x38d556(0x15e)](/[:$]\{?(\w+)\}?/g);if(_0x3fea75){const _0x6c2507=Array['from'](new Set(_0x3fea75[_0x38d556(0x163)](_0x7df543=>_0x7df543[_0x38d556(0x188)](/[:${}]/g,''))));_0x5ea89a=_0x6c2507['map'](_0x16ac8e=>{const _0x46bdc0=_0x38d556;let _0x149dc2=_0x46bdc0(0x18b);if(_0x16ac8e[_0x46bdc0(0x180)]()[_0x46bdc0(0x18d)](_0x46bdc0(0x14a))||_0x16ac8e[_0x46bdc0(0x180)]()[_0x46bdc0(0x18d)](_0x46bdc0(0x150)))_0x149dc2='2024-01-01';else{if(_0x16ac8e[_0x46bdc0(0x180)]()[_0x46bdc0(0x18d)]('id'))_0x149dc2=0x7b;else(_0x16ac8e[_0x46bdc0(0x180)]()['includes'](_0x46bdc0(0x15f))||_0x16ac8e[_0x46bdc0(0x180)]()[_0x46bdc0(0x18d)](_0x46bdc0(0x18a)))&&(_0x149dc2=0xa);}return{'name':_0x16ac8e,'type':_0x46bdc0(0x16e),'required':!![],'description':_0x46bdc0(0x157)+_0x16ac8e,'example':_0x149dc2};});}}const _0x20e46b=_0x5ea89a&&_0x5ea89a['length']>0x0,_0x588f65=_0x20e46b?_0x5ea89a[_0x38d556(0x173)]((_0x46acb1,_0x3c7e26)=>({..._0x46acb1,[_0x3c7e26[_0x38d556(0x168)]]:_0x3c7e26[_0x38d556(0x15d)]}),{}):undefined,_0x1019e2={'typescript':_0x38d556(0x161)+appCode+_0x38d556(0x14d)+(env||'online')+_0x38d556(0x144)+(_0x1da2bc[_0x38d556(0x18c)]||_0x1da2bc['name']||_0x38d556(0x16a))+_0x38d556(0x17c)+_0x4c862a+'\x27'+(_0x20e46b?',\x20'+JSON[_0x38d556(0x184)](_0x588f65,null,0x2):'')+');\x0a\x0a//\x20IMPORTANT:\x20Check\x20execution\x20status\x20before\x20using\x20results\x0aif\x20(!data.execSuccess)\x20{\x0a\x20\x20throw\x20new\x20Error(`SQL\x20execution\x20failed:\x20${data.execError\x20||\x20\x27Unknown\x20error\x27}`);\x0a}\x0a\x0a//\x20Process\x20the\x20results\x0aconst\x20results\x20=\x20data.execResult\x20||\x20[];\x0aconsole.log(`Retrieved\x20${results.length}\x20rows`);\x0a\x0a//\x20Use\x20the\x20data\x0aresults.forEach(row\x20=>\x20{\x0a\x20\x20console.log(row);\x0a});','description':_0x38d556(0x14e)+(_0x1da2bc[_0x38d556(0x18c)]||_0x1da2bc[_0x38d556(0x168)]||_0x38d556(0x152)),'important':[_0x38d556(0x154),'The\x20executeSql\x20method\x20accepts\x20two\x20parameters:\x20sqlCode\x20(string)\x20and\x20optional\x20params\x20(object)',_0x20e46b?_0x38d556(0x17f)+_0x5ea89a[_0x38d556(0x163)](_0x2ea1a4=>_0x2ea1a4['name']+'\x20('+_0x2ea1a4[_0x38d556(0x170)]+')')[_0x38d556(0x185)](',\x20'):_0x38d556(0x146),_0x38d556(0x151),_0x38d556(0x162)]},_0x5494c0={'sqlCode':_0x4c862a,'sqlId':_0x549de7,'name':_0x1da2bc[_0x38d556(0x18c)]||_0x1da2bc[_0x38d556(0x168)]||_0x38d556(0x179)+_0x549de7,'description':_0x1da2bc[_0x38d556(0x16f)]||_0x1da2bc[_0x38d556(0x172)],'category':_0x1da2bc[_0x38d556(0x14c)]||_0x1da2bc[_0x38d556(0x17e)]||_0x38d556(0x165),'sqlContent':_0x1da2bc[_0x38d556(0x145)]||_0x1da2bc[_0x38d556(0x189)],'parameters':_0x5ea89a,'createdTime':_0x1da2bc['createdTime']||_0x1da2bc[_0x38d556(0x143)],'updatedTime':_0x1da2bc[_0x38d556(0x15b)]||_0x1da2bc[_0x38d556(0x166)],'codeExample':_0x1019e2};return _0x5494c0;});if(_0x5a6f22){const _0x3d2ed5=_0x5a6f22['toLowerCase']();_0x1ec6c9=_0x1ec6c9[_0xcbfae0(0x16d)](_0x11d90f=>_0x11d90f[_0xcbfae0(0x168)][_0xcbfae0(0x180)]()[_0xcbfae0(0x18d)](_0x3d2ed5)||_0x11d90f['description']&&_0x11d90f['description'][_0xcbfae0(0x180)]()[_0xcbfae0(0x18d)](_0x3d2ed5)||_0x11d90f['sqlCode']['toLowerCase']()['includes'](_0x3d2ed5)||_0x11d90f['sqlContent']&&_0x11d90f['sqlContent'][_0xcbfae0(0x180)]()['includes'](_0x3d2ed5));}_0x311ccf&&_0x311ccf!==_0xcbfae0(0x187)&&(_0x1ec6c9=_0x1ec6c9['filter'](_0x365b8a=>_0x365b8a[_0xcbfae0(0x14c)]&&_0x365b8a[_0xcbfae0(0x14c)][_0xcbfae0(0x180)]()===_0x311ccf[_0xcbfae0(0x180)]()));const _0x5adc6f=Math[_0xcbfae0(0x181)](_0x1ec6c9[_0xcbfae0(0x147)]/pageSize),_0x18163f=_0x1ec6c9[_0xcbfae0(0x153)]((currentPage-0x1)*pageSize,currentPage*pageSize),_0x7af709=_0x18163f['length']>0x0?_0x18163f[0x0]:null,_0x737c35=_0x7af709?_0xcbfae0(0x174)+_0x7af709[_0xcbfae0(0x168)]+_0xcbfae0(0x149)+_0x7af709[_0xcbfae0(0x177)]+'\x27);\x0aif\x20(!data.execSuccess)\x20{\x0a\x20\x20throw\x20new\x20Error(\x27SQL\x20execution\x20failed\x27);\x0a}\x0aconst\x20results\x20=\x20data.execResult\x20||\x20[];':'';return{'type':_0xcbfae0(0x15c),'total':_0x1ec6c9[_0xcbfae0(0x147)],'sqls':_0x18163f,'pagination':{'currentPage':currentPage,'pageSize':pageSize,'totalPages':_0x5adc6f},'usage':{'description':'Found\x20'+_0x1ec6c9[_0xcbfae0(0x147)]+'\x20SQL\x20queries\x20for\x20application\x20'+appCode+'.\x20Each\x20SQL\x20includes\x20a\x20complete\x20code\x20example\x20showing\x20how\x20to\x20execute\x20it\x20using\x20the\x20SDK.','important':[_0xcbfae0(0x167),_0xcbfae0(0x17d),_0xcbfae0(0x158),_0xcbfae0(0x183),'IMPORTANT:\x20Business\x20logic\x20errors\x20(SQL\x20failures)\x20are\x20returned\x20in\x20data.execError,\x20not\x20thrown','Each\x20SQL\x20query\x20above\x20includes\x20a\x20codeExample\x20field\x20with\x20complete\x20TypeScript\x20code\x20ready\x20to\x20use','For\x20more\x20customization,\x20use\x20generate_sql_code\x20tool\x20to\x20get\x20code\x20with\x20type\x20inference'],'example':_0x737c35||'No\x20SQL\x20queries\x20found.\x20Check\x20your\x20appCode\x20and\x20authentication.'}};}catch(_0x1c8a93){throw new Error(_0xcbfae0(0x164)+_0x1c8a93[_0xcbfae0(0x156)]);}}
1
+ (function(_0x4ca12d,_0x5a8db1){const _0x233633=a14_0x1a02,_0x14ac89=_0x4ca12d();while(!![]){try{const _0x2dc93f=parseInt(_0x233633(0xff))/0x1*(parseInt(_0x233633(0x119))/0x2)+-parseInt(_0x233633(0xe3))/0x3+-parseInt(_0x233633(0xf8))/0x4*(parseInt(_0x233633(0xe4))/0x5)+-parseInt(_0x233633(0xdf))/0x6*(parseInt(_0x233633(0x120))/0x7)+-parseInt(_0x233633(0xfb))/0x8*(parseInt(_0x233633(0x10e))/0x9)+parseInt(_0x233633(0xda))/0xa+parseInt(_0x233633(0xf6))/0xb;if(_0x2dc93f===_0x5a8db1)break;else _0x14ac89['push'](_0x14ac89['shift']());}catch(_0x1ce671){_0x14ac89['push'](_0x14ac89['shift']());}}}(a14_0x5421,0x5b8e4));function a14_0x1a02(_0x11952a,_0x31e824){_0x11952a=_0x11952a-0xd9;const _0x542138=a14_0x5421();let _0x1a02f6=_0x542138[_0x11952a];return _0x1a02f6;}function a14_0x5421(){const _0x32e26a=['Failed\x20to\x20list\x20SQL\x20queries:\x20','filter','\x27,\x0a\x20\x20env:\x20\x27','LOVRABET_ENV','.\x20Each\x20SQL\x20includes\x20a\x20complete\x20code\x20example\x20showing\x20how\x20to\x20execute\x20it\x20using\x20the\x20SDK.','\x20SQL\x20queries\x20for\x20application\x20','SQL-','For\x20more\x20customization,\x20use\x20generate_sql_code\x20tool\x20to\x20get\x20code\x20with\x20type\x20inference','sql_list','all','name','count','from','9sRzVUE','online','time','env','description','getCustomSqlList','toLowerCase','sqlCode','sqlId','type','sqlName','14522NFXZGI','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','IMPORTANT:\x20Business\x20logic\x20errors\x20(SQL\x20failures)\x20are\x20returned\x20in\x20data.execError,\x20not\x20thrown','ceil','Found\x20','\x27,\x0a});\x0a\x0a//\x20Execute\x20the\x20SQL\x20query:\x20','IMPORTANT:\x20Use\x20try-catch\x20to\x20handle\x20HTTP\x20errors\x20(network\x20issues,\x20auth\x20failures)','399mOxPzf','category','This\x20SQL\x20requires\x20parameters:\x20','The\x20executeSql\x20method\x20accepts\x20two\x20parameters:\x20sqlCode\x20(string)\x20and\x20optional\x20params\x20(object)','780190HdrLFb','IMPORTANT:\x20All\x20SQL\x20queries\x20use\x20the\x20same\x20execution\x20pattern\x20-\x20client.api.executeSql(sqlCode,\x20params)','IMPORTANT:\x20Always\x20check\x20data.execSuccess\x20before\x20using\x20data.execResult','SQL\x20Query','sqlContent','55374DPIiTa','updateTime','\x27);\x0aif\x20(!data.execSuccess)\x20{\x0a\x20\x20throw\x20new\x20Error(\x27SQL\x20execution\x20failed\x27);\x0a}\x0aconst\x20results\x20=\x20data.execResult\x20||\x20[];','map','672168tEhnLp','245UECSuI','sql','value','includes','message',');\x0a\x0a//\x20IMPORTANT:\x20Check\x20execution\x20status\x20before\x20using\x20results\x0aif\x20(!data.execSuccess)\x20{\x0a\x20\x20throw\x20new\x20Error(`SQL\x20execution\x20failed:\x20${data.execError\x20||\x20\x27Unknown\x20error\x27}`);\x0a}\x0a\x0a//\x20Process\x20the\x20results\x0aconst\x20results\x20=\x20data.execResult\x20||\x20[];\x0aconsole.log(`Retrieved\x20${results.length}\x20rows`);\x0a\x0a//\x20Use\x20the\x20data\x0aresults.forEach(row\x20=>\x20{\x0a\x20\x20console.log(row);\x0a});','slice','string','IMPORTANT:\x20The\x20SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[],\x20execError?:\x20string\x20}','match','limit','This\x20SQL\x20does\x20not\x20require\x20any\x20parameters','import\x20{\x20LovrabetClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;\x0a\x0a//\x20Initialize\x20the\x20SDK\x20client\x0aconst\x20client\x20=\x20new\x20LovrabetClient({\x0a\x20\x20appCode:\x20\x27','\x0a//\x20Example:\x20Using\x20SQL\x20\x22','sqlType','createTime','2024-01-01','Each\x20SQL\x20query\x20above\x20includes\x20a\x20codeExample\x20field\x20with\x20complete\x20TypeScript\x20code\x20ready\x20to\x20use','15837206PCbPcO','data','37744uxbQfs','\x22\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27','length','1707672GKfleM','No\x20SQL\x20queries\x20found.\x20Check\x20your\x20appCode\x20and\x20authentication.','reduce','other','39lTAeJP','LOVRABET_APP_CODE'];a14_0x5421=function(){return _0x32e26a;};return a14_0x5421();}import{DevApiClient}from'../api/dev-api-client.js';export async function listSqlQueries(_0x4eb8f9={}){const _0x3eebc3=a14_0x1a02,{appCode:appCode=process[_0x3eebc3(0x111)][_0x3eebc3(0x100)],cookie:_0x43957c,env:env=process[_0x3eebc3(0x111)][_0x3eebc3(0x104)]||_0x3eebc3(0x10f),keyword:_0x369d10,category:_0x36688a,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1}=_0x4eb8f9;if(!appCode)throw new Error(_0x3eebc3(0x11a));const _0x31fff6=new DevApiClient({'appCode':appCode,'cookie':_0x43957c,'env':env});try{const _0x3d2126=await _0x31fff6[_0x3eebc3(0x113)]({'pageSize':pageSize,'currentPage':currentPage}),_0x75b6d9=_0x3d2126[_0x3eebc3(0xf7)]||_0x3d2126,_0x270297=_0x75b6d9['tableData']||[],_0x56c056=_0x75b6d9['total']||_0x270297[_0x3eebc3(0xfa)];let _0x4e2e92=_0x270297['map'](_0x5edf6f=>{const _0x1b8ff9=_0x3eebc3,_0x14ac19=_0x5edf6f['sqlCode']||appCode+'-'+(_0x5edf6f[_0x1b8ff9(0x116)]||_0x5edf6f['id']),_0x128ff0=_0x5edf6f['sqlId']||_0x5edf6f['id'];let _0x3b4bd9;if(_0x5edf6f[_0x1b8ff9(0xde)]||_0x5edf6f['sql']){const _0x3b9147=_0x5edf6f['sqlContent']||_0x5edf6f[_0x1b8ff9(0xe5)],_0x4b2d36=_0x3b9147[_0x1b8ff9(0xed)](/[:$]\{?(\w+)\}?/g);if(_0x4b2d36){const _0x5b8440=Array[_0x1b8ff9(0x10d)](new Set(_0x4b2d36[_0x1b8ff9(0xe2)](_0x14506a=>_0x14506a['replace'](/[:${}]/g,''))));_0x3b4bd9=_0x5b8440[_0x1b8ff9(0xe2)](_0x20a3d5=>{const _0x24a8fe=_0x1b8ff9;let _0x1ce791=_0x24a8fe(0xe6);if(_0x20a3d5['toLowerCase']()[_0x24a8fe(0xe7)]('date')||_0x20a3d5[_0x24a8fe(0x114)]()[_0x24a8fe(0xe7)](_0x24a8fe(0x110)))_0x1ce791=_0x24a8fe(0xf4);else{if(_0x20a3d5[_0x24a8fe(0x114)]()['includes']('id'))_0x1ce791=0x7b;else(_0x20a3d5[_0x24a8fe(0x114)]()[_0x24a8fe(0xe7)](_0x24a8fe(0xee))||_0x20a3d5[_0x24a8fe(0x114)]()['includes'](_0x24a8fe(0x10c)))&&(_0x1ce791=0xa);}return{'name':_0x20a3d5,'type':_0x24a8fe(0xeb),'required':!![],'description':'Parameter:\x20'+_0x20a3d5,'example':_0x1ce791};});}}const _0x3d1551=_0x3b4bd9&&_0x3b4bd9[_0x1b8ff9(0xfa)]>0x0,_0x1b7098=_0x3d1551?_0x3b4bd9[_0x1b8ff9(0xfd)]((_0x3a8324,_0x5dc4cb)=>({..._0x3a8324,[_0x5dc4cb[_0x1b8ff9(0x10b)]]:_0x5dc4cb['example']}),{}):undefined,_0x4f2724={'typescript':_0x1b8ff9(0xf0)+appCode+_0x1b8ff9(0x103)+(env||'online')+_0x1b8ff9(0x11e)+(_0x5edf6f[_0x1b8ff9(0x118)]||_0x5edf6f[_0x1b8ff9(0x10b)]||_0x1b8ff9(0xdd))+'\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27'+_0x14ac19+'\x27'+(_0x3d1551?',\x20'+JSON['stringify'](_0x1b7098,null,0x2):'')+_0x1b8ff9(0xe9),'description':'Execute\x20SQL\x20query:\x20'+(_0x5edf6f[_0x1b8ff9(0x118)]||_0x5edf6f[_0x1b8ff9(0x10b)]||'Custom\x20SQL'),'important':['SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[]\x20}\x20-\x20Always\x20check\x20execSuccess\x20before\x20using\x20execResult',_0x1b8ff9(0xd9),_0x3d1551?_0x1b8ff9(0x122)+_0x3b4bd9[_0x1b8ff9(0xe2)](_0x5ab30f=>_0x5ab30f[_0x1b8ff9(0x10b)]+'\x20('+_0x5ab30f[_0x1b8ff9(0x117)]+')')['join'](',\x20'):_0x1b8ff9(0xef),'On\x20HTTP\x20error,\x20SDK\x20throws\x20LovrabetError\x20exception\x20-\x20use\x20try-catch\x20for\x20error\x20handling','The\x20execResult\x20contains\x20an\x20array\x20of\x20row\x20objects\x20matching\x20your\x20SQL\x20query\x20structure']},_0x5d4c07={'sqlCode':_0x14ac19,'sqlId':_0x128ff0,'name':_0x5edf6f[_0x1b8ff9(0x118)]||_0x5edf6f['name']||_0x1b8ff9(0x107)+_0x128ff0,'description':_0x5edf6f['sqlDesc']||_0x5edf6f[_0x1b8ff9(0x112)],'category':_0x5edf6f[_0x1b8ff9(0x121)]||_0x5edf6f[_0x1b8ff9(0xf2)]||_0x1b8ff9(0xfe),'sqlContent':_0x5edf6f[_0x1b8ff9(0xde)]||_0x5edf6f[_0x1b8ff9(0xe5)],'parameters':_0x3b4bd9,'createdTime':_0x5edf6f['createdTime']||_0x5edf6f[_0x1b8ff9(0xf3)],'updatedTime':_0x5edf6f['updatedTime']||_0x5edf6f[_0x1b8ff9(0xe0)],'codeExample':_0x4f2724};return _0x5d4c07;});if(_0x369d10){const _0x2a88d1=_0x369d10[_0x3eebc3(0x114)]();_0x4e2e92=_0x4e2e92[_0x3eebc3(0x102)](_0x1bf761=>_0x1bf761[_0x3eebc3(0x10b)][_0x3eebc3(0x114)]()[_0x3eebc3(0xe7)](_0x2a88d1)||_0x1bf761[_0x3eebc3(0x112)]&&_0x1bf761['description'][_0x3eebc3(0x114)]()['includes'](_0x2a88d1)||_0x1bf761['sqlCode'][_0x3eebc3(0x114)]()[_0x3eebc3(0xe7)](_0x2a88d1)||_0x1bf761[_0x3eebc3(0xde)]&&_0x1bf761[_0x3eebc3(0xde)]['toLowerCase']()[_0x3eebc3(0xe7)](_0x2a88d1));}_0x36688a&&_0x36688a!==_0x3eebc3(0x10a)&&(_0x4e2e92=_0x4e2e92[_0x3eebc3(0x102)](_0x329d4a=>_0x329d4a[_0x3eebc3(0x121)]&&_0x329d4a[_0x3eebc3(0x121)]['toLowerCase']()===_0x36688a[_0x3eebc3(0x114)]()));const _0x243db5=Math[_0x3eebc3(0x11c)](_0x4e2e92[_0x3eebc3(0xfa)]/pageSize),_0x4b1eea=_0x4e2e92[_0x3eebc3(0xea)]((currentPage-0x1)*pageSize,currentPage*pageSize),_0x3a74a3=_0x4b1eea[_0x3eebc3(0xfa)]>0x0?_0x4b1eea[0x0]:null,_0x543e45=_0x3a74a3?_0x3eebc3(0xf1)+_0x3a74a3['name']+_0x3eebc3(0xf9)+_0x3a74a3[_0x3eebc3(0x115)]+_0x3eebc3(0xe1):'';return{'type':_0x3eebc3(0x109),'total':_0x4e2e92[_0x3eebc3(0xfa)],'sqls':_0x4b1eea,'pagination':{'currentPage':currentPage,'pageSize':pageSize,'totalPages':_0x243db5},'usage':{'description':_0x3eebc3(0x11d)+_0x4e2e92[_0x3eebc3(0xfa)]+_0x3eebc3(0x106)+appCode+_0x3eebc3(0x105),'important':[_0x3eebc3(0xdb),_0x3eebc3(0xdc),_0x3eebc3(0xec),_0x3eebc3(0x11f),_0x3eebc3(0x11b),_0x3eebc3(0xf5),_0x3eebc3(0x108)],'example':_0x543e45||_0x3eebc3(0xfc)}};}catch(_0x552e7d){throw new Error(_0x3eebc3(0x101)+_0x552e7d[_0x3eebc3(0xe8)]);}}
@@ -1 +1 @@
1
- function a15_0x4151(_0x5563a3,_0x399b9d){const _0x2196b5=a15_0x2196();return a15_0x4151=function(_0x4151b4,_0x274d5b){_0x4151b4=_0x4151b4-0x194;let _0x339e68=_0x2196b5[_0x4151b4];return _0x339e68;},a15_0x4151(_0x5563a3,_0x399b9d);}(function(_0x2b4125,_0x5f3f26){const _0x40631a=a15_0x4151,_0x28fc54=_0x2b4125();while(!![]){try{const _0x50dfcd=parseInt(_0x40631a(0x1a6))/0x1+parseInt(_0x40631a(0x1b2))/0x2+-parseInt(_0x40631a(0x1b4))/0x3+parseInt(_0x40631a(0x19c))/0x4*(-parseInt(_0x40631a(0x195))/0x5)+parseInt(_0x40631a(0x198))/0x6*(parseInt(_0x40631a(0x1ab))/0x7)+-parseInt(_0x40631a(0x1a9))/0x8*(-parseInt(_0x40631a(0x1a3))/0x9)+parseInt(_0x40631a(0x1a0))/0xa;if(_0x50dfcd===_0x5f3f26)break;else _0x28fc54['push'](_0x28fc54['shift']());}catch(_0x16f767){_0x28fc54['push'](_0x28fc54['shift']());}}}(a15_0x2196,0x973f5));import*as a15_0x19c294 from'node:https';import{saveCookie}from'../auth/cookie-manager.js';import{isSessionValid}from'../auth/session-validator.js';import{getUserDomain}from'../auth/constants.js';function a15_0x2196(){const _0x4b5887=['5DVobvh','error','/api/auth/get-session','16374ftLnAk','address','Login\x20server\x20error:\x20','env','4787236WhQNzS','<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>Login\x20Failed</title></head>\x0a<body>\x0a\x20\x20<div\x20style=\x22color:\x20red;\x22>\x0a\x20\x20\x20\x20<h2>Login\x20Successful,\x20but\x20Failed\x20to\x20Save\x20Cookie</h2>\x0a\x20\x20\x20\x20<p>Error:\x20','/sign-in?redirect=','port','1426380iqwmOL','listen','Login\x20successful\x20but\x20failed\x20to\x20save\x20cookie:\x20','150498uuvTgQ','Login\x20timeout\x20-\x20no\x20response\x20received\x20within\x205\x20minutes','<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>Login\x20Successful</title></head>\x0a<body>\x0a\x20\x20<div>Login\x20successful!\x20You\x20can\x20close\x20this\x20window\x20and\x20return\x20to\x20your\x20vibe\x20editor.</div>\x0a\x20\x20<script>\x0a\x20\x20\x20\x20setTimeout(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20},\x202000);\x0a\x20\x20</script>\x0a</body>\x0a</html>','128870VeuEvD','127.0.0.1','text/html;\x20charset=utf-8','240DtBUCD','writeHead','973lbgTRZ','Already\x20logged\x20in\x20to\x20','cookie','Successfully\x20logged\x20in\x20to\x20','object','json','message','1617550cQxRVZ','online','434868OrDYca','close','Failed\x20to\x20fetch\x20SSL\x20certificates\x20for\x20login\x20server','end','createServer','\x20environment','https://dev.lovrabet.com:','Login\x20server\x20error'];a15_0x2196=function(){return _0x4b5887;};return a15_0x2196();}export async function login(_0x589d5d={}){const _0x3f44ca=a15_0x4151,_0x3ce50e=_0x589d5d[_0x3f44ca(0x19b)]||_0x3f44ca(0x1b3);if(await isSessionValid(_0x3ce50e))return{'success':!![],'message':_0x3f44ca(0x1ac)+_0x3ce50e+_0x3f44ca(0x1b9),'env':_0x3ce50e};let _0x3df118;try{const _0x5a7dc5=await fetch('https://g.yuntooai.com/cert/lovrabet-dev.json');_0x3df118=await _0x5a7dc5[_0x3f44ca(0x1b0)]();}catch(_0x2c20a4){return{'success':![],'message':_0x3f44ca(0x1b6),'env':_0x3ce50e};}return new Promise(_0x21e91f=>{const _0xae262c=_0x3f44ca;let _0x4e8b58=0x0;const _0x13cd2c=a15_0x19c294[_0xae262c(0x1b8)](_0x3df118,async(_0x3a4bb3,_0x414de0)=>{const _0x2ba9a2=_0xae262c,_0x13f797=getUserDomain(_0x3ce50e),_0x206c50=_0x3a4bb3['headers'][_0x2ba9a2(0x1ad)]||'';try{const _0x382882=await fetch(_0x13f797+_0x2ba9a2(0x197),{'headers':{'cookie':_0x206c50}}),_0x1c5f37=await _0x382882[_0x2ba9a2(0x1b0)](),_0x1829fe=_0x1c5f37&&_0x1c5f37['session']&&_0x1c5f37['user'];if(_0x1829fe){try{saveCookie(_0x206c50);}catch(_0x41c9a0){const _0x4d7815=_0x2ba9a2(0x19d)+_0x41c9a0[_0x2ba9a2(0x1b1)]+'</p>\x0a\x20\x20\x20\x20<p>Please\x20check\x20file\x20permissions\x20for\x20~/.lovrabet/cookie</p>\x0a\x20\x20</div>\x0a</body>\x0a</html>';_0x414de0[_0x2ba9a2(0x1aa)](0x1f4,{'Content-Type':_0x2ba9a2(0x1a8)}),_0x414de0[_0x2ba9a2(0x1b7)](_0x4d7815),_0x13cd2c[_0x2ba9a2(0x1b5)](),_0x21e91f({'success':![],'message':_0x2ba9a2(0x1a2)+_0x41c9a0['message'],'env':_0x3ce50e});return;}const _0x48f05c=_0x2ba9a2(0x1a5);_0x414de0['writeHead'](0xc8,{'Content-Type':_0x2ba9a2(0x1a8)}),_0x414de0[_0x2ba9a2(0x1b7)](_0x48f05c),_0x13cd2c['close'](),_0x21e91f({'success':!![],'message':_0x2ba9a2(0x1ae)+_0x3ce50e+'\x20environment','env':_0x3ce50e});}else{const _0x16f71e=encodeURIComponent(_0x2ba9a2(0x1ba)+_0x4e8b58);_0x414de0[_0x2ba9a2(0x1aa)](0x12e,{'location':_0x13f797+_0x2ba9a2(0x19e)+_0x16f71e}),_0x414de0[_0x2ba9a2(0x1b7)]();}}catch(_0xa44aef){_0x414de0['writeHead'](0x1f4,{'Content-Type':'text/plain'}),_0x414de0['end']('Internal\x20server\x20error'),_0x13cd2c[_0x2ba9a2(0x1b5)](),_0x21e91f({'success':![],'message':_0x2ba9a2(0x194),'env':_0x3ce50e});}});_0x13cd2c[_0xae262c(0x1a1)](0x0,_0xae262c(0x1a7),()=>{const _0x477eef=_0xae262c,_0xcaab0d=_0x13cd2c[_0x477eef(0x199)]();_0x4e8b58=typeof _0xcaab0d===_0x477eef(0x1af)&&_0xcaab0d?_0xcaab0d[_0x477eef(0x19f)]:0x0;const _0x5b559b=_0x477eef(0x1ba)+_0x4e8b58;_0x21e91f({'success':![],'message':'Please\x20open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20login:\x20'+_0x5b559b,'loginUrl':_0x5b559b,'env':_0x3ce50e});}),_0x13cd2c['on'](_0xae262c(0x196),_0x2dffae=>{const _0x23180f=_0xae262c;_0x21e91f({'success':![],'message':_0x23180f(0x19a)+_0x2dffae[_0x23180f(0x1b1)],'env':_0x3ce50e});}),setTimeout(()=>{const _0x51ab79=_0xae262c;_0x13cd2c[_0x51ab79(0x1b5)](),_0x21e91f({'success':![],'message':_0x51ab79(0x1a4),'env':_0x3ce50e});},0x5*0x3c*0x3e8);});}
1
+ (function(_0x270008,_0xd6339e){const _0x8ba283=a15_0x5d92,_0x3378d9=_0x270008();while(!![]){try{const _0xa5e10d=-parseInt(_0x8ba283(0x136))/0x1+-parseInt(_0x8ba283(0x119))/0x2+parseInt(_0x8ba283(0x133))/0x3*(-parseInt(_0x8ba283(0x137))/0x4)+parseInt(_0x8ba283(0x124))/0x5*(-parseInt(_0x8ba283(0x121))/0x6)+parseInt(_0x8ba283(0x135))/0x7+parseInt(_0x8ba283(0x12b))/0x8+parseInt(_0x8ba283(0x11f))/0x9;if(_0xa5e10d===_0xd6339e)break;else _0x3378d9['push'](_0x3378d9['shift']());}catch(_0x1f8301){_0x3378d9['push'](_0x3378d9['shift']());}}}(a15_0xaea8,0x58015));import*as a15_0x1de633 from'node:https';import{saveCookie}from'../auth/cookie-manager.js';function a15_0xaea8(){const _0x3b410f=['writeHead','end','port','Login\x20server\x20error','address','1102694ztwDTK','close','listen','text/html;\x20charset=utf-8','session','message','15111738Tsupfe','object','516guKOKi','Please\x20open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20login:\x20','online','23145JhMRDx','<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>Login\x20Failed</title></head>\x0a<body>\x0a\x20\x20<div\x20style=\x22color:\x20red;\x22>\x0a\x20\x20\x20\x20<h2>Login\x20Successful,\x20but\x20Failed\x20to\x20Save\x20Cookie</h2>\x0a\x20\x20\x20\x20<p>Error:\x20','error','user','</p>\x0a\x20\x20\x20\x20<p>Please\x20check\x20file\x20permissions\x20for\x20~/.lovrabet/cookie</p>\x0a\x20\x20</div>\x0a</body>\x0a</html>','json','/sign-in?redirect=','2783232UCxhVA','\x20environment','Login\x20timeout\x20-\x20no\x20response\x20received\x20within\x205\x20minutes','headers','text/plain','127.0.0.1','cookie','https://g.yuntooai.com/cert/lovrabet-dev.json','54171arvUlx','createServer','103425lOjoeK','713794EQphss','4QEcLcW','Already\x20logged\x20in\x20to\x20'];a15_0xaea8=function(){return _0x3b410f;};return a15_0xaea8();}import{isSessionValid}from'../auth/session-validator.js';import{getUserDomain}from'../auth/constants.js';function a15_0x5d92(_0x4935f4,_0x1caf0f){_0x4935f4=_0x4935f4-0x115;const _0xaea8f9=a15_0xaea8();let _0x5d92f7=_0xaea8f9[_0x4935f4];return _0x5d92f7;}export async function login(_0x1096db={}){const _0x1b46b7=a15_0x5d92,_0x2c8d8c=_0x1096db['env']||_0x1b46b7(0x123);if(await isSessionValid(_0x2c8d8c))return{'success':!![],'message':_0x1b46b7(0x138)+_0x2c8d8c+_0x1b46b7(0x12c),'env':_0x2c8d8c};let _0xc8a57d;try{const _0x81dcd=await fetch(_0x1b46b7(0x132));_0xc8a57d=await _0x81dcd[_0x1b46b7(0x129)]();}catch(_0x50fbb0){return{'success':![],'message':'Failed\x20to\x20fetch\x20SSL\x20certificates\x20for\x20login\x20server','env':_0x2c8d8c};}return new Promise(_0x2261ba=>{const _0x53ac1d=_0x1b46b7;let _0x5d600a=0x0;const _0x3e2a76=a15_0x1de633[_0x53ac1d(0x134)](_0xc8a57d,async(_0x44052b,_0x403e39)=>{const _0x52291a=_0x53ac1d,_0x495a9f=getUserDomain(_0x2c8d8c),_0xbb701e=_0x44052b[_0x52291a(0x12e)][_0x52291a(0x131)]||'';try{const _0x408939=await fetch(_0x495a9f+'/api/auth/get-session',{'headers':{'cookie':_0xbb701e}}),_0x3f6de3=await _0x408939[_0x52291a(0x129)](),_0x29966a=_0x3f6de3&&_0x3f6de3[_0x52291a(0x11d)]&&_0x3f6de3[_0x52291a(0x127)];if(_0x29966a){try{saveCookie(_0xbb701e);}catch(_0xfb8bd8){const _0x372fdc=_0x52291a(0x125)+_0xfb8bd8[_0x52291a(0x11e)]+_0x52291a(0x128);_0x403e39[_0x52291a(0x139)](0x1f4,{'Content-Type':_0x52291a(0x11c)}),_0x403e39[_0x52291a(0x115)](_0x372fdc),_0x3e2a76['close'](),_0x2261ba({'success':![],'message':'Login\x20successful\x20but\x20failed\x20to\x20save\x20cookie:\x20'+_0xfb8bd8['message'],'env':_0x2c8d8c});return;}const _0xfe1154='<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>Login\x20Successful</title></head>\x0a<body>\x0a\x20\x20<div>Login\x20successful!\x20You\x20can\x20close\x20this\x20window\x20and\x20return\x20to\x20your\x20vibe\x20editor.</div>\x0a\x20\x20<script>\x0a\x20\x20\x20\x20setTimeout(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20},\x202000);\x0a\x20\x20</script>\x0a</body>\x0a</html>';_0x403e39[_0x52291a(0x139)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x403e39[_0x52291a(0x115)](_0xfe1154),_0x3e2a76['close'](),_0x2261ba({'success':!![],'message':'Successfully\x20logged\x20in\x20to\x20'+_0x2c8d8c+'\x20environment','env':_0x2c8d8c});}else{const _0x2a53fe=encodeURIComponent('https://dev.lovrabet.com:'+_0x5d600a);_0x403e39[_0x52291a(0x139)](0x12e,{'location':_0x495a9f+_0x52291a(0x12a)+_0x2a53fe}),_0x403e39['end']();}}catch(_0x4b0267){_0x403e39[_0x52291a(0x139)](0x1f4,{'Content-Type':_0x52291a(0x12f)}),_0x403e39[_0x52291a(0x115)]('Internal\x20server\x20error'),_0x3e2a76[_0x52291a(0x11a)](),_0x2261ba({'success':![],'message':_0x52291a(0x117),'env':_0x2c8d8c});}});_0x3e2a76[_0x53ac1d(0x11b)](0x0,_0x53ac1d(0x130),()=>{const _0x1a3e41=_0x53ac1d,_0x157d7a=_0x3e2a76[_0x1a3e41(0x118)]();_0x5d600a=typeof _0x157d7a===_0x1a3e41(0x120)&&_0x157d7a?_0x157d7a[_0x1a3e41(0x116)]:0x0;const _0x49c702='https://dev.lovrabet.com:'+_0x5d600a;_0x2261ba({'success':![],'message':_0x1a3e41(0x122)+_0x49c702,'loginUrl':_0x49c702,'env':_0x2c8d8c});}),_0x3e2a76['on'](_0x53ac1d(0x126),_0x3eecb1=>{const _0x32f384=_0x53ac1d;_0x2261ba({'success':![],'message':'Login\x20server\x20error:\x20'+_0x3eecb1[_0x32f384(0x11e)],'env':_0x2c8d8c});}),setTimeout(()=>{const _0x3ae7ef=_0x53ac1d;_0x3e2a76[_0x3ae7ef(0x11a)](),_0x2261ba({'success':![],'message':_0x3ae7ef(0x12d),'env':_0x2c8d8c});},0x5*0x3c*0x3e8);});}
@@ -1 +1 @@
1
- (function(_0x8f1449,_0xeacd0a){const _0x48da2c=a16_0x210f,_0x48ae10=_0x8f1449();while(!![]){try{const _0x541e73=parseInt(_0x48da2c(0x121))/0x1+-parseInt(_0x48da2c(0x117))/0x2+parseInt(_0x48da2c(0x11c))/0x3+-parseInt(_0x48da2c(0x119))/0x4+-parseInt(_0x48da2c(0x123))/0x5*(parseInt(_0x48da2c(0x118))/0x6)+parseInt(_0x48da2c(0x11a))/0x7+parseInt(_0x48da2c(0x120))/0x8;if(_0x541e73===_0xeacd0a)break;else _0x48ae10['push'](_0x48ae10['shift']());}catch(_0x240620){_0x48ae10['push'](_0x48ae10['shift']());}}}(a16_0xdb23,0x52bd6));import{DevApiClient}from'../api/dev-api-client.js';function a16_0x210f(_0x2ece10,_0x455b0d){const _0xdb23a2=a16_0xdb23();return a16_0x210f=function(_0x210feb,_0x48c752){_0x210feb=_0x210feb-0x113;let _0x40ad67=_0xdb23a2[_0x210feb];return _0x40ad67;},a16_0x210f(_0x2ece10,_0x455b0d);}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function searchDatasets(_0x4e6671){const _0x41e67c=a16_0x210f,{appCode:appCode=process[_0x41e67c(0x11f)]['LOVRABET_APP_CODE'],cookie:_0x1478eb,env:env=process[_0x41e67c(0x11f)]['LOVRABET_ENV']||_0x41e67c(0x114),keyword:_0x22d51b}=_0x4e6671;if(!appCode)throw new Error('appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.');if(!_0x22d51b)throw new Error(_0x41e67c(0x113));const _0x50b9cc=new DevApiClient({'appCode':appCode,'cookie':_0x1478eb,'env':env}),_0x56b2f6=await _0x50b9cc['searchDatasets'](_0x22d51b),_0x3e1d06=new DatasetAnalyzer(),_0x593258=_0x3e1d06[_0x41e67c(0x122)](_0x56b2f6);return{'appCode':appCode,'env':env,'keyword':_0x22d51b,'total':_0x593258[_0x41e67c(0x11d)],'datasets':_0x593258[_0x41e67c(0x11e)][_0x41e67c(0x11b)](_0x21cdfa=>({'id':_0x21cdfa['id'],'name':_0x21cdfa[_0x41e67c(0x116)],'code':_0x21cdfa['code'],'tableName':_0x21cdfa['tableName'],'description':_0x21cdfa[_0x41e67c(0x115)]}))};}function a16_0xdb23(){const _0x1389c7=['48DfTOLx','1606180jYFShC','2313955mBWIXw','map','1594935JbvLep','total','datasets','env','2797608PaPYBd','11918gJEDTI','analyzeDatasetList','93295ZisPdU','keyword\x20is\x20required','online','description','name','668220LpNzqy'];a16_0xdb23=function(){return _0x1389c7;};return a16_0xdb23();}
1
+ (function(_0x1ee6ca,_0x3ddc3e){const _0x35a9ce=a16_0x1c98,_0x4d46f4=_0x1ee6ca();while(!![]){try{const _0x49a4bb=-parseInt(_0x35a9ce(0x1e8))/0x1*(-parseInt(_0x35a9ce(0x1f8))/0x2)+parseInt(_0x35a9ce(0x1ea))/0x3+-parseInt(_0x35a9ce(0x1ef))/0x4+-parseInt(_0x35a9ce(0x1e6))/0x5*(parseInt(_0x35a9ce(0x1f0))/0x6)+-parseInt(_0x35a9ce(0x1fa))/0x7*(parseInt(_0x35a9ce(0x1f7))/0x8)+-parseInt(_0x35a9ce(0x1eb))/0x9+parseInt(_0x35a9ce(0x1f6))/0xa*(parseInt(_0x35a9ce(0x1e7))/0xb);if(_0x49a4bb===_0x3ddc3e)break;else _0x4d46f4['push'](_0x4d46f4['shift']());}catch(_0x3bb388){_0x4d46f4['push'](_0x4d46f4['shift']());}}}(a16_0x3651,0x8052e));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a16_0x1c98(_0x24bad4,_0x7ed538){_0x24bad4=_0x24bad4-0x1e6;const _0x3651bf=a16_0x3651();let _0x1c9808=_0x3651bf[_0x24bad4];return _0x1c9808;}function a16_0x3651(){const _0x289e94=['appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','2992617LalcIJ','5032341kXeJyo','online','searchDatasets','code','3846444LoYota','3600HCCWdW','env','datasets','LOVRABET_APP_CODE','LOVRABET_ENV','keyword\x20is\x20required','130GVJtbz','2974688hldLvH','420702lFSKej','name','7kZVWDN','8590VVgqxi','1718343wxLLqC','2lQJOUF'];a16_0x3651=function(){return _0x289e94;};return a16_0x3651();}export async function searchDatasets(_0x10f753){const _0x489a3c=a16_0x1c98,{appCode:appCode=process['env'][_0x489a3c(0x1f3)],cookie:_0x354504,env:env=process[_0x489a3c(0x1f1)][_0x489a3c(0x1f4)]||_0x489a3c(0x1ec),keyword:_0x3ab860}=_0x10f753;if(!appCode)throw new Error(_0x489a3c(0x1e9));if(!_0x3ab860)throw new Error(_0x489a3c(0x1f5));const _0x9c066c=new DevApiClient({'appCode':appCode,'cookie':_0x354504,'env':env}),_0x4b62e8=await _0x9c066c[_0x489a3c(0x1ed)](_0x3ab860),_0x1bbd33=new DatasetAnalyzer(),_0x47f513=_0x1bbd33['analyzeDatasetList'](_0x4b62e8);return{'appCode':appCode,'env':env,'keyword':_0x3ab860,'total':_0x47f513['total'],'datasets':_0x47f513[_0x489a3c(0x1f2)]['map'](_0x2f5a61=>({'id':_0x2f5a61['id'],'name':_0x2f5a61[_0x489a3c(0x1f9)],'code':_0x2f5a61[_0x489a3c(0x1ee)],'tableName':_0x2f5a61['tableName'],'description':_0x2f5a61['description']}))};}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/dataset-mcp-server",
3
- "version": "1.2.1-beta.0",
3
+ "version": "1.2.2",
4
4
  "description": "MCP server for Lovrabet Dataset access",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,7 +17,7 @@
17
17
  "dev": "tsc --watch",
18
18
  "start": "node dist/index.js",
19
19
  "start:debug": "node --inspect dist/index.js",
20
- "beta-release": "bun run build && sh scripts/update-beta-version.sh && git push && git push origin --tag && bun publish",
20
+ "beta-release": "bun run build && sh scripts/update-beta-version.sh && git push && git push origin --tag && bun publish --tag beta",
21
21
  "release": "bun run build && sh scripts/update-latest-version.sh && git push && git push origin --tag && bun publish",
22
22
  "test": "vitest run",
23
23
  "test:watch": "vitest",
@@ -30,7 +30,7 @@
30
30
  "examples": "npm run example:basic && npm run example:sdk && npm run example:compare"
31
31
  },
32
32
  "dependencies": {
33
- "@lovrabet/dsparser": "^1.2.1",
33
+ "@lovrabet/dsparser": "^1.2.4",
34
34
  "@modelcontextprotocol/sdk": "^1.25.1",
35
35
  "axios": "^1.6.2",
36
36
  "dotenv": "^16.3.1",
@@ -58,4 +58,4 @@
58
58
  "engines": {
59
59
  "node": ">=18.0.0"
60
60
  }
61
- }
61
+ }