@lovrabet/dataset-mcp-server 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- function a0_0x565f(){const _0x9aa702=['getOperationAnalysis','join','all','\x0a```\x0a','enumSource','removed','added','sdkCall','getCount','\x20|\x0a','generateFullSDKExample','searchDatasets','fields','datasetCode','map','stringify','name','extend','responseExample','isVirtualTable','**Table\x20Name:**\x20','96376JsCcMq','generateMarkdownDoc','3263334ZDRmNH','autoIncrement','toPascalCase','32EstswB','getEnabledOperationAnalyses','738hSfIbU','filter',')\x0a\x0a','toUpperCase','|------------|------|------|----------|-------------|-------------|-------------|\x0a','source','enabled','path','toLowerCase','slice','\x20...\x20(','getFieldList','\x0a**Response\x20Example:**\x0a```json\x0a','tableData','operations','generateSDKInitCode','###\x20','online','\x20|\x20','createTime','description','getOperationCount','has','updateTime','62FCTGDF','805105SqSAex','getOperationDocMeta','getTableName','analyzeDatasetItem','24225580DmhqmJ','values','##\x20Fields\x0a\x0a','type','from','displayName','data','-\x20**Method:**\x20','selectItemsSource','##\x20Operations\x0a\x0a','|\x20Field\x20Name\x20|\x20Code\x20|\x20Type\x20|\x20Required\x20|\x20Primary\x20Key\x20|\x20Enum\x20Values\x20|\x20Description\x20|\x0a','includes','isRequired','getFieldCount','Fields:\x20+','```typescript\x0a','enumValues','2873586wZYyGg','supportsCRUD','tableName','requestExample','replace','getTableKey','getOperationDetail','length','isEnum','fullUrl','toArray','**Table\x20Key:**\x20','options','requestFields','analyzeDatasetList','method','214810CqKhxJ','\x0a**Request\x20Example:**\x0a```json\x0a','**Dataset\x20Code:**\x20','analyzeDatasetDetail','isPrimaryKey','40030HixDqA','generateApiDoc'];a0_0x565f=function(){return _0x9aa702;};return a0_0x565f();}const a0_0x1b81d6=a0_0x46d5;(function(_0x2deeb7,_0x3dc689){const _0x5cfd52=a0_0x46d5,_0x1a65e2=_0x2deeb7();while(!![]){try{const _0x16538f=parseInt(_0x5cfd52(0x170))/0x1*(parseInt(_0x5cfd52(0x19b))/0x2)+parseInt(_0x5cfd52(0x153))/0x3+-parseInt(_0x5cfd52(0x156))/0x4*(-parseInt(_0x5cfd52(0x196))/0x5)+-parseInt(_0x5cfd52(0x186))/0x6+parseInt(_0x5cfd52(0x171))/0x7+parseInt(_0x5cfd52(0x151))/0x8*(parseInt(_0x5cfd52(0x158))/0x9)+-parseInt(_0x5cfd52(0x175))/0xa;if(_0x16538f===_0x3dc689)break;else _0x1a65e2['push'](_0x1a65e2['shift']());}catch(_0x97e70f){_0x1a65e2['push'](_0x1a65e2['shift']());}}}(a0_0x565f,0xd5538));function a0_0x46d5(_0xcc37ec,_0x187000){const _0x565fb1=a0_0x565f();return a0_0x46d5=function(_0x46d55b,_0x43790d){_0x46d55b=_0x46d55b-0x145;let _0x4c93f8=_0x565fb1[_0x46d55b];return _0x4c93f8;},a0_0x46d5(_0xcc37ec,_0x187000);}import{DatasetList,DrivenDataDetailPlus}from'@lovrabet/dsparser';export class DatasetAnalyzer{[a0_0x1b81d6(0x194)](_0x52e4e8){const _0xc1ce75=a0_0x1b81d6,_0x95e63a=_0x52e4e8[_0xc1ce75(0x17b)]?.[_0xc1ce75(0x165)]||_0x52e4e8['tableData']||_0x52e4e8,_0x1f9c2b=new DatasetList(_0x95e63a);return{'total':_0x1f9c2b[_0xc1ce75(0x1a5)](),'datasets':_0x1f9c2b[_0xc1ce75(0x190)]()[_0xc1ce75(0x14a)](_0x394364=>this[_0xc1ce75(0x174)](_0x394364))};}[a0_0x1b81d6(0x174)](_0x5d81ed){const _0x31a373=a0_0x1b81d6;return{'id':_0x5d81ed['id']||0x0,'name':_0x5d81ed[_0x31a373(0x14c)]||'','code':_0x5d81ed[_0x31a373(0x149)]||'','tableName':_0x5d81ed[_0x31a373(0x173)]?.()||_0x5d81ed[_0x31a373(0x188)]||'','source':_0x5d81ed[_0x31a373(0x15d)]||'','description':_0x5d81ed[_0x31a373(0x16c)]||'','isVirtual':_0x5d81ed[_0x31a373(0x14f)]?.()||![]};}[a0_0x1b81d6(0x199)](_0xb1f362){const _0x4609e6=a0_0x1b81d6,_0x11378a=_0xb1f362[_0x4609e6(0x17b)]||_0xb1f362,_0x361e1a=new DrivenDataDetailPlus(_0x11378a),_0x1123c4={'name':_0x361e1a[_0x4609e6(0x14c)],'code':_0x361e1a['datasetCode'],'tableName':_0x361e1a[_0x4609e6(0x173)](),'tableKey':_0x361e1a[_0x4609e6(0x18b)]()},_0x433324=_0x361e1a[_0x4609e6(0x163)](),_0x48703d=_0x433324[_0x4609e6(0x19f)]()[_0x4609e6(0x14a)](_0x9d5633=>{const _0x387539=_0x4609e6,_0x2fd5a3=_0x9d5633[_0x387539(0x14d)],_0x5ca300={'name':_0x9d5633['name'],'type':_0x9d5633[_0x387539(0x178)],'required':_0x9d5633[_0x387539(0x181)](),'primaryKey':_0x9d5633[_0x387539(0x19a)](),'description':_0x9d5633[_0x387539(0x16c)]||'','autoIncrement':Boolean(_0x2fd5a3[_0x387539(0x154)]),'createTime':Boolean(_0x2fd5a3[_0x387539(0x16b)]),'updateTime':Boolean(_0x2fd5a3[_0x387539(0x16f)])};if(_0x9d5633[_0x387539(0x18e)]()){const _0x5f37fe=_0x9d5633['getEnumMeta']();if(_0x5f37fe){_0x5ca300['isEnum']=!![],_0x5ca300[_0x387539(0x185)]=_0x5f37fe[_0x387539(0x176)];if(_0x5f37fe[_0x387539(0x192)]&&_0x5f37fe[_0x387539(0x192)][_0x387539(0x18d)]>0x0)_0x5ca300['enumOptions']=_0x5f37fe['options'];else _0x5f37fe[_0x387539(0x17d)]&&(_0x5ca300[_0x387539(0x1a1)]=_0x5f37fe[_0x387539(0x17d)]);}}return _0x5ca300;}),_0x29b301=_0x361e1a[_0x4609e6(0x157)]()['map'](_0x2f696f=>{const _0x4627a6=_0x4609e6,_0x4eaabc={'name':_0x2f696f[_0x4627a6(0x14c)],'displayName':_0x2f696f[_0x4627a6(0x17a)],'type':_0x2f696f[_0x4627a6(0x178)],'method':_0x2f696f['method'],'path':_0x2f696f[_0x4627a6(0x15f)],'requestFields':_0x2f696f[_0x4627a6(0x193)],'requestFieldsCount':_0x2f696f[_0x4627a6(0x193)][_0x4627a6(0x18d)],'requestExample':_0x2f696f['requestExample'],'responseExample':_0x2f696f[_0x4627a6(0x14e)],'enabled':_0x2f696f[_0x4627a6(0x15e)],'fullUrl':_0x2f696f[_0x4627a6(0x18f)]};return _0x4eaabc;});return{'basic':_0x1123c4,'fields':_0x48703d,'operations':_0x29b301,'supportsCRUD':_0x361e1a[_0x4609e6(0x187)](),'fieldCount':_0x361e1a[_0x4609e6(0x182)](),'operationCount':_0x361e1a[_0x4609e6(0x16d)](),'enabledOperationCount':_0x29b301[_0x4609e6(0x18d)]};}[a0_0x1b81d6(0x18c)](_0x5862e1,_0x1e710f){const _0xf891b1=a0_0x1b81d6,_0x41e893=_0x5862e1[_0xf891b1(0x17b)]||_0x5862e1,_0x5292b4=new DrivenDataDetailPlus(_0x41e893),_0x39743e=_0x5292b4['getOperationAnalysis'](_0x1e710f);if(!_0x39743e)return null;return{'name':_0x39743e[_0xf891b1(0x14c)],'displayName':_0x39743e[_0xf891b1(0x17a)],'type':_0x39743e['type'],'method':_0x39743e[_0xf891b1(0x195)],'path':_0x39743e[_0xf891b1(0x15f)],'requestFields':_0x39743e['requestFields'],'requestFieldsCount':_0x39743e[_0xf891b1(0x193)][_0xf891b1(0x18d)],'requestExample':_0x39743e[_0xf891b1(0x189)],'responseExample':_0x39743e[_0xf891b1(0x14e)],'enabled':_0x39743e[_0xf891b1(0x15e)],'fullUrl':_0x39743e[_0xf891b1(0x18f)]};}['generateSDKCode'](_0x2404ee,_0x454803,_0x3f769d,_0x35967d=a0_0x1b81d6(0x169)){const _0x3f0007=a0_0x1b81d6,_0x1143d7=_0x2404ee[_0x3f0007(0x17b)]||_0x2404ee,_0x5320e4=new DrivenDataDetailPlus(_0x1143d7),_0x54024a=_0x5320e4[_0x3f0007(0x172)](_0x454803);if(!_0x54024a)return null;const _0x1ecd59=_0x5320e4['getTableKey'](),_0x4cebec=_0x5320e4[_0x3f0007(0x173)](),_0x1c703a=this['toPascalCase'](_0x4cebec),_0x33e3dc=_0x5320e4[_0x3f0007(0x19d)](_0x454803),_0x595ac7=_0x5320e4[_0x3f0007(0x146)](_0x454803,_0x3f769d);return{'code':_0x54024a[_0x3f0007(0x1a4)]['code'],'sdkCallInfo':{'modelName':_0x1c703a,'tableName':_0x4cebec,'tableKey':_0x1ecd59,'datasetCode':_0x5320e4[_0x3f0007(0x149)],'operationName':_0x454803},'requestExample':_0x33e3dc?.[_0x3f0007(0x189)],'responseExample':_0x33e3dc?.[_0x3f0007(0x14e)],'sdkInitCode':_0x5320e4[_0x3f0007(0x167)](_0x1ecd59),'usageExample':_0x54024a['usageExample'],'fullExample':_0x595ac7||undefined};}[a0_0x1b81d6(0x19c)](_0xf2448d){const _0x80281a=a0_0x1b81d6,_0xfd05e0=_0xf2448d[_0x80281a(0x17b)]||_0xf2448d,_0x3bc765=new DrivenDataDetailPlus(_0xfd05e0),_0x5e1810=_0x3bc765[_0x80281a(0x157)]()[_0x80281a(0x14a)](_0x4af06f=>({'name':_0x4af06f['name'],'displayName':_0x4af06f['displayName'],'description':_0x4af06f[_0x80281a(0x17a)]+'\x20operation\x20for\x20'+_0x3bc765[_0x80281a(0x14c)],'method':_0x4af06f[_0x80281a(0x195)],'path':_0x4af06f[_0x80281a(0x15f)],'requestParams':_0x4af06f[_0x80281a(0x193)],'requestExample':JSON[_0x80281a(0x14b)](_0x4af06f[_0x80281a(0x189)],null,0x2),'responseExample':JSON[_0x80281a(0x14b)](_0x4af06f[_0x80281a(0x14e)],null,0x2)}));return{'datasetName':_0x3bc765[_0x80281a(0x14c)],'tableName':_0x3bc765['getTableName'](),'operations':_0x5e1810};}[a0_0x1b81d6(0x147)](_0x2591ce,_0x285887){const _0x3c67fd=a0_0x1b81d6,_0x251c53=new DatasetList(_0x2591ce),_0x59655c=_0x285887[_0x3c67fd(0x160)]();return _0x251c53[_0x3c67fd(0x190)]()[_0x3c67fd(0x159)](_0x63ead4=>{const _0x2d477b=_0x3c67fd,_0xc4440f=(_0x63ead4[_0x2d477b(0x14c)]||'')[_0x2d477b(0x160)]()[_0x2d477b(0x180)](_0x59655c),_0x4db185=(_0x63ead4['getTableName']?.()||_0x63ead4['tableName']||'')['toLowerCase']()[_0x2d477b(0x180)](_0x59655c),_0x4c6dc7=(_0x63ead4[_0x2d477b(0x149)]||'')[_0x2d477b(0x160)]()[_0x2d477b(0x180)](_0x59655c),_0x3679d5=(_0x63ead4[_0x2d477b(0x16c)]||'')['toLowerCase']()[_0x2d477b(0x180)](_0x59655c);return _0xc4440f||_0x4db185||_0x4c6dc7||_0x3679d5;})['map'](_0x2dfd01=>this[_0x3c67fd(0x174)](_0x2dfd01));}[a0_0x1b81d6(0x152)](_0x3509d5){const _0x44f031=a0_0x1b81d6,_0x348398=_0x3509d5[_0x44f031(0x17b)]||_0x3509d5,_0x305f41=new DrivenDataDetailPlus(_0x348398);let _0x8f5c01='#\x20'+_0x305f41[_0x44f031(0x14c)]+'\x0a\x0a';_0x8f5c01+=_0x44f031(0x198)+_0x305f41[_0x44f031(0x149)]+'\x0a',_0x8f5c01+=_0x44f031(0x150)+_0x305f41['getTableName']()+'\x0a',_0x8f5c01+=_0x44f031(0x191)+_0x305f41[_0x44f031(0x18b)]()+'\x0a\x0a',_0x8f5c01+=_0x44f031(0x177);const _0x52171b=_0x305f41[_0x44f031(0x163)]();_0x52171b[_0x44f031(0x18d)]>0x0&&(_0x8f5c01+=_0x44f031(0x17f),_0x8f5c01+=_0x44f031(0x15c),_0x52171b['all']()['forEach'](_0x620024=>{const _0xb64ade=_0x44f031;let _0x38c2b4='';if(_0x620024[_0xb64ade(0x18e)]()){const _0x544f1f=_0x620024['getEnumMeta']();if(_0x544f1f&&_0x544f1f[_0xb64ade(0x176)][_0xb64ade(0x18d)]>0x0){const _0x468eba=_0x544f1f[_0xb64ade(0x176)][_0xb64ade(0x161)](0x0,0x5);_0x38c2b4=_0x468eba['join'](',\x20'),_0x544f1f[_0xb64ade(0x176)][_0xb64ade(0x18d)]>0x5&&(_0x38c2b4+=_0xb64ade(0x162)+_0x544f1f[_0xb64ade(0x176)][_0xb64ade(0x18d)]+'\x20total)');}}_0x8f5c01+='|\x20'+_0x620024[_0xb64ade(0x14c)]+_0xb64ade(0x16a)+_0x620024['code']+'\x20|\x20'+_0x620024[_0xb64ade(0x178)]+'\x20|\x20'+(_0x620024[_0xb64ade(0x181)]()?'✅':'')+_0xb64ade(0x16a)+(_0x620024['isPrimaryKey']()?'🔑':'')+_0xb64ade(0x16a)+_0x38c2b4+'\x20|\x20'+(_0x620024['description']||'')+_0xb64ade(0x145);}),_0x8f5c01+='\x0a');_0x8f5c01+=_0x44f031(0x17e);const _0x41b545=_0x305f41[_0x44f031(0x157)]();_0x41b545['forEach'](_0x3b7779=>{const _0x4298ef=_0x44f031;_0x8f5c01+=_0x4298ef(0x168)+_0x3b7779[_0x4298ef(0x17a)]+'\x20('+_0x3b7779[_0x4298ef(0x14c)]+_0x4298ef(0x15a),_0x8f5c01+=_0x4298ef(0x17c)+_0x3b7779['method']+'\x0a',_0x8f5c01+='-\x20**Path:**\x20'+_0x3b7779['path']+'\x0a',_0x3b7779[_0x4298ef(0x18f)]&&(_0x8f5c01+='-\x20**Full\x20URL:**\x20'+_0x3b7779['fullUrl']+'\x0a'),_0x3b7779['requestFields']&&_0x3b7779[_0x4298ef(0x193)]['length']>0x0&&(_0x8f5c01+='-\x20**Request\x20Fields:**\x20'+_0x3b7779[_0x4298ef(0x193)][_0x4298ef(0x19e)](',\x20')+'\x0a'),_0x3b7779[_0x4298ef(0x189)]&&(_0x8f5c01+=_0x4298ef(0x197)+JSON['stringify'](_0x3b7779[_0x4298ef(0x189)],null,0x2)+_0x4298ef(0x1a0)),_0x3b7779[_0x4298ef(0x14e)]&&(_0x8f5c01+=_0x4298ef(0x164)+JSON[_0x4298ef(0x14b)](_0x3b7779[_0x4298ef(0x14e)],null,0x2)+_0x4298ef(0x1a0)),_0x8f5c01+='\x0a';});const _0x2b4cdf=_0x305f41[_0x44f031(0x18b)](),_0x14bdb8=_0x305f41[_0x44f031(0x167)](_0x2b4cdf);return _0x14bdb8&&(_0x8f5c01+='##\x20SDK\x20Usage\x0a\x0a',_0x8f5c01+=_0x44f031(0x184),_0x8f5c01+=_0x14bdb8,_0x8f5c01+='```\x0a'),_0x8f5c01;}['compareDatasets'](_0xb062c4,_0xaf1aa3){const _0x30cfa0=a0_0x1b81d6,_0x3b441c=_0xb062c4[_0x30cfa0(0x17b)]||_0xb062c4,_0x275bbf=_0xaf1aa3[_0x30cfa0(0x17b)]||_0xaf1aa3,_0x3ae057=new DrivenDataDetailPlus(_0x3b441c),_0x4a465d=new DrivenDataDetailPlus(_0x275bbf),_0x1bae74=new Set(_0x3ae057[_0x30cfa0(0x163)]()[_0x30cfa0(0x19f)]()[_0x30cfa0(0x14a)](_0xcc495d=>_0xcc495d[_0x30cfa0(0x14c)])),_0x36e80c=new Set(_0x4a465d[_0x30cfa0(0x163)]()[_0x30cfa0(0x19f)]()['map'](_0x4bc244=>_0x4bc244[_0x30cfa0(0x14c)])),_0x517cd8=new Set(_0x3ae057['getEnabledOperationAnalyses']()[_0x30cfa0(0x14a)](_0xf9b663=>_0xf9b663[_0x30cfa0(0x14c)])),_0x62f614=new Set(_0x4a465d[_0x30cfa0(0x157)]()[_0x30cfa0(0x14a)](_0x1bfe42=>_0x1bfe42[_0x30cfa0(0x14c)])),_0x3925d5={'fields':{'added':Array[_0x30cfa0(0x179)](_0x36e80c)[_0x30cfa0(0x159)](_0x17baed=>!_0x1bae74[_0x30cfa0(0x16e)](_0x17baed)),'removed':Array[_0x30cfa0(0x179)](_0x1bae74)[_0x30cfa0(0x159)](_0x27ddc5=>!_0x36e80c[_0x30cfa0(0x16e)](_0x27ddc5)),'modified':[]},'operations':{'added':Array[_0x30cfa0(0x179)](_0x62f614)[_0x30cfa0(0x159)](_0x3f25ab=>!_0x517cd8[_0x30cfa0(0x16e)](_0x3f25ab)),'removed':Array[_0x30cfa0(0x179)](_0x517cd8)[_0x30cfa0(0x159)](_0x50772a=>!_0x62f614['has'](_0x50772a))}},_0x56ae8a=_0x30cfa0(0x183)+_0x3925d5[_0x30cfa0(0x148)][_0x30cfa0(0x1a3)][_0x30cfa0(0x18d)]+'/-'+_0x3925d5['fields']['removed']['length']+',\x20'+('Operations:\x20+'+_0x3925d5['operations'][_0x30cfa0(0x1a3)][_0x30cfa0(0x18d)]+'/-'+_0x3925d5[_0x30cfa0(0x166)][_0x30cfa0(0x1a2)]['length']);return{'differences':_0x3925d5,'summary':_0x56ae8a};}[a0_0x1b81d6(0x155)](_0x40ac88){const _0x2af925=a0_0x1b81d6;return _0x40ac88['replace'](/[-_\s]+(.)?/g,(_0x237bae,_0x153656)=>_0x153656?_0x153656[_0x2af925(0x15b)]():'')[_0x2af925(0x18a)](/^(.)/,(_0x47b1c6,_0x31b15f)=>_0x31b15f['toUpperCase']());}}
1
+ const a0_0x257182=a0_0x1815;(function(_0x15faf7,_0x548c72){const _0x5107a6=a0_0x1815,_0x304d71=_0x15faf7();while(!![]){try{const _0x5b5a=parseInt(_0x5107a6(0x127))/0x1*(-parseInt(_0x5107a6(0x141))/0x2)+-parseInt(_0x5107a6(0x100))/0x3*(-parseInt(_0x5107a6(0x13c))/0x4)+parseInt(_0x5107a6(0xf8))/0x5*(-parseInt(_0x5107a6(0x109))/0x6)+parseInt(_0x5107a6(0xea))/0x7+parseInt(_0x5107a6(0x131))/0x8*(parseInt(_0x5107a6(0x129))/0x9)+-parseInt(_0x5107a6(0x11f))/0xa+parseInt(_0x5107a6(0x123))/0xb;if(_0x5b5a===_0x548c72)break;else _0x304d71['push'](_0x304d71['shift']());}catch(_0x31e65f){_0x304d71['push'](_0x304d71['shift']());}}}(a0_0x16d8,0xc3d58));import{DatasetList,DrivenDataDetailPlus}from'@lovrabet/dsparser';function a0_0x1815(_0x7386dc,_0x2913db){const _0x16d8b5=a0_0x16d8();return a0_0x1815=function(_0x18156e,_0x59555c){_0x18156e=_0x18156e-0xe5;let _0x23bd16=_0x16d8b5[_0x18156e];return _0x23bd16;},a0_0x1815(_0x7386dc,_0x2913db);}function a0_0x16d8(){const _0x1b4cf2=['all','stringify','7909610mIZqdN','enumValues','map','slice','16968435QFRoKh','tableData','\x20|\x0a','requestFields','1nfzANT','length','27ZrTiSs','getTableName','name','isPrimaryKey','removed','\x20|\x20','getCount','getOperationAnalysis','1299064niJoPt','toPascalCase','tableName','fullUrl','\x20total)','toUpperCase','**Table\x20Name:**\x20','datasetCode','-\x20**Full\x20URL:**\x20','compareDatasets','getOperationDetail','21448YuJzgE','operations','online','data','enumSource','3151642RnEzsR','forEach','generateFullSDKExample','generateSDKInitCode','|------------|------|------|----------|-------------|-------------|-------------|\x0a','##\x20Operations\x0a\x0a','isRequired','updateTime','code','type','generateApiDoc','4531205TIJdcr','path','displayName','analyzeDatasetItem','sdkCall','-\x20**Path:**\x20','responseExample','**Dataset\x20Code:**\x20','isEnum','method','enabled','createTime',')\x0a\x0a','from','5JnujeP','```\x0a','generateMarkdownDoc','\x0a```\x0a','\x20operation\x20for\x20','options','getEnumMeta','getFieldCount','873AATzAt','##\x20Fields\x0a\x0a','usageExample','requestExample','```typescript\x0a','toLowerCase','selectItemsSource','Operations:\x20+','analyzeDatasetDetail','6410838HuvrUn','includes','toArray','getTableKey','-\x20**Method:**\x20','supportsCRUD','replace','generateSDKCode','getOperationCount','getEnabledOperationAnalyses','getFieldList','\x0a**Response\x20Example:**\x0a```json\x0a','filter','join','has','description','getOperationDocMeta','\x0a**Request\x20Example:**\x0a```json\x0a','**Table\x20Key:**\x20','values'];a0_0x16d8=function(){return _0x1b4cf2;};return a0_0x16d8();}export class DatasetAnalyzer{['analyzeDatasetList'](_0x521f89){const _0x5a18cf=a0_0x1815,_0x3d4151=_0x521f89[_0x5a18cf(0x13f)]?.[_0x5a18cf(0x124)]||_0x521f89[_0x5a18cf(0x124)]||_0x521f89,_0x3c65d9=new DatasetList(_0x3d4151);return{'total':_0x3c65d9[_0x5a18cf(0x12f)](),'datasets':_0x3c65d9[_0x5a18cf(0x10b)]()[_0x5a18cf(0x121)](_0xbd80eb=>this['analyzeDatasetItem'](_0xbd80eb))};}[a0_0x257182(0xed)](_0x2b4fbb){const _0x1e7dca=a0_0x257182;return{'id':_0x2b4fbb['id']||0x0,'name':_0x2b4fbb[_0x1e7dca(0x12b)]||'','code':_0x2b4fbb['datasetCode']||'','tableName':_0x2b4fbb['getTableName']?.()||_0x2b4fbb[_0x1e7dca(0x133)]||'','source':_0x2b4fbb['source']||'','description':_0x2b4fbb[_0x1e7dca(0x118)]||'','isVirtual':_0x2b4fbb['isVirtualTable']?.()||![]};}[a0_0x257182(0x108)](_0xcdb52c){const _0x5a0e6e=a0_0x257182,_0x28fb39=_0xcdb52c[_0x5a0e6e(0x13f)]||_0xcdb52c,_0x4eec03=new DrivenDataDetailPlus(_0x28fb39),_0xe261c0={'name':_0x4eec03[_0x5a0e6e(0x12b)],'code':_0x4eec03[_0x5a0e6e(0x138)],'tableName':_0x4eec03['getTableName'](),'tableKey':_0x4eec03[_0x5a0e6e(0x10c)]()},_0x1cfa81=_0x4eec03[_0x5a0e6e(0x113)](),_0x3cc9a3=_0x1cfa81[_0x5a0e6e(0x11d)]()[_0x5a0e6e(0x121)](_0x55bcb1=>{const _0x596f3b=_0x5a0e6e,_0x454e55=_0x55bcb1['extend'],_0x111354={'name':_0x55bcb1[_0x596f3b(0x12b)],'type':_0x55bcb1[_0x596f3b(0xe8)],'required':_0x55bcb1[_0x596f3b(0xe5)](),'primaryKey':_0x55bcb1['isPrimaryKey'](),'description':_0x55bcb1[_0x596f3b(0x118)]||'','autoIncrement':Boolean(_0x454e55['autoIncrement']),'createTime':Boolean(_0x454e55[_0x596f3b(0xf5)]),'updateTime':Boolean(_0x454e55[_0x596f3b(0xe6)])};if(_0x55bcb1[_0x596f3b(0xf2)]()){const _0x47ef46=_0x55bcb1[_0x596f3b(0xfe)]();if(_0x47ef46){_0x111354['isEnum']=!![],_0x111354[_0x596f3b(0x120)]=_0x47ef46[_0x596f3b(0x11c)];if(_0x47ef46[_0x596f3b(0xfd)]&&_0x47ef46[_0x596f3b(0xfd)][_0x596f3b(0x128)]>0x0)_0x111354['enumOptions']=_0x47ef46[_0x596f3b(0xfd)];else _0x47ef46['selectItemsSource']&&(_0x111354[_0x596f3b(0x140)]=_0x47ef46[_0x596f3b(0x106)]);}}return _0x111354;}),_0x1d22a8=_0x4eec03[_0x5a0e6e(0x112)]()[_0x5a0e6e(0x121)](_0x381338=>{const _0x29f0ea=_0x5a0e6e,_0x19363c={'name':_0x381338[_0x29f0ea(0x12b)],'displayName':_0x381338['displayName'],'type':_0x381338['type'],'method':_0x381338[_0x29f0ea(0xf3)],'path':_0x381338[_0x29f0ea(0xeb)],'requestFields':_0x381338[_0x29f0ea(0x126)],'requestFieldsCount':_0x381338[_0x29f0ea(0x126)][_0x29f0ea(0x128)],'requestExample':_0x381338[_0x29f0ea(0x103)],'responseExample':_0x381338[_0x29f0ea(0xf0)],'enabled':_0x381338[_0x29f0ea(0xf4)],'fullUrl':_0x381338[_0x29f0ea(0x134)]};return _0x19363c;});return{'basic':_0xe261c0,'fields':_0x3cc9a3,'operations':_0x1d22a8,'supportsCRUD':_0x4eec03[_0x5a0e6e(0x10e)](),'fieldCount':_0x4eec03[_0x5a0e6e(0xff)](),'operationCount':_0x4eec03[_0x5a0e6e(0x111)](),'enabledOperationCount':_0x1d22a8['length']};}[a0_0x257182(0x13b)](_0x3e33d5,_0x42d7b4){const _0x5baef6=a0_0x257182,_0x31ded6=_0x3e33d5[_0x5baef6(0x13f)]||_0x3e33d5,_0x31457a=new DrivenDataDetailPlus(_0x31ded6),_0x520390=_0x31457a[_0x5baef6(0x130)](_0x42d7b4);if(!_0x520390)return null;return{'name':_0x520390[_0x5baef6(0x12b)],'displayName':_0x520390[_0x5baef6(0xec)],'type':_0x520390[_0x5baef6(0xe8)],'method':_0x520390[_0x5baef6(0xf3)],'path':_0x520390['path'],'requestFields':_0x520390['requestFields'],'requestFieldsCount':_0x520390[_0x5baef6(0x126)][_0x5baef6(0x128)],'requestExample':_0x520390['requestExample'],'responseExample':_0x520390[_0x5baef6(0xf0)],'enabled':_0x520390['enabled'],'fullUrl':_0x520390[_0x5baef6(0x134)]};}[a0_0x257182(0x110)](_0x454da9,_0x4d7b7c,_0x12bbfc,_0x527e45=a0_0x257182(0x13e)){const _0x38f380=a0_0x257182,_0x8deba3=_0x454da9[_0x38f380(0x13f)]||_0x454da9,_0x3afa1f=new DrivenDataDetailPlus(_0x8deba3),_0x4e0838=_0x3afa1f[_0x38f380(0x119)](_0x4d7b7c);if(!_0x4e0838)return null;const _0x4ad53b=_0x3afa1f[_0x38f380(0x10c)](),_0x276fbd=_0x3afa1f[_0x38f380(0x12a)](),_0x45a68a=this[_0x38f380(0x132)](_0x276fbd),_0x49a88b=_0x3afa1f[_0x38f380(0x130)](_0x4d7b7c),_0xfe7837=_0x3afa1f[_0x38f380(0x143)](_0x4d7b7c,_0x12bbfc);return{'code':_0x4e0838[_0x38f380(0xee)][_0x38f380(0xe7)],'sdkCallInfo':{'modelName':_0x45a68a,'tableName':_0x276fbd,'tableKey':_0x4ad53b,'datasetCode':_0x3afa1f[_0x38f380(0x138)],'operationName':_0x4d7b7c},'requestExample':_0x49a88b?.[_0x38f380(0x103)],'responseExample':_0x49a88b?.[_0x38f380(0xf0)],'sdkInitCode':_0x3afa1f[_0x38f380(0x144)](_0x4ad53b),'usageExample':_0x4e0838[_0x38f380(0x102)],'fullExample':_0xfe7837||undefined};}[a0_0x257182(0xe9)](_0x35ad91){const _0x1910a3=a0_0x257182,_0x587379=_0x35ad91[_0x1910a3(0x13f)]||_0x35ad91,_0x2316c3=new DrivenDataDetailPlus(_0x587379),_0x26275b=_0x2316c3[_0x1910a3(0x112)]()['map'](_0x287e9a=>({'name':_0x287e9a[_0x1910a3(0x12b)],'displayName':_0x287e9a[_0x1910a3(0xec)],'description':_0x287e9a[_0x1910a3(0xec)]+_0x1910a3(0xfc)+_0x2316c3[_0x1910a3(0x12b)],'method':_0x287e9a[_0x1910a3(0xf3)],'path':_0x287e9a[_0x1910a3(0xeb)],'requestParams':_0x287e9a[_0x1910a3(0x126)],'requestExample':JSON['stringify'](_0x287e9a[_0x1910a3(0x103)],null,0x2),'responseExample':JSON['stringify'](_0x287e9a[_0x1910a3(0xf0)],null,0x2)}));return{'datasetName':_0x2316c3[_0x1910a3(0x12b)],'tableName':_0x2316c3[_0x1910a3(0x12a)](),'operations':_0x26275b};}['searchDatasets'](_0x12e2a7,_0x5ab51c){const _0x396085=a0_0x257182,_0x322353=new DatasetList(_0x12e2a7),_0x5702ce=_0x5ab51c['toLowerCase']();return _0x322353[_0x396085(0x10b)]()[_0x396085(0x115)](_0x22f020=>{const _0x3554bd=_0x396085,_0xc6a4e8=(_0x22f020[_0x3554bd(0x12b)]||'')['toLowerCase']()[_0x3554bd(0x10a)](_0x5702ce),_0x449b7f=(_0x22f020['getTableName']?.()||_0x22f020[_0x3554bd(0x133)]||'')[_0x3554bd(0x105)]()[_0x3554bd(0x10a)](_0x5702ce),_0x2668f3=(_0x22f020['datasetCode']||'')['toLowerCase']()[_0x3554bd(0x10a)](_0x5702ce),_0x20c076=(_0x22f020['description']||'')[_0x3554bd(0x105)]()['includes'](_0x5702ce);return _0xc6a4e8||_0x449b7f||_0x2668f3||_0x20c076;})[_0x396085(0x121)](_0x3c6986=>this[_0x396085(0xed)](_0x3c6986));}[a0_0x257182(0xfa)](_0x13b643){const _0x2d7cae=a0_0x257182,_0x186e25=_0x13b643[_0x2d7cae(0x13f)]||_0x13b643,_0x105565=new DrivenDataDetailPlus(_0x186e25);let _0x1537b0='#\x20'+_0x105565['name']+'\x0a\x0a';_0x1537b0+=_0x2d7cae(0xf1)+_0x105565[_0x2d7cae(0x138)]+'\x0a',_0x1537b0+=_0x2d7cae(0x137)+_0x105565[_0x2d7cae(0x12a)]()+'\x0a',_0x1537b0+=_0x2d7cae(0x11b)+_0x105565[_0x2d7cae(0x10c)]()+'\x0a\x0a',_0x1537b0+=_0x2d7cae(0x101);const _0x4ae89f=_0x105565['getFieldList']();_0x4ae89f['length']>0x0&&(_0x1537b0+='|\x20Field\x20Name\x20|\x20Code\x20|\x20Type\x20|\x20Required\x20|\x20Primary\x20Key\x20|\x20Enum\x20Values\x20|\x20Description\x20|\x0a',_0x1537b0+=_0x2d7cae(0x145),_0x4ae89f[_0x2d7cae(0x11d)]()[_0x2d7cae(0x142)](_0x59c5e3=>{const _0x4328ad=_0x2d7cae;let _0x17c4f8='';if(_0x59c5e3[_0x4328ad(0xf2)]()){const _0x5a9d00=_0x59c5e3['getEnumMeta']();if(_0x5a9d00&&_0x5a9d00[_0x4328ad(0x11c)]['length']>0x0){const _0x243c00=_0x5a9d00[_0x4328ad(0x11c)][_0x4328ad(0x122)](0x0,0x5);_0x17c4f8=_0x243c00[_0x4328ad(0x116)](',\x20'),_0x5a9d00[_0x4328ad(0x11c)][_0x4328ad(0x128)]>0x5&&(_0x17c4f8+='\x20...\x20('+_0x5a9d00[_0x4328ad(0x11c)][_0x4328ad(0x128)]+_0x4328ad(0x135));}}_0x1537b0+='|\x20'+_0x59c5e3[_0x4328ad(0x12b)]+_0x4328ad(0x12e)+_0x59c5e3['code']+'\x20|\x20'+_0x59c5e3[_0x4328ad(0xe8)]+'\x20|\x20'+(_0x59c5e3[_0x4328ad(0xe5)]()?'✅':'')+_0x4328ad(0x12e)+(_0x59c5e3[_0x4328ad(0x12c)]()?'🔑':'')+_0x4328ad(0x12e)+_0x17c4f8+_0x4328ad(0x12e)+(_0x59c5e3[_0x4328ad(0x118)]||'')+_0x4328ad(0x125);}),_0x1537b0+='\x0a');_0x1537b0+=_0x2d7cae(0x146);const _0xf1effc=_0x105565[_0x2d7cae(0x112)]();_0xf1effc[_0x2d7cae(0x142)](_0x48d160=>{const _0x326b82=_0x2d7cae;_0x1537b0+='###\x20'+_0x48d160['displayName']+'\x20('+_0x48d160[_0x326b82(0x12b)]+_0x326b82(0xf6),_0x1537b0+=_0x326b82(0x10d)+_0x48d160[_0x326b82(0xf3)]+'\x0a',_0x1537b0+=_0x326b82(0xef)+_0x48d160[_0x326b82(0xeb)]+'\x0a',_0x48d160[_0x326b82(0x134)]&&(_0x1537b0+=_0x326b82(0x139)+_0x48d160[_0x326b82(0x134)]+'\x0a'),_0x48d160[_0x326b82(0x126)]&&_0x48d160[_0x326b82(0x126)][_0x326b82(0x128)]>0x0&&(_0x1537b0+='-\x20**Request\x20Fields:**\x20'+_0x48d160[_0x326b82(0x126)][_0x326b82(0x116)](',\x20')+'\x0a'),_0x48d160[_0x326b82(0x103)]&&(_0x1537b0+=_0x326b82(0x11a)+JSON[_0x326b82(0x11e)](_0x48d160[_0x326b82(0x103)],null,0x2)+'\x0a```\x0a'),_0x48d160[_0x326b82(0xf0)]&&(_0x1537b0+=_0x326b82(0x114)+JSON[_0x326b82(0x11e)](_0x48d160['responseExample'],null,0x2)+_0x326b82(0xfb)),_0x1537b0+='\x0a';});const _0x324361=_0x105565['getTableKey'](),_0x39a393=_0x105565['generateSDKInitCode'](_0x324361);return _0x39a393&&(_0x1537b0+='##\x20SDK\x20Usage\x0a\x0a',_0x1537b0+=_0x2d7cae(0x104),_0x1537b0+=_0x39a393,_0x1537b0+=_0x2d7cae(0xf9)),_0x1537b0;}[a0_0x257182(0x13a)](_0x119d0e,_0x40df05){const _0xa562d=a0_0x257182,_0x2d1978=_0x119d0e['data']||_0x119d0e,_0x918f58=_0x40df05[_0xa562d(0x13f)]||_0x40df05,_0x3dab23=new DrivenDataDetailPlus(_0x2d1978),_0x591d14=new DrivenDataDetailPlus(_0x918f58),_0x5ee6c5=new Set(_0x3dab23['getFieldList']()[_0xa562d(0x11d)]()['map'](_0x56c620=>_0x56c620['name'])),_0x4425cd=new Set(_0x591d14[_0xa562d(0x113)]()[_0xa562d(0x11d)]()[_0xa562d(0x121)](_0x8484a8=>_0x8484a8[_0xa562d(0x12b)])),_0x58bf27=new Set(_0x3dab23[_0xa562d(0x112)]()['map'](_0x1bd312=>_0x1bd312['name'])),_0x575622=new Set(_0x591d14[_0xa562d(0x112)]()[_0xa562d(0x121)](_0x34104c=>_0x34104c[_0xa562d(0x12b)])),_0x2caa08={'fields':{'added':Array[_0xa562d(0xf7)](_0x4425cd)[_0xa562d(0x115)](_0x53aab6=>!_0x5ee6c5[_0xa562d(0x117)](_0x53aab6)),'removed':Array['from'](_0x5ee6c5)[_0xa562d(0x115)](_0x178c4a=>!_0x4425cd[_0xa562d(0x117)](_0x178c4a)),'modified':[]},'operations':{'added':Array[_0xa562d(0xf7)](_0x575622)[_0xa562d(0x115)](_0x942818=>!_0x58bf27[_0xa562d(0x117)](_0x942818)),'removed':Array[_0xa562d(0xf7)](_0x58bf27)['filter'](_0x128991=>!_0x575622['has'](_0x128991))}},_0x262df1='Fields:\x20+'+_0x2caa08['fields']['added']['length']+'/-'+_0x2caa08['fields']['removed'][_0xa562d(0x128)]+',\x20'+(_0xa562d(0x107)+_0x2caa08[_0xa562d(0x13d)]['added'][_0xa562d(0x128)]+'/-'+_0x2caa08[_0xa562d(0x13d)][_0xa562d(0x12d)][_0xa562d(0x128)]);return{'differences':_0x2caa08,'summary':_0x262df1};}['toPascalCase'](_0x381188){const _0x572b3a=a0_0x257182;return _0x381188['replace'](/[-_\s]+(.)?/g,(_0x39edab,_0x26bf86)=>_0x26bf86?_0x26bf86[_0x572b3a(0x136)]():'')[_0x572b3a(0x10f)](/^(.)/,(_0x12f274,_0x5746e8)=>_0x5746e8[_0x572b3a(0x136)]());}}
package/dist/api/cache.js CHANGED
@@ -1 +1 @@
1
- const a1_0x1461ec=a1_0x2256;(function(_0x3d2f57,_0x5ba82e){const _0x307ee6=a1_0x2256,_0x477653=_0x3d2f57();while(!![]){try{const _0x528cf1=parseInt(_0x307ee6(0x146))/0x1+-parseInt(_0x307ee6(0x139))/0x2*(parseInt(_0x307ee6(0x13d))/0x3)+parseInt(_0x307ee6(0x14a))/0x4+parseInt(_0x307ee6(0x147))/0x5*(-parseInt(_0x307ee6(0x148))/0x6)+-parseInt(_0x307ee6(0x13a))/0x7*(parseInt(_0x307ee6(0x144))/0x8)+parseInt(_0x307ee6(0x138))/0x9+parseInt(_0x307ee6(0x140))/0xa;if(_0x528cf1===_0x5ba82e)break;else _0x477653['push'](_0x477653['shift']());}catch(_0x246f53){_0x477653['push'](_0x477653['shift']());}}}(a1_0x52bd,0x9c0ca));function a1_0x52bd(){const _0x34e352=['3647912CleZCH','cache','4131630RLYJqa','316osSwFV','241458PvlTaJ','get','keys','1377dYEzKJ','clear','getStats','1130800bXNRWh','defaultTTL','set','size','136rsXDrT','data','163929XkgpJn','24645QgnofQ','426wEqQhs','from'];a1_0x52bd=function(){return _0x34e352;};return a1_0x52bd();}function a1_0x2256(_0x1fdb16,_0x1dcbc8){const _0x52bd41=a1_0x52bd();return a1_0x2256=function(_0x225678,_0x24a205){_0x225678=_0x225678-0x137;let _0x328b46=_0x52bd41[_0x225678];return _0x328b46;},a1_0x2256(_0x1fdb16,_0x1dcbc8);}export class SimpleCache{[a1_0x1461ec(0x137)]=new Map();['defaultTTL'];constructor(_0x572de4=0x5){this['defaultTTL']=_0x572de4*0x3c*0x3e8;}[a1_0x1461ec(0x13b)](_0x113d5f){const _0x30bff4=a1_0x1461ec,_0x492ce7=this[_0x30bff4(0x137)][_0x30bff4(0x13b)](_0x113d5f);if(!_0x492ce7)return null;const _0x2948d7=Date['now'](),_0x1956c9=_0x2948d7-_0x492ce7['timestamp'];if(_0x1956c9>this[_0x30bff4(0x141)])return this[_0x30bff4(0x137)]['delete'](_0x113d5f),null;const _0x4f64d5=Math['floor'](_0x1956c9/0x3e8);return _0x492ce7[_0x30bff4(0x145)];}['set'](_0x42806c,_0x4a0a3a){const _0x44d92b=a1_0x1461ec;this['cache'][_0x44d92b(0x142)](_0x42806c,{'data':_0x4a0a3a,'timestamp':Date['now']()});}[a1_0x1461ec(0x13e)](_0x52f660){const _0x3807e6=a1_0x1461ec;_0x52f660?this[_0x3807e6(0x137)]['delete'](_0x52f660):this[_0x3807e6(0x137)][_0x3807e6(0x13e)]();}[a1_0x1461ec(0x13f)](){const _0x1c94d0=a1_0x1461ec;return{'size':this[_0x1c94d0(0x137)][_0x1c94d0(0x143)],'ttlMinutes':this[_0x1c94d0(0x141)]/0xea60,'entries':Array[_0x1c94d0(0x149)](this['cache'][_0x1c94d0(0x13c)]())};}}export const apiCache=new SimpleCache(0x5);
1
+ const a1_0x1e1c22=a1_0x42e9;function a1_0x42e9(_0x23a9bf,_0x4495ca){const _0x4b9102=a1_0x4b91();return a1_0x42e9=function(_0x42e95c,_0x2c6694){_0x42e95c=_0x42e95c-0x75;let _0x1a8414=_0x4b9102[_0x42e95c];return _0x1a8414;},a1_0x42e9(_0x23a9bf,_0x4495ca);}(function(_0x3b70a8,_0x5778a6){const _0x4b1c3e=a1_0x42e9,_0x4d388c=_0x3b70a8();while(!![]){try{const _0x152edb=-parseInt(_0x4b1c3e(0x83))/0x1*(-parseInt(_0x4b1c3e(0x7c))/0x2)+parseInt(_0x4b1c3e(0x84))/0x3+parseInt(_0x4b1c3e(0x79))/0x4+parseInt(_0x4b1c3e(0x80))/0x5*(-parseInt(_0x4b1c3e(0x78))/0x6)+parseInt(_0x4b1c3e(0x7f))/0x7+parseInt(_0x4b1c3e(0x7b))/0x8+-parseInt(_0x4b1c3e(0x75))/0x9;if(_0x152edb===_0x5778a6)break;else _0x4d388c['push'](_0x4d388c['shift']());}catch(_0x2bb006){_0x4d388c['push'](_0x4d388c['shift']());}}}(a1_0x4b91,0x39f6c));export class SimpleCache{['cache']=new Map();[a1_0x1e1c22(0x7d)];constructor(_0x2d666d=0x5){this['defaultTTL']=_0x2d666d*0x3c*0x3e8;}[a1_0x1e1c22(0x82)](_0x1e114f){const _0x249625=a1_0x1e1c22,_0x9f1714=this[_0x249625(0x81)][_0x249625(0x82)](_0x1e114f);if(!_0x9f1714)return null;const _0xd6e6ea=Date['now'](),_0x214fc8=_0xd6e6ea-_0x9f1714[_0x249625(0x89)];if(_0x214fc8>this['defaultTTL'])return this[_0x249625(0x81)][_0x249625(0x86)](_0x1e114f),null;const _0x5682b4=Math['floor'](_0x214fc8/0x3e8);return _0x9f1714[_0x249625(0x76)];}[a1_0x1e1c22(0x87)](_0x1b3544,_0x312d55){const _0x54e423=a1_0x1e1c22;this['cache'][_0x54e423(0x87)](_0x1b3544,{'data':_0x312d55,'timestamp':Date[_0x54e423(0x7e)]()});}['clear'](_0x3a4c62){const _0x56ad36=a1_0x1e1c22;_0x3a4c62?this[_0x56ad36(0x81)][_0x56ad36(0x86)](_0x3a4c62):this[_0x56ad36(0x81)][_0x56ad36(0x77)]();}[a1_0x1e1c22(0x85)](){const _0x327ed8=a1_0x1e1c22;return{'size':this[_0x327ed8(0x81)][_0x327ed8(0x7a)],'ttlMinutes':this[_0x327ed8(0x7d)]/0xea60,'entries':Array[_0x327ed8(0x88)](this[_0x327ed8(0x81)][_0x327ed8(0x8a)]())};}}export const apiCache=new SimpleCache(0x5);function a1_0x4b91(){const _0x23c4a3=['keys','9673623NKYCHi','data','clear','1605906IxHmjC','1506640RVaGLN','size','1641416fmTiSb','265406YhUeRw','defaultTTL','now','2813307YLBLzY','5ivPGIV','cache','get','1vQVclT','1390431msWmIi','getStats','delete','set','from','timestamp'];a1_0x4b91=function(){return _0x23c4a3;};return a1_0x4b91();}
@@ -1 +1 @@
1
- const a2_0x35e7f7=a2_0x2693;(function(_0x3272c1,_0x5ac955){const _0x254529=a2_0x2693,_0x11b480=_0x3272c1();while(!![]){try{const _0x25d50c=parseInt(_0x254529(0x141))/0x1+parseInt(_0x254529(0x152))/0x2+parseInt(_0x254529(0x15c))/0x3*(parseInt(_0x254529(0x13d))/0x4)+-parseInt(_0x254529(0x161))/0x5+-parseInt(_0x254529(0x155))/0x6*(-parseInt(_0x254529(0x13a))/0x7)+-parseInt(_0x254529(0x160))/0x8+parseInt(_0x254529(0x14d))/0x9;if(_0x25d50c===_0x5ac955)break;else _0x11b480['push'](_0x11b480['shift']());}catch(_0x267fd5){_0x11b480['push'](_0x11b480['shift']());}}}(a2_0x35f0,0xcd4fc));import{getCookie}from'../auth/cookie-manager.js';import{getApiDomain}from'../auth/constants.js';function a2_0x2693(_0x4e3911,_0x434a4c){const _0x35f07c=a2_0x35f0();return a2_0x2693=function(_0x269353,_0x171a91){_0x269353=_0x269353-0x12b;let _0x5ceb8c=_0x35f07c[_0x269353];return _0x5ceb8c;},a2_0x2693(_0x4e3911,_0x434a4c);}import{apiCache}from'./cache.js';export class DevApiClient{[a2_0x35e7f7(0x15d)];['env'];['cookie'];[a2_0x35e7f7(0x15a)];constructor(_0x13e254){const _0xca294e=a2_0x35e7f7;this[_0xca294e(0x15d)]=_0x13e254[_0xca294e(0x15d)],this['env']=_0x13e254[_0xca294e(0x149)]||_0xca294e(0x130),this[_0xca294e(0x12e)]=_0x13e254[_0xca294e(0x12e)]||getCookie(),this[_0xca294e(0x15a)]=getApiDomain(this['env']);if(!this[_0xca294e(0x12e)])throw new Error(_0xca294e(0x15e));}async[a2_0x35e7f7(0x12b)](_0x4b18c1){const _0x462518=a2_0x35e7f7,_0x40d9fc=await fetch(_0x4b18c1,{'headers':{'Cookie':this[_0x462518(0x12e)]}});if(!_0x40d9fc['ok']){if(_0x40d9fc[_0x462518(0x15b)]===0x191)throw new Error('Authentication\x20failed.\x20Please\x20login\x20again.');let _0x1913db='';try{_0x1913db=await _0x40d9fc[_0x462518(0x134)]();}catch{}throw new Error('API\x20request\x20failed:\x20HTTP\x20'+_0x40d9fc['status']+(_0x1913db?'\x0a'+_0x1913db:''));}const _0x2b9829=await _0x40d9fc['json']();if(_0x2b9829&&typeof _0x2b9829===_0x462518(0x14a)&&'success'in _0x2b9829&&!_0x2b9829[_0x462518(0x139)]){const _0x6c8c59=_0x2b9829;throw new Error('API\x20error:\x20'+(_0x6c8c59[_0x462518(0x13b)]||_0x6c8c59['errorMsg']||_0x462518(0x159)));}return _0x2b9829;}async[a2_0x35e7f7(0x153)](_0x46496d,_0x5f32c1){const _0x6213e4=a2_0x35e7f7,_0x5c47a1=await fetch(_0x46496d,{'method':'POST','headers':{'Content-Type':_0x6213e4(0x14c),'Cookie':this['cookie']},'body':JSON[_0x6213e4(0x136)](_0x5f32c1)});if(!_0x5c47a1['ok']){if(_0x5c47a1[_0x6213e4(0x15b)]===0x191)throw new Error('Authentication\x20failed.\x20Please\x20login\x20again.');let _0x1c9836='';try{_0x1c9836=await _0x5c47a1[_0x6213e4(0x134)]();}catch{}throw new Error(_0x6213e4(0x150)+_0x5c47a1[_0x6213e4(0x15b)]+(_0x1c9836?'\x0a'+_0x1c9836:''));}const _0x3c797a=await _0x5c47a1[_0x6213e4(0x163)]();if(_0x3c797a&&typeof _0x3c797a===_0x6213e4(0x14a)&&'success'in _0x3c797a&&!_0x3c797a[_0x6213e4(0x139)]){const _0x357d1a=_0x3c797a;throw new Error(_0x6213e4(0x14b)+(_0x357d1a['message']||_0x357d1a[_0x6213e4(0x138)]||_0x6213e4(0x159)));}return _0x3c797a;}async[a2_0x35e7f7(0x135)](_0x477688){const _0x15029c=a2_0x35e7f7,_0x33855e=_0x477688?.[_0x15029c(0x143)]||0x3e7,_0x27821f=_0x477688?.[_0x15029c(0x157)]||0x1,_0x391388=_0x477688?.[_0x15029c(0x133)]||![],_0x4f0bed=_0x15029c(0x13f)+this[_0x15029c(0x15d)]+':'+this[_0x15029c(0x149)]+':'+_0x33855e+':'+_0x27821f;if(!_0x391388){const _0x34ba7a=apiCache[_0x15029c(0x12f)](_0x4f0bed);if(_0x34ba7a)return _0x34ba7a;}const _0x273bb1=this[_0x15029c(0x15a)]+_0x15029c(0x156)+this[_0x15029c(0x15d)]+'&pageSize='+_0x33855e+'&currentPage='+_0x27821f,_0x37d50a=await this[_0x15029c(0x12b)](_0x273bb1);return apiCache[_0x15029c(0x13e)](_0x4f0bed,_0x37d50a),_0x37d50a;}async[a2_0x35e7f7(0x12d)](_0x57f3ce,_0x12dfa0=![]){const _0x35d115=a2_0x35e7f7,_0x4c9394=_0x35d115(0x162)+this['appCode']+':'+this[_0x35d115(0x149)]+':'+_0x57f3ce;if(!_0x12dfa0){const _0x524a02=apiCache[_0x35d115(0x12f)](_0x4c9394);if(_0x524a02)return _0x524a02;}const _0x3fddf7=this[_0x35d115(0x15a)]+_0x35d115(0x137)+_0x57f3ce,_0x445b8b=await this[_0x35d115(0x12b)](_0x3fddf7);return apiCache[_0x35d115(0x13e)](_0x4c9394,_0x445b8b),_0x445b8b;}async[a2_0x35e7f7(0x151)](_0x2aa470){const _0x136152=a2_0x35e7f7,_0x70ae01=await this[_0x136152(0x135)]({'pageSize':0x3e7});if(!_0x70ae01['success']||!_0x70ae01[_0x136152(0x142)]?.[_0x136152(0x12c)])return{'success':!![],'data':{'tableData':[]}};const _0x2f1b41=_0x70ae01[_0x136152(0x142)][_0x136152(0x12c)][_0x136152(0x131)](_0x266e66=>{const _0x46a9ab=_0x136152,_0x5b03a2=_0x2aa470[_0x46a9ab(0x154)]();return _0x266e66[_0x46a9ab(0x13c)]?.[_0x46a9ab(0x154)]()['includes'](_0x5b03a2)||_0x266e66[_0x46a9ab(0x145)]?.[_0x46a9ab(0x154)]()[_0x46a9ab(0x146)](_0x5b03a2)||_0x266e66[_0x46a9ab(0x148)]?.[_0x46a9ab(0x14e)]?.['toLowerCase']()[_0x46a9ab(0x146)](_0x5b03a2)||_0x266e66[_0x46a9ab(0x158)]?.[_0x46a9ab(0x154)]()['includes'](_0x5b03a2);});return{'success':!![],'data':{'tableData':_0x2f1b41,'paging':{'totalCount':_0x2f1b41[_0x136152(0x132)],'currentPage':0x1,'pageSize':0x3e7}}};}async[a2_0x35e7f7(0x147)](_0x3f665c){const _0x2f8672=a2_0x35e7f7,_0x5126de=_0x3f665c?.['currentPage']||0x1,_0x565e90=_0x3f665c?.[_0x2f8672(0x143)]||0x3e7,_0x3dd564=this[_0x2f8672(0x15a)]+_0x2f8672(0x140),_0x428165={'appCode':this['appCode'],'currentPage':_0x5126de,'pageSize':_0x565e90},_0x140afd=await this['postRequest'](_0x3dd564,_0x428165);return _0x140afd;}async[a2_0x35e7f7(0x15f)](_0x2d8363){const _0x22de4f=a2_0x35e7f7,_0xba5a63=this['apiDomain']+_0x22de4f(0x144),_0x409f29={'sqlCode':_0x2d8363[_0x22de4f(0x14f)],..._0x2d8363['params']&&{'params':_0x2d8363['params']}};return await this[_0x22de4f(0x153)](_0xba5a63,_0x409f29);}}function a2_0x35f0(){const _0x442d74=['object','API\x20error:\x20','application/json','15472215YDNSYc','tableName','sqlCode','API\x20request\x20failed:\x20HTTP\x20','searchDatasets','1635096SMRrEE','postRequest','toLowerCase','102uWtyoF','/smartapi/dataset/getList?appCode=','currentPage','description','Unknown\x20error','apiDomain','status','154533FZCMFm','appCode','No\x20authentication\x20cookie\x20found.\x20Please\x20login\x20first.','executeSql','11644632sfnXjW','8155775kMMMVJ','dataset-detail:','json','request','tableData','getDatasetDetail','cookie','get','online','filter','length','forceRefresh','text','getDatasetList','stringify','/smartapi/dataset/get-driven-data?id=','errorMsg','success','19124CAnWCy','message','name','16TGqMOu','set','dataset-list:','/smartapi/custom/queryUserCustomSqlList','1138519jIWuHJ','data','pageSize','/api/custom/executeSql','code','includes','getCustomSqlList','dbtableConfig','env'];a2_0x35f0=function(){return _0x442d74;};return a2_0x35f0();}
1
+ function a2_0x3587(){const _0x19ccfa=['postRequest','3954843DSHwAr','dataset-list:','get','962625DRPxHa','success','appCode','online','14510pntRRG','pageSize','400URDPUC','sqlCode','1567432tKmkIk','Authentication\x20failed.\x20Please\x20login\x20again.','json','set','POST','message','Unknown\x20error','includes','params','dataset-detail:','getDatasetList','154WozPsC','/smartapi/dataset/get-driven-data?id=','name','10HzciBp','API\x20request\x20failed:\x20HTTP\x20','request','executeSql','application/json','description','231yIaRCN','toLowerCase','code','data','apiDomain','errorMsg','cookie','21396lwDUYY','/smartapi/custom/queryUserCustomSqlList','getDatasetDetail','tableData','object','length','env','status','filter','API\x20error:\x20','82993yJemPh','68592xbbFzq','/api/custom/executeSql','dbtableConfig','currentPage','text'];a2_0x3587=function(){return _0x19ccfa;};return a2_0x3587();}const a2_0x58c4f8=a2_0x163a;(function(_0x5c1636,_0x2fe871){const _0x2b7f67=a2_0x163a,_0x1ffd97=_0x5c1636();while(!![]){try{const _0x5c1a9d=-parseInt(_0x2b7f67(0xdb))/0x1*(parseInt(_0x2b7f67(0xfb))/0x2)+parseInt(_0x2b7f67(0xe5))/0x3+-parseInt(_0x2b7f67(0x108))/0x4*(parseInt(_0x2b7f67(0xeb))/0x5)+-parseInt(_0x2b7f67(0xdc))/0x6*(-parseInt(_0x2b7f67(0xf8))/0x7)+parseInt(_0x2b7f67(0xed))/0x8+parseInt(_0x2b7f67(0xe2))/0x9+parseInt(_0x2b7f67(0xe9))/0xa*(parseInt(_0x2b7f67(0x101))/0xb);if(_0x5c1a9d===_0x2fe871)break;else _0x1ffd97['push'](_0x1ffd97['shift']());}catch(_0x3c9d4f){_0x1ffd97['push'](_0x1ffd97['shift']());}}}(a2_0x3587,0x60839));import{getCookie}from'../auth/cookie-manager.js';import{getApiDomain}from'../auth/constants.js';import{apiCache}from'./cache.js';function a2_0x163a(_0x556ed0,_0x451e89){const _0x3587b2=a2_0x3587();return a2_0x163a=function(_0x163a13,_0x4c36d1){_0x163a13=_0x163a13-0xd7;let _0x45e9e9=_0x3587b2[_0x163a13];return _0x45e9e9;},a2_0x163a(_0x556ed0,_0x451e89);}export class DevApiClient{[a2_0x58c4f8(0xe7)];[a2_0x58c4f8(0xd7)];[a2_0x58c4f8(0x107)];[a2_0x58c4f8(0x105)];constructor(_0x5f4a31){const _0x52efbc=a2_0x58c4f8;this['appCode']=_0x5f4a31['appCode'],this[_0x52efbc(0xd7)]=_0x5f4a31[_0x52efbc(0xd7)]||_0x52efbc(0xe8),this['cookie']=_0x5f4a31[_0x52efbc(0x107)]||getCookie(),this[_0x52efbc(0x105)]=getApiDomain(this[_0x52efbc(0xd7)]);if(!this[_0x52efbc(0x107)])throw new Error('No\x20authentication\x20cookie\x20found.\x20Please\x20login\x20first.');}async['request'](_0x10fb1f){const _0x2fe0ee=a2_0x58c4f8,_0x288e12=await fetch(_0x10fb1f,{'headers':{'Cookie':this[_0x2fe0ee(0x107)]}});if(!_0x288e12['ok']){if(_0x288e12[_0x2fe0ee(0xd8)]===0x191)throw new Error(_0x2fe0ee(0xee));let _0x32b76b='';try{_0x32b76b=await _0x288e12[_0x2fe0ee(0xe0)]();}catch{}throw new Error(_0x2fe0ee(0xfc)+_0x288e12['status']+(_0x32b76b?'\x0a'+_0x32b76b:''));}const _0xc779c0=await _0x288e12[_0x2fe0ee(0xef)]();if(_0xc779c0&&typeof _0xc779c0===_0x2fe0ee(0x10c)&&_0x2fe0ee(0xe6)in _0xc779c0&&!_0xc779c0['success']){const _0x3afbde=_0xc779c0;throw new Error(_0x2fe0ee(0xda)+(_0x3afbde['message']||_0x3afbde['errorMsg']||_0x2fe0ee(0xf3)));}return _0xc779c0;}async[a2_0x58c4f8(0xe1)](_0x567c4d,_0x4483fd){const _0x1ffdea=a2_0x58c4f8,_0x25947c=await fetch(_0x567c4d,{'method':_0x1ffdea(0xf1),'headers':{'Content-Type':_0x1ffdea(0xff),'Cookie':this[_0x1ffdea(0x107)]},'body':JSON['stringify'](_0x4483fd)});if(!_0x25947c['ok']){if(_0x25947c['status']===0x191)throw new Error('Authentication\x20failed.\x20Please\x20login\x20again.');let _0x49c1ee='';try{_0x49c1ee=await _0x25947c['text']();}catch{}throw new Error(_0x1ffdea(0xfc)+_0x25947c[_0x1ffdea(0xd8)]+(_0x49c1ee?'\x0a'+_0x49c1ee:''));}const _0x42a4b5=await _0x25947c[_0x1ffdea(0xef)]();if(_0x42a4b5&&typeof _0x42a4b5==='object'&&_0x1ffdea(0xe6)in _0x42a4b5&&!_0x42a4b5[_0x1ffdea(0xe6)]){const _0x25cfd4=_0x42a4b5;throw new Error(_0x1ffdea(0xda)+(_0x25cfd4[_0x1ffdea(0xf2)]||_0x25cfd4[_0x1ffdea(0x106)]||_0x1ffdea(0xf3)));}return _0x42a4b5;}async[a2_0x58c4f8(0xf7)](_0x5ac530){const _0xe4f1a3=a2_0x58c4f8,_0x4ba010=_0x5ac530?.[_0xe4f1a3(0xea)]||0x3e7,_0x2f109f=_0x5ac530?.[_0xe4f1a3(0xdf)]||0x1,_0x2d9ab8=_0x5ac530?.['forceRefresh']||![],_0x1fcb63=_0xe4f1a3(0xe3)+this[_0xe4f1a3(0xe7)]+':'+this['env']+':'+_0x4ba010+':'+_0x2f109f;if(!_0x2d9ab8){const _0x24b358=apiCache[_0xe4f1a3(0xe4)](_0x1fcb63);if(_0x24b358)return _0x24b358;}const _0x184bfe=this[_0xe4f1a3(0x105)]+'/smartapi/dataset/getList?appCode='+this[_0xe4f1a3(0xe7)]+'&pageSize='+_0x4ba010+'&currentPage='+_0x2f109f,_0x233ba4=await this[_0xe4f1a3(0xfd)](_0x184bfe);return apiCache[_0xe4f1a3(0xf0)](_0x1fcb63,_0x233ba4),_0x233ba4;}async[a2_0x58c4f8(0x10a)](_0x28f425,_0x11c52d=![]){const _0x247a6c=a2_0x58c4f8,_0xf01b51=_0x247a6c(0xf6)+this[_0x247a6c(0xe7)]+':'+this[_0x247a6c(0xd7)]+':'+_0x28f425;if(!_0x11c52d){const _0x4d67a7=apiCache[_0x247a6c(0xe4)](_0xf01b51);if(_0x4d67a7)return _0x4d67a7;}const _0x41edb2=this[_0x247a6c(0x105)]+_0x247a6c(0xf9)+_0x28f425,_0x1bf209=await this[_0x247a6c(0xfd)](_0x41edb2);return apiCache['set'](_0xf01b51,_0x1bf209),_0x1bf209;}async['searchDatasets'](_0x1d826b){const _0x31702c=a2_0x58c4f8,_0x14a6e1=await this['getDatasetList']({'pageSize':0x3e7});if(!_0x14a6e1[_0x31702c(0xe6)]||!_0x14a6e1[_0x31702c(0x104)]?.[_0x31702c(0x10b)])return{'success':!![],'data':{'tableData':[]}};const _0x14ca0d=_0x14a6e1[_0x31702c(0x104)]['tableData'][_0x31702c(0xd9)](_0x2e1a96=>{const _0x352a97=_0x31702c,_0x93fc97=_0x1d826b[_0x352a97(0x102)]();return _0x2e1a96[_0x352a97(0xfa)]?.[_0x352a97(0x102)]()['includes'](_0x93fc97)||_0x2e1a96[_0x352a97(0x103)]?.['toLowerCase']()[_0x352a97(0xf4)](_0x93fc97)||_0x2e1a96[_0x352a97(0xde)]?.['tableName']?.['toLowerCase']()[_0x352a97(0xf4)](_0x93fc97)||_0x2e1a96[_0x352a97(0x100)]?.[_0x352a97(0x102)]()[_0x352a97(0xf4)](_0x93fc97);});return{'success':!![],'data':{'tableData':_0x14ca0d,'paging':{'totalCount':_0x14ca0d[_0x31702c(0x10d)],'currentPage':0x1,'pageSize':0x3e7}}};}async['getCustomSqlList'](_0x21355c){const _0x4c3d49=a2_0x58c4f8,_0x44e284=_0x21355c?.[_0x4c3d49(0xdf)]||0x1,_0x385c05=_0x21355c?.[_0x4c3d49(0xea)]||0x3e7,_0x3961d9=this['apiDomain']+_0x4c3d49(0x109),_0x3ea954={'appCode':this[_0x4c3d49(0xe7)],'currentPage':_0x44e284,'pageSize':_0x385c05},_0x2972bd=await this['postRequest'](_0x3961d9,_0x3ea954);return _0x2972bd;}async[a2_0x58c4f8(0xfe)](_0x4fd7ee){const _0x4f54a0=a2_0x58c4f8,_0x5878bb=this[_0x4f54a0(0x105)]+_0x4f54a0(0xdd),_0x3d7ec5={'sqlCode':_0x4fd7ee[_0x4f54a0(0xec)],..._0x4fd7ee[_0x4f54a0(0xf5)]&&{'params':_0x4fd7ee[_0x4f54a0(0xf5)]}};return await this[_0x4f54a0(0xe1)](_0x5878bb,_0x3d7ec5);}}
@@ -1 +1 @@
1
- const a3_0x43a184=a3_0x37d6;(function(_0xb084fb,_0x423b6e){const _0x250232=a3_0x37d6,_0x632168=_0xb084fb();while(!![]){try{const _0x3cc0ee=-parseInt(_0x250232(0x1f9))/0x1*(parseInt(_0x250232(0x1f0))/0x2)+-parseInt(_0x250232(0x1ee))/0x3*(parseInt(_0x250232(0x1fa))/0x4)+parseInt(_0x250232(0x1f3))/0x5*(parseInt(_0x250232(0x1f5))/0x6)+-parseInt(_0x250232(0x1eb))/0x7+parseInt(_0x250232(0x1f6))/0x8*(-parseInt(_0x250232(0x1ea))/0x9)+-parseInt(_0x250232(0x1ec))/0xa+parseInt(_0x250232(0x1f8))/0xb;if(_0x3cc0ee===_0x423b6e)break;else _0x632168['push'](_0x632168['shift']());}catch(_0x1efae0){_0x632168['push'](_0x632168['shift']());}}}(a3_0x519c,0x4501a));function a3_0x37d6(_0x306a89,_0x5dd5e5){const _0x519cfe=a3_0x519c();return a3_0x37d6=function(_0x37d6a9,_0x32dc18){_0x37d6a9=_0x37d6a9-0x1ea;let _0x3e5209=_0x519cfe[_0x37d6a9];return _0x3e5209;},a3_0x37d6(_0x306a89,_0x5dd5e5);}import{mkdirSync}from'node:fs';import{homedir}from'node:os';export const configDir=homedir()+a3_0x43a184(0x1f7);function a3_0x519c(){const _0x1d532f=['1372553dOlDIJ','1231910WnxRqn','https://daily-api.lovrabet.com','748173OwHYQt','https://user-daily.lovrabet.com','51230kOPMsO','https://api.lovrabet.com','online','30BlUXJi','/cookie','442938oMbqEJ','32lKLmGG','/.lovrabet','10702736aSYdGc','1fIcnXs','4bnCrxm','1212723BoAZXZ'];a3_0x519c=function(){return _0x1d532f;};return a3_0x519c();}export const cookieFile=configDir+a3_0x43a184(0x1f4);mkdirSync(configDir,{'recursive':!![]});export const getApiDomain=(_0x5d131f=a3_0x43a184(0x1f2))=>_0x5d131f===a3_0x43a184(0x1f2)?a3_0x43a184(0x1f1):a3_0x43a184(0x1ed);export const getUserDomain=(_0x13c431=a3_0x43a184(0x1f2))=>_0x13c431===a3_0x43a184(0x1f2)?'https://user.lovrabet.com':a3_0x43a184(0x1ef);
1
+ const a3_0x3cf190=a3_0x438e;(function(_0x4b7613,_0x311c30){const _0x2c1a5c=a3_0x438e,_0x22cfec=_0x4b7613();while(!![]){try{const _0x2c4e70=parseInt(_0x2c1a5c(0xb9))/0x1+parseInt(_0x2c1a5c(0xb4))/0x2*(-parseInt(_0x2c1a5c(0xb5))/0x3)+-parseInt(_0x2c1a5c(0xbd))/0x4+-parseInt(_0x2c1a5c(0xb3))/0x5+parseInt(_0x2c1a5c(0xb2))/0x6*(parseInt(_0x2c1a5c(0xbb))/0x7)+-parseInt(_0x2c1a5c(0xb8))/0x8*(parseInt(_0x2c1a5c(0xbe))/0x9)+parseInt(_0x2c1a5c(0xbc))/0xa*(parseInt(_0x2c1a5c(0xb6))/0xb);if(_0x2c4e70===_0x311c30)break;else _0x22cfec['push'](_0x22cfec['shift']());}catch(_0x190587){_0x22cfec['push'](_0x22cfec['shift']());}}}(a3_0x649d,0x5135e));import{mkdirSync}from'node:fs';function a3_0x438e(_0xd4f07c,_0x27837d){const _0x649d9e=a3_0x649d();return a3_0x438e=function(_0x438ecf,_0x15cb7e){_0x438ecf=_0x438ecf-0xb2;let _0x1df8ba=_0x649d9e[_0x438ecf];return _0x1df8ba;},a3_0x438e(_0xd4f07c,_0x27837d);}import{homedir}from'node:os';function a3_0x649d(){const _0x3c1d69=['/cookie','4230Cmtdxa','882695ydnWQF','782776pCplqd','3VcRZPQ','18425NaBHUU','https://user-daily.lovrabet.com','16iSDXhM','153539TfqIvw','https://api.lovrabet.com','1092CksBXR','9220TzFqvs','2493432ZApoxD','1277757wXfZWv','online'];a3_0x649d=function(){return _0x3c1d69;};return a3_0x649d();}export const configDir=homedir()+'/.lovrabet';export const cookieFile=configDir+a3_0x3cf190(0xc0);mkdirSync(configDir,{'recursive':!![]});export const getApiDomain=(_0x36dfc9='online')=>_0x36dfc9===a3_0x3cf190(0xbf)?a3_0x3cf190(0xba):'https://daily-api.lovrabet.com';export const getUserDomain=(_0x4af2a4='online')=>_0x4af2a4===a3_0x3cf190(0xbf)?'https://user.lovrabet.com':a3_0x3cf190(0xb7);
@@ -1 +1 @@
1
- (function(_0x32ca3c,_0x1ba5cd){const _0xa290a4=a4_0x1840,_0x6268ad=_0x32ca3c();while(!![]){try{const _0x3a4642=parseInt(_0xa290a4(0xf1))/0x1+parseInt(_0xa290a4(0xee))/0x2+parseInt(_0xa290a4(0xea))/0x3*(-parseInt(_0xa290a4(0xe8))/0x4)+-parseInt(_0xa290a4(0xe5))/0x5+parseInt(_0xa290a4(0xe9))/0x6+-parseInt(_0xa290a4(0xec))/0x7+parseInt(_0xa290a4(0xe7))/0x8*(parseInt(_0xa290a4(0xed))/0x9);if(_0x3a4642===_0x1ba5cd)break;else _0x6268ad['push'](_0x6268ad['shift']());}catch(_0x19430d){_0x6268ad['push'](_0x6268ad['shift']());}}}(a4_0x3eec,0x935d0));import{readFileSync,writeFileSync}from'node:fs';import{cookieFile}from'./constants.js';function a4_0x3eec(){const _0x131be2=['16loqOFw','2295248rlqqnE','4592442GQeMZY','3HDWEHf','Failed\x20to\x20save\x20cookie\x20to\x20','4650863zmHnin','144486exhZFM','1732626NTJbwx','utf-8','trim','1172197skdAqX','length','4971020YUexjE','message'];a4_0x3eec=function(){return _0x131be2;};return a4_0x3eec();}export function getCookie(){const _0x2400be=a4_0x1840;try{return readFileSync(cookieFile,_0x2400be(0xef))[_0x2400be(0xf0)]();}catch{return'';}}export function saveCookie(_0x592f88){const _0x39716b=a4_0x1840;try{writeFileSync(cookieFile,_0x592f88,_0x39716b(0xef));}catch(_0x204f77){throw new Error(_0x39716b(0xeb)+cookieFile+':\x20'+_0x204f77[_0x39716b(0xe6)]);}}export function hasCookie(){const _0x533887=a4_0x1840,_0x4777ea=getCookie();return _0x4777ea[_0x533887(0xf2)]>0x0;}function a4_0x1840(_0x1e878c,_0xf3875c){const _0x3eeccb=a4_0x3eec();return a4_0x1840=function(_0x184080,_0x4d882a){_0x184080=_0x184080-0xe5;let _0x3d6907=_0x3eeccb[_0x184080];return _0x3d6907;},a4_0x1840(_0x1e878c,_0xf3875c);}export function clearCookie(){const _0x232ffa=a4_0x1840;try{writeFileSync(cookieFile,'',_0x232ffa(0xef));}catch{}}
1
+ (function(_0xdb6bf0,_0x7fb01d){const _0x38edf7=a4_0x1e5b,_0x588fd4=_0xdb6bf0();while(!![]){try{const _0x1e046e=-parseInt(_0x38edf7(0x1b4))/0x1+-parseInt(_0x38edf7(0x1b2))/0x2*(parseInt(_0x38edf7(0x1b7))/0x3)+-parseInt(_0x38edf7(0x1b6))/0x4*(-parseInt(_0x38edf7(0x1b9))/0x5)+parseInt(_0x38edf7(0x1b1))/0x6*(-parseInt(_0x38edf7(0x1b8))/0x7)+parseInt(_0x38edf7(0x1ba))/0x8+-parseInt(_0x38edf7(0x1b5))/0x9+-parseInt(_0x38edf7(0x1af))/0xa*(-parseInt(_0x38edf7(0x1ae))/0xb);if(_0x1e046e===_0x7fb01d)break;else _0x588fd4['push'](_0x588fd4['shift']());}catch(_0x30541d){_0x588fd4['push'](_0x588fd4['shift']());}}}(a4_0x2b59,0x3c34a));import{readFileSync,writeFileSync}from'node:fs';import{cookieFile}from'./constants.js';export function getCookie(){const _0x448311=a4_0x1e5b;try{return readFileSync(cookieFile,_0x448311(0x1b0))['trim']();}catch{return'';}}function a4_0x1e5b(_0x359757,_0x44e7bc){const _0x2b59fe=a4_0x2b59();return a4_0x1e5b=function(_0x1e5bc5,_0x569e8b){_0x1e5bc5=_0x1e5bc5-0x1ae;let _0x268b0d=_0x2b59fe[_0x1e5bc5];return _0x268b0d;},a4_0x1e5b(_0x359757,_0x44e7bc);}export function saveCookie(_0x1cedd2){const _0x6afd04=a4_0x1e5b;try{writeFileSync(cookieFile,_0x1cedd2,_0x6afd04(0x1b0));}catch(_0x7426e){throw new Error(_0x6afd04(0x1b3)+cookieFile+':\x20'+_0x7426e['message']);}}function a4_0x2b59(){const _0x1e5b66=['utf-8','36852LUmHMx','3794poXvgF','Failed\x20to\x20save\x20cookie\x20to\x20','127165RTVbUA','1796670omeVjQ','621332WanhFs','255XbJLcg','147WNMSvK','5haMwRh','1264472xJNrbI','length','27764oarEYM','2180TORGsI'];a4_0x2b59=function(){return _0x1e5b66;};return a4_0x2b59();}export function hasCookie(){const _0x323531=a4_0x1e5b,_0x25b920=getCookie();return _0x25b920[_0x323531(0x1bb)]>0x0;}export function clearCookie(){const _0x18d7fa=a4_0x1e5b;try{writeFileSync(cookieFile,'',_0x18d7fa(0x1b0));}catch{}}
@@ -1 +1 @@
1
- function a5_0x1f9a(){const _0x5b0781=['online','session','2146744tnZYZp','3463355dZzSvv','165486pPPSIv','4015869PiDbWy','/api/auth/get-session','2723520RJgIXH','696840YfIHgx','32871yBBbeP','json','133TnShmF'];a5_0x1f9a=function(){return _0x5b0781;};return a5_0x1f9a();}const a5_0x2023bd=a5_0x54c2;function a5_0x54c2(_0x4727de,_0xc097f5){const _0x1f9a39=a5_0x1f9a();return a5_0x54c2=function(_0x54c2d8,_0x2bde2a){_0x54c2d8=_0x54c2d8-0x1aa;let _0x36cc4a=_0x1f9a39[_0x54c2d8];return _0x36cc4a;},a5_0x54c2(_0x4727de,_0xc097f5);}(function(_0x367ba6,_0x2588ab){const _0x55c279=a5_0x54c2,_0x85c5fa=_0x367ba6();while(!![]){try{const _0x9cda60=-parseInt(_0x55c279(0x1b0))/0x1+parseInt(_0x55c279(0x1b5))/0x2+parseInt(_0x55c279(0x1ac))/0x3+parseInt(_0x55c279(0x1ae))/0x4+-parseInt(_0x55c279(0x1aa))/0x5+parseInt(_0x55c279(0x1ab))/0x6+-parseInt(_0x55c279(0x1b2))/0x7*(parseInt(_0x55c279(0x1af))/0x8);if(_0x9cda60===_0x2588ab)break;else _0x85c5fa['push'](_0x85c5fa['shift']());}catch(_0x3edfb8){_0x85c5fa['push'](_0x85c5fa['shift']());}}}(a5_0x1f9a,0xb4a4f));import{getCookie}from'./cookie-manager.js';import{getUserDomain}from'./constants.js';export async function isSessionValid(_0x1d0abf=a5_0x2023bd(0x1b3)){const _0x29ea00=a5_0x2023bd,_0xef09dd=getCookie();if(!_0xef09dd)return![];try{const _0x107c71=await fetch(getUserDomain(_0x1d0abf)+_0x29ea00(0x1ad),{'headers':{'cookie':_0xef09dd}});if(!_0x107c71['ok'])return![];const _0x537b7a=await _0x107c71[_0x29ea00(0x1b1)]();return!!(_0x537b7a?.[_0x29ea00(0x1b4)]&&_0x537b7a?.['user']);}catch{return![];}}
1
+ (function(_0x2c725a,_0xe43c30){const _0x102bbd=a5_0x25b7,_0x49c966=_0x2c725a();while(!![]){try{const _0x367435=parseInt(_0x102bbd(0x1ac))/0x1+parseInt(_0x102bbd(0x1b3))/0x2+parseInt(_0x102bbd(0x1a9))/0x3+parseInt(_0x102bbd(0x1b1))/0x4+parseInt(_0x102bbd(0x1aa))/0x5*(parseInt(_0x102bbd(0x1ad))/0x6)+-parseInt(_0x102bbd(0x1a8))/0x7*(parseInt(_0x102bbd(0x1ab))/0x8)+-parseInt(_0x102bbd(0x1b0))/0x9;if(_0x367435===_0xe43c30)break;else _0x49c966['push'](_0x49c966['shift']());}catch(_0x816de9){_0x49c966['push'](_0x49c966['shift']());}}}(a5_0x6c71,0xb107d));function a5_0x25b7(_0x2c556f,_0x27ad6b){const _0x6c71ca=a5_0x6c71();return a5_0x25b7=function(_0x25b7c5,_0x215810){_0x25b7c5=_0x25b7c5-0x1a8;let _0x5c3bc5=_0x6c71ca[_0x25b7c5];return _0x5c3bc5;},a5_0x25b7(_0x2c556f,_0x27ad6b);}import{getCookie}from'./cookie-manager.js';import{getUserDomain}from'./constants.js';export async function isSessionValid(_0x578668='online'){const _0x2355f5=a5_0x25b7,_0x51ee0c=getCookie();if(!_0x51ee0c)return![];try{const _0x56d2bf=await fetch(getUserDomain(_0x578668)+_0x2355f5(0x1af),{'headers':{'cookie':_0x51ee0c}});if(!_0x56d2bf['ok'])return![];const _0x35f78f=await _0x56d2bf[_0x2355f5(0x1b4)]();return!!(_0x35f78f?.[_0x2355f5(0x1ae)]&&_0x35f78f?.[_0x2355f5(0x1b2)]);}catch{return![];}}function a5_0x6c71(){const _0x32f9af=['961023MDUhNo','525hlRzjH','22240pCsTfB','325248pwgvLO','67290XKpLGQ','session','/api/auth/get-session','27682605GlJJKD','4385172aXroxb','user','2174450CLrjTr','json','518cXlOWf'];a5_0x6c71=function(){return _0x32f9af;};return a5_0x6c71();}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a6_0x16d074=a6_0x37b5;(function(_0x4a422f,_0xf17d8a){const _0x815e90=a6_0x37b5,_0x3b0777=_0x4a422f();while(!![]){try{const _0x486e60=parseInt(_0x815e90(0x9a))/0x1*(parseInt(_0x815e90(0x9b))/0x2)+-parseInt(_0x815e90(0xa2))/0x3+-parseInt(_0x815e90(0xa1))/0x4+-parseInt(_0x815e90(0xab))/0x5*(parseInt(_0x815e90(0xae))/0x6)+parseInt(_0x815e90(0xa7))/0x7*(-parseInt(_0x815e90(0xa8))/0x8)+parseInt(_0x815e90(0xb0))/0x9*(-parseInt(_0x815e90(0xa9))/0xa)+parseInt(_0x815e90(0xad))/0xb;if(_0x486e60===_0xf17d8a)break;else _0x3b0777['push'](_0x3b0777['shift']());}catch(_0x1d32b7){_0x3b0777['push'](_0x3b0777['shift']());}}}(a6_0x3387,0x8ad9c));import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';function a6_0x37b5(_0x5622ad,_0xadceaf){const _0x33873a=a6_0x3387();return a6_0x37b5=function(_0x37b522,_0x6805ea){_0x37b522=_0x37b522-0x9a;let _0xc34b47=_0x33873a[_0x37b522];return _0xc34b47;},a6_0x37b5(_0x5622ad,_0xadceaf);}function a6_0x3387(){const _0xf0133f=['env','error','Failed\x20to\x20start\x20Lovrabet\x20Dataset\x20MCP\x20Server:','161749zeXfpo','208EoPtvH','10aUkCMG','log','4005035quKkvr','SIGTERM','31523602nuxBIW','6GcKkhU','catch','3234474hYebHZ','logInfo','2AboLCc','737636TCSDoV','connect','SIGINT','exit','MCP_DEBUG','Unhandled\x20error:','4229448ifvnom','648447bBKsCo','Shutting\x20down\x20Lovrabet\x20Dataset\x20MCP\x20Server...'];a6_0x3387=function(){return _0xf0133f;};return a6_0x3387();}import{createServer}from'./server.js';async function main(){const _0x24001d=a6_0x37b5;try{const _0x425f90=createServer(),_0x6bd1e7=new StdioServerTransport();_0x425f90[_0x24001d(0xb1)](),await _0x425f90[_0x24001d(0x9c)](_0x6bd1e7),process['on'](_0x24001d(0x9d),async()=>{const _0x5ac761=_0x24001d;process[_0x5ac761(0xa4)][_0x5ac761(0x9f)]&&console[_0x5ac761(0xaa)]('Shutting\x20down\x20Lovrabet\x20Dataset\x20MCP\x20Server...'),process[_0x5ac761(0x9e)](0x0);}),process['on'](_0x24001d(0xac),async()=>{const _0xa0e111=_0x24001d;process['env'][_0xa0e111(0x9f)]&&console[_0xa0e111(0xaa)](_0xa0e111(0xa3)),process[_0xa0e111(0x9e)](0x0);});}catch(_0x41e4c7){console['error'](_0x24001d(0xa6),_0x41e4c7),process['exit'](0x1);}}main()[a6_0x16d074(0xaf)](_0x15f9b7=>{const _0x1a35eb=a6_0x16d074;console[_0x1a35eb(0xa5)](_0x1a35eb(0xa0),_0x15f9b7),process[_0x1a35eb(0x9e)](0x1);});
2
+ const a6_0x138b50=a6_0x5503;(function(_0xa3290f,_0x1f8864){const _0x58412b=a6_0x5503,_0x4c1e16=_0xa3290f();while(!![]){try{const _0x3366b7=-parseInt(_0x58412b(0x17b))/0x1+parseInt(_0x58412b(0x187))/0x2+parseInt(_0x58412b(0x184))/0x3+-parseInt(_0x58412b(0x179))/0x4+-parseInt(_0x58412b(0x18a))/0x5*(-parseInt(_0x58412b(0x181))/0x6)+parseInt(_0x58412b(0x185))/0x7*(-parseInt(_0x58412b(0x186))/0x8)+parseInt(_0x58412b(0x17d))/0x9;if(_0x3366b7===_0x1f8864)break;else _0x4c1e16['push'](_0x4c1e16['shift']());}catch(_0x4a1321){_0x4c1e16['push'](_0x4c1e16['shift']());}}}(a6_0x5d83,0x948a6));function a6_0x5d83(){const _0x358802=['Shutting\x20down\x20Lovrabet\x20Dataset\x20MCP\x20Server...','36EXIGVa','logInfo','Failed\x20to\x20start\x20Lovrabet\x20Dataset\x20MCP\x20Server:','1093086PDTcaZ','28EsmQGs','149016pQEyKc','2133816YuTIZD','Unhandled\x20error:','exit','53175ecTfDF','SIGINT','catch','3255892wiLKSM','env','661909RLOrxf','log','5973588QhpXtM','MCP_DEBUG','error'];a6_0x5d83=function(){return _0x358802;};return a6_0x5d83();}import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{createServer}from'./server.js';async function main(){const _0x385573=a6_0x5503;try{const _0x30933a=createServer(),_0x2014e5=new StdioServerTransport();_0x30933a[_0x385573(0x182)](),await _0x30933a['connect'](_0x2014e5),process['on'](_0x385573(0x177),async()=>{const _0x45571f=_0x385573;process[_0x45571f(0x17a)][_0x45571f(0x17e)]&&console[_0x45571f(0x17c)](_0x45571f(0x180)),process[_0x45571f(0x189)](0x0);}),process['on']('SIGTERM',async()=>{const _0xbdf902=_0x385573;process[_0xbdf902(0x17a)][_0xbdf902(0x17e)]&&console[_0xbdf902(0x17c)](_0xbdf902(0x180)),process[_0xbdf902(0x189)](0x0);});}catch(_0x1f1157){console[_0x385573(0x17f)](_0x385573(0x183),_0x1f1157),process[_0x385573(0x189)](0x1);}}function a6_0x5503(_0x515693,_0xa01661){const _0x5d83c0=a6_0x5d83();return a6_0x5503=function(_0x5503ed,_0x4a3b59){_0x5503ed=_0x5503ed-0x177;let _0x5d7f56=_0x5d83c0[_0x5503ed];return _0x5d7f56;},a6_0x5503(_0x515693,_0xa01661);}main()[a6_0x138b50(0x178)](_0x3738ea=>{const _0x4193f7=a6_0x138b50;console[_0x4193f7(0x17f)](_0x4193f7(0x188),_0x3738ea),process[_0x4193f7(0x189)](0x1);});
package/dist/server.js CHANGED
@@ -1 +1 @@
1
- const a7_0x3e00e7=a7_0xda30;(function(_0x2b8960,_0x1b5c73){const _0x5ca4e9=a7_0xda30,_0xf78b8e=_0x2b8960();while(!![]){try{const _0x1cd484=parseInt(_0x5ca4e9(0x1c2))/0x1+parseInt(_0x5ca4e9(0x1b7))/0x2+parseInt(_0x5ca4e9(0x1c6))/0x3*(-parseInt(_0x5ca4e9(0x1d8))/0x4)+-parseInt(_0x5ca4e9(0x1b6))/0x5*(parseInt(_0x5ca4e9(0x1dd))/0x6)+-parseInt(_0x5ca4e9(0x1c4))/0x7+-parseInt(_0x5ca4e9(0x1b9))/0x8+-parseInt(_0x5ca4e9(0x1d3))/0x9*(-parseInt(_0x5ca4e9(0x1bd))/0xa);if(_0x1cd484===_0x1b5c73)break;else _0xf78b8e['push'](_0xf78b8e['shift']());}catch(_0x45cacd){_0xf78b8e['push'](_0xf78b8e['shift']());}}}(a7_0x20b7,0x593f1));import{Server}from'@modelcontextprotocol/sdk/server/index.js';function a7_0x20b7(){const _0x4f33b1=['message','get_dataset_detail','text','getServer','list_sql_queries','server','🚀\x20Lovrabet\x20Dataset\x20MCP\x20Server\x20(Development\x20API)','search_datasets','Available\x20tools:','description','version','name','9orYGKA','params','Unknown\x20tool:\x20','../package.json','generate_sdk_code','152WzNvsl','✅\x20Server\x20started\x20successfully','setRequestHandler','env','\x20\x20Use\x20the\x20\x22login\x22\x20tool\x20first\x20to\x20authenticate.','6LfEmCa','log','login','704155iVECHW','968980BZoaoM','list_datasets','1464336YfdbYO','connect','lovrabet-dataset-mcp','forEach','4447670TZpInI','🔐\x20Authentication:','registerToolHandlers','get_dataset_operations','Unknown\x20error\x20occurred','423593EcOAbo','url','2407706kTlUJY','get_operation_detail','25221YistVc'];a7_0x20b7=function(){return _0x4f33b1;};return a7_0x20b7();}import{ListToolsRequestSchema,CallToolRequestSchema}from'@modelcontextprotocol/sdk/types.js';import{TOOL_DEFINITIONS,listDatasets,getDatasetDetail,getDatasetOperations,getOperationDetail,generateSDKCode,searchDatasets,listSqlQueries}from'./tools/index.js';import{createRequire}from'module';const require=createRequire(import.meta[a7_0x3e00e7(0x1c3)]),packageJson=require(a7_0x3e00e7(0x1d6));import{login}from'./tools/login.js';function a7_0xda30(_0x3bcfe5,_0xa909d2){const _0x20b7df=a7_0x20b7();return a7_0xda30=function(_0xda30e2,_0x5db69f){_0xda30e2=_0xda30e2-0x1b4;let _0x55e56e=_0x20b7df[_0xda30e2];return _0x55e56e;},a7_0xda30(_0x3bcfe5,_0xa909d2);}export class LovrabetDatasetMCPServer{[a7_0x3e00e7(0x1cc)];constructor(){const _0x42b556=a7_0x3e00e7;this[_0x42b556(0x1cc)]=new Server({'name':_0x42b556(0x1bb),'version':packageJson[_0x42b556(0x1d1)]},{'capabilities':{'tools':{}}}),this[_0x42b556(0x1bf)]();}[a7_0x3e00e7(0x1bf)](){const _0x5fbe51=a7_0x3e00e7;this[_0x5fbe51(0x1cc)][_0x5fbe51(0x1da)](ListToolsRequestSchema,async()=>({'tools':TOOL_DEFINITIONS})),this[_0x5fbe51(0x1cc)]['setRequestHandler'](CallToolRequestSchema,async _0x26e8dc=>{const _0x190847=_0x5fbe51,{name:_0x5d2fee,arguments:_0x38c3ca}=_0x26e8dc[_0x190847(0x1d4)];try{let _0x3b5778;switch(_0x5d2fee){case _0x190847(0x1b5):_0x3b5778=await login(_0x38c3ca||{});break;case _0x190847(0x1b8):_0x3b5778=await listDatasets(_0x38c3ca);break;case _0x190847(0x1c8):_0x3b5778=await getDatasetDetail(_0x38c3ca);break;case _0x190847(0x1c0):_0x3b5778=await getDatasetOperations(_0x38c3ca);break;case _0x190847(0x1c5):_0x3b5778=await getOperationDetail(_0x38c3ca);break;case _0x190847(0x1d7):_0x3b5778=await generateSDKCode(_0x38c3ca);break;case _0x190847(0x1ce):_0x3b5778=await searchDatasets(_0x38c3ca);break;case _0x190847(0x1cb):_0x3b5778=await listSqlQueries(_0x38c3ca);break;default:throw new Error(_0x190847(0x1d5)+_0x5d2fee);}return{'content':[{'type':_0x190847(0x1c9),'text':JSON['stringify'](_0x3b5778,null,0x2)}]};}catch(_0x3619d1){return{'content':[{'type':'text','text':JSON['stringify']({'error':!![],'message':_0x3619d1[_0x190847(0x1c7)]||_0x190847(0x1c1),'tool':_0x5d2fee},null,0x2)}],'isError':!![]};}});}[a7_0x3e00e7(0x1ca)](){const _0x446df7=a7_0x3e00e7;return this[_0x446df7(0x1cc)];}async[a7_0x3e00e7(0x1ba)](_0x2ede9c){const _0x2382c3=a7_0x3e00e7;await this['server'][_0x2382c3(0x1ba)](_0x2ede9c);}['logInfo'](){const _0x714348=a7_0x3e00e7;if(!process[_0x714348(0x1db)]['MCP_DEBUG'])return;console[_0x714348(0x1b4)](_0x714348(0x1cd)),console[_0x714348(0x1b4)]('📌\x20Version:\x20'+packageJson[_0x714348(0x1d1)]),console['log'](_0x714348(0x1d9)),console['log'](''),console[_0x714348(0x1b4)](_0x714348(0x1be)),console[_0x714348(0x1b4)]('\x20\x20This\x20server\x20uses\x20cookie-based\x20authentication.'),console[_0x714348(0x1b4)](_0x714348(0x1dc)),console['log'](''),console[_0x714348(0x1b4)](_0x714348(0x1cf)),TOOL_DEFINITIONS[_0x714348(0x1bc)](_0x381694=>{const _0x4ade8d=_0x714348;console['log']('\x20\x20-\x20'+_0x381694[_0x4ade8d(0x1d2)]+':\x20'+_0x381694[_0x4ade8d(0x1d0)]);});}}export function createServer(){return new LovrabetDatasetMCPServer();}
1
+ function a7_0x3432(){const _0x454d50=['connect','description','logInfo','✅\x20Server\x20started\x20successfully','1922811vCScVk','stringify','generate_sdk_code','6399692vmXvvP','28BlwPZv','server','log','getServer','12753DZuAgd','Unknown\x20error\x20occurred','get_dataset_operations','setRequestHandler','Unknown\x20tool:\x20','🚀\x20Lovrabet\x20Dataset\x20MCP\x20Server\x20(Development\x20API)','../package.json','forEach','name','registerToolHandlers','text','MCP_DEBUG','list_sql_queries','138481KBxLMm','list_datasets','35712KhmNPF','params','url','12xhbtdC','155cDzsnr','\x20\x20This\x20server\x20uses\x20cookie-based\x20authentication.','32ShegNb','🔐\x20Authentication:','2VxLzAH','3843DrhJVd','1730GvGdAe','search_datasets','lovrabet-dataset-mcp','env','154369UhhJhw','version'];a7_0x3432=function(){return _0x454d50;};return a7_0x3432();}const a7_0x53961d=a7_0x1d2d;(function(_0x2d92db,_0x252faf){const _0x16774c=a7_0x1d2d,_0x32ecaa=_0x2d92db();while(!![]){try{const _0x5c8bad=-parseInt(_0x16774c(0xce))/0x1*(-parseInt(_0x16774c(0xf3))/0x2)+parseInt(_0x16774c(0xdc))/0x3*(-parseInt(_0x16774c(0xd8))/0x4)+-parseInt(_0x16774c(0xef))/0x5*(parseInt(_0x16774c(0xeb))/0x6)+parseInt(_0x16774c(0xe9))/0x7*(-parseInt(_0x16774c(0xf1))/0x8)+-parseInt(_0x16774c(0xf4))/0x9*(parseInt(_0x16774c(0xca))/0xa)+parseInt(_0x16774c(0xd4))/0xb*(-parseInt(_0x16774c(0xee))/0xc)+parseInt(_0x16774c(0xd7))/0xd;if(_0x5c8bad===_0x252faf)break;else _0x32ecaa['push'](_0x32ecaa['shift']());}catch(_0x1e6875){_0x32ecaa['push'](_0x32ecaa['shift']());}}}(a7_0x3432,0x19884));import{Server}from'@modelcontextprotocol/sdk/server/index.js';import{ListToolsRequestSchema,CallToolRequestSchema}from'@modelcontextprotocol/sdk/types.js';import{TOOL_DEFINITIONS,listDatasets,getDatasetDetail,getDatasetOperations,getOperationDetail,generateSDKCode,searchDatasets,listSqlQueries}from'./tools/index.js';import{createRequire}from'module';function a7_0x1d2d(_0x15811e,_0x715d5e){const _0x343227=a7_0x3432();return a7_0x1d2d=function(_0x1d2de6,_0x55e977){_0x1d2de6=_0x1d2de6-0xca;let _0x2eed2e=_0x343227[_0x1d2de6];return _0x2eed2e;},a7_0x1d2d(_0x15811e,_0x715d5e);}const require=createRequire(import.meta[a7_0x53961d(0xed)]),packageJson=require(a7_0x53961d(0xe2));import{login}from'./tools/login.js';export class LovrabetDatasetMCPServer{[a7_0x53961d(0xd9)];constructor(){const _0x41b6cf=a7_0x53961d;this['server']=new Server({'name':_0x41b6cf(0xcc),'version':packageJson[_0x41b6cf(0xcf)]},{'capabilities':{'tools':{}}}),this[_0x41b6cf(0xe5)]();}['registerToolHandlers'](){const _0x595424=a7_0x53961d;this[_0x595424(0xd9)]['setRequestHandler'](ListToolsRequestSchema,async()=>({'tools':TOOL_DEFINITIONS})),this['server'][_0x595424(0xdf)](CallToolRequestSchema,async _0x419b8e=>{const _0x25987a=_0x595424,{name:_0x3bcf2c,arguments:_0x595a6d}=_0x419b8e[_0x25987a(0xec)];try{let _0x59867c;switch(_0x3bcf2c){case'login':_0x59867c=await login(_0x595a6d||{});break;case _0x25987a(0xea):_0x59867c=await listDatasets(_0x595a6d);break;case'get_dataset_detail':_0x59867c=await getDatasetDetail(_0x595a6d);break;case _0x25987a(0xde):_0x59867c=await getDatasetOperations(_0x595a6d);break;case'get_operation_detail':_0x59867c=await getOperationDetail(_0x595a6d);break;case _0x25987a(0xd6):_0x59867c=await generateSDKCode(_0x595a6d);break;case _0x25987a(0xcb):_0x59867c=await searchDatasets(_0x595a6d);break;case _0x25987a(0xe8):_0x59867c=await listSqlQueries(_0x595a6d);break;default:throw new Error(_0x25987a(0xe0)+_0x3bcf2c);}return{'content':[{'type':_0x25987a(0xe6),'text':JSON[_0x25987a(0xd5)](_0x59867c,null,0x2)}]};}catch(_0x2afa78){return{'content':[{'type':_0x25987a(0xe6),'text':JSON[_0x25987a(0xd5)]({'error':!![],'message':_0x2afa78['message']||_0x25987a(0xdd),'tool':_0x3bcf2c},null,0x2)}],'isError':!![]};}});}[a7_0x53961d(0xdb)](){const _0x341e57=a7_0x53961d;return this[_0x341e57(0xd9)];}async[a7_0x53961d(0xd0)](_0x5e9ed1){const _0x4d0aae=a7_0x53961d;await this['server'][_0x4d0aae(0xd0)](_0x5e9ed1);}[a7_0x53961d(0xd2)](){const _0x496f35=a7_0x53961d;if(!process[_0x496f35(0xcd)][_0x496f35(0xe7)])return;console[_0x496f35(0xda)](_0x496f35(0xe1)),console['log']('📌\x20Version:\x20'+packageJson[_0x496f35(0xcf)]),console[_0x496f35(0xda)](_0x496f35(0xd3)),console['log'](''),console['log'](_0x496f35(0xf2)),console[_0x496f35(0xda)](_0x496f35(0xf0)),console[_0x496f35(0xda)]('\x20\x20Use\x20the\x20\x22login\x22\x20tool\x20first\x20to\x20authenticate.'),console[_0x496f35(0xda)](''),console[_0x496f35(0xda)]('Available\x20tools:'),TOOL_DEFINITIONS[_0x496f35(0xe3)](_0x2e0ddc=>{const _0x2ce89a=_0x496f35;console['log']('\x20\x20-\x20'+_0x2e0ddc[_0x2ce89a(0xe4)]+':\x20'+_0x2e0ddc[_0x2ce89a(0xd1)]);});}}export function createServer(){return new LovrabetDatasetMCPServer();}
@@ -1 +1 @@
1
- function a8_0x6992(_0x277afe,_0x51ba53){const _0x1bd7c6=a8_0x1bd7();return a8_0x6992=function(_0x6992e8,_0x17806f){_0x6992e8=_0x6992e8-0xc9;let _0x2fd10f=_0x1bd7c6[_0x6992e8];return _0x2fd10f;},a8_0x6992(_0x277afe,_0x51ba53);}function a8_0x1bd7(){const _0x253df0=['online','212gReohV','fullExample','usageExample','\x27\x20in\x20dataset\x20\x27','220NQBSFQ','8975764hfrOBX','env','1105713jlGXhK','generateSDKCode','typescript','getDatasetList','test','data','basic','115OsPNbL','1040997XQYxCh','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','operationName\x20is\x20required','code','getDatasetDetail','241074rWNZxP','sdkInitCode','sdkCallInfo','Cannot\x20generate\x20SDK\x20code\x20for\x20operation\x20\x27','LOVRABET_ENV','3047264PFaeMJ','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.','3069384rAkrul','Dataset\x20not\x20found\x20with\x20code:\x20','datasetCode\x20is\x20required','requestExample','35295DwRHVi'];a8_0x1bd7=function(){return _0x253df0;};return a8_0x1bd7();}(function(_0x115087,_0x4d2a3c){const _0xb1f07c=a8_0x6992,_0x470e2f=_0x115087();while(!![]){try{const _0x5d8563=parseInt(_0xb1f07c(0xe3))/0x1+parseInt(_0xb1f07c(0xd4))/0x2*(-parseInt(_0xb1f07c(0xd2))/0x3)+parseInt(_0xb1f07c(0xce))/0x4+parseInt(_0xb1f07c(0xe2))/0x5*(-parseInt(_0xb1f07c(0xe8))/0x6)+-parseInt(_0xb1f07c(0xd9))/0x7+-parseInt(_0xb1f07c(0xcc))/0x8+parseInt(_0xb1f07c(0xdb))/0x9*(parseInt(_0xb1f07c(0xd8))/0xa);if(_0x5d8563===_0x4d2a3c)break;else _0x470e2f['push'](_0x470e2f['shift']());}catch(_0x3ead78){_0x470e2f['push'](_0x470e2f['shift']());}}}(a8_0x1bd7,0xa53de));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function generateSDKCode(_0x52f728){const _0x578515=a8_0x6992,{appCode:appCode=process[_0x578515(0xda)]['LOVRABET_APP_CODE'],cookie:_0x5d4439,env:env=process[_0x578515(0xda)][_0x578515(0xcb)]||_0x578515(0xd3),datasetCode:_0x142e9c,operationName:_0x3d822d,includeImports:includeImports=!![]}=_0x52f728;if(!appCode)throw new Error(_0x578515(0xe4));if(!_0x142e9c)throw new Error(_0x578515(0xd0));if(!_0x3d822d)throw new Error(_0x578515(0xe5));const _0x48fed0=new DevApiClient({'appCode':appCode,'cookie':_0x5d4439,'env':env}),_0x455bdf=/^\d+$/[_0x578515(0xdf)](_0x142e9c);let _0x4692a9;if(_0x455bdf)_0x4692a9=_0x142e9c;else{const _0x19d1d9=await _0x48fed0[_0x578515(0xde)]({'pageSize':0x3e7}),_0x22c0b7=_0x19d1d9[_0x578515(0xe0)]?.['tableData']||[],_0x43a946=_0x22c0b7['find'](_0xe62d0b=>_0xe62d0b[_0x578515(0xe6)]===_0x142e9c);if(!_0x43a946)throw new Error(_0x578515(0xcf)+_0x142e9c);_0x4692a9=String(_0x43a946['id']);}const _0x24dbe0=await _0x48fed0[_0x578515(0xe7)](_0x4692a9),_0x187b05=new DatasetAnalyzer(),_0x23a2cd=_0x187b05[_0x578515(0xdc)](_0x24dbe0,_0x3d822d,appCode,env);if(!_0x23a2cd)throw new Error(_0x578515(0xca)+_0x3d822d+_0x578515(0xd7)+_0x142e9c+'\x27');const _0x340b0c=_0x187b05['analyzeDatasetDetail'](_0x24dbe0);return{'appCode':appCode,'env':env,'datasetName':_0x340b0c[_0x578515(0xe1)]['name'],'language':_0x578515(0xdd),'code':_0x23a2cd['code'],'fullExample':includeImports?_0x23a2cd[_0x578515(0xd5)]:undefined,'sdkCallInfo':_0x23a2cd[_0x578515(0xc9)],'fields':_0x340b0c['fields'],'requestExample':_0x23a2cd[_0x578515(0xd1)],'responseExample':_0x23a2cd['responseExample'],'sdkInitCode':_0x23a2cd[_0x578515(0xe9)],'usageExample':_0x23a2cd[_0x578515(0xd6)],'sdkReturnValueBehavior':{'onSuccess':'Returns\x20ONLY\x20the\x20\x27data\x27\x20field\x20content.\x20Full\x20API\x20response\x20is\x20{\x20success:\x20true,\x20data:\x20{...},\x20msg:\x20\x22\x22,\x20errorMsg:\x20\x22\x22,\x20errorCode:\x20\x220000\x22\x20},\x20but\x20SDK\x20returns\x20just\x20the\x20{...}\x20part\x20from\x20\x27data\x27.','onError':'Throws\x20LovrabetError\x20exception\x20with\x20full\x20response.\x20The\x20error\x20object\x20contains:\x20{\x20message:\x20string,\x20status?:\x20number\x20(HTTP\x20code),\x20code?:\x20string\x20(business\x20error\x20code),\x20data?:\x20any\x20(full\x20error\x20response)\x20}','note':_0x578515(0xcd)}};}
1
+ (function(_0x32d1af,_0x4074a6){const _0x4dc8a9=a8_0x5865,_0x307be0=_0x32d1af();while(!![]){try{const _0x4066fd=parseInt(_0x4dc8a9(0x1f6))/0x1+parseInt(_0x4dc8a9(0x1f2))/0x2+parseInt(_0x4dc8a9(0x1f3))/0x3+-parseInt(_0x4dc8a9(0x1f7))/0x4+-parseInt(_0x4dc8a9(0x205))/0x5*(parseInt(_0x4dc8a9(0x201))/0x6)+-parseInt(_0x4dc8a9(0x1fe))/0x7*(parseInt(_0x4dc8a9(0x203))/0x8)+-parseInt(_0x4dc8a9(0x1fb))/0x9*(-parseInt(_0x4dc8a9(0x1ed))/0xa);if(_0x4066fd===_0x4074a6)break;else _0x307be0['push'](_0x307be0['shift']());}catch(_0x556d13){_0x307be0['push'](_0x307be0['shift']());}}}(a8_0x1a93,0x7aa6b));import{DevApiClient}from'../api/dev-api-client.js';function a8_0x5865(_0x38d6ba,_0x1d27a9){const _0x1a9308=a8_0x1a93();return a8_0x5865=function(_0x586538,_0x45b943){_0x586538=_0x586538-0x1e9;let _0xc9a0d4=_0x1a9308[_0x586538];return _0xc9a0d4;},a8_0x5865(_0x38d6ba,_0x1d27a9);}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function generateSDKCode(_0xc6b09b){const _0x20055f=a8_0x5865,{appCode:appCode=process[_0x20055f(0x1eb)][_0x20055f(0x1f8)],cookie:_0x2e6b15,env:env=process['env'][_0x20055f(0x200)]||_0x20055f(0x1fd),datasetCode:_0x458199,operationName:_0x2437bd,includeImports:includeImports=!![]}=_0xc6b09b;if(!appCode)throw new Error(_0x20055f(0x207));if(!_0x458199)throw new Error(_0x20055f(0x1f5));if(!_0x2437bd)throw new Error(_0x20055f(0x1ef));const _0x270e10=new DevApiClient({'appCode':appCode,'cookie':_0x2e6b15,'env':env}),_0xe0c925=/^\d+$/[_0x20055f(0x1ea)](_0x458199);let _0x55454f;if(_0xe0c925)_0x55454f=_0x458199;else{const _0x539818=await _0x270e10['getDatasetList']({'pageSize':0x3e7}),_0x3ef1a1=_0x539818['data']?.[_0x20055f(0x202)]||[],_0x20bc4a=_0x3ef1a1[_0x20055f(0x204)](_0x4de596=>_0x4de596[_0x20055f(0x1ff)]===_0x458199);if(!_0x20bc4a)throw new Error('Dataset\x20not\x20found\x20with\x20code:\x20'+_0x458199);_0x55454f=String(_0x20bc4a['id']);}const _0x1bc077=await _0x270e10[_0x20055f(0x1ee)](_0x55454f),_0x2ba480=new DatasetAnalyzer(),_0x4bc000=_0x2ba480['generateSDKCode'](_0x1bc077,_0x2437bd,appCode,env);if(!_0x4bc000)throw new Error(_0x20055f(0x1f1)+_0x2437bd+_0x20055f(0x1ec)+_0x458199+'\x27');const _0x417ca7=_0x2ba480[_0x20055f(0x1f9)](_0x1bc077);return{'appCode':appCode,'env':env,'datasetName':_0x417ca7['basic']['name'],'language':_0x20055f(0x1f0),'code':_0x4bc000['code'],'fullExample':includeImports?_0x4bc000[_0x20055f(0x1e9)]:undefined,'sdkCallInfo':_0x4bc000['sdkCallInfo'],'fields':_0x417ca7[_0x20055f(0x1fa)],'requestExample':_0x4bc000[_0x20055f(0x1fc)],'responseExample':_0x4bc000[_0x20055f(0x206)],'sdkInitCode':_0x4bc000['sdkInitCode'],'usageExample':_0x4bc000['usageExample'],'sdkReturnValueBehavior':{'onSuccess':_0x20055f(0x1f4),'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':'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 a8_0x1a93(){const _0x50940e=['code','LOVRABET_ENV','6FJKNVT','tableData','6352072QKeVJf','find','3539255HKJkXV','responseExample','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','fullExample','test','env','\x27\x20in\x20dataset\x20\x27','14495870dizKbs','getDatasetDetail','operationName\x20is\x20required','typescript','Cannot\x20generate\x20SDK\x20code\x20for\x20operation\x20\x27','974934DinoRM','1329438FZCNWu','Returns\x20ONLY\x20the\x20\x27data\x27\x20field\x20content.\x20Full\x20API\x20response\x20is\x20{\x20success:\x20true,\x20data:\x20{...},\x20msg:\x20\x22\x22,\x20errorMsg:\x20\x22\x22,\x20errorCode:\x20\x220000\x22\x20},\x20but\x20SDK\x20returns\x20just\x20the\x20{...}\x20part\x20from\x20\x27data\x27.','datasetCode\x20is\x20required','177654oUsJCu','2214460NwxPop','LOVRABET_APP_CODE','analyzeDatasetDetail','fields','9BIjGGu','requestExample','online','7CxRmXQ'];a8_0x1a93=function(){return _0x50940e;};return a8_0x1a93();}
@@ -1 +1 @@
1
- (function(_0x26059a,_0x437f6f){const _0x5462a4=a9_0x1bd8,_0x2c859b=_0x26059a();while(!![]){try{const _0x2f89d6=-parseInt(_0x5462a4(0x1ee))/0x1+-parseInt(_0x5462a4(0x1ed))/0x2*(parseInt(_0x5462a4(0x1dd))/0x3)+parseInt(_0x5462a4(0x1e5))/0x4+-parseInt(_0x5462a4(0x1eb))/0x5+-parseInt(_0x5462a4(0x1d7))/0x6*(parseInt(_0x5462a4(0x1e1))/0x7)+parseInt(_0x5462a4(0x1de))/0x8*(parseInt(_0x5462a4(0x1df))/0x9)+parseInt(_0x5462a4(0x1ef))/0xa;if(_0x2f89d6===_0x437f6f)break;else _0x2c859b['push'](_0x2c859b['shift']());}catch(_0x4565cf){_0x2c859b['push'](_0x2c859b['shift']());}}}(a9_0x12ca,0x55326));function a9_0x1bd8(_0x55cfd9,_0x597b6d){const _0x12ca67=a9_0x12ca();return a9_0x1bd8=function(_0x1bd828,_0xcaaf1c){_0x1bd828=_0x1bd828-0x1d6;let _0x1af65d=_0x12ca67[_0x1bd828];return _0x1af65d;},a9_0x1bd8(_0x55cfd9,_0x597b6d);}import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getDatasetDetail(_0x445149){const _0x37de6f=a9_0x1bd8,{appCode:appCode=process[_0x37de6f(0x1d6)][_0x37de6f(0x1e6)],cookie:_0x332241,env:env=process[_0x37de6f(0x1d6)][_0x37de6f(0x1db)]||_0x37de6f(0x1da),datasetCode:_0x38f9c1,forceRefresh:forceRefresh=![]}=_0x445149;if(!appCode)throw new Error(_0x37de6f(0x1dc));if(!_0x38f9c1)throw new Error(_0x37de6f(0x1e9));const _0x1d99c6=new DevApiClient({'appCode':appCode,'cookie':_0x332241,'env':env}),_0x5b92e8=/^\d+$/[_0x37de6f(0x1e7)](_0x38f9c1);let _0xa8d35e;if(_0x5b92e8)_0xa8d35e=_0x38f9c1;else{const _0x36dea4=await _0x1d99c6['getDatasetList']({'pageSize':0x3e7,'forceRefresh':forceRefresh}),_0x25ad12=_0x36dea4[_0x37de6f(0x1d9)]?.[_0x37de6f(0x1ec)]||[],_0x643bbb=_0x25ad12['find'](_0x2040c3=>_0x2040c3[_0x37de6f(0x1e4)]===_0x38f9c1);if(!_0x643bbb)throw new Error('Dataset\x20not\x20found\x20with\x20code:\x20'+_0x38f9c1);_0xa8d35e=String(_0x643bbb['id']);}const _0x4a95c7=await _0x1d99c6[_0x37de6f(0x1e2)](_0xa8d35e,forceRefresh),_0x4fb803=new DatasetAnalyzer(),_0x26d664=_0x4fb803[_0x37de6f(0x1e8)](_0x4a95c7);return{'appCode':appCode,'env':env,'basic':_0x26d664[_0x37de6f(0x1ea)],'fields':_0x26d664['fields'],'operations':_0x26d664[_0x37de6f(0x1e3)],'stats':{'fieldCount':_0x26d664['fieldCount'],'operationCount':_0x26d664[_0x37de6f(0x1d8)],'enabledOperationCount':_0x26d664[_0x37de6f(0x1e0)],'supportsCRUD':_0x26d664['supportsCRUD']}};}function a9_0x12ca(){const _0x139a2b=['online','LOVRABET_ENV','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','75171BHQtaG','32LBmhnH','17154vjCcvi','enabledOperationCount','19327OBqoxD','getDatasetDetail','operations','code','1537852GYteaO','LOVRABET_APP_CODE','test','analyzeDatasetDetail','datasetCode\x20is\x20required','basic','2135690rqMBtX','tableData','26nHtBIz','167433xqFlRX','11450080mbjqsS','env','582mCXDcv','operationCount','data'];a9_0x12ca=function(){return _0x139a2b;};return a9_0x12ca();}
1
+ (function(_0x2e2ea4,_0x39efb1){const _0x5973a7=a9_0x3bdf,_0x5b6314=_0x2e2ea4();while(!![]){try{const _0x59b497=-parseInt(_0x5973a7(0x1f2))/0x1*(parseInt(_0x5973a7(0x200))/0x2)+parseInt(_0x5973a7(0x1fa))/0x3+parseInt(_0x5973a7(0x203))/0x4*(-parseInt(_0x5973a7(0x202))/0x5)+-parseInt(_0x5973a7(0x1f8))/0x6+-parseInt(_0x5973a7(0x1ee))/0x7+-parseInt(_0x5973a7(0x1fd))/0x8*(parseInt(_0x5973a7(0x209))/0x9)+-parseInt(_0x5973a7(0x20a))/0xa*(-parseInt(_0x5973a7(0x1f1))/0xb);if(_0x59b497===_0x39efb1)break;else _0x5b6314['push'](_0x5b6314['shift']());}catch(_0x932c11){_0x5b6314['push'](_0x5b6314['shift']());}}}(a9_0x4b9e,0x2f56f));import{DevApiClient}from'../api/dev-api-client.js';function a9_0x3bdf(_0x3dd445,_0x1873c6){const _0x4b9e8a=a9_0x4b9e();return a9_0x3bdf=function(_0x3bdfb9,_0x561e23){_0x3bdfb9=_0x3bdfb9-0x1ee;let _0x2cb9e1=_0x4b9e8a[_0x3bdfb9];return _0x2cb9e1;},a9_0x3bdf(_0x3dd445,_0x1873c6);}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a9_0x4b9e(){const _0x89c542=['supportsCRUD','22482nkBVrm','4477870GZHopn','code','2023889ncumZe','fieldCount','analyzeDatasetDetail','22kSSxjI','53fYeMzW','basic','env','tableData','operations','LOVRABET_APP_CODE','471534AkWavi','find','22599jKlfxR','Dataset\x20not\x20found\x20with\x20code:\x20','datasetCode\x20is\x20required','168uORINF','data','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','4318qanTHw','operationCount','195CbrCUK','17908hGFkqU','enabledOperationCount','getDatasetList','test','online'];a9_0x4b9e=function(){return _0x89c542;};return a9_0x4b9e();}export async function getDatasetDetail(_0x487475){const _0x1ca1bc=a9_0x3bdf,{appCode:appCode=process[_0x1ca1bc(0x1f4)][_0x1ca1bc(0x1f7)],cookie:_0x3473b5,env:env=process[_0x1ca1bc(0x1f4)]['LOVRABET_ENV']||_0x1ca1bc(0x207),datasetCode:_0x31da7f,forceRefresh:forceRefresh=![]}=_0x487475;if(!appCode)throw new Error(_0x1ca1bc(0x1ff));if(!_0x31da7f)throw new Error(_0x1ca1bc(0x1fc));const _0x3bd9e0=new DevApiClient({'appCode':appCode,'cookie':_0x3473b5,'env':env}),_0x119b95=/^\d+$/[_0x1ca1bc(0x206)](_0x31da7f);let _0x5e81c0;if(_0x119b95)_0x5e81c0=_0x31da7f;else{const _0x204072=await _0x3bd9e0[_0x1ca1bc(0x205)]({'pageSize':0x3e7,'forceRefresh':forceRefresh}),_0x391c23=_0x204072[_0x1ca1bc(0x1fe)]?.[_0x1ca1bc(0x1f5)]||[],_0x455c94=_0x391c23[_0x1ca1bc(0x1f9)](_0x13a612=>_0x13a612[_0x1ca1bc(0x20b)]===_0x31da7f);if(!_0x455c94)throw new Error(_0x1ca1bc(0x1fb)+_0x31da7f);_0x5e81c0=String(_0x455c94['id']);}const _0x5da273=await _0x3bd9e0['getDatasetDetail'](_0x5e81c0,forceRefresh),_0x48d7f5=new DatasetAnalyzer(),_0x419334=_0x48d7f5[_0x1ca1bc(0x1f0)](_0x5da273);return{'appCode':appCode,'env':env,'basic':_0x419334[_0x1ca1bc(0x1f3)],'fields':_0x419334['fields'],'operations':_0x419334[_0x1ca1bc(0x1f6)],'stats':{'fieldCount':_0x419334[_0x1ca1bc(0x1ef)],'operationCount':_0x419334[_0x1ca1bc(0x201)],'enabledOperationCount':_0x419334[_0x1ca1bc(0x204)],'supportsCRUD':_0x419334[_0x1ca1bc(0x208)]}};}
@@ -1 +1 @@
1
- (function(_0x4948fd,_0x44c56f){const _0x3385ea=a10_0x3dfe,_0x37e4d4=_0x4948fd();while(!![]){try{const _0x4f6b14=-parseInt(_0x3385ea(0x124))/0x1*(parseInt(_0x3385ea(0x117))/0x2)+-parseInt(_0x3385ea(0x106))/0x3+parseInt(_0x3385ea(0x109))/0x4*(parseInt(_0x3385ea(0x10e))/0x5)+-parseInt(_0x3385ea(0x120))/0x6+-parseInt(_0x3385ea(0x10a))/0x7*(parseInt(_0x3385ea(0x113))/0x8)+-parseInt(_0x3385ea(0x11f))/0x9*(-parseInt(_0x3385ea(0x108))/0xa)+-parseInt(_0x3385ea(0x118))/0xb*(-parseInt(_0x3385ea(0x115))/0xc);if(_0x4f6b14===_0x44c56f)break;else _0x37e4d4['push'](_0x37e4d4['shift']());}catch(_0xbf4d3c){_0x37e4d4['push'](_0x37e4d4['shift']());}}}(a10_0x2858,0x3a292));import{DevApiClient}from'../api/dev-api-client.js';function a10_0x2858(){const _0xca532d=['9ERYTgb','758304XcpzIW','getDatasetDetail','\x27\x20not\x20found\x20in\x20dataset\x20\x27','test','3pnAUJP','232647zuaJzJ','find','3457810dnVAHa','298576jtAztp','2051UHkPiD','LOVRABET_ENV','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}','getOperationDetail','5ZIUECe','analyzeDatasetDetail','Operation\x20\x27','Dataset\x20not\x20found\x20with\x20code:\x20','code','1384JZcSFz','basic','2236320zTOVSL','name','75958PRCIgC','11pFLJXF','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.','operationName\x20is\x20required','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','LOVRABET_APP_CODE','tableData','getDatasetList'];a10_0x2858=function(){return _0xca532d;};return a10_0x2858();}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a10_0x3dfe(_0x56ba74,_0x107212){const _0x285803=a10_0x2858();return a10_0x3dfe=function(_0x3dfe54,_0x2caf4f){_0x3dfe54=_0x3dfe54-0x106;let _0xa151ca=_0x285803[_0x3dfe54];return _0xa151ca;},a10_0x3dfe(_0x56ba74,_0x107212);}export async function getOperationDetail(_0x928b2b){const _0x3a765f=a10_0x3dfe,{appCode:appCode=process['env'][_0x3a765f(0x11c)],cookie:_0x3be83d,env:env=process['env'][_0x3a765f(0x10b)]||'online',datasetCode:_0x57b734,operationName:_0x5bb1da}=_0x928b2b;if(!appCode)throw new Error(_0x3a765f(0x11b));if(!_0x57b734)throw new Error('datasetCode\x20is\x20required');if(!_0x5bb1da)throw new Error(_0x3a765f(0x11a));const _0xfc346c=new DevApiClient({'appCode':appCode,'cookie':_0x3be83d,'env':env}),_0x483806=/^\d+$/[_0x3a765f(0x123)](_0x57b734);let _0x17ab40;if(_0x483806)_0x17ab40=_0x57b734;else{const _0x1299d9=await _0xfc346c[_0x3a765f(0x11e)]({'pageSize':0x3e7}),_0xba4c4b=_0x1299d9['data']?.[_0x3a765f(0x11d)]||[],_0x18fd08=_0xba4c4b[_0x3a765f(0x107)](_0x8d9788=>_0x8d9788[_0x3a765f(0x112)]===_0x57b734);if(!_0x18fd08)throw new Error(_0x3a765f(0x111)+_0x57b734);_0x17ab40=String(_0x18fd08['id']);}const _0x558354=await _0xfc346c[_0x3a765f(0x121)](_0x17ab40),_0x20105f=new DatasetAnalyzer(),_0x2ec637=_0x20105f[_0x3a765f(0x10d)](_0x558354,_0x5bb1da);if(!_0x2ec637)throw new Error(_0x3a765f(0x110)+_0x5bb1da+_0x3a765f(0x122)+_0x57b734+'\x27');const _0x5ab685=_0x20105f[_0x3a765f(0x10f)](_0x558354);return{'appCode':appCode,'env':env,'datasetName':_0x5ab685[_0x3a765f(0x114)][_0x3a765f(0x116)],'operation':_0x2ec637,'sdkReturnValueBehavior':{'onSuccess':_0x3a765f(0x119),'onError':_0x3a765f(0x10c),'note':'CRITICAL:\x20Always\x20use\x20try-catch\x20when\x20calling\x20SDK\x20methods.\x20Success\x20case\x20returns\x20data\x20directly\x20(e.g.,\x20{\x20id:\x20123,\x20name:\x20\x22...\x22\x20}),\x20but\x20failure\x20case\x20throws\x20exception\x20instead\x20of\x20returning\x20error\x20info.'}};}
1
+ function a10_0x425a(){const _0x49eb09=['1389960dfFzIR','find','49RbkhVz','name','1NElpTc','1810084xSonto','Operation\x20\x27','7911144krRGqh','test','421345wEvBXE','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}','3121070DBvWjY','getDatasetList','analyzeDatasetDetail','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','operationName\x20is\x20required','1439406NDTeFA','217760sWJVZI','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.','getOperationDetail','datasetCode\x20is\x20required','22oWsTKq','getDatasetDetail','basic','6ZgsPTm','LOVRABET_APP_CODE','env','code','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.','54RyNryH','LOVRABET_ENV'];a10_0x425a=function(){return _0x49eb09;};return a10_0x425a();}function a10_0x5626(_0x2114b8,_0x120acb){const _0x425a84=a10_0x425a();return a10_0x5626=function(_0x562670,_0x22aa89){_0x562670=_0x562670-0x1f4;let _0x4f028e=_0x425a84[_0x562670];return _0x4f028e;},a10_0x5626(_0x2114b8,_0x120acb);}(function(_0x998e1b,_0x331b4a){const _0xdee874=a10_0x5626,_0x201ccc=_0x998e1b();while(!![]){try{const _0x5c45d4=-parseInt(_0xdee874(0x20e))/0x1*(-parseInt(_0xdee874(0x1fb))/0x2)+-parseInt(_0xdee874(0x203))/0x3*(parseInt(_0xdee874(0x20f))/0x4)+parseInt(_0xdee874(0x1f4))/0x5*(-parseInt(_0xdee874(0x208))/0x6)+-parseInt(_0xdee874(0x20c))/0x7*(parseInt(_0xdee874(0x1fc))/0x8)+parseInt(_0xdee874(0x211))/0x9+parseInt(_0xdee874(0x1f6))/0xa*(parseInt(_0xdee874(0x200))/0xb)+parseInt(_0xdee874(0x20a))/0xc;if(_0x5c45d4===_0x331b4a)break;else _0x201ccc['push'](_0x201ccc['shift']());}catch(_0x584735){_0x201ccc['push'](_0x201ccc['shift']());}}}(a10_0x425a,0x76598));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getOperationDetail(_0x22f913){const _0x1085ce=a10_0x5626,{appCode:appCode=process[_0x1085ce(0x205)][_0x1085ce(0x204)],cookie:_0x38e08c,env:env=process[_0x1085ce(0x205)][_0x1085ce(0x209)]||'online',datasetCode:_0x2588ed,operationName:_0x2ddf9f}=_0x22f913;if(!appCode)throw new Error(_0x1085ce(0x1f9));if(!_0x2588ed)throw new Error(_0x1085ce(0x1ff));if(!_0x2ddf9f)throw new Error(_0x1085ce(0x1fa));const _0x43f045=new DevApiClient({'appCode':appCode,'cookie':_0x38e08c,'env':env}),_0x2c80ca=/^\d+$/[_0x1085ce(0x212)](_0x2588ed);let _0x44ab7c;if(_0x2c80ca)_0x44ab7c=_0x2588ed;else{const _0x5adfb4=await _0x43f045[_0x1085ce(0x1f7)]({'pageSize':0x3e7}),_0x1c60bd=_0x5adfb4['data']?.['tableData']||[],_0x4a76c3=_0x1c60bd[_0x1085ce(0x20b)](_0x218cee=>_0x218cee[_0x1085ce(0x206)]===_0x2588ed);if(!_0x4a76c3)throw new Error('Dataset\x20not\x20found\x20with\x20code:\x20'+_0x2588ed);_0x44ab7c=String(_0x4a76c3['id']);}const _0x456f59=await _0x43f045[_0x1085ce(0x201)](_0x44ab7c),_0x14298e=new DatasetAnalyzer(),_0xb178f0=_0x14298e[_0x1085ce(0x1fe)](_0x456f59,_0x2ddf9f);if(!_0xb178f0)throw new Error(_0x1085ce(0x210)+_0x2ddf9f+'\x27\x20not\x20found\x20in\x20dataset\x20\x27'+_0x2588ed+'\x27');const _0xfd584d=_0x14298e[_0x1085ce(0x1f8)](_0x456f59);return{'appCode':appCode,'env':env,'datasetName':_0xfd584d[_0x1085ce(0x202)][_0x1085ce(0x20d)],'operation':_0xb178f0,'sdkReturnValueBehavior':{'onSuccess':_0x1085ce(0x207),'onError':_0x1085ce(0x1f5),'note':_0x1085ce(0x1fd)}};}
@@ -1 +1 @@
1
- (function(_0x1691c9,_0x55bcdf){const _0x281536=a11_0x44e6,_0x161cfb=_0x1691c9();while(!![]){try{const _0xe9a7b9=-parseInt(_0x281536(0x19e))/0x1+-parseInt(_0x281536(0x1a7))/0x2*(parseInt(_0x281536(0x19f))/0x3)+-parseInt(_0x281536(0x191))/0x4*(parseInt(_0x281536(0x1a8))/0x5)+parseInt(_0x281536(0x19b))/0x6*(-parseInt(_0x281536(0x1a1))/0x7)+parseInt(_0x281536(0x1a6))/0x8*(-parseInt(_0x281536(0x18d))/0x9)+-parseInt(_0x281536(0x1a0))/0xa+parseInt(_0x281536(0x19c))/0xb;if(_0xe9a7b9===_0x55bcdf)break;else _0x161cfb['push'](_0x161cfb['shift']());}catch(_0x2ee5a6){_0x161cfb['push'](_0x161cfb['shift']());}}}(a11_0x3d5d,0x3ce55));function a11_0x44e6(_0x4c5cab,_0x29618e){const _0x3d5d0c=a11_0x3d5d();return a11_0x44e6=function(_0x44e6b6,_0x1a455a){_0x44e6b6=_0x44e6b6-0x18d;let _0x19ddab=_0x3d5d0c[_0x44e6b6];return _0x19ddab;},a11_0x44e6(_0x4c5cab,_0x29618e);}import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getDatasetOperations(_0xb9967c){const _0x6e5838=a11_0x44e6,{appCode:appCode=process[_0x6e5838(0x1aa)][_0x6e5838(0x1a3)],cookie:_0x4e79db,env:env=process[_0x6e5838(0x1aa)][_0x6e5838(0x198)]||'online',datasetCode:_0x7967f3}=_0xb9967c;if(!appCode)throw new Error(_0x6e5838(0x1ab));if(!_0x7967f3)throw new Error(_0x6e5838(0x1a2));const _0x8fb028=new DevApiClient({'appCode':appCode,'cookie':_0x4e79db,'env':env}),_0x494c2f=/^\d+$/['test'](_0x7967f3);let _0x5ad938;if(_0x494c2f)_0x5ad938=_0x7967f3;else{const _0x2df72d=await _0x8fb028['getDatasetList']({'pageSize':0x3e7}),_0x4c2045=_0x2df72d['data']?.[_0x6e5838(0x190)]||[],_0x4454c4=_0x4c2045[_0x6e5838(0x1a9)](_0x578d70=>_0x578d70[_0x6e5838(0x192)]===_0x7967f3);if(!_0x4454c4)throw new Error('Dataset\x20not\x20found\x20with\x20code:\x20'+_0x7967f3);_0x5ad938=String(_0x4454c4['id']);}const _0x641e6d=await _0x8fb028[_0x6e5838(0x1a4)](_0x5ad938),_0x1c881c=new DatasetAnalyzer(),_0xc33caf=_0x1c881c[_0x6e5838(0x1a5)](_0x641e6d);return{'appCode':appCode,'env':env,'datasetName':_0xc33caf[_0x6e5838(0x197)][_0x6e5838(0x199)],'tableName':_0xc33caf[_0x6e5838(0x197)][_0x6e5838(0x19a)],'operations':_0xc33caf['operations'][_0x6e5838(0x19d)](_0x346329=>({'name':_0x346329[_0x6e5838(0x199)],'displayName':_0x346329[_0x6e5838(0x18e)],'type':_0x346329[_0x6e5838(0x18f)],'method':_0x346329[_0x6e5838(0x193)],'path':_0x346329['path'],'requestFieldsCount':_0x346329['requestFieldsCount'],'enabled':_0x346329[_0x6e5838(0x196)]})),'stats':{'total':_0xc33caf['operationCount'],'enabled':_0xc33caf[_0x6e5838(0x195)],'supportsCRUD':_0xc33caf[_0x6e5838(0x194)]}};}function a11_0x3d5d(){const _0x327572=['displayName','type','tableData','377640gsNFvi','code','method','supportsCRUD','enabledOperationCount','enabled','basic','LOVRABET_ENV','name','tableName','4110THYSQj','17433636SBGSrY','map','7167hsgHRH','6EDWKdZ','4613590Klvfha','4053fdGwwj','datasetCode\x20is\x20required','LOVRABET_APP_CODE','getDatasetDetail','analyzeDatasetDetail','510736UZzHYc','153802Klnwxl','10kijMdr','find','env','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','18fbauQR'];a11_0x3d5d=function(){return _0x327572;};return a11_0x3d5d();}
1
+ function a11_0x3568(_0x5cf1db,_0x2d63b7){const _0x39c183=a11_0x39c1();return a11_0x3568=function(_0x3568db,_0x477e3c){_0x3568db=_0x3568db-0xaa;let _0x5d7975=_0x39c183[_0x3568db];return _0x5d7975;},a11_0x3568(_0x5cf1db,_0x2d63b7);}(function(_0x116307,_0x1145b7){const _0x1a4d49=a11_0x3568,_0x31775e=_0x116307();while(!![]){try{const _0x42d808=parseInt(_0x1a4d49(0xc2))/0x1*(parseInt(_0x1a4d49(0xb4))/0x2)+parseInt(_0x1a4d49(0xaa))/0x3+parseInt(_0x1a4d49(0xc9))/0x4*(-parseInt(_0x1a4d49(0xb7))/0x5)+-parseInt(_0x1a4d49(0xaf))/0x6+parseInt(_0x1a4d49(0xb3))/0x7+-parseInt(_0x1a4d49(0xb0))/0x8*(parseInt(_0x1a4d49(0xbd))/0x9)+parseInt(_0x1a4d49(0xb6))/0xa;if(_0x42d808===_0x1145b7)break;else _0x31775e['push'](_0x31775e['shift']());}catch(_0x271ae3){_0x31775e['push'](_0x31775e['shift']());}}}(a11_0x39c1,0xb17bd));import{DevApiClient}from'../api/dev-api-client.js';function a11_0x39c1(){const _0x3ed89e=['184374AmozTl','enabledOperationCount','getDatasetDetail','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','env','7100796VRUKgj','455096DbzVMw','analyzeDatasetDetail','type','2736895nPBJvG','69444HLpzoC','LOVRABET_ENV','29842670blVQeE','6929305KlkdtJ','datasetCode\x20is\x20required','name','enabled','map','basic','198TbBRGQ','displayName','tableName','path','Dataset\x20not\x20found\x20with\x20code:\x20','32hpgWrx','tableData','data','online','requestFieldsCount','find','getDatasetList','4YqSfgC'];a11_0x39c1=function(){return _0x3ed89e;};return a11_0x39c1();}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';export async function getDatasetOperations(_0x4ba9e1){const _0x28ef24=a11_0x3568,{appCode:appCode=process[_0x28ef24(0xae)]['LOVRABET_APP_CODE'],cookie:_0x100f43,env:env=process[_0x28ef24(0xae)][_0x28ef24(0xb5)]||_0x28ef24(0xc5),datasetCode:_0x4f2fa6}=_0x4ba9e1;if(!appCode)throw new Error(_0x28ef24(0xad));if(!_0x4f2fa6)throw new Error(_0x28ef24(0xb8));const _0x54821d=new DevApiClient({'appCode':appCode,'cookie':_0x100f43,'env':env}),_0xe00a29=/^\d+$/['test'](_0x4f2fa6);let _0x4056ef;if(_0xe00a29)_0x4056ef=_0x4f2fa6;else{const _0x3ff05e=await _0x54821d[_0x28ef24(0xc8)]({'pageSize':0x3e7}),_0x39a5e2=_0x3ff05e[_0x28ef24(0xc4)]?.[_0x28ef24(0xc3)]||[],_0x184dec=_0x39a5e2[_0x28ef24(0xc7)](_0x107a33=>_0x107a33['code']===_0x4f2fa6);if(!_0x184dec)throw new Error(_0x28ef24(0xc1)+_0x4f2fa6);_0x4056ef=String(_0x184dec['id']);}const _0x58631a=await _0x54821d[_0x28ef24(0xac)](_0x4056ef),_0x16c19c=new DatasetAnalyzer(),_0x5648f9=_0x16c19c[_0x28ef24(0xb1)](_0x58631a);return{'appCode':appCode,'env':env,'datasetName':_0x5648f9[_0x28ef24(0xbc)][_0x28ef24(0xb9)],'tableName':_0x5648f9[_0x28ef24(0xbc)][_0x28ef24(0xbf)],'operations':_0x5648f9['operations'][_0x28ef24(0xbb)](_0x3bb50d=>({'name':_0x3bb50d['name'],'displayName':_0x3bb50d[_0x28ef24(0xbe)],'type':_0x3bb50d[_0x28ef24(0xb2)],'method':_0x3bb50d['method'],'path':_0x3bb50d[_0x28ef24(0xc0)],'requestFieldsCount':_0x3bb50d[_0x28ef24(0xc6)],'enabled':_0x3bb50d[_0x28ef24(0xba)]})),'stats':{'total':_0x5648f9['operationCount'],'enabled':_0x5648f9[_0x28ef24(0xab)],'supportsCRUD':_0x5648f9['supportsCRUD']}};}
@@ -1 +1 @@
1
- const a12_0x236b97=a12_0x42e1;(function(_0x3a4cd6,_0x56d24b){const _0x108ab6=a12_0x42e1,_0x319fe2=_0x3a4cd6();while(!![]){try{const _0xc70ff4=parseInt(_0x108ab6(0x10a))/0x1*(parseInt(_0x108ab6(0x11a))/0x2)+parseInt(_0x108ab6(0x116))/0x3+-parseInt(_0x108ab6(0x10b))/0x4+parseInt(_0x108ab6(0x108))/0x5*(-parseInt(_0x108ab6(0xf2))/0x6)+-parseInt(_0x108ab6(0x103))/0x7+-parseInt(_0x108ab6(0x119))/0x8*(-parseInt(_0x108ab6(0xf8))/0x9)+-parseInt(_0x108ab6(0xf3))/0xa*(-parseInt(_0x108ab6(0x10f))/0xb);if(_0xc70ff4===_0x56d24b)break;else _0x319fe2['push'](_0x319fe2['shift']());}catch(_0x87e94a){_0x319fe2['push'](_0x319fe2['shift']());}}}(a12_0x5a36,0xe1cff));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';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':'Application\x20code\x20(optional\x20if\x20LOVRABET_APP_CODE\x20env\x20var\x20is\x20set)'},'cookie':{'type':a12_0x236b97(0xf6),'description':a12_0x236b97(0x102)},'env':{'type':a12_0x236b97(0xf6),'description':a12_0x236b97(0xfc),'enum':[a12_0x236b97(0xfa),a12_0x236b97(0x106)]}};export const TOOL_DEFINITIONS=[{'name':a12_0x236b97(0x110),'description':a12_0x236b97(0x109),'inputSchema':{'type':a12_0x236b97(0x10c),'properties':{'env':{'type':a12_0x236b97(0xf6),'description':'Environment\x20to\x20login\x20to\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)','enum':[a12_0x236b97(0xfa),'daily']}},'required':[]}},{'name':a12_0x236b97(0xef),'description':a12_0x236b97(0x117),'inputSchema':{'type':a12_0x236b97(0x10c),'properties':{...authProperties,'pageSize':{'type':a12_0x236b97(0x113),'description':a12_0x236b97(0x111)},'currentPage':{'type':a12_0x236b97(0x113),'description':a12_0x236b97(0xf4)},'forceRefresh':{'type':a12_0x236b97(0x104),'description':a12_0x236b97(0x112)}},'required':[]}},{'name':a12_0x236b97(0x107),'description':a12_0x236b97(0x10d),'inputSchema':{'type':'object','properties':{...authProperties,'datasetCode':{'type':a12_0x236b97(0xf6),'description':'Dataset\x20code/ID'},'forceRefresh':{'type':'boolean','description':a12_0x236b97(0x112)}},'required':[a12_0x236b97(0x101)]}},{'name':a12_0x236b97(0xfd),'description':a12_0x236b97(0x118),'inputSchema':{'type':a12_0x236b97(0x10c),'properties':{...authProperties,'datasetCode':{'type':a12_0x236b97(0xf6),'description':a12_0x236b97(0xf5)}},'required':[a12_0x236b97(0x101)]}},{'name':a12_0x236b97(0xfb),'description':a12_0x236b97(0x100),'inputSchema':{'type':a12_0x236b97(0x10c),'properties':{...authProperties,'datasetCode':{'type':a12_0x236b97(0xf6),'description':'Dataset\x20code/ID'},'operationName':{'type':a12_0x236b97(0xf6),'description':a12_0x236b97(0xf1)}},'required':['datasetCode',a12_0x236b97(0x115)]}},{'name':'generate_sdk_code','description':'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.','inputSchema':{'type':'object','properties':{...authProperties,'datasetCode':{'type':a12_0x236b97(0xf6),'description':a12_0x236b97(0xf5)},'operationName':{'type':'string','description':a12_0x236b97(0xf1)},'includeImports':{'type':a12_0x236b97(0x104),'description':a12_0x236b97(0xf7)}},'required':[a12_0x236b97(0x101),'operationName']}},{'name':a12_0x236b97(0x114),'description':a12_0x236b97(0x10e),'inputSchema':{'type':'object','properties':{...authProperties,'keyword':{'type':a12_0x236b97(0xf6),'description':a12_0x236b97(0xf0)}},'required':[a12_0x236b97(0xf9)]}},{'name':a12_0x236b97(0xfe),'description':a12_0x236b97(0x105),'inputSchema':{'type':a12_0x236b97(0x10c),'properties':{...authProperties,'keyword':{'type':a12_0x236b97(0xf6),'description':a12_0x236b97(0xff)},'category':{'type':a12_0x236b97(0xf6),'description':'Optional:\x20filter\x20by\x20category\x20(report,\x20analysis,\x20export,\x20etc.)'},'pageSize':{'type':a12_0x236b97(0x113),'description':'Number\x20of\x20items\x20per\x20page\x20(default:\x20999)'},'currentPage':{'type':a12_0x236b97(0x113),'description':'Page\x20number\x20to\x20fetch\x20(default:\x201)'}},'required':[]}}];function a12_0x42e1(_0x8731cc,_0xd970be){const _0x5a36bc=a12_0x5a36();return a12_0x42e1=function(_0x42e1bb,_0x1bfabf){_0x42e1bb=_0x42e1bb-0xef;let _0x3ff678=_0x5a36bc[_0x42e1bb];return _0x3ff678;},a12_0x42e1(_0x8731cc,_0xd970be);}function a12_0x5a36(){const _0x1b2cd3=['Page\x20number\x20to\x20fetch\x20(default:\x201)','Dataset\x20code/ID','string','Include\x20import\x20statements\x20and\x20full\x20example\x20(default:\x20true)','9DvqCTL','keyword','online','get_operation_detail','Environment\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)','get_dataset_operations','list_sql_queries','Optional:\x20search\x20SQL\x20queries\x20by\x20name,\x20description,\x20or\x20SQL\x20content','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.','datasetCode','Authentication\x20cookie\x20(optional,\x20uses\x20stored\x20cookie\x20from\x20login\x20if\x20not\x20provided)','9512034btKsYg','boolean','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.','daily','get_dataset_detail','1310535qbTXZp','Login\x20to\x20Lovrabet\x20to\x20authenticate\x20for\x20dataset\x20queries','616KFBPUQ','1011112JjiiLB','object','Get\x20detailed\x20information\x20about\x20a\x20specific\x20dataset\x20including\x20all\x20field\x20definitions','Search\x20datasets\x20by\x20keyword\x20(searches\x20in\x20name,\x20table\x20name,\x20code,\x20and\x20description)','11461769dqvtwd','login','Number\x20of\x20datasets\x20per\x20page\x20(default:\x20999)','Bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20API\x20(default:\x20false).\x20Set\x20to\x20true\x20when\x20you\x20need\x20the\x20latest\x20data.','number','search_datasets','operationName','4806258SRmlOj','Get\x20list\x20of\x20all\x20datasets\x20for\x20an\x20application','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)','3710680MisgOD','4102qBosDE','list_datasets','Search\x20keyword','Operation\x20name\x20(e.g.,\x20filter,\x20getOne,\x20create,\x20update).\x20Prefer\x20\x22filter\x22\x20for\x20queries.','42IrOOWI','10lzGVom'];a12_0x5a36=function(){return _0x1b2cd3;};return a12_0x5a36();}
1
+ const a12_0x2df388=a12_0x456e;(function(_0x242f00,_0x470f18){const _0x57abd6=a12_0x456e,_0x40f576=_0x242f00();while(!![]){try{const _0xc02eb6=-parseInt(_0x57abd6(0xbc))/0x1+-parseInt(_0x57abd6(0xb1))/0x2+-parseInt(_0x57abd6(0xc2))/0x3*(-parseInt(_0x57abd6(0xbd))/0x4)+parseInt(_0x57abd6(0xbe))/0x5+-parseInt(_0x57abd6(0xbb))/0x6*(-parseInt(_0x57abd6(0xa9))/0x7)+parseInt(_0x57abd6(0xb6))/0x8*(parseInt(_0x57abd6(0xa5))/0x9)+-parseInt(_0x57abd6(0xa2))/0xa*(parseInt(_0x57abd6(0xa6))/0xb);if(_0xc02eb6===_0x470f18)break;else _0x40f576['push'](_0x40f576['shift']());}catch(_0x53995f){_0x40f576['push'](_0x40f576['shift']());}}}(a12_0x373f,0x4cfda));export{login}from'./login.js';export{listDatasets}from'./list-datasets.js';function a12_0x373f(){const _0x2290ae=['number','Bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20API\x20(default:\x20false).\x20Set\x20to\x20true\x20when\x20you\x20need\x20the\x20latest\x20data.','1899llayOD','627lzDznt','keyword','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)','14iqrvpA','Number\x20of\x20datasets\x20per\x20page\x20(default:\x20999)','Number\x20of\x20items\x20per\x20page\x20(default:\x20999)','Environment\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)','Environment\x20to\x20login\x20to\x20(optional,\x20uses\x20LOVRABET_ENV\x20env\x20var\x20or\x20defaults\x20to\x20online)','Page\x20number\x20to\x20fetch\x20(default:\x201)','string','Application\x20code\x20(optional\x20if\x20LOVRABET_APP_CODE\x20env\x20var\x20is\x20set)','413866xXDPYR','list_datasets','Include\x20import\x20statements\x20and\x20full\x20example\x20(default:\x20true)','generate_sdk_code','datasetCode','15368YdzzZR','get_operation_detail','login','list_sql_queries','boolean','1234962FsviKC','430645OUfoIA','1556NiMFTW','2179620dyNqaV','Optional:\x20filter\x20by\x20category\x20(report,\x20analysis,\x20export,\x20etc.)','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.','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.','1227pAaENH','object','get_dataset_operations','Operation\x20name\x20(e.g.,\x20filter,\x20getOne,\x20create,\x20update).\x20Prefer\x20\x22filter\x22\x20for\x20queries.','Search\x20keyword','Optional:\x20search\x20SQL\x20queries\x20by\x20name,\x20description,\x20or\x20SQL\x20content','operationName','online','Get\x20detailed\x20information\x20about\x20a\x20specific\x20dataset\x20including\x20all\x20field\x20definitions','Dataset\x20code/ID','Get\x20list\x20of\x20all\x20datasets\x20for\x20an\x20application','80540eWpRkj'];a12_0x373f=function(){return _0x2290ae;};return a12_0x373f();}export{getDatasetDetail}from'./get-dataset-detail.js';function a12_0x456e(_0x4c266d,_0x4ff5f2){const _0x373f5a=a12_0x373f();return a12_0x456e=function(_0x456e45,_0x44f24f){_0x456e45=_0x456e45-0x9c;let _0x2aa6ca=_0x373f5a[_0x456e45];return _0x2aa6ca;},a12_0x456e(_0x4c266d,_0x4ff5f2);}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':a12_0x2df388(0xaf),'description':a12_0x2df388(0xb0)},'cookie':{'type':a12_0x2df388(0xaf),'description':'Authentication\x20cookie\x20(optional,\x20uses\x20stored\x20cookie\x20from\x20login\x20if\x20not\x20provided)'},'env':{'type':a12_0x2df388(0xaf),'description':a12_0x2df388(0xac),'enum':[a12_0x2df388(0x9e),'daily']}};export const TOOL_DEFINITIONS=[{'name':a12_0x2df388(0xb8),'description':'Login\x20to\x20Lovrabet\x20to\x20authenticate\x20for\x20dataset\x20queries','inputSchema':{'type':a12_0x2df388(0xc3),'properties':{'env':{'type':a12_0x2df388(0xaf),'description':a12_0x2df388(0xad),'enum':[a12_0x2df388(0x9e),'daily']}},'required':[]}},{'name':a12_0x2df388(0xb2),'description':a12_0x2df388(0xa1),'inputSchema':{'type':a12_0x2df388(0xc3),'properties':{...authProperties,'pageSize':{'type':a12_0x2df388(0xa3),'description':a12_0x2df388(0xaa)},'currentPage':{'type':'number','description':a12_0x2df388(0xae)},'forceRefresh':{'type':a12_0x2df388(0xba),'description':a12_0x2df388(0xa4)}},'required':[]}},{'name':'get_dataset_detail','description':a12_0x2df388(0x9f),'inputSchema':{'type':a12_0x2df388(0xc3),'properties':{...authProperties,'datasetCode':{'type':a12_0x2df388(0xaf),'description':a12_0x2df388(0xa0)},'forceRefresh':{'type':a12_0x2df388(0xba),'description':a12_0x2df388(0xa4)}},'required':[a12_0x2df388(0xb5)]}},{'name':a12_0x2df388(0xc4),'description':a12_0x2df388(0xa8),'inputSchema':{'type':'object','properties':{...authProperties,'datasetCode':{'type':a12_0x2df388(0xaf),'description':a12_0x2df388(0xa0)}},'required':[a12_0x2df388(0xb5)]}},{'name':a12_0x2df388(0xb7),'description':'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.','inputSchema':{'type':a12_0x2df388(0xc3),'properties':{...authProperties,'datasetCode':{'type':a12_0x2df388(0xaf),'description':a12_0x2df388(0xa0)},'operationName':{'type':a12_0x2df388(0xaf),'description':a12_0x2df388(0xc5)}},'required':[a12_0x2df388(0xb5),a12_0x2df388(0x9d)]}},{'name':a12_0x2df388(0xb4),'description':a12_0x2df388(0xc0),'inputSchema':{'type':a12_0x2df388(0xc3),'properties':{...authProperties,'datasetCode':{'type':'string','description':'Dataset\x20code/ID'},'operationName':{'type':a12_0x2df388(0xaf),'description':'Operation\x20name\x20(e.g.,\x20filter,\x20getOne,\x20create,\x20update).\x20Prefer\x20\x22filter\x22\x20for\x20queries.'},'includeImports':{'type':a12_0x2df388(0xba),'description':a12_0x2df388(0xb3)}},'required':['datasetCode',a12_0x2df388(0x9d)]}},{'name':'search_datasets','description':'Search\x20datasets\x20by\x20keyword\x20(searches\x20in\x20name,\x20table\x20name,\x20code,\x20and\x20description)','inputSchema':{'type':a12_0x2df388(0xc3),'properties':{...authProperties,'keyword':{'type':a12_0x2df388(0xaf),'description':a12_0x2df388(0xc6)}},'required':[a12_0x2df388(0xa7)]}},{'name':a12_0x2df388(0xb9),'description':a12_0x2df388(0xc1),'inputSchema':{'type':'object','properties':{...authProperties,'keyword':{'type':a12_0x2df388(0xaf),'description':a12_0x2df388(0x9c)},'category':{'type':a12_0x2df388(0xaf),'description':a12_0x2df388(0xbf)},'pageSize':{'type':a12_0x2df388(0xa3),'description':a12_0x2df388(0xab)},'currentPage':{'type':'number','description':a12_0x2df388(0xae)}},'required':[]}}];
@@ -1 +1 @@
1
- (function(_0x14b79f,_0x91ea95){const _0x84ee51=a13_0x29d2,_0x9f1390=_0x14b79f();while(!![]){try{const _0x167346=-parseInt(_0x84ee51(0xd5))/0x1*(parseInt(_0x84ee51(0xd2))/0x2)+parseInt(_0x84ee51(0xd6))/0x3+-parseInt(_0x84ee51(0xd8))/0x4+-parseInt(_0x84ee51(0xce))/0x5+-parseInt(_0x84ee51(0xd9))/0x6+-parseInt(_0x84ee51(0xda))/0x7+parseInt(_0x84ee51(0xd7))/0x8;if(_0x167346===_0x91ea95)break;else _0x9f1390['push'](_0x9f1390['shift']());}catch(_0x3715ab){_0x9f1390['push'](_0x9f1390['shift']());}}}(a13_0x1d62,0xcd86a));import{DevApiClient}from'../api/dev-api-client.js';function a13_0x1d62(){const _0x5f11cf=['datasets','total','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','6007240QibuMv','analyzeDatasetList','LOVRABET_APP_CODE','online','124870JMAFdh','env','getDatasetList','19MHXaJt','670542BsyYuA','54252320QzgWxi','6240292YFpRhx','4302384itMTSc','10488590VUcbKS'];a13_0x1d62=function(){return _0x5f11cf;};return a13_0x1d62();}import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a13_0x29d2(_0x428418,_0x4f7fd){const _0x1d623c=a13_0x1d62();return a13_0x29d2=function(_0x29d231,_0x2150c5){_0x29d231=_0x29d231-0xcb;let _0xd88c45=_0x1d623c[_0x29d231];return _0xd88c45;},a13_0x29d2(_0x428418,_0x4f7fd);}export async function listDatasets(_0x5df947={}){const _0x3fb4c6=a13_0x29d2,{appCode:appCode=process[_0x3fb4c6(0xd3)][_0x3fb4c6(0xd0)],env:env=process['env']['LOVRABET_ENV']||_0x3fb4c6(0xd1),cookie:_0x1f2cc8,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1,forceRefresh:forceRefresh=![]}=_0x5df947;if(!appCode)throw new Error(_0x3fb4c6(0xcd));const _0x7ea962=new DevApiClient({'appCode':appCode,'env':env,'cookie':_0x1f2cc8}),_0x4ef746=await _0x7ea962[_0x3fb4c6(0xd4)]({'pageSize':pageSize,'currentPage':currentPage,'forceRefresh':forceRefresh}),_0x29eca1=new DatasetAnalyzer(),_0x303b91=_0x29eca1[_0x3fb4c6(0xcf)](_0x4ef746);return{'appCode':appCode,'env':env,'total':_0x303b91[_0x3fb4c6(0xcc)],'datasets':_0x303b91[_0x3fb4c6(0xcb)]};}
1
+ function a13_0x2dc4(_0x70511b,_0x4027e5){const _0x5ec793=a13_0x5ec7();return a13_0x2dc4=function(_0x2dc4b9,_0x5f4cc9){_0x2dc4b9=_0x2dc4b9-0xee;let _0x447bae=_0x5ec793[_0x2dc4b9];return _0x447bae;},a13_0x2dc4(_0x70511b,_0x4027e5);}(function(_0x1cf380,_0x3c9644){const _0x3d8d70=a13_0x2dc4,_0x482284=_0x1cf380();while(!![]){try{const _0x11373f=parseInt(_0x3d8d70(0xf3))/0x1*(parseInt(_0x3d8d70(0xf9))/0x2)+parseInt(_0x3d8d70(0xfd))/0x3*(parseInt(_0x3d8d70(0xef))/0x4)+-parseInt(_0x3d8d70(0xfc))/0x5+-parseInt(_0x3d8d70(0xfa))/0x6*(parseInt(_0x3d8d70(0xf4))/0x7)+-parseInt(_0x3d8d70(0xee))/0x8+parseInt(_0x3d8d70(0xf0))/0x9+parseInt(_0x3d8d70(0xf6))/0xa;if(_0x11373f===_0x3c9644)break;else _0x482284['push'](_0x482284['shift']());}catch(_0xbb0988){_0x482284['push'](_0x482284['shift']());}}}(a13_0x5ec7,0x84c36));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a13_0x5ec7(){const _0x5e909c=['1393070PeXPsk','getDatasetList','datasets','1082vlcARj','6iUeiGf','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','3679065JzXCmD','31617qnWoHI','974936QHENRc','244xkxFVf','4426902TlKHAB','online','total','1361sneliu','4262209TaAhVE','LOVRABET_ENV'];a13_0x5ec7=function(){return _0x5e909c;};return a13_0x5ec7();}export async function listDatasets(_0x374ddb={}){const _0x1562ef=a13_0x2dc4,{appCode:appCode=process['env']['LOVRABET_APP_CODE'],env:env=process['env'][_0x1562ef(0xf5)]||_0x1562ef(0xf1),cookie:_0xd622af,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1,forceRefresh:forceRefresh=![]}=_0x374ddb;if(!appCode)throw new Error(_0x1562ef(0xfb));const _0x616113=new DevApiClient({'appCode':appCode,'env':env,'cookie':_0xd622af}),_0x3020c0=await _0x616113[_0x1562ef(0xf7)]({'pageSize':pageSize,'currentPage':currentPage,'forceRefresh':forceRefresh}),_0x21a83b=new DatasetAnalyzer(),_0x45525a=_0x21a83b['analyzeDatasetList'](_0x3020c0);return{'appCode':appCode,'env':env,'total':_0x45525a[_0x1562ef(0xf2)],'datasets':_0x45525a[_0x1562ef(0xf8)]};}
@@ -1 +1 @@
1
- function a14_0x5981(){const _0x5a0075=['reduce','\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27','\x27,\x0a});\x0a\x0a//\x20Execute\x20the\x20SQL\x20query:\x20','from','match','createTime','2024-01-01','This\x20SQL\x20does\x20not\x20require\x20any\x20parameters','On\x20HTTP\x20error,\x20SDK\x20throws\x20LovrabetError\x20exception\x20-\x20use\x20try-catch\x20for\x20error\x20handling','LOVRABET_ENV','string','getCustomSqlList','2184456OnDHWk','description','toLowerCase','length','887870zEcNxs','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','other','filter','tableData','category','2548719jNkCXU','The\x20execResult\x20contains\x20an\x20array\x20of\x20row\x20objects\x20matching\x20your\x20SQL\x20query\x20structure','sql_list','slice','name','sqlName','Failed\x20to\x20list\x20SQL\x20queries:\x20','online','IMPORTANT:\x20The\x20SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[],\x20execError?:\x20string\x20}','16rdzeHq','sqlCode','type','No\x20SQL\x20queries\x20found.\x20Check\x20your\x20appCode\x20and\x20authentication.','18kgkphl','updatedTime','968556qPYgWG','ceil','Parameter:\x20','775973qoirIo','updateTime','example','sqlContent','Each\x20SQL\x20query\x20above\x20includes\x20a\x20codeExample\x20field\x20with\x20complete\x20TypeScript\x20code\x20ready\x20to\x20use','IMPORTANT:\x20Business\x20logic\x20errors\x20(SQL\x20failures)\x20are\x20returned\x20in\x20data.execError,\x20not\x20thrown','\x22\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27','\x27);\x0aif\x20(!data.execSuccess)\x20{\x0a\x20\x20throw\x20new\x20Error(\x27SQL\x20execution\x20failed\x27);\x0a}\x0aconst\x20results\x20=\x20data.execResult\x20||\x20[];','data','time','includes','1353738qUTfoY','sql','20fKEWpp','SQL-','sqlType','env','map',');\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});','\x0a//\x20Example:\x20Using\x20SQL\x20\x22','sqlId','2477909xrHrLt','value','limit','Custom\x20SQL','stringify','total','IMPORTANT:\x20Use\x20try-catch\x20to\x20handle\x20HTTP\x20errors\x20(network\x20issues,\x20auth\x20failures)'];a14_0x5981=function(){return _0x5a0075;};return a14_0x5981();}(function(_0x413404,_0x1638b9){const _0x21d89c=a14_0x2aa2,_0x5769f9=_0x413404();while(!![]){try{const _0x3e3e2c=parseInt(_0x21d89c(0x1ee))/0x1+parseInt(_0x21d89c(0x1d2))/0x2+parseInt(_0x21d89c(0x1dc))/0x3+parseInt(_0x21d89c(0x1eb))/0x4*(-parseInt(_0x21d89c(0x1fb))/0x5)+-parseInt(_0x21d89c(0x1f9))/0x6+parseInt(_0x21d89c(0x203))/0x7*(-parseInt(_0x21d89c(0x1e5))/0x8)+parseInt(_0x21d89c(0x1e9))/0x9*(-parseInt(_0x21d89c(0x1d6))/0xa);if(_0x3e3e2c===_0x1638b9)break;else _0x5769f9['push'](_0x5769f9['shift']());}catch(_0x1f5aa3){_0x5769f9['push'](_0x5769f9['shift']());}}}(a14_0x5981,0x9bc5f));function a14_0x2aa2(_0x34b79d,_0x537447){const _0x59815f=a14_0x5981();return a14_0x2aa2=function(_0x2aa281,_0x3c2841){_0x2aa281=_0x2aa281-0x1d2;let _0x20c950=_0x59815f[_0x2aa281];return _0x20c950;},a14_0x2aa2(_0x34b79d,_0x537447);}import{DevApiClient}from'../api/dev-api-client.js';export async function listSqlQueries(_0x3e01bd={}){const _0xdba6f7=a14_0x2aa2,{appCode:appCode=process[_0xdba6f7(0x1fe)]['LOVRABET_APP_CODE'],cookie:_0x4f966e,env:env=process['env'][_0xdba6f7(0x213)]||_0xdba6f7(0x1e3),keyword:_0x1fe9dc,category:_0x3cc1dd,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1}=_0x3e01bd;if(!appCode)throw new Error(_0xdba6f7(0x1d7));const _0x3e54b3=new DevApiClient({'appCode':appCode,'cookie':_0x4f966e,'env':env});try{const _0x5270d0=await _0x3e54b3[_0xdba6f7(0x215)]({'pageSize':pageSize,'currentPage':currentPage}),_0x143113=_0x5270d0[_0xdba6f7(0x1f6)]||_0x5270d0,_0x6636eb=_0x143113[_0xdba6f7(0x1da)]||[],_0x14ef8b=_0x143113[_0xdba6f7(0x208)]||_0x6636eb['length'];let _0x58921c=_0x6636eb[_0xdba6f7(0x1ff)](_0xb3fd02=>{const _0x46e3eb=_0xdba6f7,_0x1f299d=_0xb3fd02[_0x46e3eb(0x1e6)]||appCode+'-'+(_0xb3fd02[_0x46e3eb(0x202)]||_0xb3fd02['id']),_0x4cc5bd=_0xb3fd02[_0x46e3eb(0x202)]||_0xb3fd02['id'];let _0x3af090;if(_0xb3fd02[_0x46e3eb(0x1f1)]||_0xb3fd02[_0x46e3eb(0x1fa)]){const _0x3ae427=_0xb3fd02[_0x46e3eb(0x1f1)]||_0xb3fd02['sql'],_0x4dc0e6=_0x3ae427[_0x46e3eb(0x20e)](/[:$]\{?(\w+)\}?/g);if(_0x4dc0e6){const _0x559a03=Array[_0x46e3eb(0x20d)](new Set(_0x4dc0e6[_0x46e3eb(0x1ff)](_0xa5771a=>_0xa5771a['replace'](/[:${}]/g,''))));_0x3af090=_0x559a03[_0x46e3eb(0x1ff)](_0x3e7a68=>{const _0x4b50e3=_0x46e3eb;let _0x5b9076=_0x4b50e3(0x204);if(_0x3e7a68['toLowerCase']()[_0x4b50e3(0x1f8)]('date')||_0x3e7a68[_0x4b50e3(0x1d4)]()['includes'](_0x4b50e3(0x1f7)))_0x5b9076=_0x4b50e3(0x210);else{if(_0x3e7a68[_0x4b50e3(0x1d4)]()[_0x4b50e3(0x1f8)]('id'))_0x5b9076=0x7b;else(_0x3e7a68['toLowerCase']()[_0x4b50e3(0x1f8)](_0x4b50e3(0x205))||_0x3e7a68['toLowerCase']()['includes']('count'))&&(_0x5b9076=0xa);}return{'name':_0x3e7a68,'type':_0x4b50e3(0x214),'required':!![],'description':_0x4b50e3(0x1ed)+_0x3e7a68,'example':_0x5b9076};});}}const _0x25562f=_0x3af090&&_0x3af090[_0x46e3eb(0x1d5)]>0x0,_0x421734=_0x25562f?_0x3af090[_0x46e3eb(0x20a)]((_0x6a0a63,_0x4badaf)=>({..._0x6a0a63,[_0x4badaf[_0x46e3eb(0x1e0)]]:_0x4badaf[_0x46e3eb(0x1f0)]}),{}):undefined,_0x10bcd9={'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+'\x27,\x0a\x20\x20env:\x20\x27'+(env||_0x46e3eb(0x1e3))+_0x46e3eb(0x20c)+(_0xb3fd02[_0x46e3eb(0x1e1)]||_0xb3fd02[_0x46e3eb(0x1e0)]||'SQL\x20Query')+_0x46e3eb(0x20b)+_0x1f299d+'\x27'+(_0x25562f?',\x20'+JSON[_0x46e3eb(0x207)](_0x421734,null,0x2):'')+_0x46e3eb(0x200),'description':'Execute\x20SQL\x20query:\x20'+(_0xb3fd02[_0x46e3eb(0x1e1)]||_0xb3fd02['name']||_0x46e3eb(0x206)),'important':['SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[]\x20}\x20-\x20Always\x20check\x20execSuccess\x20before\x20using\x20execResult','The\x20executeSql\x20method\x20accepts\x20two\x20parameters:\x20sqlCode\x20(string)\x20and\x20optional\x20params\x20(object)',_0x25562f?'This\x20SQL\x20requires\x20parameters:\x20'+_0x3af090['map'](_0x1994c9=>_0x1994c9[_0x46e3eb(0x1e0)]+'\x20('+_0x1994c9[_0x46e3eb(0x1e7)]+')')['join'](',\x20'):_0x46e3eb(0x211),_0x46e3eb(0x212),_0x46e3eb(0x1dd)]},_0x4f6f2b={'sqlCode':_0x1f299d,'sqlId':_0x4cc5bd,'name':_0xb3fd02[_0x46e3eb(0x1e1)]||_0xb3fd02[_0x46e3eb(0x1e0)]||_0x46e3eb(0x1fc)+_0x4cc5bd,'description':_0xb3fd02['sqlDesc']||_0xb3fd02['description'],'category':_0xb3fd02[_0x46e3eb(0x1db)]||_0xb3fd02[_0x46e3eb(0x1fd)]||_0x46e3eb(0x1d8),'sqlContent':_0xb3fd02[_0x46e3eb(0x1f1)]||_0xb3fd02[_0x46e3eb(0x1fa)],'parameters':_0x3af090,'createdTime':_0xb3fd02['createdTime']||_0xb3fd02[_0x46e3eb(0x20f)],'updatedTime':_0xb3fd02[_0x46e3eb(0x1ea)]||_0xb3fd02[_0x46e3eb(0x1ef)],'codeExample':_0x10bcd9};return _0x4f6f2b;});if(_0x1fe9dc){const _0x8f89b7=_0x1fe9dc['toLowerCase']();_0x58921c=_0x58921c[_0xdba6f7(0x1d9)](_0x474c7e=>_0x474c7e[_0xdba6f7(0x1e0)]['toLowerCase']()[_0xdba6f7(0x1f8)](_0x8f89b7)||_0x474c7e[_0xdba6f7(0x1d3)]&&_0x474c7e[_0xdba6f7(0x1d3)]['toLowerCase']()[_0xdba6f7(0x1f8)](_0x8f89b7)||_0x474c7e['sqlCode'][_0xdba6f7(0x1d4)]()[_0xdba6f7(0x1f8)](_0x8f89b7)||_0x474c7e['sqlContent']&&_0x474c7e[_0xdba6f7(0x1f1)]['toLowerCase']()[_0xdba6f7(0x1f8)](_0x8f89b7));}_0x3cc1dd&&_0x3cc1dd!=='all'&&(_0x58921c=_0x58921c['filter'](_0x9008f=>_0x9008f[_0xdba6f7(0x1db)]&&_0x9008f[_0xdba6f7(0x1db)][_0xdba6f7(0x1d4)]()===_0x3cc1dd[_0xdba6f7(0x1d4)]()));const _0x5b34c6=Math[_0xdba6f7(0x1ec)](_0x58921c[_0xdba6f7(0x1d5)]/pageSize),_0x318c43=_0x58921c[_0xdba6f7(0x1df)]((currentPage-0x1)*pageSize,currentPage*pageSize),_0x431da6=_0x318c43[_0xdba6f7(0x1d5)]>0x0?_0x318c43[0x0]:null,_0x5f4b22=_0x431da6?_0xdba6f7(0x201)+_0x431da6['name']+_0xdba6f7(0x1f4)+_0x431da6['sqlCode']+_0xdba6f7(0x1f5):'';return{'type':_0xdba6f7(0x1de),'total':_0x58921c['length'],'sqls':_0x318c43,'pagination':{'currentPage':currentPage,'pageSize':pageSize,'totalPages':_0x5b34c6},'usage':{'description':'Found\x20'+_0x58921c['length']+'\x20SQL\x20queries\x20for\x20application\x20'+appCode+'.\x20Each\x20SQL\x20includes\x20a\x20complete\x20code\x20example\x20showing\x20how\x20to\x20execute\x20it\x20using\x20the\x20SDK.','important':['IMPORTANT:\x20All\x20SQL\x20queries\x20use\x20the\x20same\x20execution\x20pattern\x20-\x20client.api.executeSql(sqlCode,\x20params)','IMPORTANT:\x20Always\x20check\x20data.execSuccess\x20before\x20using\x20data.execResult',_0xdba6f7(0x1e4),_0xdba6f7(0x209),_0xdba6f7(0x1f3),_0xdba6f7(0x1f2),'For\x20more\x20customization,\x20use\x20generate_sql_code\x20tool\x20to\x20get\x20code\x20with\x20type\x20inference'],'example':_0x5f4b22||_0xdba6f7(0x1e8)}};}catch(_0x2fc3c3){throw new Error(_0xdba6f7(0x1e2)+_0x2fc3c3['message']);}}
1
+ function a14_0x5719(){const _0x47bfc3=['sqlContent','This\x20SQL\x20does\x20not\x20require\x20any\x20parameters','sql_list','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','value','This\x20SQL\x20requires\x20parameters:\x20','sqlCode','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','Each\x20SQL\x20query\x20above\x20includes\x20a\x20codeExample\x20field\x20with\x20complete\x20TypeScript\x20code\x20ready\x20to\x20use','LOVRABET_ENV','The\x20execResult\x20contains\x20an\x20array\x20of\x20row\x20objects\x20matching\x20your\x20SQL\x20query\x20structure','env','createTime','sqlId','No\x20SQL\x20queries\x20found.\x20Check\x20your\x20appCode\x20and\x20authentication.','479250kWTngg','updatedTime','includes','tableData','data','Failed\x20to\x20list\x20SQL\x20queries:\x20','time','\x0a//\x20Example:\x20Using\x20SQL\x20\x22','createdTime','from','map','6AkfgSc','replace','873738edDAPy','string','\x27,\x0a\x20\x20env:\x20\x27','\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27','limit','length','Custom\x20SQL','\x27);\x0aif\x20(!data.execSuccess)\x20{\x0a\x20\x20throw\x20new\x20Error(\x27SQL\x20execution\x20failed\x27);\x0a}\x0aconst\x20results\x20=\x20data.execResult\x20||\x20[];','SQL\x20Query','filter','join','256792pxMWjV','match','16165oTydYX','IMPORTANT:\x20All\x20SQL\x20queries\x20use\x20the\x20same\x20execution\x20pattern\x20-\x20client.api.executeSql(sqlCode,\x20params)','IMPORTANT:\x20The\x20SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[],\x20execError?:\x20string\x20}','online','message','\x22\x0aconst\x20data\x20=\x20await\x20client.api.executeSql(\x27','stringify','category','toLowerCase','Execute\x20SQL\x20query:\x20','name','sqlDesc','reduce','484824NEAzSd','2024-01-01','1754515WxbONc','getCustomSqlList','sql','\x27,\x0a});\x0a\x0a//\x20Execute\x20the\x20SQL\x20query:\x20','68ByGyIJ','Parameter:\x20','5591940NeJaeT',');\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});','sqlName','type','ceil','The\x20executeSql\x20method\x20accepts\x20two\x20parameters:\x20sqlCode\x20(string)\x20and\x20optional\x20params\x20(object)','count','Found\x20','IMPORTANT:\x20Business\x20logic\x20errors\x20(SQL\x20failures)\x20are\x20returned\x20in\x20data.execError,\x20not\x20thrown','45IGwDKh','slice','LOVRABET_APP_CODE'];a14_0x5719=function(){return _0x47bfc3;};return a14_0x5719();}function a14_0x1f66(_0x34b0a4,_0x724775){const _0x571993=a14_0x5719();return a14_0x1f66=function(_0x1f661e,_0x1d4bdc){_0x1f661e=_0x1f661e-0xc6;let _0x36a1f7=_0x571993[_0x1f661e];return _0x36a1f7;},a14_0x1f66(_0x34b0a4,_0x724775);}(function(_0xcac4b,_0x4bdacb){const _0x5749a5=a14_0x1f66,_0x5f35f9=_0xcac4b();while(!![]){try{const _0x4a4720=-parseInt(_0x5749a5(0xf6))/0x1+parseInt(_0x5749a5(0xde))/0x2+parseInt(_0x5749a5(0xeb))/0x3+-parseInt(_0x5749a5(0x10b))/0x4*(parseInt(_0x5749a5(0xf8))/0x5)+parseInt(_0x5749a5(0xe9))/0x6*(-parseInt(_0x5749a5(0x107))/0x7)+parseInt(_0x5749a5(0x105))/0x8*(-parseInt(_0x5749a5(0xcc))/0x9)+parseInt(_0x5749a5(0x10d))/0xa;if(_0x4a4720===_0x4bdacb)break;else _0x5f35f9['push'](_0x5f35f9['shift']());}catch(_0x5c4e93){_0x5f35f9['push'](_0x5f35f9['shift']());}}}(a14_0x5719,0x36d8c));import{DevApiClient}from'../api/dev-api-client.js';export async function listSqlQueries(_0x990e69={}){const _0x441e56=a14_0x1f66,{appCode:appCode=process[_0x441e56(0xda)][_0x441e56(0xce)],cookie:_0x777650,env:env=process[_0x441e56(0xda)][_0x441e56(0xd8)]||_0x441e56(0xfb),keyword:_0x2ee27a,category:_0x5bc1c8,pageSize:pageSize=0x3e7,currentPage:currentPage=0x1}=_0x990e69;if(!appCode)throw new Error(_0x441e56(0xd6));const _0x251bbf=new DevApiClient({'appCode':appCode,'cookie':_0x777650,'env':env});try{const _0x396438=await _0x251bbf[_0x441e56(0x108)]({'pageSize':pageSize,'currentPage':currentPage}),_0xae69f0=_0x396438[_0x441e56(0xe2)]||_0x396438,_0x4db91a=_0xae69f0[_0x441e56(0xe1)]||[],_0x155742=_0xae69f0['total']||_0x4db91a[_0x441e56(0xf0)];let _0x25562f=_0x4db91a[_0x441e56(0xe8)](_0x58c51d=>{const _0x565eaa=_0x441e56,_0x3f9703=_0x58c51d[_0x565eaa(0xd5)]||appCode+'-'+(_0x58c51d['sqlId']||_0x58c51d['id']),_0x1920b5=_0x58c51d[_0x565eaa(0xdc)]||_0x58c51d['id'];let _0x5d1474;if(_0x58c51d[_0x565eaa(0xcf)]||_0x58c51d[_0x565eaa(0x109)]){const _0x58cd79=_0x58c51d[_0x565eaa(0xcf)]||_0x58c51d['sql'],_0x3fa31e=_0x58cd79[_0x565eaa(0xf7)](/[:$]\{?(\w+)\}?/g);if(_0x3fa31e){const _0x11e776=Array[_0x565eaa(0xe7)](new Set(_0x3fa31e[_0x565eaa(0xe8)](_0x4237e2=>_0x4237e2[_0x565eaa(0xea)](/[:${}]/g,''))));_0x5d1474=_0x11e776[_0x565eaa(0xe8)](_0x59e2e2=>{const _0x2bc94b=_0x565eaa;let _0x466bf1=_0x2bc94b(0xd3);if(_0x59e2e2['toLowerCase']()[_0x2bc94b(0xe0)]('date')||_0x59e2e2[_0x2bc94b(0x100)]()['includes'](_0x2bc94b(0xe4)))_0x466bf1=_0x2bc94b(0x106);else{if(_0x59e2e2['toLowerCase']()[_0x2bc94b(0xe0)]('id'))_0x466bf1=0x7b;else(_0x59e2e2[_0x2bc94b(0x100)]()[_0x2bc94b(0xe0)](_0x2bc94b(0xef))||_0x59e2e2[_0x2bc94b(0x100)]()[_0x2bc94b(0xe0)](_0x2bc94b(0xc9)))&&(_0x466bf1=0xa);}return{'name':_0x59e2e2,'type':_0x2bc94b(0xec),'required':!![],'description':_0x2bc94b(0x10c)+_0x59e2e2,'example':_0x466bf1};});}}const _0x230e30=_0x5d1474&&_0x5d1474[_0x565eaa(0xf0)]>0x0,_0x4e1448=_0x230e30?_0x5d1474[_0x565eaa(0x104)]((_0x55a740,_0x18aee0)=>({..._0x55a740,[_0x18aee0[_0x565eaa(0x102)]]:_0x18aee0['example']}),{}):undefined,_0x5527d9={'typescript':_0x565eaa(0xd2)+appCode+_0x565eaa(0xed)+(env||_0x565eaa(0xfb))+_0x565eaa(0x10a)+(_0x58c51d['sqlName']||_0x58c51d[_0x565eaa(0x102)]||_0x565eaa(0xf3))+_0x565eaa(0xee)+_0x3f9703+'\x27'+(_0x230e30?',\x20'+JSON[_0x565eaa(0xfe)](_0x4e1448,null,0x2):'')+_0x565eaa(0x10e),'description':_0x565eaa(0x101)+(_0x58c51d[_0x565eaa(0x10f)]||_0x58c51d[_0x565eaa(0x102)]||_0x565eaa(0xf1)),'important':['SDK\x20returns\x20{\x20execSuccess:\x20boolean,\x20execResult?:\x20any[]\x20}\x20-\x20Always\x20check\x20execSuccess\x20before\x20using\x20execResult',_0x565eaa(0xc8),_0x230e30?_0x565eaa(0xd4)+_0x5d1474[_0x565eaa(0xe8)](_0x48cddb=>_0x48cddb[_0x565eaa(0x102)]+'\x20('+_0x48cddb[_0x565eaa(0xc6)]+')')[_0x565eaa(0xf5)](',\x20'):_0x565eaa(0xd0),'On\x20HTTP\x20error,\x20SDK\x20throws\x20LovrabetError\x20exception\x20-\x20use\x20try-catch\x20for\x20error\x20handling',_0x565eaa(0xd9)]},_0x4718e6={'sqlCode':_0x3f9703,'sqlId':_0x1920b5,'name':_0x58c51d[_0x565eaa(0x10f)]||_0x58c51d['name']||'SQL-'+_0x1920b5,'description':_0x58c51d[_0x565eaa(0x103)]||_0x58c51d['description'],'category':_0x58c51d['category']||_0x58c51d['sqlType']||'other','sqlContent':_0x58c51d[_0x565eaa(0xcf)]||_0x58c51d['sql'],'parameters':_0x5d1474,'createdTime':_0x58c51d[_0x565eaa(0xe6)]||_0x58c51d[_0x565eaa(0xdb)],'updatedTime':_0x58c51d[_0x565eaa(0xdf)]||_0x58c51d['updateTime'],'codeExample':_0x5527d9};return _0x4718e6;});if(_0x2ee27a){const _0x3d0a16=_0x2ee27a['toLowerCase']();_0x25562f=_0x25562f[_0x441e56(0xf4)](_0x4bcf1d=>_0x4bcf1d[_0x441e56(0x102)]['toLowerCase']()[_0x441e56(0xe0)](_0x3d0a16)||_0x4bcf1d['description']&&_0x4bcf1d['description'][_0x441e56(0x100)]()[_0x441e56(0xe0)](_0x3d0a16)||_0x4bcf1d['sqlCode'][_0x441e56(0x100)]()[_0x441e56(0xe0)](_0x3d0a16)||_0x4bcf1d[_0x441e56(0xcf)]&&_0x4bcf1d[_0x441e56(0xcf)][_0x441e56(0x100)]()[_0x441e56(0xe0)](_0x3d0a16));}_0x5bc1c8&&_0x5bc1c8!=='all'&&(_0x25562f=_0x25562f['filter'](_0x2b1195=>_0x2b1195[_0x441e56(0xff)]&&_0x2b1195[_0x441e56(0xff)][_0x441e56(0x100)]()===_0x5bc1c8['toLowerCase']()));const _0x35fe18=Math[_0x441e56(0xc7)](_0x25562f['length']/pageSize),_0x1019d0=_0x25562f[_0x441e56(0xcd)]((currentPage-0x1)*pageSize,currentPage*pageSize),_0x345e5d=_0x1019d0[_0x441e56(0xf0)]>0x0?_0x1019d0[0x0]:null,_0x344975=_0x345e5d?_0x441e56(0xe5)+_0x345e5d[_0x441e56(0x102)]+_0x441e56(0xfd)+_0x345e5d[_0x441e56(0xd5)]+_0x441e56(0xf2):'';return{'type':_0x441e56(0xd1),'total':_0x25562f[_0x441e56(0xf0)],'sqls':_0x1019d0,'pagination':{'currentPage':currentPage,'pageSize':pageSize,'totalPages':_0x35fe18},'usage':{'description':_0x441e56(0xca)+_0x25562f[_0x441e56(0xf0)]+'\x20SQL\x20queries\x20for\x20application\x20'+appCode+'.\x20Each\x20SQL\x20includes\x20a\x20complete\x20code\x20example\x20showing\x20how\x20to\x20execute\x20it\x20using\x20the\x20SDK.','important':[_0x441e56(0xf9),'IMPORTANT:\x20Always\x20check\x20data.execSuccess\x20before\x20using\x20data.execResult',_0x441e56(0xfa),'IMPORTANT:\x20Use\x20try-catch\x20to\x20handle\x20HTTP\x20errors\x20(network\x20issues,\x20auth\x20failures)',_0x441e56(0xcb),_0x441e56(0xd7),'For\x20more\x20customization,\x20use\x20generate_sql_code\x20tool\x20to\x20get\x20code\x20with\x20type\x20inference'],'example':_0x344975||_0x441e56(0xdd)}};}catch(_0x183ba5){throw new Error(_0x441e56(0xe3)+_0x183ba5[_0x441e56(0xfc)]);}}
@@ -1 +1 @@
1
- (function(_0x2bb69c,_0x13b63){const _0xf5c766=a15_0x5741,_0x4393d1=_0x2bb69c();while(!![]){try{const _0xaf4ac9=parseInt(_0xf5c766(0x17d))/0x1*(-parseInt(_0xf5c766(0x178))/0x2)+parseInt(_0xf5c766(0x15c))/0x3+-parseInt(_0xf5c766(0x164))/0x4+-parseInt(_0xf5c766(0x177))/0x5*(parseInt(_0xf5c766(0x15d))/0x6)+-parseInt(_0xf5c766(0x17c))/0x7+-parseInt(_0xf5c766(0x16c))/0x8+parseInt(_0xf5c766(0x15b))/0x9;if(_0xaf4ac9===_0x13b63)break;else _0x4393d1['push'](_0x4393d1['shift']());}catch(_0x1373e5){_0x4393d1['push'](_0x4393d1['shift']());}}}(a15_0x35b9,0xa3814));import*as a15_0x1506d7 from'node:https';import{saveCookie}from'../auth/cookie-manager.js';import{isSessionValid}from'../auth/session-validator.js';function a15_0x35b9(){const _0x37f732=['Login\x20server\x20error:\x20','127.0.0.1','env','4310084PCVXVC','writeHead','headers','https://dev.lovrabet.com:','close','Login\x20successful\x20but\x20failed\x20to\x20save\x20cookie:\x20','/api/auth/get-session','object','9913120TuoMzH','Already\x20logged\x20in\x20to\x20','error','createServer','online','/sign-in?redirect=','\x20environment','Internal\x20server\x20error','https://g.yuntooai.com/cert/lovrabet-dev.json','text/html;\x20charset=utf-8','Successfully\x20logged\x20in\x20to\x20','15kBRxqc','260AOwXTv','port','<!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','Login\x20timeout\x20-\x20no\x20response\x20received\x20within\x205\x20minutes','4657296mOAAIL','1489BqgBqo','</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','Login\x20server\x20error','Failed\x20to\x20fetch\x20SSL\x20certificates\x20for\x20login\x20server','end','38635803CPvtlU','1812399TNXAdT','2103450JrHzeR','listen','message','<!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>'];a15_0x35b9=function(){return _0x37f732;};return a15_0x35b9();}function a15_0x5741(_0x49bae4,_0x28435c){const _0x35b9bc=a15_0x35b9();return a15_0x5741=function(_0x57411f,_0x5524b9){_0x57411f=_0x57411f-0x157;let _0x50453e=_0x35b9bc[_0x57411f];return _0x50453e;},a15_0x5741(_0x49bae4,_0x28435c);}import{getUserDomain}from'../auth/constants.js';export async function login(_0xc1f085={}){const _0x5cfc02=a15_0x5741,_0x491677=_0xc1f085[_0x5cfc02(0x163)]||_0x5cfc02(0x170);if(await isSessionValid(_0x491677))return{'success':!![],'message':_0x5cfc02(0x16d)+_0x491677+_0x5cfc02(0x172),'env':_0x491677};let _0x47dc32;try{const _0x50d2f9=await fetch(_0x5cfc02(0x174));_0x47dc32=await _0x50d2f9[_0x5cfc02(0x157)]();}catch(_0x60466){return{'success':![],'message':_0x5cfc02(0x159),'env':_0x491677};}return new Promise(_0x1b4be0=>{const _0x430351=_0x5cfc02;let _0x40f281=0x0;const _0x2ea493=a15_0x1506d7[_0x430351(0x16f)](_0x47dc32,async(_0x1fa562,_0x5a8a5)=>{const _0x238623=_0x430351,_0x25018a=getUserDomain(_0x491677),_0x54ac53=_0x1fa562[_0x238623(0x166)]['cookie']||'';try{const _0xd358b5=await fetch(_0x25018a+_0x238623(0x16a),{'headers':{'cookie':_0x54ac53}}),_0x121cb5=await _0xd358b5[_0x238623(0x157)](),_0x5a3002=_0x121cb5&&_0x121cb5['session']&&_0x121cb5['user'];if(_0x5a3002){try{saveCookie(_0x54ac53);}catch(_0x4595cb){const _0x29e238=_0x238623(0x17a)+_0x4595cb[_0x238623(0x15f)]+_0x238623(0x17e);_0x5a8a5[_0x238623(0x165)](0x1f4,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x5a8a5[_0x238623(0x15a)](_0x29e238),_0x2ea493[_0x238623(0x168)](),_0x1b4be0({'success':![],'message':_0x238623(0x169)+_0x4595cb[_0x238623(0x15f)],'env':_0x491677});return;}const _0x56669d=_0x238623(0x160);_0x5a8a5[_0x238623(0x165)](0xc8,{'Content-Type':_0x238623(0x175)}),_0x5a8a5[_0x238623(0x15a)](_0x56669d),_0x2ea493[_0x238623(0x168)](),_0x1b4be0({'success':!![],'message':_0x238623(0x176)+_0x491677+'\x20environment','env':_0x491677});}else{const _0x160dbe=encodeURIComponent(_0x238623(0x167)+_0x40f281);_0x5a8a5['writeHead'](0x12e,{'location':_0x25018a+_0x238623(0x171)+_0x160dbe}),_0x5a8a5[_0x238623(0x15a)]();}}catch(_0x1eb13a){_0x5a8a5[_0x238623(0x165)](0x1f4,{'Content-Type':'text/plain'}),_0x5a8a5[_0x238623(0x15a)](_0x238623(0x173)),_0x2ea493['close'](),_0x1b4be0({'success':![],'message':_0x238623(0x158),'env':_0x491677});}});_0x2ea493[_0x430351(0x15e)](0x0,_0x430351(0x162),()=>{const _0x3b01fb=_0x430351,_0x244b58=_0x2ea493['address']();_0x40f281=typeof _0x244b58===_0x3b01fb(0x16b)&&_0x244b58?_0x244b58[_0x3b01fb(0x179)]:0x0;const _0xca5d50=_0x3b01fb(0x167)+_0x40f281;_0x1b4be0({'success':![],'message':'Please\x20open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20login:\x20'+_0xca5d50,'loginUrl':_0xca5d50,'env':_0x491677});}),_0x2ea493['on'](_0x430351(0x16e),_0x1ada8c=>{const _0x1725ec=_0x430351;_0x1b4be0({'success':![],'message':_0x1725ec(0x161)+_0x1ada8c['message'],'env':_0x491677});}),setTimeout(()=>{const _0x5b3cb0=_0x430351;_0x2ea493[_0x5b3cb0(0x168)](),_0x1b4be0({'success':![],'message':_0x5b3cb0(0x17b),'env':_0x491677});},0x5*0x3c*0x3e8);});}
1
+ (function(_0xb1e595,_0x2431e3){const _0x295047=a15_0x5492,_0x3a8739=_0xb1e595();while(!![]){try{const _0x40f45d=-parseInt(_0x295047(0x1ee))/0x1*(parseInt(_0x295047(0x1f1))/0x2)+-parseInt(_0x295047(0x200))/0x3*(parseInt(_0x295047(0x1e1))/0x4)+-parseInt(_0x295047(0x1df))/0x5+parseInt(_0x295047(0x1fb))/0x6+-parseInt(_0x295047(0x204))/0x7*(parseInt(_0x295047(0x1ef))/0x8)+-parseInt(_0x295047(0x1e5))/0x9*(-parseInt(_0x295047(0x1eb))/0xa)+parseInt(_0x295047(0x1e2))/0xb*(parseInt(_0x295047(0x1f4))/0xc);if(_0x40f45d===_0x2431e3)break;else _0x3a8739['push'](_0x3a8739['shift']());}catch(_0x24f138){_0x3a8739['push'](_0x3a8739['shift']());}}}(a15_0x1979,0x7862a));import*as a15_0x328d30 from'node:https';function a15_0x1979(){const _0x5eb13d=['listen','214562jcFkmX','\x20environment','object','352884keNZUd','cookie','online','close','createServer','Already\x20logged\x20in\x20to\x20','/api/auth/get-session','2561298fCiols','Internal\x20server\x20error','Login\x20server\x20error','Failed\x20to\x20fetch\x20SSL\x20certificates\x20for\x20login\x20server','text/html;\x20charset=utf-8','12rfhJLN','text/plain','error','Please\x20open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20login:\x20','9590wTzdmL','session','headers','end','4153055ByDPVh','message','532072xNaxMJ','627roiFrZ','</p>\x0a\x20\x20\x20\x20<p>Please\x20check\x20file\x20permissions\x20for\x20~/.lovrabet/cookie</p>\x0a\x20\x20</div>\x0a</body>\x0a</html>','<!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>','9XIuaOg','user','writeHead','https://dev.lovrabet.com:','Successfully\x20logged\x20in\x20to\x20','env','9530260RPKhOn','port','json','7XlacCc','2624vZevyz'];a15_0x1979=function(){return _0x5eb13d;};return a15_0x1979();}import{saveCookie}from'../auth/cookie-manager.js';import{isSessionValid}from'../auth/session-validator.js';function a15_0x5492(_0x44f666,_0x1d941f){const _0x197994=a15_0x1979();return a15_0x5492=function(_0x54929b,_0x2e0ac9){_0x54929b=_0x54929b-0x1dc;let _0x190f3e=_0x197994[_0x54929b];return _0x190f3e;},a15_0x5492(_0x44f666,_0x1d941f);}import{getUserDomain}from'../auth/constants.js';export async function login(_0x29f118={}){const _0x5bf517=a15_0x5492,_0xd4e50e=_0x29f118[_0x5bf517(0x1ea)]||_0x5bf517(0x1f6);if(await isSessionValid(_0xd4e50e))return{'success':!![],'message':_0x5bf517(0x1f9)+_0xd4e50e+_0x5bf517(0x1f2),'env':_0xd4e50e};let _0x15dd84;try{const _0x543aaf=await fetch('https://g.yuntooai.com/cert/lovrabet-dev.json');_0x15dd84=await _0x543aaf[_0x5bf517(0x1ed)]();}catch(_0x336c16){return{'success':![],'message':_0x5bf517(0x1fe),'env':_0xd4e50e};}return new Promise(_0xea1926=>{const _0x58cb52=_0x5bf517;let _0x5d3e6b=0x0;const _0x2d6008=a15_0x328d30[_0x58cb52(0x1f8)](_0x15dd84,async(_0x381706,_0x290d9c)=>{const _0x56e48f=_0x58cb52,_0x3c4be6=getUserDomain(_0xd4e50e),_0x235958=_0x381706[_0x56e48f(0x1dd)][_0x56e48f(0x1f5)]||'';try{const _0x32b73a=await fetch(_0x3c4be6+_0x56e48f(0x1fa),{'headers':{'cookie':_0x235958}}),_0x15e0ce=await _0x32b73a['json'](),_0x1dcc2f=_0x15e0ce&&_0x15e0ce[_0x56e48f(0x1dc)]&&_0x15e0ce[_0x56e48f(0x1e6)];if(_0x1dcc2f){try{saveCookie(_0x235958);}catch(_0x244686){const _0x14af6d='<!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'+_0x244686['message']+_0x56e48f(0x1e3);_0x290d9c[_0x56e48f(0x1e7)](0x1f4,{'Content-Type':_0x56e48f(0x1ff)}),_0x290d9c[_0x56e48f(0x1de)](_0x14af6d),_0x2d6008[_0x56e48f(0x1f7)](),_0xea1926({'success':![],'message':'Login\x20successful\x20but\x20failed\x20to\x20save\x20cookie:\x20'+_0x244686[_0x56e48f(0x1e0)],'env':_0xd4e50e});return;}const _0x3c1ee7=_0x56e48f(0x1e4);_0x290d9c[_0x56e48f(0x1e7)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x290d9c[_0x56e48f(0x1de)](_0x3c1ee7),_0x2d6008['close'](),_0xea1926({'success':!![],'message':_0x56e48f(0x1e9)+_0xd4e50e+_0x56e48f(0x1f2),'env':_0xd4e50e});}else{const _0xd0a871=encodeURIComponent(_0x56e48f(0x1e8)+_0x5d3e6b);_0x290d9c[_0x56e48f(0x1e7)](0x12e,{'location':_0x3c4be6+'/sign-in?redirect='+_0xd0a871}),_0x290d9c[_0x56e48f(0x1de)]();}}catch(_0x54f36c){_0x290d9c['writeHead'](0x1f4,{'Content-Type':_0x56e48f(0x201)}),_0x290d9c['end'](_0x56e48f(0x1fc)),_0x2d6008['close'](),_0xea1926({'success':![],'message':_0x56e48f(0x1fd),'env':_0xd4e50e});}});_0x2d6008[_0x58cb52(0x1f0)](0x0,'127.0.0.1',()=>{const _0x1f1cd4=_0x58cb52,_0x16fb48=_0x2d6008['address']();_0x5d3e6b=typeof _0x16fb48===_0x1f1cd4(0x1f3)&&_0x16fb48?_0x16fb48[_0x1f1cd4(0x1ec)]:0x0;const _0x428881=_0x1f1cd4(0x1e8)+_0x5d3e6b;_0xea1926({'success':![],'message':_0x1f1cd4(0x203)+_0x428881,'loginUrl':_0x428881,'env':_0xd4e50e});}),_0x2d6008['on'](_0x58cb52(0x202),_0x42c5d5=>{const _0x1f9db2=_0x58cb52;_0xea1926({'success':![],'message':'Login\x20server\x20error:\x20'+_0x42c5d5[_0x1f9db2(0x1e0)],'env':_0xd4e50e});}),setTimeout(()=>{const _0x1a1f9f=_0x58cb52;_0x2d6008[_0x1a1f9f(0x1f7)](),_0xea1926({'success':![],'message':'Login\x20timeout\x20-\x20no\x20response\x20received\x20within\x205\x20minutes','env':_0xd4e50e});},0x5*0x3c*0x3e8);});}
@@ -1 +1 @@
1
- (function(_0x5314c7,_0x52bc42){const _0x42eb0a=a16_0x11ac,_0x53238e=_0x5314c7();while(!![]){try{const _0x318dad=parseInt(_0x42eb0a(0x107))/0x1+parseInt(_0x42eb0a(0x108))/0x2*(parseInt(_0x42eb0a(0x117))/0x3)+parseInt(_0x42eb0a(0x116))/0x4*(-parseInt(_0x42eb0a(0x10a))/0x5)+parseInt(_0x42eb0a(0x11a))/0x6*(-parseInt(_0x42eb0a(0x119))/0x7)+parseInt(_0x42eb0a(0x10b))/0x8*(-parseInt(_0x42eb0a(0x111))/0x9)+parseInt(_0x42eb0a(0x115))/0xa+parseInt(_0x42eb0a(0x109))/0xb;if(_0x318dad===_0x52bc42)break;else _0x53238e['push'](_0x53238e['shift']());}catch(_0x267ddb){_0x53238e['push'](_0x53238e['shift']());}}}(a16_0x2374,0x28817));function a16_0x2374(){const _0x2139fc=['appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','745686sYrQbw','name','LOVRABET_APP_CODE','description','609400VQmohd','1006708xOTXat','90123dBywui','analyzeDatasetList','28007VqdvKf','108STmTti','online','255835fGnQPf','4tKrUxw','3974421tcWKiL','5Nlwedd','24tQzCBW','total','searchDatasets','map','keyword\x20is\x20required'];a16_0x2374=function(){return _0x2139fc;};return a16_0x2374();}import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a16_0x11ac(_0x4029b9,_0x2967ef){const _0x237432=a16_0x2374();return a16_0x11ac=function(_0x11ac27,_0x5e5071){_0x11ac27=_0x11ac27-0x107;let _0x3bddc8=_0x237432[_0x11ac27];return _0x3bddc8;},a16_0x11ac(_0x4029b9,_0x2967ef);}export async function searchDatasets(_0x717806){const _0x3dbdde=a16_0x11ac,{appCode:appCode=process['env'][_0x3dbdde(0x113)],cookie:_0x20164c,env:env=process['env']['LOVRABET_ENV']||_0x3dbdde(0x11b),keyword:_0x2c1e47}=_0x717806;if(!appCode)throw new Error(_0x3dbdde(0x110));if(!_0x2c1e47)throw new Error(_0x3dbdde(0x10f));const _0x4f7023=new DevApiClient({'appCode':appCode,'cookie':_0x20164c,'env':env}),_0x29fc5d=await _0x4f7023[_0x3dbdde(0x10d)](_0x2c1e47),_0x3bf7b5=new DatasetAnalyzer(),_0x4f33ca=_0x3bf7b5[_0x3dbdde(0x118)](_0x29fc5d);return{'appCode':appCode,'env':env,'keyword':_0x2c1e47,'total':_0x4f33ca[_0x3dbdde(0x10c)],'datasets':_0x4f33ca['datasets'][_0x3dbdde(0x10e)](_0x5ce7e9=>({'id':_0x5ce7e9['id'],'name':_0x5ce7e9[_0x3dbdde(0x112)],'code':_0x5ce7e9['code'],'tableName':_0x5ce7e9['tableName'],'description':_0x5ce7e9[_0x3dbdde(0x114)]}))};}
1
+ function a16_0x51ea(){const _0x4dd796=['3155028ScgJhC','8wAzTdM','name','8583006IJNnpG','284gUtLJm','appCode\x20is\x20required.\x20Provide\x20it\x20as\x20parameter\x20or\x20set\x20LOVRABET_APP_CODE\x20environment\x20variable.','map','9671keBZZt','keyword\x20is\x20required','9709679ywhbAL','code','LOVRABET_ENV','5910309jdngPl','total','4416205hOmBAr','searchDatasets','env','1004379KbzqUj','30NlgbkP'];a16_0x51ea=function(){return _0x4dd796;};return a16_0x51ea();}(function(_0x451f12,_0x22c047){const _0x2c0ae4=a16_0x35e5,_0x3c58f5=_0x451f12();while(!![]){try{const _0x529fea=parseInt(_0x2c0ae4(0x13b))/0x1*(parseInt(_0x2c0ae4(0x138))/0x2)+parseInt(_0x2c0ae4(0x132))/0x3+-parseInt(_0x2c0ae4(0x134))/0x4+parseInt(_0x2c0ae4(0x12f))/0x5+-parseInt(_0x2c0ae4(0x137))/0x6+parseInt(_0x2c0ae4(0x13d))/0x7*(-parseInt(_0x2c0ae4(0x135))/0x8)+-parseInt(_0x2c0ae4(0x140))/0x9*(-parseInt(_0x2c0ae4(0x133))/0xa);if(_0x529fea===_0x22c047)break;else _0x3c58f5['push'](_0x3c58f5['shift']());}catch(_0x472433){_0x3c58f5['push'](_0x3c58f5['shift']());}}}(a16_0x51ea,0xe92b8));import{DevApiClient}from'../api/dev-api-client.js';import{DatasetAnalyzer}from'../analyzer/dataset-analyzer.js';function a16_0x35e5(_0x1248a3,_0x55489a){const _0x51ea72=a16_0x51ea();return a16_0x35e5=function(_0x35e5b9,_0x3e020d){_0x35e5b9=_0x35e5b9-0x12e;let _0x53c878=_0x51ea72[_0x35e5b9];return _0x53c878;},a16_0x35e5(_0x1248a3,_0x55489a);}export async function searchDatasets(_0x41a622){const _0x2173df=a16_0x35e5,{appCode:appCode=process[_0x2173df(0x131)]['LOVRABET_APP_CODE'],cookie:_0x2ca212,env:env=process[_0x2173df(0x131)][_0x2173df(0x13f)]||'online',keyword:_0xb0cb17}=_0x41a622;if(!appCode)throw new Error(_0x2173df(0x139));if(!_0xb0cb17)throw new Error(_0x2173df(0x13c));const _0x39c8c8=new DevApiClient({'appCode':appCode,'cookie':_0x2ca212,'env':env}),_0x642368=await _0x39c8c8[_0x2173df(0x130)](_0xb0cb17),_0x1bbe0b=new DatasetAnalyzer(),_0x132afd=_0x1bbe0b['analyzeDatasetList'](_0x642368);return{'appCode':appCode,'env':env,'keyword':_0xb0cb17,'total':_0x132afd[_0x2173df(0x12e)],'datasets':_0x132afd['datasets'][_0x2173df(0x13a)](_0x403d68=>({'id':_0x403d68['id'],'name':_0x403d68[_0x2173df(0x136)],'code':_0x403d68[_0x2173df(0x13e)],'tableName':_0x403d68['tableName'],'description':_0x403d68['description']}))};}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/dataset-mcp-server",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "MCP server for Lovrabet Dataset access",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "examples": "npm run example:basic && npm run example:sdk && npm run example:compare"
31
31
  },
32
32
  "dependencies": {
33
- "@lovrabet/dsparser": "^1.0.16",
33
+ "@lovrabet/dsparser": "^1.0.19",
34
34
  "@modelcontextprotocol/sdk": "^1.0.4",
35
35
  "axios": "^1.6.2",
36
36
  "dotenv": "^16.3.1",
@@ -57,4 +57,4 @@
57
57
  "engines": {
58
58
  "node": ">=18.0.0"
59
59
  }
60
- }
60
+ }