@lovrabet/dataset-mcp-server 1.0.16 → 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
- const a0_0x355ef0=a0_0x5eec;(function(_0x1d5bcf,_0x404ce1){const _0x9f58d5=a0_0x5eec,_0xb572d=_0x1d5bcf();while(!![]){try{const _0x413b24=parseInt(_0x9f58d5(0xeb))/0x1+parseInt(_0x9f58d5(0xc8))/0x2+parseInt(_0x9f58d5(0xd9))/0x3+-parseInt(_0x9f58d5(0x11c))/0x4*(-parseInt(_0x9f58d5(0x128))/0x5)+-parseInt(_0x9f58d5(0x118))/0x6*(-parseInt(_0x9f58d5(0x119))/0x7)+-parseInt(_0x9f58d5(0xc5))/0x8+-parseInt(_0x9f58d5(0x12a))/0x9;if(_0x413b24===_0x404ce1)break;else _0xb572d['push'](_0xb572d['shift']());}catch(_0xc29fe4){_0xb572d['push'](_0xb572d['shift']());}}}(a0_0x37dc,0xce9df));function a0_0x37dc(){const _0xbee950=['99129BnFBTY','displayName','join','-\x20**Full\x20URL:**\x20','isPrimaryKey','-\x20**Method:**\x20','compareDatasets','enabled','number','analyzeDatasetItem','-\x20**Request\x20Fields:**\x20','raw','\x0a```\x0a',')\x0a\x0a','\x20operation\x20for\x20','Fields:\x20+','has','replace','getOperationAnalysis','includes','fullUrl','dbTypeLen','requestFields','getFieldList','-\x20**Path:**\x20','**Table\x20Name:**\x20','all','analyzeDatasetList','searchDatasets','source','extend','###\x20','name','dbType','##\x20Fields\x0a\x0a','code','removed','getTableKey','tableName','online','generateSDKInitCode','isEnum','createTime','getEnumMeta','responseExample','821946SvVyMZ','77VdLsYR','getOperationDocMeta','enumSource','4ZtVqHM','supportsCRUD','\x20total)','##\x20Operations\x0a\x0a','description','sdkCall','data','\x20...\x20(','datasetCode','from','method','usageExample','5108570HGllDo','tableData','32668713PrEPqe','fields','generateFullSDKExample','forEach','4166248fHbwuX','enumOptions','selectItemsSource','1663736rADCVf','string','updateTime','enumValues','generateSDKCode','slice','stringify','type','options','map','path','toLowerCase','**Table\x20Key:**\x20','values','getOperationCount','toArray','operations','4611987aviMPD','toPascalCase','\x0a**Response\x20Example:**\x0a```json\x0a','added','```typescript\x0a','generateApiDoc','filter','autoIncrement','isRequired','getTableName','length','getEnabledOperationAnalyses','getCount','\x20|\x20','requestExample','toUpperCase','\x0a**Request\x20Example:**\x0a```json\x0a','Operations:\x20+'];a0_0x37dc=function(){return _0xbee950;};return a0_0x37dc();}function a0_0x5eec(_0x35985d,_0x13bf07){const _0x37dc63=a0_0x37dc();return a0_0x5eec=function(_0x5eeccf,_0x45b982){_0x5eeccf=_0x5eeccf-0xc4;let _0x3046cb=_0x37dc63[_0x5eeccf];return _0x3046cb;},a0_0x5eec(_0x35985d,_0x13bf07);}import{DatasetList,DrivenDataDetailPlus,formatDbType}from'@lovrabet/dsparser';export class DatasetAnalyzer{[a0_0x355ef0(0x106)](_0x112ffc){const _0xe56c1d=a0_0x355ef0,_0x591cba=_0x112ffc[_0xe56c1d(0x122)]?.[_0xe56c1d(0x129)]||_0x112ffc[_0xe56c1d(0x129)]||_0x112ffc,_0x35f37f=new DatasetList(_0x591cba);return{'total':_0x35f37f[_0xe56c1d(0xe5)](),'datasets':_0x35f37f[_0xe56c1d(0xd7)]()[_0xe56c1d(0xd1)](_0x6c2d5a=>this[_0xe56c1d(0xf4)](_0x6c2d5a))};}[a0_0x355ef0(0xf4)](_0x263633){const _0x336ab8=a0_0x355ef0;return{'id':_0x263633['id']||0x0,'name':_0x263633['name']||'','code':_0x263633[_0x336ab8(0x124)]||'','tableName':_0x263633[_0x336ab8(0xe2)]?.()||_0x263633[_0x336ab8(0x111)]||'','source':_0x263633[_0x336ab8(0x108)]||'','description':_0x263633[_0x336ab8(0x120)]||'','isVirtual':_0x263633['isVirtualTable']?.()||![]};}['analyzeDatasetDetail'](_0xa2e303){const _0x1e706c=a0_0x355ef0,_0x1ccdf1=_0xa2e303[_0x1e706c(0x122)]||_0xa2e303,_0x16e838=new DrivenDataDetailPlus(_0x1ccdf1),_0x2ebc7c={'name':_0x16e838[_0x1e706c(0x10b)],'code':_0x16e838[_0x1e706c(0x124)],'tableName':_0x16e838[_0x1e706c(0xe2)](),'tableKey':_0x16e838['getTableKey']()},_0x41bdee=_0x16e838[_0x1e706c(0x102)](),_0x4682d2=_0x41bdee[_0x1e706c(0x105)]()[_0x1e706c(0xd1)](_0x2d5696=>{const _0x2a8f7a=_0x1e706c,_0x21341d=_0x2d5696[_0x2a8f7a(0x109)],_0x1b616f=_0x2d5696[_0x2a8f7a(0xf6)],_0x1e182f={'name':_0x2d5696[_0x2a8f7a(0x10b)],'type':_0x2d5696['type'],'required':_0x2d5696[_0x2a8f7a(0xe1)](),'primaryKey':_0x2d5696[_0x2a8f7a(0xef)](),'description':_0x2d5696[_0x2a8f7a(0x120)]||'','autoIncrement':Boolean(_0x21341d[_0x2a8f7a(0xe0)]),'createTime':Boolean(_0x21341d[_0x2a8f7a(0x115)]),'updateTime':Boolean(_0x21341d[_0x2a8f7a(0xca)]),'dbType':typeof _0x1b616f['dbType']===_0x2a8f7a(0xc9)?_0x1b616f[_0x2a8f7a(0x10c)]:undefined,'dbTypeLen':typeof _0x1b616f[_0x2a8f7a(0x100)]==='number'?_0x1b616f[_0x2a8f7a(0x100)]:undefined};if(_0x2d5696[_0x2a8f7a(0x114)]()){const _0x16d614=_0x2d5696[_0x2a8f7a(0x116)]();if(_0x16d614){_0x1e182f[_0x2a8f7a(0x114)]=!![],_0x1e182f[_0x2a8f7a(0xcb)]=_0x16d614['values'];if(_0x16d614[_0x2a8f7a(0xd0)]&&_0x16d614[_0x2a8f7a(0xd0)]['length']>0x0)_0x1e182f[_0x2a8f7a(0xc6)]=_0x16d614['options'];else _0x16d614[_0x2a8f7a(0xc7)]&&(_0x1e182f[_0x2a8f7a(0x11b)]=_0x16d614[_0x2a8f7a(0xc7)]);}}return _0x1e182f;}),_0x50f1d4=_0x16e838[_0x1e706c(0xe4)]()[_0x1e706c(0xd1)](_0x17f151=>{const _0x1d23e2=_0x1e706c,_0x1085b7={'name':_0x17f151['name'],'displayName':_0x17f151[_0x1d23e2(0xec)],'type':_0x17f151['type'],'method':_0x17f151[_0x1d23e2(0x126)],'path':_0x17f151[_0x1d23e2(0xd2)],'requestFields':_0x17f151[_0x1d23e2(0x101)],'requestFieldsCount':_0x17f151['requestFields']['length'],'requestExample':_0x17f151[_0x1d23e2(0xe7)],'responseExample':_0x17f151[_0x1d23e2(0x117)],'enabled':_0x17f151['enabled'],'fullUrl':_0x17f151[_0x1d23e2(0xff)]};return _0x1085b7;});return{'basic':_0x2ebc7c,'fields':_0x4682d2,'operations':_0x50f1d4,'supportsCRUD':_0x16e838[_0x1e706c(0x11d)](),'fieldCount':_0x16e838['getFieldCount'](),'operationCount':_0x16e838[_0x1e706c(0xd6)](),'enabledOperationCount':_0x50f1d4['length']};}['getOperationDetail'](_0x450545,_0x3c5c5c){const _0x54f270=a0_0x355ef0,_0x567712=_0x450545['data']||_0x450545,_0x4e6a81=new DrivenDataDetailPlus(_0x567712),_0x1a4318=_0x4e6a81[_0x54f270(0xfd)](_0x3c5c5c);if(!_0x1a4318)return null;return{'name':_0x1a4318['name'],'displayName':_0x1a4318[_0x54f270(0xec)],'type':_0x1a4318[_0x54f270(0xcf)],'method':_0x1a4318[_0x54f270(0x126)],'path':_0x1a4318[_0x54f270(0xd2)],'requestFields':_0x1a4318[_0x54f270(0x101)],'requestFieldsCount':_0x1a4318[_0x54f270(0x101)][_0x54f270(0xe3)],'requestExample':_0x1a4318[_0x54f270(0xe7)],'responseExample':_0x1a4318[_0x54f270(0x117)],'enabled':_0x1a4318[_0x54f270(0xf2)],'fullUrl':_0x1a4318[_0x54f270(0xff)]};}[a0_0x355ef0(0xcc)](_0x3c8e1c,_0xe1bcab,_0x200a37,_0x5747e0=a0_0x355ef0(0x112)){const _0x53276b=a0_0x355ef0,_0x4a642b=_0x3c8e1c[_0x53276b(0x122)]||_0x3c8e1c,_0x4bf1e1=new DrivenDataDetailPlus(_0x4a642b),_0x3eaae9=_0x4bf1e1[_0x53276b(0x11a)](_0xe1bcab);if(!_0x3eaae9)return null;const _0x230863=_0x4bf1e1['getTableKey'](),_0x44ea4f=_0x4bf1e1[_0x53276b(0xe2)](),_0x35c112=this[_0x53276b(0xda)](_0x44ea4f),_0x2829e5=_0x4bf1e1['getOperationAnalysis'](_0xe1bcab),_0x1d29b8=_0x4bf1e1[_0x53276b(0x12c)](_0xe1bcab,_0x200a37);return{'code':_0x3eaae9[_0x53276b(0x121)][_0x53276b(0x10e)],'sdkCallInfo':{'modelName':_0x35c112,'tableName':_0x44ea4f,'tableKey':_0x230863,'datasetCode':_0x4bf1e1['datasetCode'],'operationName':_0xe1bcab},'requestExample':_0x2829e5?.[_0x53276b(0xe7)],'responseExample':_0x2829e5?.[_0x53276b(0x117)],'sdkInitCode':_0x4bf1e1[_0x53276b(0x113)](_0x230863),'usageExample':_0x3eaae9[_0x53276b(0x127)],'fullExample':_0x1d29b8||undefined};}[a0_0x355ef0(0xde)](_0x463491){const _0x745cb8=a0_0x355ef0,_0x2b4d39=_0x463491[_0x745cb8(0x122)]||_0x463491,_0x4c48bd=new DrivenDataDetailPlus(_0x2b4d39),_0x1e5468=_0x4c48bd[_0x745cb8(0xe4)]()[_0x745cb8(0xd1)](_0x1e27f9=>({'name':_0x1e27f9['name'],'displayName':_0x1e27f9['displayName'],'description':_0x1e27f9[_0x745cb8(0xec)]+_0x745cb8(0xf9)+_0x4c48bd[_0x745cb8(0x10b)],'method':_0x1e27f9[_0x745cb8(0x126)],'path':_0x1e27f9[_0x745cb8(0xd2)],'requestParams':_0x1e27f9[_0x745cb8(0x101)],'requestExample':JSON['stringify'](_0x1e27f9['requestExample'],null,0x2),'responseExample':JSON[_0x745cb8(0xce)](_0x1e27f9[_0x745cb8(0x117)],null,0x2)}));return{'datasetName':_0x4c48bd['name'],'tableName':_0x4c48bd[_0x745cb8(0xe2)](),'operations':_0x1e5468};}[a0_0x355ef0(0x107)](_0x287611,_0xcddefc){const _0x315ae3=a0_0x355ef0,_0x2926e4=new DatasetList(_0x287611),_0x534562=_0xcddefc[_0x315ae3(0xd3)]();return _0x2926e4[_0x315ae3(0xd7)]()[_0x315ae3(0xdf)](_0x2a1bc0=>{const _0x113619=_0x315ae3,_0x11b4b1=(_0x2a1bc0[_0x113619(0x10b)]||'')[_0x113619(0xd3)]()[_0x113619(0xfe)](_0x534562),_0x24655b=(_0x2a1bc0[_0x113619(0xe2)]?.()||_0x2a1bc0[_0x113619(0x111)]||'')[_0x113619(0xd3)]()[_0x113619(0xfe)](_0x534562),_0x5deaf1=(_0x2a1bc0[_0x113619(0x124)]||'')[_0x113619(0xd3)]()[_0x113619(0xfe)](_0x534562),_0x2a382d=(_0x2a1bc0[_0x113619(0x120)]||'')['toLowerCase']()['includes'](_0x534562);return _0x11b4b1||_0x24655b||_0x5deaf1||_0x2a382d;})[_0x315ae3(0xd1)](_0x5e9fca=>this[_0x315ae3(0xf4)](_0x5e9fca));}['generateMarkdownDoc'](_0xedcc23){const _0x25e1fa=a0_0x355ef0,_0x4d1e4c=_0xedcc23[_0x25e1fa(0x122)]||_0xedcc23,_0xf67493=new DrivenDataDetailPlus(_0x4d1e4c);let _0x26d73a='#\x20'+_0xf67493['name']+'\x0a\x0a';_0x26d73a+='**Dataset\x20Code:**\x20'+_0xf67493[_0x25e1fa(0x124)]+'\x0a',_0x26d73a+=_0x25e1fa(0x104)+_0xf67493[_0x25e1fa(0xe2)]()+'\x0a',_0x26d73a+=_0x25e1fa(0xd4)+_0xf67493[_0x25e1fa(0x110)]()+'\x0a\x0a',_0x26d73a+=_0x25e1fa(0x10d);const _0x233007=_0xf67493[_0x25e1fa(0x102)]();_0x233007[_0x25e1fa(0xe3)]>0x0&&(_0x26d73a+='|\x20Field\x20Name\x20|\x20Code\x20|\x20DB\x20Type\x20|\x20UI\x20Type\x20|\x20Required\x20|\x20Primary\x20Key\x20|\x20Enum\x20Values\x20|\x20Description\x20|\x0a',_0x26d73a+='|------------|------|---------|---------|----------|-------------|-------------|-------------|\x0a',_0x233007[_0x25e1fa(0x105)]()[_0x25e1fa(0xc4)](_0x3f20f7=>{const _0x3665c3=_0x25e1fa,_0x175432=_0x3f20f7[_0x3665c3(0xf6)],_0x3eaaa0=formatDbType(typeof _0x175432[_0x3665c3(0x10c)]===_0x3665c3(0xc9)?_0x175432[_0x3665c3(0x10c)]:undefined,typeof _0x175432[_0x3665c3(0x100)]===_0x3665c3(0xf3)?_0x175432[_0x3665c3(0x100)]:undefined);let _0x3be4c7='';if(_0x3f20f7[_0x3665c3(0x114)]()){const _0x3f7f10=_0x3f20f7['getEnumMeta']();if(_0x3f7f10&&_0x3f7f10['values']['length']>0x0){const _0x2e8ce1=_0x3f7f10['values'][_0x3665c3(0xcd)](0x0,0x5);_0x3be4c7=_0x2e8ce1[_0x3665c3(0xed)](',\x20'),_0x3f7f10[_0x3665c3(0xd5)][_0x3665c3(0xe3)]>0x5&&(_0x3be4c7+=_0x3665c3(0x123)+_0x3f7f10[_0x3665c3(0xd5)][_0x3665c3(0xe3)]+_0x3665c3(0x11e));}}_0x26d73a+='|\x20'+_0x3f20f7[_0x3665c3(0x10b)]+_0x3665c3(0xe6)+_0x3f20f7[_0x3665c3(0x10e)]+'\x20|\x20'+_0x3eaaa0+'\x20|\x20'+_0x3f20f7['type']+_0x3665c3(0xe6)+(_0x3f20f7[_0x3665c3(0xe1)]()?'✅':'')+_0x3665c3(0xe6)+(_0x3f20f7[_0x3665c3(0xef)]()?'🔑':'')+_0x3665c3(0xe6)+_0x3be4c7+_0x3665c3(0xe6)+(_0x3f20f7['description']||'')+'\x20|\x0a';}),_0x26d73a+='\x0a');_0x26d73a+=_0x25e1fa(0x11f);const _0x2e680c=_0xf67493[_0x25e1fa(0xe4)]();_0x2e680c['forEach'](_0x1d1783=>{const _0x46c791=_0x25e1fa;_0x26d73a+=_0x46c791(0x10a)+_0x1d1783['displayName']+'\x20('+_0x1d1783[_0x46c791(0x10b)]+_0x46c791(0xf8),_0x26d73a+=_0x46c791(0xf0)+_0x1d1783[_0x46c791(0x126)]+'\x0a',_0x26d73a+=_0x46c791(0x103)+_0x1d1783['path']+'\x0a',_0x1d1783[_0x46c791(0xff)]&&(_0x26d73a+=_0x46c791(0xee)+_0x1d1783[_0x46c791(0xff)]+'\x0a'),_0x1d1783[_0x46c791(0x101)]&&_0x1d1783[_0x46c791(0x101)][_0x46c791(0xe3)]>0x0&&(_0x26d73a+=_0x46c791(0xf5)+_0x1d1783[_0x46c791(0x101)]['join'](',\x20')+'\x0a'),_0x1d1783[_0x46c791(0xe7)]&&(_0x26d73a+=_0x46c791(0xe9)+JSON[_0x46c791(0xce)](_0x1d1783[_0x46c791(0xe7)],null,0x2)+_0x46c791(0xf7)),_0x1d1783['responseExample']&&(_0x26d73a+=_0x46c791(0xdb)+JSON[_0x46c791(0xce)](_0x1d1783[_0x46c791(0x117)],null,0x2)+'\x0a```\x0a'),_0x26d73a+='\x0a';});const _0x1fa4e3=_0xf67493[_0x25e1fa(0x110)](),_0x46abf3=_0xf67493[_0x25e1fa(0x113)](_0x1fa4e3);return _0x46abf3&&(_0x26d73a+='##\x20SDK\x20Usage\x0a\x0a',_0x26d73a+=_0x25e1fa(0xdd),_0x26d73a+=_0x46abf3,_0x26d73a+='```\x0a'),_0x26d73a;}[a0_0x355ef0(0xf1)](_0x57a918,_0x78613c){const _0x1bb780=a0_0x355ef0,_0xbe1b1=_0x57a918[_0x1bb780(0x122)]||_0x57a918,_0x1b063f=_0x78613c[_0x1bb780(0x122)]||_0x78613c,_0x2a7c49=new DrivenDataDetailPlus(_0xbe1b1),_0x5c1f1d=new DrivenDataDetailPlus(_0x1b063f),_0x2c109e=new Set(_0x2a7c49[_0x1bb780(0x102)]()[_0x1bb780(0x105)]()[_0x1bb780(0xd1)](_0x1f21a0=>_0x1f21a0[_0x1bb780(0x10b)])),_0x669613=new Set(_0x5c1f1d[_0x1bb780(0x102)]()[_0x1bb780(0x105)]()[_0x1bb780(0xd1)](_0x4e1aa2=>_0x4e1aa2[_0x1bb780(0x10b)])),_0x33d3a9=new Set(_0x2a7c49[_0x1bb780(0xe4)]()['map'](_0x3464a1=>_0x3464a1[_0x1bb780(0x10b)])),_0x55cad1=new Set(_0x5c1f1d[_0x1bb780(0xe4)]()[_0x1bb780(0xd1)](_0x7ddf77=>_0x7ddf77['name'])),_0x29dd58={'fields':{'added':Array['from'](_0x669613)['filter'](_0x2d80b0=>!_0x2c109e[_0x1bb780(0xfb)](_0x2d80b0)),'removed':Array[_0x1bb780(0x125)](_0x2c109e)[_0x1bb780(0xdf)](_0x1b5663=>!_0x669613[_0x1bb780(0xfb)](_0x1b5663)),'modified':[]},'operations':{'added':Array[_0x1bb780(0x125)](_0x55cad1)[_0x1bb780(0xdf)](_0x35e2a9=>!_0x33d3a9[_0x1bb780(0xfb)](_0x35e2a9)),'removed':Array[_0x1bb780(0x125)](_0x33d3a9)['filter'](_0x5a8b68=>!_0x55cad1['has'](_0x5a8b68))}},_0x527533=_0x1bb780(0xfa)+_0x29dd58[_0x1bb780(0x12b)]['added'][_0x1bb780(0xe3)]+'/-'+_0x29dd58[_0x1bb780(0x12b)][_0x1bb780(0x10f)][_0x1bb780(0xe3)]+',\x20'+(_0x1bb780(0xea)+_0x29dd58[_0x1bb780(0xd8)][_0x1bb780(0xdc)][_0x1bb780(0xe3)]+'/-'+_0x29dd58['operations'][_0x1bb780(0x10f)][_0x1bb780(0xe3)]);return{'differences':_0x29dd58,'summary':_0x527533};}[a0_0x355ef0(0xda)](_0x10361e){const _0x34af06=a0_0x355ef0;return _0x10361e[_0x34af06(0xfc)](/[-_\s]+(.)?/g,(_0x28623c,_0x592ed1)=>_0x592ed1?_0x592ed1[_0x34af06(0xe8)]():'')['replace'](/^(.)/,(_0x9eb32a,_0x1436da)=>_0x1436da[_0x34af06(0xe8)]());}}
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
- function a1_0x5b1f(_0x5ce0d7,_0x4692b2){const _0x3e8fa9=a1_0x3e8f();return a1_0x5b1f=function(_0x5b1f8a,_0x2d299e){_0x5b1f8a=_0x5b1f8a-0x1df;let _0xb29711=_0x3e8fa9[_0x5b1f8a];return _0xb29711;},a1_0x5b1f(_0x5ce0d7,_0x4692b2);}function a1_0x3e8f(){const _0x176183=['48muhcCK','15642TJPiCS','data','8hPhnTc','67534gdwGug','152090wgCpxW','delete','3863511UHHQWP','6841352dAhTdP','set','clear','floor','cache','30fcqUth','get','16YRkUnO','getStats','size','keys','now','469986jdZQKx','788YSxAfB','45598620wPqbvw','defaultTTL','from'];a1_0x3e8f=function(){return _0x176183;};return a1_0x3e8f();}const a1_0x5532ee=a1_0x5b1f;(function(_0x202561,_0x13919b){const _0x3df350=a1_0x5b1f,_0x29d8ac=_0x202561();while(!![]){try{const _0x5f229c=-parseInt(_0x3df350(0x1f2))/0x1*(parseInt(_0x3df350(0x1f1))/0x2)+-parseInt(_0x3df350(0x1ef))/0x3*(parseInt(_0x3df350(0x1ea))/0x4)+parseInt(_0x3df350(0x1f3))/0x5*(-parseInt(_0x3df350(0x1ee))/0x6)+-parseInt(_0x3df350(0x1f6))/0x7+parseInt(_0x3df350(0x1e4))/0x8*(-parseInt(_0x3df350(0x1f5))/0x9)+-parseInt(_0x3df350(0x1e2))/0xa*(-parseInt(_0x3df350(0x1e9))/0xb)+parseInt(_0x3df350(0x1eb))/0xc;if(_0x5f229c===_0x13919b)break;else _0x29d8ac['push'](_0x29d8ac['shift']());}catch(_0x5fcbc9){_0x29d8ac['push'](_0x29d8ac['shift']());}}}(a1_0x3e8f,0x86a6b));export class SimpleCache{[a1_0x5532ee(0x1e1)]=new Map();['defaultTTL'];constructor(_0x346f9b=0x5){const _0x51d42c=a1_0x5532ee;this[_0x51d42c(0x1ec)]=_0x346f9b*0x3c*0x3e8;}['get'](_0x55cde9){const _0x481a66=a1_0x5532ee,_0x56025b=this[_0x481a66(0x1e1)][_0x481a66(0x1e3)](_0x55cde9);if(!_0x56025b)return null;const _0x7b3c55=Date[_0x481a66(0x1e8)](),_0x312d9e=_0x7b3c55-_0x56025b['timestamp'];if(_0x312d9e>this[_0x481a66(0x1ec)])return this[_0x481a66(0x1e1)]['delete'](_0x55cde9),null;const _0x130d67=Math[_0x481a66(0x1e0)](_0x312d9e/0x3e8);return _0x56025b[_0x481a66(0x1f0)];}['set'](_0x31e2cd,_0x2a5df3){const _0x104979=a1_0x5532ee;this[_0x104979(0x1e1)][_0x104979(0x1f7)](_0x31e2cd,{'data':_0x2a5df3,'timestamp':Date['now']()});}[a1_0x5532ee(0x1df)](_0x21419a){const _0x2234d8=a1_0x5532ee;_0x21419a?this[_0x2234d8(0x1e1)][_0x2234d8(0x1f4)](_0x21419a):this[_0x2234d8(0x1e1)][_0x2234d8(0x1df)]();}[a1_0x5532ee(0x1e5)](){const _0x3c4157=a1_0x5532ee;return{'size':this[_0x3c4157(0x1e1)][_0x3c4157(0x1e6)],'ttlMinutes':this[_0x3c4157(0x1ec)]/0xea60,'entries':Array[_0x3c4157(0x1ed)](this['cache'][_0x3c4157(0x1e7)]())};}}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
- const a2_0xed3d8a=a2_0x5e4c;function a2_0x5e4c(_0xab6ef9,_0x3a2233){const _0x5b7b3f=a2_0x5b7b();return a2_0x5e4c=function(_0x5e4cf3,_0x4d58a2){_0x5e4cf3=_0x5e4cf3-0x158;let _0x5d97d5=_0x5b7b3f[_0x5e4cf3];return _0x5d97d5;},a2_0x5e4c(_0xab6ef9,_0x3a2233);}(function(_0x380338,_0x525757){const _0x5e1c04=a2_0x5e4c,_0xca4838=_0x380338();while(!![]){try{const _0x5166ee=parseInt(_0x5e1c04(0x16e))/0x1+-parseInt(_0x5e1c04(0x176))/0x2*(-parseInt(_0x5e1c04(0x163))/0x3)+parseInt(_0x5e1c04(0x17a))/0x4+parseInt(_0x5e1c04(0x190))/0x5*(-parseInt(_0x5e1c04(0x185))/0x6)+parseInt(_0x5e1c04(0x169))/0x7*(parseInt(_0x5e1c04(0x15a))/0x8)+parseInt(_0x5e1c04(0x17e))/0x9*(-parseInt(_0x5e1c04(0x17f))/0xa)+parseInt(_0x5e1c04(0x15c))/0xb*(-parseInt(_0x5e1c04(0x15f))/0xc);if(_0x5166ee===_0x525757)break;else _0xca4838['push'](_0xca4838['shift']());}catch(_0x350793){_0xca4838['push'](_0xca4838['shift']());}}}(a2_0x5b7b,0xab397));import{getCookie}from'../auth/cookie-manager.js';import{getApiDomain}from'../auth/constants.js';import{apiCache}from'./cache.js';function a2_0x5b7b(){const _0x4de418=['appCode','658488DDZbRw','toLowerCase','93137QCVQdz','application/json','API\x20error:\x20','3324McnvDo','env','text','getDatasetList','1366941PQjSuG','API\x20request\x20failed:\x20HTTP\x20','cookie','Unknown\x20error','forceRefresh','object','28NfjPEv','/api/custom/executeSql','params','tableData','/smartapi/dataset/get-driven-data?id=','1231598yZuOlD','postRequest','code','pageSize','status','currentPage','includes','executeSql','4TDLFxA','name','set','length','4570256LKWgWl','getCustomSqlList','getDatasetDetail','request','8766aPWOMv','1090GDOPng','message','online','apiDomain','dataset-detail:','tableName','12ZHmFXx','&currentPage=','data','get','json','/smartapi/custom/queryUserCustomSqlList','Authentication\x20failed.\x20Please\x20login\x20again.','searchDatasets','filter','stringify','success','1154600uQiNUi','&pageSize='];a2_0x5b7b=function(){return _0x4de418;};return a2_0x5b7b();}export class DevApiClient{[a2_0xed3d8a(0x159)];[a2_0xed3d8a(0x160)];[a2_0xed3d8a(0x165)];[a2_0xed3d8a(0x182)];constructor(_0x489d71){const _0x1c1584=a2_0xed3d8a;this['appCode']=_0x489d71[_0x1c1584(0x159)],this['env']=_0x489d71['env']||_0x1c1584(0x181),this[_0x1c1584(0x165)]=_0x489d71[_0x1c1584(0x165)]||getCookie(),this[_0x1c1584(0x182)]=getApiDomain(this[_0x1c1584(0x160)]);if(!this['cookie'])throw new Error('No\x20authentication\x20cookie\x20found.\x20Please\x20login\x20first.');}async[a2_0xed3d8a(0x17d)](_0x2f4462){const _0x4037e8=a2_0xed3d8a,_0x4d5225=await fetch(_0x2f4462,{'headers':{'Cookie':this['cookie']}});if(!_0x4d5225['ok']){if(_0x4d5225[_0x4037e8(0x172)]===0x191)throw new Error(_0x4037e8(0x18b));let _0xb51a3f='';try{_0xb51a3f=await _0x4d5225[_0x4037e8(0x161)]();}catch{}throw new Error(_0x4037e8(0x164)+_0x4d5225['status']+(_0xb51a3f?'\x0a'+_0xb51a3f:''));}const _0x12e33b=await _0x4d5225[_0x4037e8(0x189)]();if(_0x12e33b&&typeof _0x12e33b===_0x4037e8(0x168)&&_0x4037e8(0x18f)in _0x12e33b&&!_0x12e33b[_0x4037e8(0x18f)]){const _0x500ebb=_0x12e33b;throw new Error('API\x20error:\x20'+(_0x500ebb[_0x4037e8(0x180)]||_0x500ebb['errorMsg']||_0x4037e8(0x166)));}return _0x12e33b;}async[a2_0xed3d8a(0x16f)](_0x4189de,_0xb0e7db){const _0x252e07=a2_0xed3d8a,_0x2456c8=await fetch(_0x4189de,{'method':'POST','headers':{'Content-Type':_0x252e07(0x15d),'Cookie':this[_0x252e07(0x165)]},'body':JSON[_0x252e07(0x18e)](_0xb0e7db)});if(!_0x2456c8['ok']){if(_0x2456c8[_0x252e07(0x172)]===0x191)throw new Error(_0x252e07(0x18b));let _0x69bf30='';try{_0x69bf30=await _0x2456c8[_0x252e07(0x161)]();}catch{}throw new Error(_0x252e07(0x164)+_0x2456c8[_0x252e07(0x172)]+(_0x69bf30?'\x0a'+_0x69bf30:''));}const _0x5973ab=await _0x2456c8[_0x252e07(0x189)]();if(_0x5973ab&&typeof _0x5973ab==='object'&&_0x252e07(0x18f)in _0x5973ab&&!_0x5973ab[_0x252e07(0x18f)]){const _0x47138f=_0x5973ab;throw new Error(_0x252e07(0x15e)+(_0x47138f[_0x252e07(0x180)]||_0x47138f['errorMsg']||_0x252e07(0x166)));}return _0x5973ab;}async[a2_0xed3d8a(0x162)](_0x4fe532){const _0x18e906=a2_0xed3d8a,_0x12a138=_0x4fe532?.[_0x18e906(0x171)]||0x3e7,_0x1d0491=_0x4fe532?.[_0x18e906(0x173)]||0x1,_0x37f570=_0x4fe532?.[_0x18e906(0x167)]||![],_0x319e0e='dataset-list:'+this[_0x18e906(0x159)]+':'+this[_0x18e906(0x160)]+':'+_0x12a138+':'+_0x1d0491;if(!_0x37f570){const _0x35e6f2=apiCache[_0x18e906(0x188)](_0x319e0e);if(_0x35e6f2)return _0x35e6f2;}const _0x1deeab=this[_0x18e906(0x182)]+'/smartapi/dataset/getList?appCode='+this['appCode']+_0x18e906(0x158)+_0x12a138+_0x18e906(0x186)+_0x1d0491,_0x57bf6c=await this[_0x18e906(0x17d)](_0x1deeab);return apiCache[_0x18e906(0x178)](_0x319e0e,_0x57bf6c),_0x57bf6c;}async[a2_0xed3d8a(0x17c)](_0x51879b,_0x31bfb6=![]){const _0x4477a3=a2_0xed3d8a,_0x33e25d=_0x4477a3(0x183)+this[_0x4477a3(0x159)]+':'+this['env']+':'+_0x51879b;if(!_0x31bfb6){const _0x213ad8=apiCache['get'](_0x33e25d);if(_0x213ad8)return _0x213ad8;}const _0x5b3c4a=this[_0x4477a3(0x182)]+_0x4477a3(0x16d)+_0x51879b,_0x32bf2d=await this[_0x4477a3(0x17d)](_0x5b3c4a);return apiCache['set'](_0x33e25d,_0x32bf2d),_0x32bf2d;}async[a2_0xed3d8a(0x18c)](_0xab23af){const _0x4b408c=a2_0xed3d8a,_0x3dfca1=await this[_0x4b408c(0x162)]({'pageSize':0x3e7});if(!_0x3dfca1[_0x4b408c(0x18f)]||!_0x3dfca1[_0x4b408c(0x187)]?.[_0x4b408c(0x16c)])return{'success':!![],'data':{'tableData':[]}};const _0x4b7439=_0x3dfca1[_0x4b408c(0x187)][_0x4b408c(0x16c)][_0x4b408c(0x18d)](_0x36d9c7=>{const _0x2c9c73=_0x4b408c,_0x289a26=_0xab23af[_0x2c9c73(0x15b)]();return _0x36d9c7[_0x2c9c73(0x177)]?.[_0x2c9c73(0x15b)]()[_0x2c9c73(0x174)](_0x289a26)||_0x36d9c7[_0x2c9c73(0x170)]?.['toLowerCase']()[_0x2c9c73(0x174)](_0x289a26)||_0x36d9c7['dbtableConfig']?.[_0x2c9c73(0x184)]?.[_0x2c9c73(0x15b)]()[_0x2c9c73(0x174)](_0x289a26)||_0x36d9c7['description']?.[_0x2c9c73(0x15b)]()[_0x2c9c73(0x174)](_0x289a26);});return{'success':!![],'data':{'tableData':_0x4b7439,'paging':{'totalCount':_0x4b7439[_0x4b408c(0x179)],'currentPage':0x1,'pageSize':0x3e7}}};}async[a2_0xed3d8a(0x17b)](_0x5c696d){const _0x1973f0=a2_0xed3d8a,_0x2bf36d=_0x5c696d?.[_0x1973f0(0x173)]||0x1,_0x61467d=_0x5c696d?.[_0x1973f0(0x171)]||0x3e7,_0xc2389f=this['apiDomain']+_0x1973f0(0x18a),_0x316bbb={'appCode':this[_0x1973f0(0x159)],'currentPage':_0x2bf36d,'pageSize':_0x61467d},_0x188ad4=await this[_0x1973f0(0x16f)](_0xc2389f,_0x316bbb);return _0x188ad4;}async[a2_0xed3d8a(0x175)](_0x10f06e){const _0x779d2f=a2_0xed3d8a,_0x1ebf51=this['apiDomain']+_0x779d2f(0x16a),_0xe72e6f={'sqlCode':_0x10f06e['sqlCode'],..._0x10f06e[_0x779d2f(0x16b)]&&{'params':_0x10f06e[_0x779d2f(0x16b)]}};return await this[_0x779d2f(0x16f)](_0x1ebf51,_0xe72e6f);}}
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_0x488dc0=a3_0x15d9;(function(_0x5817cb,_0x4ec63f){const _0x4db7d5=a3_0x15d9,_0x369c31=_0x5817cb();while(!![]){try{const _0x598288=-parseInt(_0x4db7d5(0x1d7))/0x1+-parseInt(_0x4db7d5(0x1e0))/0x2*(parseInt(_0x4db7d5(0x1d8))/0x3)+parseInt(_0x4db7d5(0x1e2))/0x4*(-parseInt(_0x4db7d5(0x1d9))/0x5)+parseInt(_0x4db7d5(0x1dc))/0x6+parseInt(_0x4db7d5(0x1da))/0x7*(parseInt(_0x4db7d5(0x1de))/0x8)+-parseInt(_0x4db7d5(0x1d6))/0x9*(parseInt(_0x4db7d5(0x1dd))/0xa)+-parseInt(_0x4db7d5(0x1e3))/0xb*(-parseInt(_0x4db7d5(0x1e6))/0xc);if(_0x598288===_0x4ec63f)break;else _0x369c31['push'](_0x369c31['shift']());}catch(_0x230d7c){_0x369c31['push'](_0x369c31['shift']());}}}(a3_0x12f6,0x93be3));import{mkdirSync}from'node:fs';import{homedir}from'node:os';export const configDir=homedir()+'/.lovrabet';function a3_0x12f6(){const _0x531ea8=['891khizMP','1048125fQAgNT','18orNFyn','5XOVjzi','966TKxmaj','https://user.lovrabet.com','3545718WySjWS','45190kQYLqz','5760bmKkxz','/cookie','196532hAWhZp','https://api.lovrabet.com','4285376NMagrh','2057VsyJmK','online','https://user-daily.lovrabet.com','197088lSCiVs'];a3_0x12f6=function(){return _0x531ea8;};return a3_0x12f6();}function a3_0x15d9(_0x476122,_0x523540){const _0x12f668=a3_0x12f6();return a3_0x15d9=function(_0x15d9b8,_0x40e6e7){_0x15d9b8=_0x15d9b8-0x1d6;let _0x136929=_0x12f668[_0x15d9b8];return _0x136929;},a3_0x15d9(_0x476122,_0x523540);}export const cookieFile=configDir+a3_0x488dc0(0x1df);mkdirSync(configDir,{'recursive':!![]});export const getApiDomain=(_0x281535=a3_0x488dc0(0x1e4))=>_0x281535===a3_0x488dc0(0x1e4)?a3_0x488dc0(0x1e1):'https://daily-api.lovrabet.com';export const getUserDomain=(_0x1fe64b=a3_0x488dc0(0x1e4))=>_0x1fe64b===a3_0x488dc0(0x1e4)?a3_0x488dc0(0x1db):a3_0x488dc0(0x1e5);
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(_0x28bfd3,_0x5dd727){const _0x7e569a=a4_0x8193,_0x12c289=_0x28bfd3();while(!![]){try{const _0x576de7=parseInt(_0x7e569a(0x133))/0x1+-parseInt(_0x7e569a(0x132))/0x2*(parseInt(_0x7e569a(0x127))/0x3)+parseInt(_0x7e569a(0x12a))/0x4*(parseInt(_0x7e569a(0x12c))/0x5)+-parseInt(_0x7e569a(0x128))/0x6+-parseInt(_0x7e569a(0x131))/0x7*(-parseInt(_0x7e569a(0x12f))/0x8)+parseInt(_0x7e569a(0x134))/0x9*(-parseInt(_0x7e569a(0x130))/0xa)+-parseInt(_0x7e569a(0x12e))/0xb*(parseInt(_0x7e569a(0x135))/0xc);if(_0x576de7===_0x5dd727)break;else _0x12c289['push'](_0x12c289['shift']());}catch(_0x5ed2c5){_0x12c289['push'](_0x12c289['shift']());}}}(a4_0xfd77,0x78b0b));import{readFileSync,writeFileSync}from'node:fs';import{cookieFile}from'./constants.js';export function getCookie(){const _0x34ca24=a4_0x8193;try{return readFileSync(cookieFile,_0x34ca24(0x12d))[_0x34ca24(0x12b)]();}catch{return'';}}function a4_0x8193(_0x539af1,_0x313533){const _0xfd77d7=a4_0xfd77();return a4_0x8193=function(_0x819376,_0x5a5f1b){_0x819376=_0x819376-0x127;let _0x17a0f7=_0xfd77d7[_0x819376];return _0x17a0f7;},a4_0x8193(_0x539af1,_0x313533);}function a4_0xfd77(){const _0x1ebbc6=['150VzEuKy','259150YTyIbG','45hciXzZ','45468diogpa','Failed\x20to\x20save\x20cookie\x20to\x20','25113kXNeDK','1737840HCPCQg','length','1306692RHWQSu','trim','15CJbGFj','utf-8','110omaCXW','144ZNoesW','1211930myayJA','317527nhDFyo'];a4_0xfd77=function(){return _0x1ebbc6;};return a4_0xfd77();}export function saveCookie(_0x305acd){const _0x56e3c=a4_0x8193;try{writeFileSync(cookieFile,_0x305acd,'utf-8');}catch(_0x203548){throw new Error(_0x56e3c(0x136)+cookieFile+':\x20'+_0x203548['message']);}}export function hasCookie(){const _0x235877=a4_0x8193,_0x45c815=getCookie();return _0x45c815[_0x235877(0x129)]>0x0;}export function clearCookie(){const _0x695445=a4_0x8193;try{writeFileSync(cookieFile,'',_0x695445(0x12d));}catch{}}
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
- (function(_0x4a79a9,_0xcc1522){const _0x165eba=a5_0x5207,_0x137a25=_0x4a79a9();while(!![]){try{const _0x35b12e=-parseInt(_0x165eba(0x129))/0x1*(parseInt(_0x165eba(0x12c))/0x2)+parseInt(_0x165eba(0x126))/0x3*(-parseInt(_0x165eba(0x133))/0x4)+-parseInt(_0x165eba(0x127))/0x5+-parseInt(_0x165eba(0x12b))/0x6*(-parseInt(_0x165eba(0x12d))/0x7)+-parseInt(_0x165eba(0x130))/0x8+-parseInt(_0x165eba(0x12f))/0x9*(parseInt(_0x165eba(0x135))/0xa)+parseInt(_0x165eba(0x134))/0xb*(parseInt(_0x165eba(0x12a))/0xc);if(_0x35b12e===_0xcc1522)break;else _0x137a25['push'](_0x137a25['shift']());}catch(_0xb4afed){_0x137a25['push'](_0x137a25['shift']());}}}(a5_0xe2d1,0xeb969));import{getCookie}from'./cookie-manager.js';import{getUserDomain}from'./constants.js';export async function isSessionValid(_0x449ac9='online'){const _0x5c73fc=a5_0x5207,_0xde6c9e=getCookie();if(!_0xde6c9e)return![];try{const _0x18d04c=await fetch(getUserDomain(_0x449ac9)+_0x5c73fc(0x12e),{'headers':{'cookie':_0xde6c9e}});if(!_0x18d04c['ok'])return![];const _0x3a49e9=await _0x18d04c[_0x5c73fc(0x131)]();return!!(_0x3a49e9?.[_0x5c73fc(0x128)]&&_0x3a49e9?.[_0x5c73fc(0x132)]);}catch{return![];}}function a5_0x5207(_0x3ee9e5,_0x459d03){const _0xe2d1e5=a5_0xe2d1();return a5_0x5207=function(_0x52077e,_0x3d0bf1){_0x52077e=_0x52077e-0x126;let _0x1edb59=_0xe2d1e5[_0x52077e];return _0x1edb59;},a5_0x5207(_0x3ee9e5,_0x459d03);}function a5_0xe2d1(){const _0x56ec1f=['8932ZjdKfy','1474zawCwg','11250LkNQAK','543nDKZtp','9399500DERcXI','session','127829lJSHkd','662652KDLMjg','6qmXdvB','30pKsbFd','353927GvEJpl','/api/auth/get-session','9549NXnHRl','8720584hytWYZ','json','user'];a5_0xe2d1=function(){return _0x56ec1f;};return a5_0xe2d1();}
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
- (function(_0x1b6744,_0x212970){const _0x3192c8=a6_0x71d9,_0x27a84c=_0x1b6744();while(!![]){try{const _0x51759e=-parseInt(_0x3192c8(0xc8))/0x1*(parseInt(_0x3192c8(0xbf))/0x2)+-parseInt(_0x3192c8(0xc6))/0x3+-parseInt(_0x3192c8(0xc2))/0x4+parseInt(_0x3192c8(0xca))/0x5+-parseInt(_0x3192c8(0xc4))/0x6+-parseInt(_0x3192c8(0xc3))/0x7*(parseInt(_0x3192c8(0xc1))/0x8)+parseInt(_0x3192c8(0xc5))/0x9;if(_0x51759e===_0x212970)break;else _0x27a84c['push'](_0x27a84c['shift']());}catch(_0x5e8c6e){_0x27a84c['push'](_0x27a84c['shift']());}}}(a6_0x17ca,0xb5956));import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{createServer}from'./server.js';function a6_0x17ca(){const _0x174d38=['Unhandled\x20error:','32KMLYmz','3650720ByPFoq','1702274AhtCll','8045934YouUkH','37251045brgint','3348609ZtHfnG','exit','11yPNByT','log','5191050TGJlxA','SIGINT','env','SIGTERM','Shutting\x20down\x20Lovrabet\x20Dataset\x20MCP\x20Server...','MCP_DEBUG','Failed\x20to\x20start\x20Lovrabet\x20Dataset\x20MCP\x20Server:','16518aduMqO'];a6_0x17ca=function(){return _0x174d38;};return a6_0x17ca();}function a6_0x71d9(_0x22b1e5,_0x5c8224){const _0x17ca0f=a6_0x17ca();return a6_0x71d9=function(_0x71d96,_0x18ee4f){_0x71d96=_0x71d96-0xb9;let _0x366639=_0x17ca0f[_0x71d96];return _0x366639;},a6_0x71d9(_0x22b1e5,_0x5c8224);}async function main(){const _0xcc381b=a6_0x71d9;try{const _0x1b3dd1=createServer(),_0x9412cd=new StdioServerTransport();_0x1b3dd1['logInfo'](),await _0x1b3dd1['connect'](_0x9412cd),process['on'](_0xcc381b(0xb9),async()=>{const _0x530700=_0xcc381b;process[_0x530700(0xba)][_0x530700(0xbd)]&&console[_0x530700(0xc9)](_0x530700(0xbc)),process[_0x530700(0xc7)](0x0);}),process['on'](_0xcc381b(0xbb),async()=>{const _0xa54c44=_0xcc381b;process[_0xa54c44(0xba)][_0xa54c44(0xbd)]&&console['log'](_0xa54c44(0xbc)),process[_0xa54c44(0xc7)](0x0);});}catch(_0x3d9192){console['error'](_0xcc381b(0xbe),_0x3d9192),process[_0xcc381b(0xc7)](0x1);}}main()['catch'](_0x126ff1=>{const _0xa36749=a6_0x71d9;console['error'](_0xa36749(0xc0),_0x126ff1),process[_0xa36749(0xc7)](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_0x222461=a7_0x1c42;(function(_0x499345,_0x5b077d){const _0x328b1d=a7_0x1c42,_0x66e87d=_0x499345();while(!![]){try{const _0x180fb4=-parseInt(_0x328b1d(0xef))/0x1+-parseInt(_0x328b1d(0xe1))/0x2*(parseInt(_0x328b1d(0xf5))/0x3)+parseInt(_0x328b1d(0xf2))/0x4+-parseInt(_0x328b1d(0xd7))/0x5+-parseInt(_0x328b1d(0xe8))/0x6+-parseInt(_0x328b1d(0xe4))/0x7+-parseInt(_0x328b1d(0xe9))/0x8*(-parseInt(_0x328b1d(0xdd))/0x9);if(_0x180fb4===_0x5b077d)break;else _0x66e87d['push'](_0x66e87d['shift']());}catch(_0x16245b){_0x66e87d['push'](_0x66e87d['shift']());}}}(a7_0x1d9c,0x591da));import{Server}from'@modelcontextprotocol/sdk/server/index.js';import{ListToolsRequestSchema,CallToolRequestSchema}from'@modelcontextprotocol/sdk/types.js';function a7_0x1c42(_0x2df10f,_0xd731fb){const _0x1d9cc8=a7_0x1d9c();return a7_0x1c42=function(_0x1c4223,_0x5f441d){_0x1c4223=_0x1c4223-0xd3;let _0x3ae984=_0x1d9cc8[_0x1c4223];return _0x3ae984;},a7_0x1c42(_0x2df10f,_0xd731fb);}import{TOOL_DEFINITIONS,listDatasets,getDatasetDetail,getDatasetOperations,getOperationDetail,generateSDKCode,searchDatasets,listSqlQueries}from'./tools/index.js';import{createRequire}from'module';const require=createRequire(import.meta[a7_0x222461(0xe2)]),packageJson=require('../package.json');import{login}from'./tools/login.js';function a7_0x1d9c(){const _0x3162f4=['description','get_dataset_operations','✅\x20Server\x20started\x20successfully','849900xXAjzC','1095064uSRsQZ','version','connect','search_datasets','params','forEach','476498cnuMFy','\x20\x20Use\x20the\x20\x22login\x22\x20tool\x20first\x20to\x20authenticate.','🔐\x20Authentication:','1597000SGMrsA','env','server','6057PPfXXi','Unknown\x20error\x20occurred','\x20\x20This\x20server\x20uses\x20cookie-based\x20authentication.','logInfo','registerToolHandlers','message','generate_sdk_code','login','stringify','3067245vfLMEg','lovrabet-dataset-mcp','list_sql_queries','🚀\x20Lovrabet\x20Dataset\x20MCP\x20Server\x20(Development\x20API)','\x20\x20-\x20','log','153Qbqksg','setRequestHandler','📌\x20Version:\x20','MCP_DEBUG','474oUhKwd','url','get_dataset_detail','4558001OswaiL'];a7_0x1d9c=function(){return _0x3162f4;};return a7_0x1d9c();}export class LovrabetDatasetMCPServer{[a7_0x222461(0xf4)];constructor(){const _0x50652b=a7_0x222461;this['server']=new Server({'name':_0x50652b(0xd8),'version':packageJson[_0x50652b(0xea)]},{'capabilities':{'tools':{}}}),this[_0x50652b(0xf9)]();}[a7_0x222461(0xf9)](){const _0xa0890c=a7_0x222461;this[_0xa0890c(0xf4)][_0xa0890c(0xde)](ListToolsRequestSchema,async()=>({'tools':TOOL_DEFINITIONS})),this[_0xa0890c(0xf4)][_0xa0890c(0xde)](CallToolRequestSchema,async _0x3966df=>{const _0x51e448=_0xa0890c,{name:_0x4dda85,arguments:_0x43422f}=_0x3966df[_0x51e448(0xed)];try{let _0x56467e;switch(_0x4dda85){case _0x51e448(0xd5):_0x56467e=await login(_0x43422f||{});break;case'list_datasets':_0x56467e=await listDatasets(_0x43422f);break;case _0x51e448(0xe3):_0x56467e=await getDatasetDetail(_0x43422f);break;case _0x51e448(0xe6):_0x56467e=await getDatasetOperations(_0x43422f);break;case'get_operation_detail':_0x56467e=await getOperationDetail(_0x43422f);break;case _0x51e448(0xd4):_0x56467e=await generateSDKCode(_0x43422f);break;case _0x51e448(0xec):_0x56467e=await searchDatasets(_0x43422f);break;case _0x51e448(0xd9):_0x56467e=await listSqlQueries(_0x43422f);break;default:throw new Error('Unknown\x20tool:\x20'+_0x4dda85);}return{'content':[{'type':'text','text':JSON['stringify'](_0x56467e,null,0x2)}]};}catch(_0x26aa05){return{'content':[{'type':'text','text':JSON[_0x51e448(0xd6)]({'error':!![],'message':_0x26aa05[_0x51e448(0xd3)]||_0x51e448(0xf6),'tool':_0x4dda85},null,0x2)}],'isError':!![]};}});}['getServer'](){const _0x15b8d1=a7_0x222461;return this[_0x15b8d1(0xf4)];}async[a7_0x222461(0xeb)](_0x2fff96){const _0x1a2d9f=a7_0x222461;await this[_0x1a2d9f(0xf4)]['connect'](_0x2fff96);}[a7_0x222461(0xf8)](){const _0x39f70b=a7_0x222461;if(!process[_0x39f70b(0xf3)][_0x39f70b(0xe0)])return;console['log'](_0x39f70b(0xda)),console[_0x39f70b(0xdc)](_0x39f70b(0xdf)+packageJson['version']),console[_0x39f70b(0xdc)](_0x39f70b(0xe7)),console['log'](''),console[_0x39f70b(0xdc)](_0x39f70b(0xf1)),console[_0x39f70b(0xdc)](_0x39f70b(0xf7)),console[_0x39f70b(0xdc)](_0x39f70b(0xf0)),console[_0x39f70b(0xdc)](''),console[_0x39f70b(0xdc)]('Available\x20tools:'),TOOL_DEFINITIONS[_0x39f70b(0xee)](_0x5ef5e7=>{const _0x20381d=_0x39f70b;console['log'](_0x20381d(0xdb)+_0x5ef5e7['name']+':\x20'+_0x5ef5e7[_0x20381d(0xe5)]);});}}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(_0xa12ff1,_0x4b1ac8){const _0x5692b0=a8_0x28e2,_0x4a3b05=_0xa12ff1();while(!![]){try{const _0x32aaa3=-parseInt(_0x5692b0(0xea))/0x1+parseInt(_0x5692b0(0x10b))/0x2+parseInt(_0x5692b0(0xfe))/0x3*(-parseInt(_0x5692b0(0xf7))/0x4)+parseInt(_0x5692b0(0x100))/0x5*(parseInt(_0x5692b0(0xf0))/0x6)+parseInt(_0x5692b0(0x108))/0x7*(-parseInt(_0x5692b0(0xfc))/0x8)+-parseInt(_0x5692b0(0x102))/0x9+parseInt(_0x5692b0(0x101))/0xa;if(_0x32aaa3===_0x4b1ac8)break;else _0x4a3b05['push'](_0x4a3b05['shift']());}catch(_0x4dd573){_0x4a3b05['push'](_0x4a3b05['shift']());}}}(a8_0xb802,0x9b8d1));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a8_0x28e2(_0x42e374,_0x492774){const _0xb8028=a8_0xb802();return a8_0x28e2=function(_0x28e2d1,_0x2b76e1){_0x28e2d1=_0x28e2d1-0xea;let _0x5ad83c=_0xb8028[_0x28e2d1];return _0x5ad83c;},a8_0x28e2(_0x42e374,_0x492774);}function a8_0xb802(){const _0xfd0621=['fields','210IvPOZl','datasetCode\x20is\x20required','getDatasetList','fullExample','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','name','typescript','1156SVwHCv','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','analyzeDatasetDetail','operationName\x20is\x20required','1576KxaGZF','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.','7515eYwWyT','generateSDKCode','88025WlMRaO','9470400WaWwyL','1314855wzSqOM','LOVRABET_APP_CODE','Dataset\x20not\x20found\x20with\x20code:\x20','\x27\x20in\x20dataset\x20\x27','basic','env','91BJaeSt','getDatasetDetail','test','313266WhIMah','tableData','Cannot\x20generate\x20SDK\x20code\x20for\x20operation\x20\x27','210110HpUwQz','requestExample','usageExample','code','find'];a8_0xb802=function(){return _0xfd0621;};return a8_0xb802();}export async function generateSDKCode(_0x434ca5){const _0x2b8308=a8_0x28e2,{appCode:appCode=process[_0x2b8308(0x107)][_0x2b8308(0x103)],cookie:_0x5a4dec,env:env=process[_0x2b8308(0x107)]['LOVRABET_ENV']||_0x2b8308(0xf9),datasetCode:_0x3317ee,operationName:_0x16a3e5,includeImports:includeImports=!![]}=_0x434ca5;if(!appCode)throw new Error(_0x2b8308(0xf4));if(!_0x3317ee)throw new Error(_0x2b8308(0xf1));if(!_0x16a3e5)throw new Error(_0x2b8308(0xfb));const _0x55cb24=new DevApiClient({'appCode':appCode,'cookie':_0x5a4dec,'env':env}),_0x3fa577=/^\d+$/[_0x2b8308(0x10a)](_0x3317ee);let _0x115ad1;if(_0x3fa577)_0x115ad1=_0x3317ee;else{const _0x5851b9=await _0x55cb24[_0x2b8308(0xf2)]({'pageSize':0x3e7}),_0x24f145=_0x5851b9['data']?.[_0x2b8308(0x10c)]||[],_0x3956d5=_0x24f145[_0x2b8308(0xee)](_0x4688dc=>_0x4688dc['code']===_0x3317ee);if(!_0x3956d5)throw new Error(_0x2b8308(0x104)+_0x3317ee);_0x115ad1=String(_0x3956d5['id']);}const _0x5b859e=await _0x55cb24[_0x2b8308(0x109)](_0x115ad1),_0x41028e=new DatasetAnalyzer(),_0xda448e=_0x41028e[_0x2b8308(0xff)](_0x5b859e,_0x16a3e5,appCode,env);if(!_0xda448e)throw new Error(_0x2b8308(0x10d)+_0x16a3e5+_0x2b8308(0x105)+_0x3317ee+'\x27');const _0x5c0e3f=_0x41028e[_0x2b8308(0xfa)](_0x5b859e);return{'appCode':appCode,'env':env,'datasetName':_0x5c0e3f[_0x2b8308(0x106)][_0x2b8308(0xf5)],'language':_0x2b8308(0xf6),'code':_0xda448e[_0x2b8308(0xed)],'fullExample':includeImports?_0xda448e[_0x2b8308(0xf3)]:undefined,'sdkCallInfo':_0xda448e['sdkCallInfo'],'fields':_0x5c0e3f[_0x2b8308(0xef)],'requestExample':_0xda448e[_0x2b8308(0xeb)],'responseExample':_0xda448e['responseExample'],'sdkInitCode':_0xda448e['sdkInitCode'],'usageExample':_0xda448e[_0x2b8308(0xec)],'sdkReturnValueBehavior':{'onSuccess':_0x2b8308(0xf8),'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':_0x2b8308(0xfd)}};}
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(_0x50a175,_0x35fd28){const _0x51c27d=a9_0x19f6,_0x2f15e4=_0x50a175();while(!![]){try{const _0x22d8eb=parseInt(_0x51c27d(0x12e))/0x1+-parseInt(_0x51c27d(0x129))/0x2+-parseInt(_0x51c27d(0x135))/0x3+-parseInt(_0x51c27d(0x134))/0x4*(-parseInt(_0x51c27d(0x12d))/0x5)+parseInt(_0x51c27d(0x131))/0x6*(parseInt(_0x51c27d(0x130))/0x7)+-parseInt(_0x51c27d(0x12b))/0x8*(-parseInt(_0x51c27d(0x12a))/0x9)+-parseInt(_0x51c27d(0x13f))/0xa;if(_0x22d8eb===_0x35fd28)break;else _0x2f15e4['push'](_0x2f15e4['shift']());}catch(_0x19a7f2){_0x2f15e4['push'](_0x2f15e4['shift']());}}}(a9_0x16a2,0x27231));import{DevApiClient}from'../api/dev-api-client.js';function a9_0x19f6(_0x35f617,_0x2c5722){const _0x16a239=a9_0x16a2();return a9_0x19f6=function(_0x19f6a9,_0x5c5f71){_0x19f6a9=_0x19f6a9-0x128;let _0x427aa7=_0x16a239[_0x19f6a9];return _0x427aa7;},a9_0x19f6(_0x35f617,_0x2c5722);}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getDatasetDetail(_0x11ac49){const _0x74e678=a9_0x19f6,{appCode:appCode=process['env'][_0x74e678(0x13e)],cookie:_0x243dea,env:env=process[_0x74e678(0x13d)][_0x74e678(0x140)]||_0x74e678(0x141),datasetCode:_0x4f86ff,forceRefresh:forceRefresh=![]}=_0x11ac49;if(!appCode)throw new Error('appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.');if(!_0x4f86ff)throw new Error(_0x74e678(0x12c));const _0x5f2994=new DevApiClient({'appCode':appCode,'cookie':_0x243dea,'env':env}),_0x572979=/^\d+$/[_0x74e678(0x143)](_0x4f86ff);let _0x4580d2;if(_0x572979)_0x4580d2=_0x4f86ff;else{const _0x1c8358=await _0x5f2994[_0x74e678(0x142)]({'pageSize':0x3e7,'forceRefresh':forceRefresh}),_0x4defea=_0x1c8358[_0x74e678(0x13c)]?.[_0x74e678(0x132)]||[],_0xcfa477=_0x4defea[_0x74e678(0x128)](_0x5dbf46=>_0x5dbf46[_0x74e678(0x13b)]===_0x4f86ff);if(!_0xcfa477)throw new Error('Dataset\x20not\x20found\x20with\x20code:\x20'+_0x4f86ff);_0x4580d2=String(_0xcfa477['id']);}const _0x36893f=await _0x5f2994[_0x74e678(0x13a)](_0x4580d2,forceRefresh),_0x3c975e=new DatasetAnalyzer(),_0x4c69aa=_0x3c975e[_0x74e678(0x136)](_0x36893f);return{'appCode':appCode,'env':env,'basic':_0x4c69aa[_0x74e678(0x12f)],'fields':_0x4c69aa[_0x74e678(0x133)],'operations':_0x4c69aa[_0x74e678(0x139)],'stats':{'fieldCount':_0x4c69aa['fieldCount'],'operationCount':_0x4c69aa['operationCount'],'enabledOperationCount':_0x4c69aa[_0x74e678(0x137)],'supportsCRUD':_0x4c69aa[_0x74e678(0x138)]}};}function a9_0x16a2(){const _0x157a11=['data','env','LOVRABET_APP_CODE','2417430SHVExX','LOVRABET_ENV','online','getDatasetList','test','find','357226GLblti','70830HsehFz','224pRmsyj','datasetCode\x20is\x20required','20bmRRJc','294368AvgFdL','basic','75467RlXkec','138wAvKJB','tableData','fields','54980zcTSUG','711030peCaul','analyzeDatasetDetail','enabledOperationCount','supportsCRUD','operations','getDatasetDetail','code'];a9_0x16a2=function(){return _0x157a11;};return a9_0x16a2();}
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(_0x45da1a,_0x4f682e){const _0x56acdc=a10_0x1297,_0xc310fb=_0x45da1a();while(!![]){try{const _0x4aa228=-parseInt(_0x56acdc(0x100))/0x1*(-parseInt(_0x56acdc(0x104))/0x2)+parseInt(_0x56acdc(0xfb))/0x3*(-parseInt(_0x56acdc(0x102))/0x4)+-parseInt(_0x56acdc(0x10c))/0x5+parseInt(_0x56acdc(0x105))/0x6+-parseInt(_0x56acdc(0x10b))/0x7+parseInt(_0x56acdc(0xf7))/0x8*(-parseInt(_0x56acdc(0xfc))/0x9)+parseInt(_0x56acdc(0xf2))/0xa*(parseInt(_0x56acdc(0x10f))/0xb);if(_0x4aa228===_0x4f682e)break;else _0xc310fb['push'](_0xc310fb['shift']());}catch(_0x1b6706){_0xc310fb['push'](_0xc310fb['shift']());}}}(a10_0x7e99,0x65060));function a10_0x7e99(){const _0x5f02ac=['110024xMMXuR','basic','code','find','9gwzlAc','99ohlmnB','operationName\x20is\x20required','Dataset\x20not\x20found\x20with\x20code:\x20','getDatasetList','32pvAokd','name','863784VYMCbR','LOVRABET_ENV','7882QSFNYZ','1897830YVKnqA','env','getOperationDetail','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.','test','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.','3236261JVpkIA','2571970vVCPfk','online','\x27\x20not\x20found\x20in\x20dataset\x20\x27','1478411ibMqdn','analyzeDatasetDetail','datasetCode\x20is\x20required','130WYyWzZ','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','LOVRABET_APP_CODE','tableData'];a10_0x7e99=function(){return _0x5f02ac;};return a10_0x7e99();}function a10_0x1297(_0x36ea4b,_0x35cea1){const _0x7e997=a10_0x7e99();return a10_0x1297=function(_0x129787,_0x41e58a){_0x129787=_0x129787-0xf0;let _0x76d5d2=_0x7e997[_0x129787];return _0x76d5d2;},a10_0x1297(_0x36ea4b,_0x35cea1);}import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getOperationDetail(_0x322df6){const _0xb26c0d=a10_0x1297,{appCode:appCode=process[_0xb26c0d(0x106)][_0xb26c0d(0xf5)],cookie:_0x5b2505,env:env=process['env'][_0xb26c0d(0x103)]||_0xb26c0d(0x10d),datasetCode:_0x28e19d,operationName:_0x4e4037}=_0x322df6;if(!appCode)throw new Error('appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.');if(!_0x28e19d)throw new Error(_0xb26c0d(0xf1));if(!_0x4e4037)throw new Error(_0xb26c0d(0xfd));const _0xb71b08=new DevApiClient({'appCode':appCode,'cookie':_0x5b2505,'env':env}),_0x3c713e=/^\d+$/[_0xb26c0d(0x109)](_0x28e19d);let _0x5c0b3a;if(_0x3c713e)_0x5c0b3a=_0x28e19d;else{const _0x34b1fa=await _0xb71b08[_0xb26c0d(0xff)]({'pageSize':0x3e7}),_0x398ecc=_0x34b1fa['data']?.[_0xb26c0d(0xf6)]||[],_0x255e2e=_0x398ecc[_0xb26c0d(0xfa)](_0x39d460=>_0x39d460[_0xb26c0d(0xf9)]===_0x28e19d);if(!_0x255e2e)throw new Error(_0xb26c0d(0xfe)+_0x28e19d);_0x5c0b3a=String(_0x255e2e['id']);}const _0x3fb4d1=await _0xb71b08['getDatasetDetail'](_0x5c0b3a),_0x4372b7=new DatasetAnalyzer(),_0x240eca=_0x4372b7[_0xb26c0d(0x107)](_0x3fb4d1,_0x4e4037);if(!_0x240eca)throw new Error(_0xb26c0d(0xf4)+_0x4e4037+_0xb26c0d(0x10e)+_0x28e19d+'\x27');const _0x1f1c87=_0x4372b7[_0xb26c0d(0xf0)](_0x3fb4d1);return{'appCode':appCode,'env':env,'datasetName':_0x1f1c87[_0xb26c0d(0xf8)][_0xb26c0d(0x101)],'operation':_0x240eca,'sdkReturnValueBehavior':{'onSuccess':_0xb26c0d(0x10a),'onError':_0xb26c0d(0xf3),'note':_0xb26c0d(0x108)}};}
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 a11_0x13a9(_0x55c033,_0x238273){const _0x29f8bd=a11_0x29f8();return a11_0x13a9=function(_0x13a964,_0x453734){_0x13a964=_0x13a964-0xe9;let _0x49ac9b=_0x29f8bd[_0x13a964];return _0x49ac9b;},a11_0x13a9(_0x55c033,_0x238273);}(function(_0x478516,_0xea6b8){const _0x32862c=a11_0x13a9,_0x18a122=_0x478516();while(!![]){try{const _0x1ee580=-parseInt(_0x32862c(0x106))/0x1*(-parseInt(_0x32862c(0x101))/0x2)+-parseInt(_0x32862c(0xfc))/0x3*(-parseInt(_0x32862c(0xf1))/0x4)+parseInt(_0x32862c(0x108))/0x5*(-parseInt(_0x32862c(0xed))/0x6)+-parseInt(_0x32862c(0xf0))/0x7+-parseInt(_0x32862c(0xef))/0x8+-parseInt(_0x32862c(0xf5))/0x9*(parseInt(_0x32862c(0x102))/0xa)+parseInt(_0x32862c(0x104))/0xb;if(_0x1ee580===_0xea6b8)break;else _0x18a122['push'](_0x18a122['shift']());}catch(_0x289e3c){_0x18a122['push'](_0x18a122['shift']());}}}(a11_0x29f8,0xb92ff));function a11_0x29f8(){const _0x194b38=['35301959gkasKP','operationCount','311393FDxcYl','test','435xMNOdH','getDatasetDetail','path','data','supportsCRUD','LOVRABET_ENV','env','37824erJedv','displayName','6697592NDmUlX','8487150xOUjli','6780RWnwBg','operations','find','code','9081kKBqQp','basic','datasetCode\x20is\x20required','requestFieldsCount','tableData','Dataset\x20not\x20found\x20with\x20code:\x20','LOVRABET_APP_CODE','1773dnkZoN','name','enabledOperationCount','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','analyzeDatasetDetail','4LFZvuf','14640SgYvqd','tableName'];a11_0x29f8=function(){return _0x194b38;};return a11_0x29f8();}import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getDatasetOperations(_0x4505db){const _0x4f7bc4=a11_0x13a9,{appCode:appCode=process[_0x4f7bc4(0xec)][_0x4f7bc4(0xfb)],cookie:_0x50caf4,env:env=process[_0x4f7bc4(0xec)][_0x4f7bc4(0xeb)]||'online',datasetCode:_0x3cca17}=_0x4505db;if(!appCode)throw new Error(_0x4f7bc4(0xff));if(!_0x3cca17)throw new Error(_0x4f7bc4(0xf7));const _0x5506de=new DevApiClient({'appCode':appCode,'cookie':_0x50caf4,'env':env}),_0x4f8f22=/^\d+$/[_0x4f7bc4(0x107)](_0x3cca17);let _0x1caf43;if(_0x4f8f22)_0x1caf43=_0x3cca17;else{const _0x506a91=await _0x5506de['getDatasetList']({'pageSize':0x3e7}),_0x1ac5b1=_0x506a91[_0x4f7bc4(0xe9)]?.[_0x4f7bc4(0xf9)]||[],_0x59817b=_0x1ac5b1[_0x4f7bc4(0xf3)](_0x4240cb=>_0x4240cb[_0x4f7bc4(0xf4)]===_0x3cca17);if(!_0x59817b)throw new Error(_0x4f7bc4(0xfa)+_0x3cca17);_0x1caf43=String(_0x59817b['id']);}const _0x291d47=await _0x5506de[_0x4f7bc4(0x109)](_0x1caf43),_0x1d5864=new DatasetAnalyzer(),_0x191767=_0x1d5864[_0x4f7bc4(0x100)](_0x291d47);return{'appCode':appCode,'env':env,'datasetName':_0x191767[_0x4f7bc4(0xf6)][_0x4f7bc4(0xfd)],'tableName':_0x191767[_0x4f7bc4(0xf6)][_0x4f7bc4(0x103)],'operations':_0x191767[_0x4f7bc4(0xf2)]['map'](_0x19b86f=>({'name':_0x19b86f[_0x4f7bc4(0xfd)],'displayName':_0x19b86f[_0x4f7bc4(0xee)],'type':_0x19b86f['type'],'method':_0x19b86f['method'],'path':_0x19b86f[_0x4f7bc4(0x10a)],'requestFieldsCount':_0x19b86f[_0x4f7bc4(0xf8)],'enabled':_0x19b86f['enabled']})),'stats':{'total':_0x191767[_0x4f7bc4(0x105)],'enabled':_0x191767[_0x4f7bc4(0xfe)],'supportsCRUD':_0x191767[_0x4f7bc4(0xea)]}};}
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
- const a12_0x51c42d=a12_0x552a;(function(_0xa5cd44,_0x7bba62){const _0x3c3f10=a12_0x552a,_0x566d39=_0xa5cd44();while(!![]){try{const _0x2095f5=parseInt(_0x3c3f10(0xa0))/0x1*(-parseInt(_0x3c3f10(0x93))/0x2)+parseInt(_0x3c3f10(0xa1))/0x3+-parseInt(_0x3c3f10(0xa8))/0x4*(-parseInt(_0x3c3f10(0x90))/0x5)+parseInt(_0x3c3f10(0x9b))/0x6*(-parseInt(_0x3c3f10(0x8d))/0x7)+-parseInt(_0x3c3f10(0x97))/0x8*(parseInt(_0x3c3f10(0x8a))/0x9)+parseInt(_0x3c3f10(0x9a))/0xa*(-parseInt(_0x3c3f10(0x9e))/0xb)+parseInt(_0x3c3f10(0x94))/0xc;if(_0x2095f5===_0x7bba62)break;else _0x566d39['push'](_0x566d39['shift']());}catch(_0x4fe0dc){_0x566d39['push'](_0x566d39['shift']());}}}(a12_0x3fbb,0xd86f0));export{login}from'./login.js';export{listDatasets}from'./list-datasets.js';function a12_0x3fbb(){const _0x37e3ee=['85203HtJliF','Search\x20keyword','login','123753EhLvKd','Operation\x20name\x20(e.g.,\x20filter,\x20getOne,\x20create,\x20update).\x20Prefer\x20\x22filter\x22\x20for\x20queries.','number','15DBTmYU','Login\x20to\x20Lovrabet\x20to\x20authenticate\x20for\x20dataset\x20queries','Get\x20list\x20of\x20all\x20datasets\x20for\x20an\x20application','500026zJhHRi','36526116xxxsuo','search_datasets','string','1016JkqtSy','Bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20API\x20(default:\x20false).\x20Set\x20to\x20true\x20when\x20you\x20need\x20the\x20latest\x20data.','Search\x20datasets\x20by\x20keyword\x20(searches\x20in\x20name,\x20table\x20name,\x20code,\x20and\x20description)','77170QTSyCA','18NrzDXm','datasetCode','Authentication\x20cookie\x20(optional,\x20uses\x20stored\x20cookie\x20from\x20login\x20if\x20not\x20provided)','275TLamuX','generate_sdk_code','5qCHdiv','1423269ouWtZO','Application\x20code\x20(optional\x20if\x20LOVRABET_APP_CODE\x20env\x20var\x20is\x20set)','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.','online','Dataset\x20code/ID','daily','Optional:\x20filter\x20by\x20category\x20(report,\x20analysis,\x20export,\x20etc.)','88776BNwSpf','Generate\x20SDK\x20code\x20example\x20for\x20calling\x20a\x20specific\x20operation,\x20including\x20complete\x20field\x20metadata\x20(required,\x20enum\x20values,\x20etc.).\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\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.','Include\x20import\x20statements\x20and\x20full\x20example\x20(default:\x20true)','get_dataset_operations','operationName','object','Get\x20detailed\x20information\x20about\x20a\x20specific\x20dataset\x20including\x20all\x20field\x20definitions','get_dataset_detail','list_sql_queries','get_operation_detail','Page\x20number\x20to\x20fetch\x20(default:\x201)','boolean','Environment\x20to\x20login\x20to\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)'];a12_0x3fbb=function(){return _0x37e3ee;};return a12_0x3fbb();}export{getDatasetDetail}from'./get-dataset-detail.js';function a12_0x552a(_0x32079d,_0x5dea65){const _0x3fbb63=a12_0x3fbb();return a12_0x552a=function(_0x552aea,_0x1fbafe){_0x552aea=_0x552aea-0x89;let _0x5b9080=_0x3fbb63[_0x552aea];return _0x5b9080;},a12_0x552a(_0x32079d,_0x5dea65);}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';const authProperties={'appCode':{'type':'string','description':a12_0x51c42d(0xa2)},'cookie':{'type':a12_0x51c42d(0x96),'description':a12_0x51c42d(0x9d)},'env':{'type':a12_0x51c42d(0x96),'description':'Environment\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)','enum':[a12_0x51c42d(0xa4),a12_0x51c42d(0xa6)]}};export const TOOL_DEFINITIONS=[{'name':a12_0x51c42d(0x8c),'description':a12_0x51c42d(0x91),'inputSchema':{'type':a12_0x51c42d(0xad),'properties':{'env':{'type':a12_0x51c42d(0x96),'description':a12_0x51c42d(0x89),'enum':[a12_0x51c42d(0xa4),a12_0x51c42d(0xa6)]}},'required':[]}},{'name':'list_datasets','description':a12_0x51c42d(0x92),'inputSchema':{'type':'object','properties':{...authProperties,'pageSize':{'type':a12_0x51c42d(0x8f),'description':'Number\x20of\x20datasets\x20per\x20page\x20(default:\x20999)'},'currentPage':{'type':a12_0x51c42d(0x8f),'description':a12_0x51c42d(0xb2)},'forceRefresh':{'type':a12_0x51c42d(0xb3),'description':a12_0x51c42d(0x98)}},'required':[]}},{'name':a12_0x51c42d(0xaf),'description':a12_0x51c42d(0xae),'inputSchema':{'type':'object','properties':{...authProperties,'datasetCode':{'type':a12_0x51c42d(0x96),'description':a12_0x51c42d(0xa5)},'forceRefresh':{'type':a12_0x51c42d(0xb3),'description':a12_0x51c42d(0x98)}},'required':['datasetCode']}},{'name':a12_0x51c42d(0xab),'description':'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)','inputSchema':{'type':'object','properties':{...authProperties,'datasetCode':{'type':a12_0x51c42d(0x96),'description':a12_0x51c42d(0xa5)}},'required':[a12_0x51c42d(0x9c)]}},{'name':a12_0x51c42d(0xb1),'description':a12_0x51c42d(0xa3),'inputSchema':{'type':a12_0x51c42d(0xad),'properties':{...authProperties,'datasetCode':{'type':a12_0x51c42d(0x96),'description':'Dataset\x20code/ID'},'operationName':{'type':a12_0x51c42d(0x96),'description':a12_0x51c42d(0x8e)}},'required':[a12_0x51c42d(0x9c),'operationName']}},{'name':a12_0x51c42d(0x9f),'description':a12_0x51c42d(0xa9),'inputSchema':{'type':'object','properties':{...authProperties,'datasetCode':{'type':a12_0x51c42d(0x96),'description':'Dataset\x20code/ID'},'operationName':{'type':a12_0x51c42d(0x96),'description':a12_0x51c42d(0x8e)},'includeImports':{'type':'boolean','description':a12_0x51c42d(0xaa)}},'required':[a12_0x51c42d(0x9c),a12_0x51c42d(0xac)]}},{'name':a12_0x51c42d(0x95),'description':a12_0x51c42d(0x99),'inputSchema':{'type':a12_0x51c42d(0xad),'properties':{...authProperties,'keyword':{'type':a12_0x51c42d(0x96),'description':a12_0x51c42d(0x8b)}},'required':['keyword']}},{'name':a12_0x51c42d(0xb0),'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':{'type':a12_0x51c42d(0xad),'properties':{...authProperties,'keyword':{'type':a12_0x51c42d(0x96),'description':'Optional:\x20search\x20SQL\x20queries\x20by\x20name,\x20description,\x20or\x20SQL\x20content'},'category':{'type':a12_0x51c42d(0x96),'description':a12_0x51c42d(0xa7)},'pageSize':{'type':'number','description':'Number\x20of\x20items\x20per\x20page\x20(default:\x20999)'},'currentPage':{'type':a12_0x51c42d(0x8f),'description':'Page\x20number\x20to\x20fetch\x20(default:\x201)'}},'required':[]}}];
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(_0x242aed,_0x366203){const _0x5ee32c=a13_0x3490,_0x134e0e=_0x242aed();while(!![]){try{const _0x796857=-parseInt(_0x5ee32c(0x9f))/0x1+parseInt(_0x5ee32c(0x98))/0x2*(-parseInt(_0x5ee32c(0x97))/0x3)+-parseInt(_0x5ee32c(0x9a))/0x4+-parseInt(_0x5ee32c(0x94))/0x5*(parseInt(_0x5ee32c(0xa1))/0x6)+-parseInt(_0x5ee32c(0xa2))/0x7+parseInt(_0x5ee32c(0x96))/0x8+parseInt(_0x5ee32c(0x9e))/0x9;if(_0x796857===_0x366203)break;else _0x134e0e['push'](_0x134e0e['shift']());}catch(_0x2bad38){_0x134e0e['push'](_0x134e0e['shift']());}}}(a13_0x3ec9,0x87661));import{DevApiClient}from'../api/dev-api-client.js';function a13_0x3ec9(){const _0x2223c7=['LOVRABET_APP_CODE','env','26526366aCdIRv','740133lfcwfc','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','318gfdmNN','3299422FuVimo','21795gLMKXn','online','7714296iXAPLW','1045587HRPTrW','6ByrCCx','analyzeDatasetList','3475900tGBhMy','total'];a13_0x3ec9=function(){return _0x2223c7;};return a13_0x3ec9();}function a13_0x3490(_0x42e83d,_0x35955a){const _0x3ec951=a13_0x3ec9();return a13_0x3490=function(_0x3490de,_0x21cfb0){_0x3490de=_0x3490de-0x94;let _0x5dc515=_0x3ec951[_0x3490de];return _0x5dc515;},a13_0x3490(_0x42e83d,_0x35955a);}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function listDatasets(_0x22afaa={}){const _0x1a0565=a13_0x3490,{appCode:appCode=process['env'][_0x1a0565(0x9c)],env:env=process[_0x1a0565(0x9d)]['LOVRABET_ENV']||_0x1a0565(0x95),cookie:_0x3d0ea2,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1,forceRefresh:forceRefresh=![]}=_0x22afaa;if(!appCode)throw new Error(_0x1a0565(0xa0));const _0x13374a=new DevApiClient({'appCode':appCode,'env':env,'cookie':_0x3d0ea2}),_0x298488=await _0x13374a['getDatasetList']({'pageSize':pageSize,'currentPage':currentPage,'forceRefresh':forceRefresh}),_0x2b679e=new DatasetAnalyzer(),_0x1cd303=_0x2b679e[_0x1a0565(0x99)](_0x298488);return{'appCode':appCode,'env':env,'total':_0x1cd303[_0x1a0565(0x9b)],'datasets':_0x1cd303['datasets']};}
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 a14_0x52e8(){const _0x389490=['count','name','This\x20SQL\x20does\x20not\x20require\x20any\x20parameters','online','length','IMPORTANT:\x20Use\x20try-catch\x20to\x20handle\x20HTTP\x20errors\x20(network\x20issues,\x20auth\x20failures)','env','322017NWMKDu','sqlContent','5270625SRIbuv','sqlCode','10825fakWkv','\x27,\x0a});\x0a\x0a//\x20Execute\x20the\x20SQL\x20query:\x20','LOVRABET_APP_CODE','472580rRtTua','updatedTime','replace','\x22\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27','includes','The\x20execResult\x20contains\x20an\x20array\x20of\x20row\x20objects\x20matching\x20your\x20SQL\x20query\x20structure','23fQBBFA','value','date','sqlDesc','other','2208mufKmL','stringify','Parameter:\x20','toLowerCase','744BwvEIz','\x27,\x0a\x20\x20env:\x20\x27','filter','40zHwepA',');\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});','Found\x20','time','Custom\x20SQL','map','IMPORTANT:\x20All\x20SQL\x20queries\x20use\x20the\x20same\x20execution\x20pattern\x20-\x20client.api.executeSql(sqlCode,\x20params)','2024-01-01','message','The\x20executeSql\x20method\x20accepts\x20two\x20parameters:\x20sqlCode\x20(string)\x20and\x20optional\x20params\x20(object)','\x20SQL\x20queries\x20for\x20application\x20','sqlName','string','Failed\x20to\x20list\x20SQL\x20queries:\x20','IMPORTANT:\x20Always\x20check\x20data.execSuccess\x20before\x20using\x20data.execResult','Execute\x20SQL\x20query:\x20','IMPORTANT:\x20The\x20SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[],\x20execError?:\x20string\x20}','type','match','This\x20SQL\x20requires\x20parameters:\x20','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','68306XEHvJH','.\x20Each\x20SQL\x20includes\x20a\x20complete\x20code\x20example\x20showing\x20how\x20to\x20execute\x20it\x20using\x20the\x20SDK.','description','19138qPnbhZ','sql','total','15140235yAYPRl','category','ceil','\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27','sql_list','example','For\x20more\x20customization,\x20use\x20generate_sql_code\x20tool\x20to\x20get\x20code\x20with\x20type\x20inference','all','sqlId','slice','SQL-','limit','No\x20SQL\x20queries\x20found.\x20Check\x20your\x20appCode\x20and\x20authentication.','Each\x20SQL\x20query\x20above\x20includes\x20a\x20codeExample\x20field\x20with\x20complete\x20TypeScript\x20code\x20ready\x20to\x20use'];a14_0x52e8=function(){return _0x389490;};return a14_0x52e8();}(function(_0x19d112,_0xff459e){const _0x27bf20=a14_0x200f,_0x9ce7a8=_0x19d112();while(!![]){try{const _0x40238b=parseInt(_0x27bf20(0x8a))/0x1*(-parseInt(_0x27bf20(0xab))/0x2)+parseInt(_0x27bf20(0xc6))/0x3*(parseInt(_0x27bf20(0x96))/0x4)+parseInt(_0x27bf20(0xca))/0x5*(parseInt(_0x27bf20(0x93))/0x6)+parseInt(_0x27bf20(0xae))/0x7*(-parseInt(_0x27bf20(0x8f))/0x8)+-parseInt(_0x27bf20(0xc8))/0x9+-parseInt(_0x27bf20(0x84))/0xa+parseInt(_0x27bf20(0xb1))/0xb;if(_0x40238b===_0xff459e)break;else _0x9ce7a8['push'](_0x9ce7a8['shift']());}catch(_0x27fc0b){_0x9ce7a8['push'](_0x9ce7a8['shift']());}}}(a14_0x52e8,0x851e1));function a14_0x200f(_0x1f5a28,_0x511254){const _0x52e838=a14_0x52e8();return a14_0x200f=function(_0x200fff,_0xecf27a){_0x200fff=_0x200fff-0x82;let _0xc129d0=_0x52e838[_0x200fff];return _0xc129d0;},a14_0x200f(_0x1f5a28,_0x511254);}import{DevApiClient}from'../api/dev-api-client.js';export async function listSqlQueries(_0x23bb9={}){const _0x19c630=a14_0x200f,{appCode:appCode=process[_0x19c630(0xc5)][_0x19c630(0x83)],cookie:_0x538b6c,env:env=process[_0x19c630(0xc5)]['LOVRABET_ENV']||'online',keyword:_0xc4e383,category:_0x563eda,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1}=_0x23bb9;if(!appCode)throw new Error(_0x19c630(0xaa));const _0x3ffde7=new DevApiClient({'appCode':appCode,'cookie':_0x538b6c,'env':env});try{const _0x806400=await _0x3ffde7['getCustomSqlList']({'pageSize':pageSize,'currentPage':currentPage}),_0x42e8c8=_0x806400['data']||_0x806400,_0x3b13e6=_0x42e8c8['tableData']||[],_0x1547f8=_0x42e8c8[_0x19c630(0xb0)]||_0x3b13e6[_0x19c630(0xc3)];let _0x27cec8=_0x3b13e6[_0x19c630(0x9b)](_0x2f3be2=>{const _0x1012b6=_0x19c630,_0x1cf356=_0x2f3be2[_0x1012b6(0xc9)]||appCode+'-'+(_0x2f3be2[_0x1012b6(0xb9)]||_0x2f3be2['id']),_0x58ffd4=_0x2f3be2['sqlId']||_0x2f3be2['id'];let _0x2c2641;if(_0x2f3be2[_0x1012b6(0xc7)]||_0x2f3be2[_0x1012b6(0xaf)]){const _0x970d2f=_0x2f3be2[_0x1012b6(0xc7)]||_0x2f3be2[_0x1012b6(0xaf)],_0x567ad2=_0x970d2f[_0x1012b6(0xa8)](/[:$]\{?(\w+)\}?/g);if(_0x567ad2){const _0x592b0f=Array['from'](new Set(_0x567ad2[_0x1012b6(0x9b)](_0x3b1ef0=>_0x3b1ef0[_0x1012b6(0x86)](/[:${}]/g,''))));_0x2c2641=_0x592b0f[_0x1012b6(0x9b)](_0x14808d=>{const _0x1cecb5=_0x1012b6;let _0x5478fd=_0x1cecb5(0x8b);if(_0x14808d[_0x1cecb5(0x92)]()[_0x1cecb5(0x88)](_0x1cecb5(0x8c))||_0x14808d['toLowerCase']()[_0x1cecb5(0x88)](_0x1cecb5(0x99)))_0x5478fd=_0x1cecb5(0x9d);else{if(_0x14808d['toLowerCase']()[_0x1cecb5(0x88)]('id'))_0x5478fd=0x7b;else(_0x14808d[_0x1cecb5(0x92)]()[_0x1cecb5(0x88)](_0x1cecb5(0xbc))||_0x14808d['toLowerCase']()[_0x1cecb5(0x88)](_0x1cecb5(0xbf)))&&(_0x5478fd=0xa);}return{'name':_0x14808d,'type':_0x1cecb5(0xa2),'required':!![],'description':_0x1cecb5(0x91)+_0x14808d,'example':_0x5478fd};});}}const _0x5e3528=_0x2c2641&&_0x2c2641['length']>0x0,_0x21df73=_0x5e3528?_0x2c2641['reduce']((_0x5404f9,_0x2e7119)=>({..._0x5404f9,[_0x2e7119['name']]:_0x2e7119[_0x1012b6(0xb6)]}),{}):undefined,_0x423e04={'typescript':'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'+appCode+_0x1012b6(0x94)+(env||_0x1012b6(0xc2))+_0x1012b6(0x82)+(_0x2f3be2[_0x1012b6(0xa1)]||_0x2f3be2[_0x1012b6(0xc0)]||'SQL\x20Query')+_0x1012b6(0xb4)+_0x1cf356+'\x27'+(_0x5e3528?',\x20'+JSON[_0x1012b6(0x90)](_0x21df73,null,0x2):'')+_0x1012b6(0x97),'description':_0x1012b6(0xa5)+(_0x2f3be2[_0x1012b6(0xa1)]||_0x2f3be2[_0x1012b6(0xc0)]||_0x1012b6(0x9a)),'important':['SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[]\x20}\x20-\x20Always\x20check\x20execSuccess\x20before\x20using\x20execResult',_0x1012b6(0x9f),_0x5e3528?_0x1012b6(0xa9)+_0x2c2641[_0x1012b6(0x9b)](_0x44c275=>_0x44c275[_0x1012b6(0xc0)]+'\x20('+_0x44c275[_0x1012b6(0xa7)]+')')['join'](',\x20'):_0x1012b6(0xc1),'On\x20HTTP\x20error,\x20SDK\x20throws\x20LovrabetError\x20exception\x20-\x20use\x20try-catch\x20for\x20error\x20handling',_0x1012b6(0x89)]},_0x53ec77={'sqlCode':_0x1cf356,'sqlId':_0x58ffd4,'name':_0x2f3be2[_0x1012b6(0xa1)]||_0x2f3be2[_0x1012b6(0xc0)]||_0x1012b6(0xbb)+_0x58ffd4,'description':_0x2f3be2[_0x1012b6(0x8d)]||_0x2f3be2[_0x1012b6(0xad)],'category':_0x2f3be2[_0x1012b6(0xb2)]||_0x2f3be2['sqlType']||_0x1012b6(0x8e),'sqlContent':_0x2f3be2[_0x1012b6(0xc7)]||_0x2f3be2[_0x1012b6(0xaf)],'parameters':_0x2c2641,'createdTime':_0x2f3be2['createdTime']||_0x2f3be2['createTime'],'updatedTime':_0x2f3be2[_0x1012b6(0x85)]||_0x2f3be2['updateTime'],'codeExample':_0x423e04};return _0x53ec77;});if(_0xc4e383){const _0x2759f2=_0xc4e383[_0x19c630(0x92)]();_0x27cec8=_0x27cec8[_0x19c630(0x95)](_0x3cc57c=>_0x3cc57c[_0x19c630(0xc0)][_0x19c630(0x92)]()[_0x19c630(0x88)](_0x2759f2)||_0x3cc57c[_0x19c630(0xad)]&&_0x3cc57c[_0x19c630(0xad)][_0x19c630(0x92)]()['includes'](_0x2759f2)||_0x3cc57c[_0x19c630(0xc9)]['toLowerCase']()[_0x19c630(0x88)](_0x2759f2)||_0x3cc57c[_0x19c630(0xc7)]&&_0x3cc57c[_0x19c630(0xc7)][_0x19c630(0x92)]()[_0x19c630(0x88)](_0x2759f2));}_0x563eda&&_0x563eda!==_0x19c630(0xb8)&&(_0x27cec8=_0x27cec8[_0x19c630(0x95)](_0x43921b=>_0x43921b[_0x19c630(0xb2)]&&_0x43921b[_0x19c630(0xb2)]['toLowerCase']()===_0x563eda[_0x19c630(0x92)]()));const _0x5b5c81=Math[_0x19c630(0xb3)](_0x27cec8[_0x19c630(0xc3)]/pageSize),_0x5cb9e6=_0x27cec8[_0x19c630(0xba)]((currentPage-0x1)*pageSize,currentPage*pageSize),_0x173a78=_0x5cb9e6[_0x19c630(0xc3)]>0x0?_0x5cb9e6[0x0]:null,_0x1905fd=_0x173a78?'\x0a//\x20Example:\x20Using\x20SQL\x20\x22'+_0x173a78['name']+_0x19c630(0x87)+_0x173a78[_0x19c630(0xc9)]+'\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':_0x19c630(0xb5),'total':_0x27cec8[_0x19c630(0xc3)],'sqls':_0x5cb9e6,'pagination':{'currentPage':currentPage,'pageSize':pageSize,'totalPages':_0x5b5c81},'usage':{'description':_0x19c630(0x98)+_0x27cec8[_0x19c630(0xc3)]+_0x19c630(0xa0)+appCode+_0x19c630(0xac),'important':[_0x19c630(0x9c),_0x19c630(0xa4),_0x19c630(0xa6),_0x19c630(0xc4),'IMPORTANT:\x20Business\x20logic\x20errors\x20(SQL\x20failures)\x20are\x20returned\x20in\x20data.execError,\x20not\x20thrown',_0x19c630(0xbe),_0x19c630(0xb7)],'example':_0x1905fd||_0x19c630(0xbd)}};}catch(_0x206021){throw new Error(_0x19c630(0xa3)+_0x206021[_0x19c630(0x9e)]);}}
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_0x44d3(_0x1e4b36,_0x5e4462){const _0xbc31e9=a15_0xbc31();return a15_0x44d3=function(_0x44d3c5,_0x383e59){_0x44d3c5=_0x44d3c5-0x1e0;let _0x5d4e4b=_0xbc31e9[_0x44d3c5];return _0x5d4e4b;},a15_0x44d3(_0x1e4b36,_0x5e4462);}(function(_0x354550,_0x5b9440){const _0x3b6b1c=a15_0x44d3,_0x2e7300=_0x354550();while(!![]){try{const _0x1597b3=-parseInt(_0x3b6b1c(0x1ef))/0x1+-parseInt(_0x3b6b1c(0x1e5))/0x2+parseInt(_0x3b6b1c(0x1fd))/0x3+-parseInt(_0x3b6b1c(0x1f7))/0x4+parseInt(_0x3b6b1c(0x1e6))/0x5+parseInt(_0x3b6b1c(0x1fb))/0x6+parseInt(_0x3b6b1c(0x1f5))/0x7;if(_0x1597b3===_0x5b9440)break;else _0x2e7300['push'](_0x2e7300['shift']());}catch(_0xac2f66){_0x2e7300['push'](_0x2e7300['shift']());}}}(a15_0xbc31,0x23733));import*as a15_0x545efe from'node:https';import{saveCookie}from'../auth/cookie-manager.js';import{isSessionValid}from'../auth/session-validator.js';import{getUserDomain}from'../auth/constants.js';export async function login(_0x527301={}){const _0x1f7cb2=a15_0x44d3,_0x46b200=_0x527301['env']||_0x1f7cb2(0x1e4);if(await isSessionValid(_0x46b200))return{'success':!![],'message':'Already\x20logged\x20in\x20to\x20'+_0x46b200+_0x1f7cb2(0x1f1),'env':_0x46b200};let _0x5d9691;try{const _0x7c7f3f=await fetch(_0x1f7cb2(0x1f0));_0x5d9691=await _0x7c7f3f[_0x1f7cb2(0x1f2)]();}catch(_0x2d50dc){return{'success':![],'message':'Failed\x20to\x20fetch\x20SSL\x20certificates\x20for\x20login\x20server','env':_0x46b200};}return new Promise(_0x5cda87=>{const _0x13eaeb=_0x1f7cb2;let _0x36674f=0x0;const _0x5dcf83=a15_0x545efe[_0x13eaeb(0x1e0)](_0x5d9691,async(_0x1b09b0,_0x1af12b)=>{const _0x5462ad=_0x13eaeb,_0x3b3fdf=getUserDomain(_0x46b200),_0x5997be=_0x1b09b0['headers']['cookie']||'';try{const _0x1b3ac2=await fetch(_0x3b3fdf+'/api/auth/get-session',{'headers':{'cookie':_0x5997be}}),_0x2e8e9b=await _0x1b3ac2[_0x5462ad(0x1f2)](),_0x41ddef=_0x2e8e9b&&_0x2e8e9b[_0x5462ad(0x1e3)]&&_0x2e8e9b[_0x5462ad(0x1ff)];if(_0x41ddef){try{saveCookie(_0x5997be);}catch(_0x3da50b){const _0x2f5f75=_0x5462ad(0x1e7)+_0x3da50b['message']+'</p>\x0a\x20\x20\x20\x20<p>Please\x20check\x20file\x20permissions\x20for\x20~/.lovrabet/cookie</p>\x0a\x20\x20</div>\x0a</body>\x0a</html>';_0x1af12b[_0x5462ad(0x1ec)](0x1f4,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x1af12b[_0x5462ad(0x1ed)](_0x2f5f75),_0x5dcf83[_0x5462ad(0x1f3)](),_0x5cda87({'success':![],'message':_0x5462ad(0x1fe)+_0x3da50b[_0x5462ad(0x1f8)],'env':_0x46b200});return;}const _0x290ded='<!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>';_0x1af12b['writeHead'](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x1af12b[_0x5462ad(0x1ed)](_0x290ded),_0x5dcf83[_0x5462ad(0x1f3)](),_0x5cda87({'success':!![],'message':'Successfully\x20logged\x20in\x20to\x20'+_0x46b200+_0x5462ad(0x1f1),'env':_0x46b200});}else{const _0x7627ec=encodeURIComponent(_0x5462ad(0x1f4)+_0x36674f);_0x1af12b[_0x5462ad(0x1ec)](0x12e,{'location':_0x3b3fdf+_0x5462ad(0x1e9)+_0x7627ec}),_0x1af12b[_0x5462ad(0x1ed)]();}}catch(_0x1808f5){_0x1af12b[_0x5462ad(0x1ec)](0x1f4,{'Content-Type':_0x5462ad(0x1e1)}),_0x1af12b[_0x5462ad(0x1ed)](_0x5462ad(0x1ee)),_0x5dcf83['close'](),_0x5cda87({'success':![],'message':_0x5462ad(0x1ea),'env':_0x46b200});}});_0x5dcf83[_0x13eaeb(0x1fc)](0x0,'127.0.0.1',()=>{const _0x380113=_0x13eaeb,_0xf1e590=_0x5dcf83[_0x380113(0x1e8)]();_0x36674f=typeof _0xf1e590===_0x380113(0x1e2)&&_0xf1e590?_0xf1e590[_0x380113(0x1f6)]:0x0;const _0x3ca6ec='https://dev.lovrabet.com:'+_0x36674f;_0x5cda87({'success':![],'message':_0x380113(0x1fa)+_0x3ca6ec,'loginUrl':_0x3ca6ec,'env':_0x46b200});}),_0x5dcf83['on']('error',_0x202f40=>{const _0x453046=_0x13eaeb;_0x5cda87({'success':![],'message':_0x453046(0x1f9)+_0x202f40[_0x453046(0x1f8)],'env':_0x46b200});}),setTimeout(()=>{const _0x2afa4c=_0x13eaeb;_0x5dcf83[_0x2afa4c(0x1f3)](),_0x5cda87({'success':![],'message':_0x2afa4c(0x1eb),'env':_0x46b200});},0x5*0x3c*0x3e8);});}function a15_0xbc31(){const _0x4f3c06=['object','session','online','69434vPvujm','420530LUfCaO','<!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','address','/sign-in?redirect=','Login\x20server\x20error','Login\x20timeout\x20-\x20no\x20response\x20received\x20within\x205\x20minutes','writeHead','end','Internal\x20server\x20error','158255OxHFUC','https://g.yuntooai.com/cert/lovrabet-dev.json','\x20environment','json','close','https://dev.lovrabet.com:','1274259eFbCUn','port','385028FXPoOs','message','Login\x20server\x20error:\x20','Please\x20open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20login:\x20','260322qKMphN','listen','374706ZfoDSn','Login\x20successful\x20but\x20failed\x20to\x20save\x20cookie:\x20','user','createServer','text/plain'];a15_0xbc31=function(){return _0x4f3c06;};return a15_0xbc31();}
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(_0x20bca7,_0x1bcac9){const _0x368819=a16_0x5b6d,_0x3d1685=_0x20bca7();while(!![]){try{const _0x335111=-parseInt(_0x368819(0xdf))/0x1*(-parseInt(_0x368819(0xe5))/0x2)+-parseInt(_0x368819(0xd9))/0x3+-parseInt(_0x368819(0xe9))/0x4+parseInt(_0x368819(0xe6))/0x5*(parseInt(_0x368819(0xdb))/0x6)+-parseInt(_0x368819(0xe8))/0x7*(parseInt(_0x368819(0xe4))/0x8)+-parseInt(_0x368819(0xe7))/0x9+parseInt(_0x368819(0xdc))/0xa;if(_0x335111===_0x1bcac9)break;else _0x3d1685['push'](_0x3d1685['shift']());}catch(_0x1e91aa){_0x3d1685['push'](_0x3d1685['shift']());}}}(a16_0x41c5,0xbe995));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function searchDatasets(_0x52d6f3){const _0x180791=a16_0x5b6d,{appCode:appCode=process[_0x180791(0xdd)]['LOVRABET_APP_CODE'],cookie:_0x39b513,env:env=process[_0x180791(0xdd)][_0x180791(0xde)]||_0x180791(0xe3),keyword:_0x3b275f}=_0x52d6f3;if(!appCode)throw new Error(_0x180791(0xd6));if(!_0x3b275f)throw new Error(_0x180791(0xe2));const _0x2b761e=new DevApiClient({'appCode':appCode,'cookie':_0x39b513,'env':env}),_0x182623=await _0x2b761e['searchDatasets'](_0x3b275f),_0x763500=new DatasetAnalyzer(),_0x4c87ed=_0x763500[_0x180791(0xe1)](_0x182623);return{'appCode':appCode,'env':env,'keyword':_0x3b275f,'total':_0x4c87ed[_0x180791(0xd8)],'datasets':_0x4c87ed[_0x180791(0xe0)]['map'](_0x338c79=>({'id':_0x338c79['id'],'name':_0x338c79[_0x180791(0xd7)],'code':_0x338c79[_0x180791(0xda)],'tableName':_0x338c79[_0x180791(0xea)],'description':_0x338c79['description']}))};}function a16_0x5b6d(_0x4efa6b,_0xc18f88){const _0x41c560=a16_0x41c5();return a16_0x5b6d=function(_0x5b6dd4,_0x5930cb){_0x5b6dd4=_0x5b6dd4-0xd6;let _0xe257c=_0x41c560[_0x5b6dd4];return _0xe257c;},a16_0x5b6d(_0x4efa6b,_0xc18f88);}function a16_0x41c5(){const _0x5d4cfe=['7TljxBD','493792BvFIbV','tableName','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','name','total','2941620PBVzgG','code','6VtNcBb','17144620uGdBXQ','env','LOVRABET_ENV','15IrbJMF','datasets','analyzeDatasetList','keyword\x20is\x20required','online','6869600pDQSpV','100424WpeWuL','2133620JBpcht','1358865kEYFZV'];a16_0x41c5=function(){return _0x5d4cfe;};return a16_0x41c5();}
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.0.16",
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,11 +30,12 @@
30
30
  "examples": "npm run example:basic && npm run example:sdk && npm run example:compare"
31
31
  },
32
32
  "dependencies": {
33
- "@lovrabet/dsparser": "^1.0.22",
34
- "@modelcontextprotocol/sdk": "^1.0.4",
33
+ "@lovrabet/dsparser": "^1.2.4",
34
+ "@modelcontextprotocol/sdk": "^1.25.1",
35
35
  "axios": "^1.6.2",
36
36
  "dotenv": "^16.3.1",
37
- "javascript-obfuscator": "^4.1.1"
37
+ "javascript-obfuscator": "^4.1.1",
38
+ "zod": "^3.25.0"
38
39
  },
39
40
  "devDependencies": {
40
41
  "@types/node": "^20.10.5",
@@ -57,4 +58,4 @@
57
58
  "engines": {
58
59
  "node": ">=18.0.0"
59
60
  }
60
- }
61
+ }