@lovrabet/lovrabet-cli 2.0.1-beta.7 → 2.0.1-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/app/cache.js +1 -0
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -0
- package/lib/commands/app/remote-source.js +1 -0
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -0
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -0
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/doctor.js +1 -0
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -0
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/config/schema.js +1 -0
- package/lib/constant/auth-mode.js +1 -0
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -0
- package/lib/constant/risk.js +1 -0
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -0
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -0
- package/lib/framework/runner-error.js +1 -0
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -0
- package/lib/framework/types.js +1 -1
- package/lib/help.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -0
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/version.js +1 -0
- package/lib/utils/write-cli-side-channel.js +1 -0
- package/package.json +8 -4
- package/lib/auth/auth-server-ui.js +0 -1
- package/lib/auth/auth-server.js +0 -1
- package/lib/auth/constant.js +0 -1
- package/lib/auth/get-cookie.js +0 -1
- package/lib/auth/is-session-valid.js +0 -1
- package/lib/auth/logout.js +0 -1
package/lib/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
function a0_0x4cef(){const _0x29fadf=['exitCode','input','\x20init\x20import`\x20has\x20moved\x20to\x20`','hint','[deprecation]\x20`','891680NShXrB','[preparse]\x20','694160tmfoWe','log','exit','corrected','5706057vdmwdV','assign','\x0aCancelled.\x0a','535905MlYBCI','6HHOxgl','name','app','args','ERR_USE_AFTER_CLOSE','./framework/preparse.js','length','102512RvhuPI','code','flatMap','error','defaultCommand','stderr','handler','slice','catch','\x20->\x20--','import','265338slUcKL','Hint:\x20','190mzVuzK','ERR_STREAM_DESTROYED','1055868yUXkuv',':\x20--','Error:\x20','flags','write','5kFkpYj'];a0_0x4cef=function(){return _0x29fadf;};return a0_0x4cef();}const a0_0x2b487d=a0_0x2e6d;(function(_0xd9b7c0,_0x21053a){const _0x5c42ca=a0_0x2e6d,_0x5e7864=_0xd9b7c0();while(!![]){try{const _0x1dcf33=parseInt(_0x5c42ca(0x175))/0x1+-parseInt(_0x5c42ca(0x166))/0x2*(-parseInt(_0x5c42ca(0x154))/0x3)+parseInt(_0x5c42ca(0x15b))/0x4+-parseInt(_0x5c42ca(0x16f))/0x5*(parseInt(_0x5c42ca(0x16a))/0x6)+parseInt(_0x5c42ca(0x17b))/0x7+-parseInt(_0x5c42ca(0x177))/0x8+parseInt(_0x5c42ca(0x153))/0x9*(-parseInt(_0x5c42ca(0x168))/0xa);if(_0x1dcf33===_0x21053a)break;else _0x5e7864['push'](_0x5e7864['shift']());}catch(_0x487193){_0x5e7864['push'](_0x5e7864['shift']());}}}(a0_0x4cef,0x9362e));import{jsx as a0_0x54b03d}from'react/jsx-runtime';function a0_0x2e6d(_0x28c04e,_0xde4b0f){_0x28c04e=_0x28c04e-0x153;const _0x4ceff5=a0_0x4cef();let _0x2e6d5e=_0x4ceff5[_0x28c04e];return _0x2e6d5e;}import a0_0x26645d from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x26645d(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x2b487d(0x163)](handleError);async function main(){try{await run();}catch(_0x4f6dbb){handleError(_0x4f6dbb);}}async function run(){const _0x2b3111=a0_0x2b487d;let _0x18e8b7=cli[_0x2b3111(0x171)][0x0],_0x1428ac=cli[_0x2b3111(0x171)][0x1];const _0x443dd4=cli[_0x2b3111(0x16d)];try{const {correctFlags:_0x2ce367}=await import(_0x2b3111(0x159)),_0x42029b=getAllDefinitions()[_0x2b3111(0x15d)](_0x2635b9=>_0x2635b9[_0x2b3111(0x16d)]??[]),{flags:_0x443eb0,corrections:_0x18ea28}=_0x2ce367(_0x443dd4,_0x42029b);if(_0x18ea28[_0x2b3111(0x15a)]>0x0){for(const _0x6e0e of _0x18ea28){process[_0x2b3111(0x160)][_0x2b3111(0x16e)](_0x2b3111(0x176)+_0x6e0e[_0x2b3111(0x161)]+_0x2b3111(0x16b)+_0x6e0e['original']+_0x2b3111(0x164)+_0x6e0e[_0x2b3111(0x17a)]+'\x0a');}Object[_0x2b3111(0x17c)](_0x443dd4,_0x443eb0);}}catch{}if(!_0x18e8b7||!isKnownService(_0x18e8b7)){const {waitUntilExit:_0x64c197}=render(a0_0x54b03d(Help,{}));await _0x64c197();return;}const _0x5ac3b8=getServiceEntry(_0x18e8b7);if(!_0x1428ac){if(_0x443dd4['help']){console[_0x2b3111(0x178)](generateServiceHelp(_0x18e8b7));return;}if(_0x5ac3b8['defaultCommand'])_0x1428ac=_0x5ac3b8[_0x2b3111(0x15f)];else{console[_0x2b3111(0x178)](generateServiceHelp(_0x18e8b7));return;}}_0x18e8b7==='init'&&_0x1428ac===_0x2b3111(0x165)&&(_0x18e8b7=_0x2b3111(0x156),process[_0x2b3111(0x160)][_0x2b3111(0x16e)](_0x2b3111(0x174)+CLI_BIN_NAME+_0x2b3111(0x172)+CLI_BIN_NAME+'\x20app\x20import`.\x0a'));const _0x357c47=findDefinition(_0x18e8b7,_0x1428ac);!_0x357c47&&(console[_0x2b3111(0x178)](generateServiceHelp(_0x18e8b7)),handleError(CliErrors['unknownCommand'](_0x18e8b7+'\x20'+_0x1428ac)));if(_0x443dd4['help']){console[_0x2b3111(0x178)](generateCommandHelp(_0x357c47));return;}const _0x11891d=buildConfigFromFlags(_0x443dd4);await initGlobalEnvironment(_0x11891d);const _0x1190fb=createPipelineEnv(_0x11891d,_0x443dd4);_0x1190fb[_0x2b3111(0x157)]=cli['input'][_0x2b3111(0x162)](0x2),await runCommand(_0x357c47,_0x1190fb);}function handleError(_0x285dcc){const _0x5dcdca=a0_0x2b487d;if(_0x285dcc instanceof CliError){_0x285dcc['code']==='cancelled'&&(process[_0x5dcdca(0x160)]['write'](_0x5dcdca(0x17d)),process['exit'](0x0));console[_0x5dcdca(0x15e)](_0x5dcdca(0x16c)+_0x285dcc['message']);if(_0x285dcc[_0x5dcdca(0x173)])console[_0x5dcdca(0x15e)](_0x5dcdca(0x167)+_0x285dcc[_0x5dcdca(0x173)]);process['exit'](_0x285dcc[_0x5dcdca(0x170)]);}isUserCancellation(_0x285dcc)&&(process[_0x5dcdca(0x160)][_0x5dcdca(0x16e)](_0x5dcdca(0x17d)),process[_0x5dcdca(0x179)](0x0)),console['error']('Unexpected\x20error:',_0x285dcc),process[_0x5dcdca(0x179)](0x1);}function isUserCancellation(_0x31fc27){const _0x9ee369=a0_0x2b487d;if(!(_0x31fc27 instanceof Error))return![];if(_0x31fc27[_0x9ee369(0x155)]==='ExitPromptError')return!![];if(_0x31fc27[_0x9ee369(0x15c)]===_0x9ee369(0x158))return!![];if(_0x31fc27[_0x9ee369(0x15c)]===_0x9ee369(0x169))return!![];return![];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x15be76,_0x16a5f9){const _0x2662a1=a1_0x44fe,_0x2a1cb3=_0x15be76();while(!![]){try{const _0x405eed=-parseInt(_0x2662a1(0x12d))/0x1*(parseInt(_0x2662a1(0x130))/0x2)+-parseInt(_0x2662a1(0x11d))/0x3+parseInt(_0x2662a1(0x115))/0x4*(parseInt(_0x2662a1(0x120))/0x5)+-parseInt(_0x2662a1(0x11f))/0x6*(parseInt(_0x2662a1(0x131))/0x7)+parseInt(_0x2662a1(0x11b))/0x8*(-parseInt(_0x2662a1(0x112))/0x9)+-parseInt(_0x2662a1(0x125))/0xa*(parseInt(_0x2662a1(0x110))/0xb)+parseInt(_0x2662a1(0x119))/0xc*(parseInt(_0x2662a1(0x128))/0xd);if(_0x405eed===_0x16a5f9)break;else _0x2a1cb3['push'](_0x2a1cb3['shift']());}catch(_0x1bfc81){_0x2a1cb3['push'](_0x2a1cb3['shift']());}}}(a1_0x344a,0xd8aae));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0xef5a08){const _0x275768=a1_0x44fe,_0x514c85=_0xef5a08[_0x275768(0x12f)](),_0xa4f607=_0x514c85[_0x275768(0x12b)](-0x6)||_0x275768(0x121),_0x400524=createHash(_0x275768(0x116))[_0x275768(0x12e)](_0x514c85)[_0x275768(0x117)](_0x275768(0x11c))[_0x275768(0x12b)](0x0,0xc);return _0x275768(0x11a)+_0xa4f607+'_'+_0x400524;}export function getAppCacheFilePath(_0x455dfc,_0x1fac4e){const _0x4542d1=a1_0x44fe;return resolve(homedir(),_0x4542d1(0x10f),_0x4542d1(0x124),_0x455dfc,fingerprintAccessKey(_0x1fac4e),_0x4542d1(0x132));}export function readCachedAppList(_0x2456f4,_0x543836){const _0x1c6ff6=a1_0x44fe;if(!_0x543836?.[_0x1c6ff6(0x12f)]())return null;const _0x569b75=getAppCacheFilePath(_0x2456f4,_0x543836);if(!existsSync(_0x569b75))return null;try{const _0x128d8c=readFileSync(_0x569b75,_0x1c6ff6(0x129));if(!_0x128d8c[_0x1c6ff6(0x12f)]())return null;const _0x490dc6=JSON[_0x1c6ff6(0x12c)](_0x128d8c);if(!Array[_0x1c6ff6(0x11e)](_0x490dc6[_0x1c6ff6(0x122)]))return null;return _0x490dc6;}catch{return null;}}function a1_0x44fe(_0x5bf801,_0x21a74b){_0x5bf801=_0x5bf801-0x10f;const _0x344aaf=a1_0x344a();let _0x44fe6c=_0x344aaf[_0x5bf801];return _0x44fe6c;}export function writeCachedAppList(_0x2912eb,_0x228e1c,_0x46ffbd){const _0xb3094c=a1_0x44fe,_0x1a6ff4=getAppCacheFilePath(_0x2912eb,_0x228e1c),_0x577b09=dirname(_0x1a6ff4);!existsSync(_0x577b09)&&mkdirSync(_0x577b09,{'recursive':!![]});const _0x42772a=_0x1a6ff4+'.tmp';try{writeFileSync(_0x42772a,JSON[_0xb3094c(0x12a)](_0x46ffbd,null,0x2)+'\x0a',{'encoding':_0xb3094c(0x129),'mode':0x180});try{renameSync(_0x42772a,_0x1a6ff4);}catch(_0x1b9945){if(_0x1b9945[_0xb3094c(0x126)]===_0xb3094c(0x118)||_0x1b9945[_0xb3094c(0x126)]===_0xb3094c(0x114)||_0x1b9945['code']===_0xb3094c(0x113)){writeFileSync(_0x1a6ff4,JSON['stringify'](_0x46ffbd,null,0x2)+'\x0a',{'encoding':_0xb3094c(0x129)});try{unlinkSync(_0x42772a);}catch{}}else throw _0x1b9945;}}catch(_0x1b4c77){try{unlinkSync(_0x42772a);}catch{}throw _0x1b4c77;}return _0x1a6ff4;}function a1_0x344a(){const _0x3aa1f7=['utf8','stringify','slice','parse','1518329HjiWMT','update','trim','2VljqZf','329HLfEwH','my-apps.json','.lovrabet','1917322WeFpwv','appCode','1067409oaFtvJ','EACCES','EXDEV','256OuNClj','sha256','digest','EPERM','25193568YPjURL','ak_','8yTTOSr','hex','1045299qcHbJP','isArray','49374WDltHb','117870XUGBAl','unknown','items','appName','cache','20UsfccC','code','find','13eAJcyc'];a1_0x344a=function(){return _0x3aa1f7;};return a1_0x344a();}export function resolveCachedAppCode(_0x2255fb,_0x2bf1b8,_0x39a433){const _0x2a1969=a1_0x44fe;if(!_0x2255fb)return undefined;const _0x3e9bbe=readCachedAppList(_0x2bf1b8,_0x39a433),_0x4cc84a=_0x3e9bbe?.[_0x2a1969(0x122)][_0x2a1969(0x127)](_0x55676d=>_0x55676d[_0x2a1969(0x123)]===_0x2255fb);return _0x4cc84a?.[_0x2a1969(0x111)]?.[_0x2a1969(0x12f)]()||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a7_0x3124(){const _0x176ce4=['riskLevel','\x22\x20not\x20found.','write','number','\x20app\x20add\x20<name>\x20--appcode\x20<code>\x20[--env\x20<env>]\x20[--global]','Set\x20as\x20default\x20app.','940jzcwAk','40347jQyuxs','high-risk-write','56FFLUMC','str','17801LQrMGH','remove','\x20app\x20remove\x20<name>\x20[--global]','boolean','\x0aUse\x20`','\x20app\x20\x22','use','Default\x20app\x20changed\x20to\x20\x22','accessKey','read','app','Updated','Added','\x20app\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','4068QaFjhl','cookie','args','12RhGSrS','string','Risk\x20level','daily','format','Default\x20page\x20size','\x20--appcode\x20<code>`\x20first.','Single-app\x20mode:\x20appcode=','validation','295296XzbkJl','15460AiPcNY','Use\x20global\x20config\x20scope','List\x20all\x20configured\x20apps','map','App\x20profile\x20name\x20to\x20remove','env','locale','keys','2486dXbxFd','No\x20apps\x20configured.\x20Use\x20`','Usage:\x20','bool','join','\x22\x20(appcode:\x20','380RwrrOT','appcode','log','secretKey','defaultApp','\x20app\x20add\x20','Use\x20`','Removed\x20app\x20\x22','\x20\x20env=','Switch\x20the\x20default\x20app','name','entries','App\x20profile\x20name\x20to\x20activate','Remove\x20an\x20app\x20from\x20config','Missing\x20app\x20name.','Output\x20format','Access\x20key','App\x20\x22','5245qVLHwp','pageSize','global','production','flagMissing','apps','280925McShaW','single-app','Auth\x20cookie','add','\x20app\x20use\x20<name>\x20[--global]','Add\x20an\x20app\x20to\x20config','length','../../context.js','Secret\x20key'];a7_0x3124=function(){return _0x176ce4;};return a7_0x3124();}const a7_0x218a72=a7_0x5e38;(function(_0x396774,_0x51c205){const _0x4ab881=a7_0x5e38,_0x281c82=_0x396774();while(!![]){try{const _0x5bb27e=-parseInt(_0x4ab881(0xa4))/0x1+-parseInt(_0x4ab881(0x7e))/0x2*(-parseInt(_0x4ab881(0xc9))/0x3)+-parseInt(_0x4ab881(0xb3))/0x4*(-parseInt(_0x4ab881(0x9e))/0x5)+parseInt(_0x4ab881(0x7d))/0x6+parseInt(_0x4ab881(0xb8))/0x7*(parseInt(_0x4ab881(0xb6))/0x8)+-parseInt(_0x4ab881(0xb4))/0x9*(-parseInt(_0x4ab881(0x8c))/0xa)+-parseInt(_0x4ab881(0x86))/0xb*(parseInt(_0x4ab881(0xc6))/0xc);if(_0x5bb27e===_0x51c205)break;else _0x281c82['push'](_0x281c82['shift']());}catch(_0x1477d0){_0x281c82['push'](_0x281c82['shift']());}}}(a7_0x3124,0x26653));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,migrateLegacySingleApp}from'./shared.js';function a7_0x5e38(_0x1f2bc4,_0x3d7347){_0x1f2bc4=_0x1f2bc4-0x76;const _0x312489=a7_0x3124();let _0x5e38c6=_0x312489[_0x1f2bc4];return _0x5e38c6;}const GLOBAL_FLAG={'name':a7_0x218a72(0xa0),'type':a7_0x218a72(0xbb),'description':a7_0x218a72(0x7f),'default':![]},PROFILE_FLAG_KEYS={'env':a7_0x218a72(0x83),'cookie':a7_0x218a72(0xc7),'accessKey':'accessKey','accesskey':a7_0x218a72(0xc0),'secretKey':a7_0x218a72(0x8f),'secretkey':a7_0x218a72(0x8f),'format':a7_0x218a72(0x78),'pageSize':'pageSize','pagesize':a7_0x218a72(0x9f),'riskLevel':a7_0x218a72(0xad),'risklevel':'riskLevel','locale':'locale'},listDef={'service':a7_0x218a72(0xc2),'command':'list','description':a7_0x218a72(0x80),'risk':a7_0x218a72(0xc1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x375a83){const _0x3f38de=a7_0x218a72,{buildConfigFromFlags:_0x9015fe}=await import(_0x3f38de(0xab)),_0x96a9b3=_0x9015fe({}),{apps:_0x59c607,defaultApp:_0x174996,currentApp:_0x157dda}=_0x96a9b3,_0x3b0f82=Object[_0x3f38de(0x97)](_0x59c607);if(_0x3b0f82['length']===0x0){const _0x20db5f=_0x96a9b3['appCode'];if(_0x20db5f)return{'ok':!![],'data':{'mode':_0x3f38de(0xa5),'appcode':_0x20db5f,'env':_0x96a9b3[_0x3f38de(0x83)]},'message':_0x3f38de(0x7b)+_0x20db5f+_0x3f38de(0x94)+_0x96a9b3[_0x3f38de(0x83)]+_0x3f38de(0xbc)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20enable\x20multi-app\x20mode.'};return{'ok':!![],'data':[],'message':_0x3f38de(0x87)+CLI_BIN_NAME+_0x3f38de(0xc5)};}const _0x5c3f38=_0x3b0f82[_0x3f38de(0x81)](([_0x1bdb8b,_0x28ac1a])=>({'name':_0x1bdb8b,'appcode':_0x28ac1a['appcode'],'isDefault':_0x1bdb8b===_0x174996,'isCurrent':_0x1bdb8b===(_0x157dda??_0x174996),'env':_0x28ac1a[_0x3f38de(0x83)]??null,'hasCookie':!!_0x28ac1a[_0x3f38de(0xc7)],'hasAccessKey':!!_0x28ac1a[_0x3f38de(0xc0)],'format':_0x28ac1a['format']??null,'pageSize':_0x28ac1a['pageSize']??null,'riskLevel':_0x28ac1a['riskLevel']??null,'locale':_0x28ac1a[_0x3f38de(0x84)]??null}));return{'ok':!![],'data':_0x5c3f38};}},useDef={'service':a7_0x218a72(0xc2),'command':a7_0x218a72(0xbe),'description':a7_0x218a72(0x95),'risk':a7_0x218a72(0xaf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a7_0x218a72(0x96),'description':a7_0x218a72(0x98),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2b0689){const _0x287fce=a7_0x218a72,_0xb3d8ad=_0x2b0689[_0x287fce(0xc8)][0x0];if(!_0xb3d8ad)throw CliErrors[_0x287fce(0x7c)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+_0x287fce(0xa8));const _0x338939=readConfig({'global':_0x2b0689[_0x287fce(0x89)](_0x287fce(0xa0))}),_0x51b0b2=_0x338939[_0x287fce(0xa3)]||{};if(!_0x51b0b2[_0xb3d8ad]){const _0xef5aab=Object[_0x287fce(0x85)](_0x51b0b2),_0x432c26=_0xef5aab[_0x287fce(0xaa)]===0x0?_0x287fce(0x92)+CLI_BIN_NAME+_0x287fce(0x91)+_0xb3d8ad+_0x287fce(0x7a):'Available:\x20'+_0xef5aab[_0x287fce(0x8a)](',\x20');throw CliErrors[_0x287fce(0x7c)](_0x287fce(0x9d)+_0xb3d8ad+_0x287fce(0xae),_0x432c26);}return _0x338939[_0x287fce(0x90)]=_0xb3d8ad,writeConfig(_0x338939,{'global':_0x2b0689['bool'](_0x287fce(0xa0))}),console[_0x287fce(0x8e)]('Default\x20app\x20set\x20to\x20\x22'+_0xb3d8ad+_0x287fce(0x8b)+_0x51b0b2[_0xb3d8ad][_0x287fce(0x8d)]+')'+scopeLabel({'global':_0x2b0689[_0x287fce(0x89)](_0x287fce(0xa0))})),{'ok':!![]};}},addFlags=[{'name':a7_0x218a72(0x8d),'type':a7_0x218a72(0xca),'description':'App\x20code\x20(required)','required':!![]},GLOBAL_FLAG,{'name':a7_0x218a72(0x83),'type':a7_0x218a72(0xca),'description':'Target\x20environment','enum':[a7_0x218a72(0xa1),a7_0x218a72(0x77)]},{'name':a7_0x218a72(0xc7),'type':a7_0x218a72(0xca),'description':a7_0x218a72(0xa6)},{'name':'accessKey','type':a7_0x218a72(0xca),'description':a7_0x218a72(0x9c)},{'name':a7_0x218a72(0x8f),'type':a7_0x218a72(0xca),'description':a7_0x218a72(0xac)},{'name':a7_0x218a72(0x78),'type':a7_0x218a72(0xca),'description':a7_0x218a72(0x9b),'enum':['json','pretty','table']},{'name':a7_0x218a72(0x9f),'type':a7_0x218a72(0xb0),'description':a7_0x218a72(0x79)},{'name':a7_0x218a72(0xad),'type':a7_0x218a72(0xca),'description':a7_0x218a72(0x76),'enum':[a7_0x218a72(0xc1),'write',a7_0x218a72(0xb5)]},{'name':a7_0x218a72(0x84),'type':a7_0x218a72(0xca),'description':'Locale'}],addDef={'service':a7_0x218a72(0xc2),'command':a7_0x218a72(0xa7),'description':a7_0x218a72(0xa9),'risk':a7_0x218a72(0xaf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a7_0x218a72(0x96),'description':'App\x20profile\x20name\x20(used\x20to\x20switch\x20between\x20apps)','required':!![]}],'flags':addFlags,async 'execute'(_0x2577fc){const _0x43428b=a7_0x218a72,_0x4d2466=_0x2577fc[_0x43428b(0xc8)][0x0];if(!_0x4d2466)throw CliErrors[_0x43428b(0x7c)](_0x43428b(0x9a),_0x43428b(0x88)+CLI_BIN_NAME+_0x43428b(0xb1));const _0x3761d8=_0x2577fc[_0x43428b(0xb7)](_0x43428b(0x8d));if(!_0x3761d8)throw CliErrors[_0x43428b(0xa2)](_0x43428b(0x8d),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x46afc9={'global':_0x2577fc['bool'](_0x43428b(0xa0))},_0x3ee9f7=readConfig(_0x46afc9);if(!_0x3ee9f7[_0x43428b(0xa3)])_0x3ee9f7[_0x43428b(0xa3)]={};Object[_0x43428b(0x85)](_0x3ee9f7[_0x43428b(0xa3)])[_0x43428b(0xaa)]===0x0&&migrateLegacySingleApp(_0x3ee9f7,_0x4d2466);const _0x4513d8={'appcode':_0x3761d8};for(const [_0x3c7378,_0x110a23]of Object[_0x43428b(0x97)](PROFILE_FLAG_KEYS)){const _0x1ad116=_0x2577fc['str'](_0x3c7378);_0x1ad116&&(_0x4513d8[_0x110a23]=_0x110a23===_0x43428b(0x9f)?Number(_0x1ad116):_0x1ad116);}const _0x3364b5=!!_0x3ee9f7[_0x43428b(0xa3)][_0x4d2466];return _0x3ee9f7[_0x43428b(0xa3)][_0x4d2466]=_0x4513d8,!_0x3ee9f7[_0x43428b(0x90)]&&(_0x3ee9f7[_0x43428b(0x90)]=_0x4d2466),writeConfig(_0x3ee9f7,_0x46afc9),console[_0x43428b(0x8e)]((_0x3364b5?_0x43428b(0xc3):_0x43428b(0xc4))+_0x43428b(0xbd)+_0x4d2466+_0x43428b(0x8b)+_0x3761d8+')'+scopeLabel(_0x46afc9)),_0x3ee9f7[_0x43428b(0x90)]===_0x4d2466&&!_0x3364b5&&console[_0x43428b(0x8e)](_0x43428b(0xb2)),{'ok':!![]};}},removeDef={'service':a7_0x218a72(0xc2),'command':a7_0x218a72(0xb9),'description':a7_0x218a72(0x99),'risk':a7_0x218a72(0xb5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a7_0x218a72(0x96),'description':a7_0x218a72(0x82),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x20442b){const _0x28f636=a7_0x218a72,_0x56340a=_0x20442b[_0x28f636(0xc8)][0x0];if(!_0x56340a)throw CliErrors[_0x28f636(0x7c)](_0x28f636(0x9a),_0x28f636(0x88)+CLI_BIN_NAME+_0x28f636(0xba));const _0xee7024={'global':_0x20442b['bool'](_0x28f636(0xa0))},_0x47eaf8=readConfig(_0xee7024);if(!_0x47eaf8['apps']||!_0x47eaf8[_0x28f636(0xa3)][_0x56340a])throw CliErrors['validation'](_0x28f636(0x9d)+_0x56340a+_0x28f636(0xae));delete _0x47eaf8[_0x28f636(0xa3)][_0x56340a];if(_0x47eaf8[_0x28f636(0x90)]===_0x56340a){const _0x2021ee=Object[_0x28f636(0x85)](_0x47eaf8[_0x28f636(0xa3)]);_0x47eaf8[_0x28f636(0x90)]=_0x2021ee[_0x28f636(0xaa)]>0x0?_0x2021ee[0x0]:undefined,_0x47eaf8[_0x28f636(0x90)]?console['log'](_0x28f636(0xbf)+_0x47eaf8[_0x28f636(0x90)]+'\x22.'):delete _0x47eaf8['defaultApp'];}return Object[_0x28f636(0x85)](_0x47eaf8[_0x28f636(0xa3)])[_0x28f636(0xaa)]===0x0&&(delete _0x47eaf8[_0x28f636(0xa3)],delete _0x47eaf8['defaultApp']),writeConfig(_0x47eaf8,_0xee7024),console[_0x28f636(0x8e)](_0x28f636(0x93)+_0x56340a+'\x22.'),{'ok':!![]};}};export const appDefinitions=[listDef,useDef,addDef,removeDef];
|
|
1
|
+
const a2_0xd1d1dd=a2_0x5eb4;(function(_0x24aa0d,_0x287402){const _0xab3e84=a2_0x5eb4,_0x1cec1c=_0x24aa0d();while(!![]){try{const _0x3f901b=parseInt(_0xab3e84(0x190))/0x1+parseInt(_0xab3e84(0x1d2))/0x2*(-parseInt(_0xab3e84(0x18a))/0x3)+parseInt(_0xab3e84(0x18c))/0x4*(parseInt(_0xab3e84(0x1e8))/0x5)+-parseInt(_0xab3e84(0x1b5))/0x6+-parseInt(_0xab3e84(0x1b0))/0x7+parseInt(_0xab3e84(0x1a6))/0x8*(parseInt(_0xab3e84(0x193))/0x9)+-parseInt(_0xab3e84(0x1d5))/0xa*(-parseInt(_0xab3e84(0x1e1))/0xb);if(_0x3f901b===_0x287402)break;else _0x1cec1c['push'](_0x1cec1c['shift']());}catch(_0x43c2cf){_0x1cec1c['push'](_0x1cec1c['shift']());}}}(a2_0x33c6,0x21116));import{CliErrors}from'../../errors.js';import{initImportFlagDefs,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields,collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';function a2_0x33c6(){const _0x399d53=['write','list','envName','validation','\x22\x20(appcode:\x20','items','local','Missing\x20app\x20name.','global','11496dEqHgP','\x20app\x20use\x20<name>\x20[--global]','fetchedAt','Usage:\x20','projectPath','read','Loaded\x20','\x20config.','\x20app(s)\x20for\x20env=\x22','remove','1802199sKgIsR','App\x20\x22','env','\x20app\x20add\x20','App\x20profile\x20name\x20to\x20activate','1132446vewceg','\x20Note:\x20app\x20\x22','\x22\x20still\x20defined\x20in\x20','str','import','both','../../context.js','boolean','\x20Set\x20as\x20default\x20app.','appcode','from','accessKey','call','appName','\x20app\x20add\x20<name>\x20--appcode\x20<code>','Filter\x20by\x20environment\x20(default:\x20current\x20env)','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Import\x20app\x20profiles\x20from\x20a\x20.rabetbase.json\x20file','remote','Read\x20app\x20list\x20from\x20local\x20cache\x20only','\x0aNote:\x20\x22','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','\x20(appcode:\x20','Add\x20an\x20app\x20to\x20config','App\x20profile\x20name\x20to\x20remove','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','project-default','add','../../commands/app/remote-source.js','6cOmkiM','no-cache','mergedCli','3750tWgXJT','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20`','map','\x20app\x20\x22','defaultApp','app','globalPath','nonInteractive','Updated','join','Use\x20global\x20config\x20scope','Refreshed\x20app\x20cache\x20with\x20','5236zyGSSn','hasOwnProperty','find','\x20app\x20remove\x20<name>\x20[--global]','cache','\x20Default\x20app\x20changed\x20to\x20\x22','No\x20cached\x20apps\x20found.','4315ONidpk','appPublishStatus','projectConfig','name','project','apps','pull','cachePath','Target\x20environment\x20(default:\x20current\x20env)','args','bool','Use\x20`','1968LyhlTh','object','332DqkTjP','type','length','high-risk-write','165354FkYZOQ','App\x20profile\x20name\x20(used\x20to\x20switch\x20between\x20apps)','isCurrent','1053uMXNut','use','\x20app\x20add\x20<name>\x20--appcode\x20<code>\x20[--env\x20<env>]\x20[--global]','string','\x22\x20not\x20found.','source','Default\x20app\x20set\x20to\x20\x22','keys','No\x20apps\x20found\x20on\x20the\x20platform.','globalConfig'];a2_0x33c6=function(){return _0x399d53;};return a2_0x33c6();}const GLOBAL_FLAG={'name':a2_0xd1d1dd(0x1a5),'type':a2_0xd1d1dd(0x1bc),'description':a2_0xd1d1dd(0x1df),'default':![]};function a2_0x5eb4(_0x1094f1,_0x5ca54f){_0x1094f1=_0x1094f1-0x186;const _0x33c634=a2_0x33c6();let _0x5eb4bb=_0x33c634[_0x1094f1];return _0x5eb4bb;}function collectFlags(_0x4625a4,_0x18edd2){const _0x559504=a2_0xd1d1dd,_0x395f7c={};for(const _0x1b73bd of _0x18edd2){const _0x234629=_0x1b73bd[_0x559504(0x18d)]===_0x559504(0x1bc)?_0x4625a4[_0x559504(0x188)](_0x1b73bd['name']):_0x4625a4[_0x559504(0x1b8)](_0x1b73bd[_0x559504(0x1eb)]);if(_0x234629!==''&&_0x234629!==![])_0x395f7c[_0x1b73bd['name']]=_0x234629;}if(_0x4625a4[_0x559504(0x1dc)])_0x395f7c['nonInteractive']=!![];return _0x395f7c;}const listDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x19e),'description':a2_0xd1d1dd(0x1c5),'risk':a2_0xd1d1dd(0x1ab),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0xd1d1dd(0x1b2),'type':a2_0xd1d1dd(0x196),'description':a2_0xd1d1dd(0x1c4),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0xd1d1dd(0x1a3),'type':a2_0xd1d1dd(0x1bc),'description':a2_0xd1d1dd(0x1c8),'default':![]},{'name':a2_0xd1d1dd(0x1d3),'type':a2_0xd1d1dd(0x1bc),'description':a2_0xd1d1dd(0x1ca),'default':![]}],async 'execute'(_0x55f2d7){const _0x5d5136=a2_0xd1d1dd,_0xa4f931=_0x55f2d7['str']('env')||_0x55f2d7[_0x5d5136(0x19f)]||getEnv()||'production',_0xc203f6=_0x55f2d7[_0x5d5136(0x188)]('local'),_0x3d53a5=_0x55f2d7['bool'](_0x5d5136(0x1d3)),{readRawConfigWithLayers:_0x19b285,resolveDefaultAppSource:_0xbcde21}=await import('../../context.js'),{getRemoteAppList:_0x21f582}=await import('../../commands/app/remote-source.js'),{config:_0x835408,layers:_0x2ce815}=_0x19b285(),_0x50157b=_0xbcde21(_0x2ce815),{defaultApp:_0x36f181}=_0x835408,_0x61d4c8=await _0x21f582({'env':_0xa4f931,'accessKey':_0x55f2d7[_0x5d5136(0x1c0)],'localOnly':_0xc203f6,'noCache':_0x3d53a5}),_0x33c6a0=_0x835408[_0x5d5136(0x1ed)]&&typeof _0x835408[_0x5d5136(0x1ed)]===_0x5d5136(0x18b)?_0x835408['apps']:{},_0x7366d9=_0x61d4c8['items'][_0x5d5136(0x1d7)](_0x5d16f5=>{const _0x1441ea=_0x5d5136,_0x5e03a8=_0x33c6a0[_0x5d16f5[_0x1441ea(0x1c2)]]??{};return{'name':_0x5d16f5[_0x1441ea(0x1c2)],'appcode':_0x5d16f5['appCode'],'named':!![],'definedIn':Object['keys'](_0x5e03a8)[_0x1441ea(0x18e)]>0x0?'config':_0x1441ea(0x1c7),'isDefault':_0x5d16f5['appName']===_0x36f181,...buildAppProfileListFields(_0x5e03a8,_0xa4f931),'source':_0x61d4c8[_0x1441ea(0x198)],'owner':_0x5d16f5['appOwnerName']??null,'status':_0x5d16f5[_0x1441ea(0x1e9)]??null,'cachedAt':_0x61d4c8['fetchedAt']};});enrichAppListItemsWithMergedSelection(_0x7366d9,_0x55f2d7[_0x5d5136(0x1d4)]);if(_0x7366d9[_0x5d5136(0x18e)]===0x0)return{'ok':!![],'data':[],'message':_0x61d4c8[_0x5d5136(0x198)]==='cache'?_0x5d5136(0x1e7):_0x5d5136(0x19b)};const _0x164732=_0x7366d9[_0x5d5136(0x1e3)](_0x2ecaad=>_0x2ecaad[_0x5d5136(0x192)]===!![]),_0x26e5e5=_0x36f181??_0x164732?.['name']??null,_0x161039={'env':_0xa4f931,'source':_0x61d4c8[_0x5d5136(0x198)],'fetchedAt':_0x61d4c8['fetchedAt'],'cachePath':_0x61d4c8[_0x5d5136(0x1ef)],'globalPath':_0x2ce815[_0x5d5136(0x1db)]??null,'projectPath':_0x2ce815[_0x5d5136(0x1aa)]??null,'defaultApp':_0x26e5e5,'defaultAppSource':_0x36f181!=null?_0x50157b:null};return{'ok':!![],'data':{'items':_0x7366d9,'meta':_0x161039}};}},pullDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x1ee),'description':a2_0xd1d1dd(0x1ce),'risk':a2_0xd1d1dd(0x19d),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0xd1d1dd(0x1b2),'type':a2_0xd1d1dd(0x196),'description':a2_0xd1d1dd(0x186),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0xd1d1dd(0x1a3),'type':a2_0xd1d1dd(0x1bc),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a2_0xd1d1dd(0x1d3),'type':'boolean','description':a2_0xd1d1dd(0x1ca),'default':![]}],async 'execute'(_0x2b1162){const _0x58056b=a2_0xd1d1dd,_0x5b0781=_0x2b1162[_0x58056b(0x1b8)]('env')||_0x2b1162[_0x58056b(0x19f)]||getEnv()||'production',_0x460358=_0x2b1162[_0x58056b(0x188)]('local'),_0x25d36a=_0x2b1162[_0x58056b(0x188)](_0x58056b(0x1d3)),{getRemoteAppList:_0x386bed}=await import(_0x58056b(0x1d1)),_0x950b99=await _0x386bed({'env':_0x5b0781,'accessKey':_0x2b1162[_0x58056b(0x1c0)],'localOnly':_0x460358,'noCache':_0x25d36a});return{'ok':!![],'data':{'total':_0x950b99['items']['length'],'env':_0x5b0781,'source':_0x950b99[_0x58056b(0x198)],'fetchedAt':_0x950b99[_0x58056b(0x1a8)],'cachePath':_0x950b99[_0x58056b(0x1ef)]},'message':_0x950b99['source']===_0x58056b(0x1e5)?_0x58056b(0x1ac)+_0x950b99[_0x58056b(0x1a2)][_0x58056b(0x18e)]+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x5b0781+'\x22.':_0x58056b(0x1e0)+_0x950b99['items'][_0x58056b(0x18e)]+_0x58056b(0x1ae)+_0x5b0781+'\x22.'};}},useDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x194),'description':'Switch\x20the\x20default\x20app','risk':a2_0xd1d1dd(0x19d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0xd1d1dd(0x1eb),'description':a2_0xd1d1dd(0x1b4),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x4d942d){const _0x2c3ca9=a2_0xd1d1dd;if(!_0x4d942d[_0x2c3ca9(0x187)][0x0])throw CliErrors[_0x2c3ca9(0x1a0)]('Missing\x20app\x20name.',_0x2c3ca9(0x1a9)+CLI_BIN_NAME+_0x2c3ca9(0x1a7));},async 'execute'(_0x86a1e9){const _0xa8cdb0=a2_0xd1d1dd,_0x4975b5=_0x86a1e9[_0xa8cdb0(0x187)][0x0];if(!_0x4975b5)throw CliErrors[_0xa8cdb0(0x1a0)](_0xa8cdb0(0x1a4),_0xa8cdb0(0x1a9)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x3e4d64,readRawConfigWithLayers:_0x254ec7}=await import(_0xa8cdb0(0x1bb)),{readCachedAppList:_0x29e58f}=await import('../../commands/app/cache.js'),_0x55ec7b=_0x3e4d64({}),_0x22988f=_0x55ec7b['apps']||{},_0x263a86=_0x29e58f(_0x55ec7b['env'],_0x55ec7b[_0xa8cdb0(0x1c0)]),_0x3171af=_0x263a86?.['items'][_0xa8cdb0(0x1e3)](_0x84fc9a=>_0x84fc9a[_0xa8cdb0(0x1c2)]===_0x4975b5);if(!_0x22988f[_0x4975b5]&&!_0x3171af){const _0x1ea154=[...Object['keys'](_0x22988f),..._0x263a86?.['items'][_0xa8cdb0(0x1d7)](_0x2da1bc=>_0x2da1bc[_0xa8cdb0(0x1c2)])??[]],_0x329186=_0x1ea154[_0xa8cdb0(0x18e)]===0x0?_0xa8cdb0(0x189)+CLI_BIN_NAME+_0xa8cdb0(0x1d6)+CLI_BIN_NAME+_0xa8cdb0(0x1b3)+_0x4975b5+'\x20--appcode\x20<code>`\x20to\x20add\x20an\x20override.':'Available:\x20'+Array[_0xa8cdb0(0x1bf)](new Set(_0x1ea154))[_0xa8cdb0(0x1de)](',\x20');throw CliErrors[_0xa8cdb0(0x1a0)](_0xa8cdb0(0x1b1)+_0x4975b5+_0xa8cdb0(0x197),_0x329186);}const {layers:_0x110885}=_0x254ec7(),_0x468525=_0x86a1e9[_0xa8cdb0(0x188)](_0xa8cdb0(0x1a5));let _0x3004f8,_0x8467a2='';if(_0x468525)_0x3004f8={'global':!![]};else{const {isInProject:_0x3264d0}=await import(_0xa8cdb0(0x1bb)),_0x375d31=_0x3264d0()&&!!_0x110885[_0xa8cdb0(0x1aa)];_0x3004f8=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0xa8cdb0(0x1cf),'inProject':_0x375d31}));if(_0x375d31){const _0x29f2dc=_0x110885[_0xa8cdb0(0x1ea)][_0xa8cdb0(0x1ed)]&&typeof _0x110885[_0xa8cdb0(0x1ea)][_0xa8cdb0(0x1ed)]===_0xa8cdb0(0x18b)?_0x110885['projectConfig']['apps']:{};!Object['prototype'][_0xa8cdb0(0x1e2)][_0xa8cdb0(0x1c1)](_0x29f2dc,_0x4975b5)&&(_0x8467a2=_0xa8cdb0(0x1c9)+_0x4975b5+'\x22\x20is\x20defined\x20in\x20global\x20config;\x20defaultApp\x20written\x20to\x20project\x20to\x20take\x20effect\x20in\x20merged\x20view.');}}const _0x4e7521=readConfig(_0x3004f8);return _0x4e7521[_0xa8cdb0(0x1d9)]=_0x4975b5,writeConfig(_0x4e7521,_0x3004f8),{'ok':!![],'message':_0xa8cdb0(0x199)+_0x4975b5+'\x22'+(''+(_0x22988f[_0x4975b5]?.[_0xa8cdb0(0x1be)]?_0xa8cdb0(0x1cb)+_0x22988f[_0x4975b5]?.[_0xa8cdb0(0x1be)]+')':''))+(''+scopeLabel(_0x3004f8))+(''+_0x8467a2)};}},addFlags=[{'name':a2_0xd1d1dd(0x1be),'type':a2_0xd1d1dd(0x196),'description':'App\x20code\x20(required)','required':!![]},GLOBAL_FLAG,...getAppProfileFlagDefs()],addDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x1d0),'description':a2_0xd1d1dd(0x1cc),'risk':a2_0xd1d1dd(0x19d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a2_0xd1d1dd(0x191),'required':!![]}],'flags':addFlags,async 'validate'(_0x4c221c){const _0x578ff6=a2_0xd1d1dd;if(!_0x4c221c[_0x578ff6(0x187)][0x0])throw CliErrors[_0x578ff6(0x1a0)](_0x578ff6(0x1a4),'Usage:\x20'+CLI_BIN_NAME+_0x578ff6(0x195));},async 'execute'(_0x3db5c1){const _0x767da1=a2_0xd1d1dd,_0x49cbdd=_0x3db5c1[_0x767da1(0x187)][0x0];if(!_0x49cbdd)throw CliErrors[_0x767da1(0x1a0)]('Missing\x20app\x20name.',_0x767da1(0x1a9)+CLI_BIN_NAME+_0x767da1(0x195));const _0x54648a=_0x3db5c1[_0x767da1(0x1b8)](_0x767da1(0x1be));if(!_0x54648a)throw CliErrors['flagMissing'](_0x767da1(0x1be),_0x767da1(0x1a9)+CLI_BIN_NAME+_0x767da1(0x1c3));const {isInProject:_0x544a27}=await import(_0x767da1(0x1bb)),_0x21c226=toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3db5c1[_0x767da1(0x188)](_0x767da1(0x1a5)),'policy':_0x767da1(0x1cf),'inProject':_0x544a27()})),_0x23e9c3=readConfig(_0x21c226);if(!_0x23e9c3[_0x767da1(0x1ed)])_0x23e9c3[_0x767da1(0x1ed)]={};const _0x5f4630={'appcode':_0x54648a,...collectAppProfileOverrides(_0x22f655=>_0x3db5c1[_0x767da1(0x1b8)](_0x22f655))},_0x214224=!!_0x23e9c3['apps'][_0x49cbdd];_0x23e9c3[_0x767da1(0x1ed)][_0x49cbdd]=_0x5f4630;!_0x23e9c3[_0x767da1(0x1d9)]&&(_0x23e9c3[_0x767da1(0x1d9)]=_0x49cbdd);writeConfig(_0x23e9c3,_0x21c226);const _0x441a65=!_0x214224&&_0x23e9c3[_0x767da1(0x1d9)]===_0x49cbdd?_0x767da1(0x1bd):'',_0x261a87=(_0x214224?_0x767da1(0x1dd):'Added')+_0x767da1(0x1d8)+_0x49cbdd+_0x767da1(0x1a1)+_0x54648a+')'+(scopeLabel(_0x21c226)+'.')+(''+_0x441a65);return{'ok':!![],'message':_0x261a87};}},removeDef={'service':'app','command':a2_0xd1d1dd(0x1af),'description':'Remove\x20an\x20app\x20from\x20config','risk':a2_0xd1d1dd(0x18f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0xd1d1dd(0x1eb),'description':a2_0xd1d1dd(0x1cd),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x3b9151){const _0x34e5bd=a2_0xd1d1dd;if(!_0x3b9151['args'][0x0])throw CliErrors[_0x34e5bd(0x1a0)](_0x34e5bd(0x1a4),_0x34e5bd(0x1a9)+CLI_BIN_NAME+_0x34e5bd(0x1e4));},async 'execute'(_0x30d39d){const _0x51fc34=a2_0xd1d1dd,_0x2bdeeb=_0x30d39d[_0x51fc34(0x187)][0x0];if(!_0x2bdeeb)throw CliErrors[_0x51fc34(0x1a0)]('Missing\x20app\x20name.',_0x51fc34(0x1a9)+CLI_BIN_NAME+'\x20app\x20remove\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x2c4236,readRawConfigWithLayers:_0x4dfad1,appDefinedIn:_0x200294}=await import(_0x51fc34(0x1bb)),_0x3bc0de=_0x2c4236({}),_0x2c8c10=_0x3bc0de[_0x51fc34(0x1ed)]||{};if(!_0x2c8c10[_0x2bdeeb])throw CliErrors[_0x51fc34(0x1a0)](_0x51fc34(0x1b1)+_0x2bdeeb+'\x22\x20not\x20found.');const {layers:_0x2916dc}=_0x4dfad1(),_0x4196ac=_0x30d39d[_0x51fc34(0x188)](_0x51fc34(0x1a5)),_0x3e8370=_0x200294(_0x2bdeeb,_0x2916dc[_0x51fc34(0x19c)][_0x51fc34(0x1ed)]??{},_0x2916dc[_0x51fc34(0x1ea)][_0x51fc34(0x1ed)]??{},_0x2916dc['projectConfig']['inherit']===![]),_0x18eed8={'global':_0x4196ac},_0x4a2523=readConfig(_0x18eed8);if(!_0x4a2523[_0x51fc34(0x1ed)]||!_0x4a2523[_0x51fc34(0x1ed)][_0x2bdeeb])throw CliErrors[_0x51fc34(0x1a0)](_0x51fc34(0x1b1)+_0x2bdeeb+_0x51fc34(0x197));delete _0x4a2523[_0x51fc34(0x1ed)][_0x2bdeeb];let _0x49d4c4='';if(_0x4a2523['defaultApp']===_0x2bdeeb){const _0x3b31bd=Object[_0x51fc34(0x19a)](_0x4a2523[_0x51fc34(0x1ed)]);_0x4a2523[_0x51fc34(0x1d9)]=_0x3b31bd[_0x51fc34(0x18e)]>0x0?_0x3b31bd[0x0]:undefined,_0x4a2523[_0x51fc34(0x1d9)]?_0x49d4c4=_0x51fc34(0x1e6)+_0x4a2523[_0x51fc34(0x1d9)]+'\x22.':delete _0x4a2523[_0x51fc34(0x1d9)];}Object['keys'](_0x4a2523[_0x51fc34(0x1ed)])[_0x51fc34(0x18e)]===0x0&&(delete _0x4a2523[_0x51fc34(0x1ed)],delete _0x4a2523[_0x51fc34(0x1d9)]);writeConfig(_0x4a2523,_0x18eed8);const _0x3b8712=_0x3e8370===_0x51fc34(0x1ba)?_0x51fc34(0x1b6)+_0x2bdeeb+_0x51fc34(0x1b7)+(_0x18eed8['global']?_0x51fc34(0x1ec):_0x51fc34(0x1a5))+_0x51fc34(0x1ad):'';return{'ok':!![],'message':'Removed\x20app\x20\x22'+_0x2bdeeb+'\x22'+scopeLabel(_0x18eed8)+'.'+_0x49d4c4+_0x3b8712};}},importDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x1b9),'description':a2_0xd1d1dd(0x1c6),'risk':a2_0xd1d1dd(0x19d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x5730dc){return await runInitImport(collectFlags(_0x5730dc,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[listDef,pullDef,useDef,addDef,removeDef,importDef];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x53e806,_0x49bb4e){const _0x101987=a3_0x1899,_0x43313c=_0x53e806();while(!![]){try{const _0x415343=-parseInt(_0x101987(0x101))/0x1*(parseInt(_0x101987(0x10d))/0x2)+-parseInt(_0x101987(0x10e))/0x3+-parseInt(_0x101987(0x109))/0x4*(-parseInt(_0x101987(0x107))/0x5)+parseInt(_0x101987(0x10c))/0x6+parseInt(_0x101987(0x100))/0x7+-parseInt(_0x101987(0x108))/0x8+parseInt(_0x101987(0x102))/0x9;if(_0x415343===_0x49bb4e)break;else _0x43313c['push'](_0x43313c['shift']());}catch(_0x5256b8){_0x43313c['push'](_0x43313c['shift']());}}}(a3_0x3c4e,0x402ca));import{fileURLToPath}from'url';import{dirname,join}from'path';function a3_0x3c4e(){const _0x359642=['4436QSavko','errorCode','tableData','2404218iaxHnW','163742ILWiLt','158874ydEFoQ','Mock\x20API\x20error:\x20','data','errorMsg','2097109uOzRme','2PWSUNe','119997ZspbhP','../../../mock/app-list.json','utf-8','success','parse','355OMmObP','2502432hZNlYd'];a3_0x3c4e=function(){return _0x359642;};return a3_0x3c4e();}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x5d2a1b=a3_0x1899,_0x471593=join(__dirname,_0x5d2a1b(0x103)),_0x2cb85a=readFileSync(_0x471593,_0x5d2a1b(0x104));return JSON[_0x5d2a1b(0x106)](_0x2cb85a);}let _cached=null;function a3_0x1899(_0x3603b5,_0x4c6541){_0x3603b5=_0x3603b5-0x100;const _0x3c4ec9=a3_0x3c4e();let _0x1899da=_0x3c4ec9[_0x3603b5];return _0x1899da;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x5acbd3=a3_0x1899,_0x5b0862=getMockAppList();if(!_0x5b0862[_0x5acbd3(0x105)])throw new Error(_0x5acbd3(0x10f)+_0x5b0862[_0x5acbd3(0x111)]+'\x20('+_0x5b0862[_0x5acbd3(0x10a)]+')');return _0x5b0862[_0x5acbd3(0x110)][_0x5acbd3(0x10b)];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x38a760,_0x4256f1){const _0xe29c71=a4_0xde21,_0x8f3555=_0x38a760();while(!![]){try{const _0x5e28ee=-parseInt(_0xe29c71(0x18e))/0x1*(parseInt(_0xe29c71(0x18f))/0x2)+-parseInt(_0xe29c71(0x18d))/0x3*(parseInt(_0xe29c71(0x18c))/0x4)+parseInt(_0xe29c71(0x186))/0x5+-parseInt(_0xe29c71(0x185))/0x6+-parseInt(_0xe29c71(0x193))/0x7*(-parseInt(_0xe29c71(0x188))/0x8)+-parseInt(_0xe29c71(0x187))/0x9+-parseInt(_0xe29c71(0x18a))/0xa*(-parseInt(_0xe29c71(0x194))/0xb);if(_0x5e28ee===_0x4256f1)break;else _0x8f3555['push'](_0x8f3555['shift']());}catch(_0x2d31ac){_0x8f3555['push'](_0x8f3555['shift']());}}}(a4_0x4916,0xad929));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a4_0x4916(){const _0x43e304=['fetchedAt','2632290wCcZaP','toLowerCase','149468jFBNXh','39UyjyBJ','184pJCQVG','10708DoxVJA','mock','items','trim','29687wNmBfL','99gbWhxc','cache','2171760mRpOVJ','695770IdCrpJ','1091808LgQHrO','296bGYKNh'];a4_0x4916=function(){return _0x43e304;};return a4_0x4916();}export function shouldUseMockRemoteApps(){const _0x59a8e7=a4_0xde21,_0x3a4bff=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')[_0x59a8e7(0x192)]()[_0x59a8e7(0x18b)]();return _0x3a4bff===_0x59a8e7(0x190);}function a4_0xde21(_0x42749d,_0x19aa4d){_0x42749d=_0x42749d-0x184;const _0x49165a=a4_0x4916();let _0xde21f4=_0x49165a[_0x42749d];return _0xde21f4;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x594037){const _0x5d12d6=a4_0xde21,{env:_0x13e14b,accessKey:_0x5e483d,localOnly:localOnly=![],noCache:noCache=![]}=_0x594037,_0x548a74=readCachedAppList(_0x13e14b,_0x5e483d),_0x57a991=_0x5e483d?.[_0x5d12d6(0x192)]()?getAppCacheFilePath(_0x13e14b,_0x5e483d):null;if(localOnly)return{'items':_0x548a74?.[_0x5d12d6(0x191)]??[],'source':_0x5d12d6(0x184),'fetchedAt':_0x548a74?.[_0x5d12d6(0x189)]??null,'cachePath':_0x57a991};try{const _0x541249=await getRemoteAppItems(),_0x40ea83=shouldUseMockRemoteApps()?_0x5d12d6(0x190):'remote',_0x36610b=new Date()['toISOString'](),_0x182589=_0x5e483d?.[_0x5d12d6(0x192)]()?writeCachedAppList(_0x13e14b,_0x5e483d,{'env':_0x13e14b,'fetchedAt':_0x36610b,'source':_0x40ea83,'items':_0x541249}):null;return{'items':_0x541249,'source':_0x40ea83,'fetchedAt':_0x36610b,'cachePath':_0x182589};}catch(_0x1d8108){if(!noCache&&_0x548a74)return{'items':_0x548a74[_0x5d12d6(0x191)],'source':_0x5d12d6(0x184),'fetchedAt':_0x548a74[_0x5d12d6(0x189)],'cachePath':_0x57a991};throw _0x1d8108;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a5_0x2e54(_0x64a2e0,_0x41f3a6){_0x64a2e0=_0x64a2e0-0xa9;const _0x43777f=a5_0x4377();let _0x2e5495=_0x43777f[_0x64a2e0];return _0x2e5495;}(function(_0x1d6f3e,_0x30260d){const _0x271a4a=a5_0x2e54,_0x237dcc=_0x1d6f3e();while(!![]){try{const _0x19ad39=-parseInt(_0x271a4a(0xae))/0x1*(-parseInt(_0x271a4a(0xb4))/0x2)+-parseInt(_0x271a4a(0xb6))/0x3+-parseInt(_0x271a4a(0xb2))/0x4*(-parseInt(_0x271a4a(0xb3))/0x5)+-parseInt(_0x271a4a(0xb7))/0x6+-parseInt(_0x271a4a(0xb5))/0x7*(-parseInt(_0x271a4a(0xb0))/0x8)+parseInt(_0x271a4a(0xab))/0x9+parseInt(_0x271a4a(0xb9))/0xa*(parseInt(_0x271a4a(0xb8))/0xb);if(_0x19ad39===_0x30260d)break;else _0x237dcc['push'](_0x237dcc['shift']());}catch(_0x4106b9){_0x237dcc['push'](_0x237dcc['shift']());}}}(a5_0x4377,0x82119));function a5_0x4377(){const _0x43ead2=['trim','2154501DwWNcf','isCurrent','appcode','573BPhsOZ','apps','6442664HGDsaf','currentApp','26652HgFEHm','475nBcuLd','102LwWPJb','7aEjjNV','2822157AsewVe','5686404KcmxJS','1964281lbmjhr','40xALdZl','keys','global','defaultApp','name','named'];a5_0x4377=function(){return _0x43ead2;};return a5_0x4377();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x555367,_0x14f51a){const _0x14e611=a5_0x2e54;if(!_0x14f51a)return;const _0x474248=_0x14f51a[_0x14e611(0xaf)]&&typeof _0x14f51a[_0x14e611(0xaf)]==='object'?_0x14f51a[_0x14e611(0xaf)]:{},_0x2be028=!!(_0x14f51a[_0x14e611(0xb1)]??_0x14f51a[_0x14e611(0xbc)]),_0x406925=Object[_0x14e611(0xba)](_0x474248)['length']>0x0||_0x2be028;for(const _0x1c3ec2 of _0x555367){_0x1c3ec2[_0x14e611(0xac)]=![];}const _0x368791=_0x14f51a['appCode']!=null?String(_0x14f51a['appCode'])[_0x14e611(0xaa)]():'';if(_0x406925){const _0x46ca4d=_0x14f51a[_0x14e611(0xb1)]??_0x14f51a[_0x14e611(0xbc)];if(_0x46ca4d)for(const _0x152cea of _0x555367){_0x152cea[_0x14e611(0xa9)]===!![]&&_0x152cea[_0x14e611(0xbd)]===_0x46ca4d&&(_0x152cea[_0x14e611(0xac)]=!![]);}for(const _0x78d875 of _0x555367){if(_0x78d875[_0x14e611(0xa9)]!==![])continue;if(_0x14f51a[_0x14e611(0xbc)])continue;_0x368791&&String(_0x78d875['appcode']??'')[_0x14e611(0xaa)]()===_0x368791&&(_0x78d875[_0x14e611(0xac)]=!![]);}return;}if(!_0x368791)return;for(const _0x31fa55 of _0x555367){String(_0x31fa55[_0x14e611(0xad)]??'')[_0x14e611(0xaa)]()===_0x368791&&(_0x31fa55[_0x14e611(0xac)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x4b1fdb){const _0x4b61dc=a5_0x2e54;return formatScopeLabel(_0x4b1fdb[_0x4b61dc(0xbb)]?'global':'project');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x4d84(){const _0x59bcdf=['Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','login','695364KEHrDO','\x20auth\x20status','daily','No\x20AccessKey\x20found\x20in\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','project','10221KVIKyB','auth','logout','LOVRABET_ACCESS_KEY\x20env\x20var','env','732gEaAUm','Write\x20to\x20global\x20config\x20(default)','12TeIoCp','1517260RxsdzZ','string','global-default','1861160CrEAOt','slice','production','read','cancelled','validation','push','str','1YjQOhX','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','join','repeat','Shorthand\x20for\x20--access-key','\x20Verify:\x20','write','\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx','\x20config.','7DbZANN','400829hmHptU','boolean','\x20Current\x20env:\x20','Clear\x20accessKey\x20from\x20config','\x20config','Option\x20A:\x20','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','AccessKey\x20cleared\x20from\x20','AccessKey\x20saved\x20to\x20','access-key','212666FFjaEa','4669479gunFWR','test','development','Invalid\x20accessKey\x20format:\x20\x22','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey:\x20','length','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Show\x20current\x20authentication\x20status','accessKey','Clear\x20from\x20global\x20config\x20(default)','ClientAk','Usage:\x20','trim','8PECiSL','nonInteractive','global','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','status','bool'];a6_0x4d84=function(){return _0x59bcdf;};return a6_0x4d84();}const a6_0x19dce3=a6_0x1181;(function(_0x8bd22e,_0x25219f){const _0x19e231=a6_0x1181,_0x45b0d1=_0x8bd22e();while(!![]){try{const _0x1f668a=parseInt(_0x19e231(0x146))/0x1*(-parseInt(_0x19e231(0x15a))/0x2)+parseInt(_0x19e231(0x133))/0x3*(parseInt(_0x19e231(0x138))/0x4)+-parseInt(_0x19e231(0x13e))/0x5+-parseInt(_0x19e231(0x12d))/0x6*(parseInt(_0x19e231(0x14f))/0x7)+parseInt(_0x19e231(0x124))/0x8*(parseInt(_0x19e231(0x15b))/0x9)+-parseInt(_0x19e231(0x13b))/0xa+parseInt(_0x19e231(0x150))/0xb*(-parseInt(_0x19e231(0x13a))/0xc);if(_0x1f668a===_0x25219f)break;else _0x45b0d1['push'](_0x45b0d1['shift']());}catch(_0x789856){_0x45b0d1['push'](_0x45b0d1['shift']());}}}(a6_0x4d84,0x57d08));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{CliErrors}from'../../errors.js';function a6_0x1181(_0x463ab9,_0x18c8f6){_0x463ab9=_0x463ab9-0x119;const _0x4d84c4=a6_0x4d84();let _0x1181aa=_0x4d84c4[_0x463ab9];return _0x1181aa;}import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function resolveAuthScopeFlags(_0x546187){const _0x264af6=a6_0x1181;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x546187[_0x264af6(0x12a)]('global'),'explicitProject':_0x546187['bool']('project'),'policy':_0x264af6(0x13d)}));}export const authDefinitions=[{'service':'auth','command':a6_0x19dce3(0x12c),'description':a6_0x19dce3(0x128),'risk':a6_0x19dce3(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a6_0x19dce3(0x13c),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':'string','description':a6_0x19dce3(0x14a)},{'name':a6_0x19dce3(0x126),'type':a6_0x19dce3(0x151),'description':a6_0x19dce3(0x139),'default':!![]},{'name':a6_0x19dce3(0x132),'type':a6_0x19dce3(0x151),'description':a6_0x19dce3(0x11d),'default':![]}],async 'execute'(_0x45db92){const _0x38ed3c=a6_0x19dce3;let _0x1626d4=(_0x45db92[_0x38ed3c(0x145)](_0x38ed3c(0x159))||_0x45db92[_0x38ed3c(0x145)]('ak')||'')['trim']();const _0x4f1f35=(_0x45db92[_0x38ed3c(0x145)](_0x38ed3c(0x137))||'')[_0x38ed3c(0x123)]();if(!_0x1626d4&&!_0x45db92[_0x38ed3c(0x125)])try{_0x1626d4=await promptAccessKey('');}catch(_0x5de5a2){if(isAbortPrompt(_0x5de5a2))throw CliErrors[_0x38ed3c(0x142)]();throw _0x5de5a2;}if(!_0x1626d4)throw CliErrors[_0x38ed3c(0x143)]('Missing\x20accessKey.',_0x38ed3c(0x122)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]');if(!ACCESS_KEY_PATTERN[_0x38ed3c(0x15c)](_0x1626d4))throw CliErrors[_0x38ed3c(0x143)](_0x38ed3c(0x119)+_0x1626d4+'\x22',_0x38ed3c(0x131));const _0x37919b=resolveAuthScopeFlags(_0x45db92),_0x5abbaa=readScopedConfig(_0x37919b);_0x5abbaa[_0x38ed3c(0x11f)]=_0x1626d4;if(_0x4f1f35){const _0x428798=normalizeEnv(_0x4f1f35);_0x5abbaa[_0x38ed3c(0x137)]=isDaily(_0x428798)?_0x38ed3c(0x12f):isDev(_0x428798)?_0x38ed3c(0x15d):_0x38ed3c(0x140);}writeScopedConfig(_0x5abbaa,_0x37919b);const _0x42c513=_0x37919b[_0x38ed3c(0x126)]?_0x38ed3c(0x126):_0x38ed3c(0x132),_0x405a66=_0x5abbaa[_0x38ed3c(0x137)]?_0x38ed3c(0x152)+_0x5abbaa['env']+'.':'';return{'ok':!![],'message':_0x38ed3c(0x158)+_0x42c513+'\x20config.'+_0x405a66+_0x38ed3c(0x14b)+CLI_BIN_NAME+_0x38ed3c(0x12e)};}},{'service':a6_0x19dce3(0x134),'command':a6_0x19dce3(0x135),'description':a6_0x19dce3(0x153),'risk':a6_0x19dce3(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x19dce3(0x126),'type':a6_0x19dce3(0x151),'description':a6_0x19dce3(0x120),'default':!![]},{'name':'project','type':a6_0x19dce3(0x151),'description':a6_0x19dce3(0x12b),'default':![]}],async 'execute'(_0x327405){const _0x208165=a6_0x19dce3,_0x111adb=resolveAuthScopeFlags(_0x327405),_0x16b5f8=readScopedConfig(_0x111adb),_0x14caeb=!!_0x16b5f8[_0x208165(0x11f)];delete _0x16b5f8[_0x208165(0x11f)],writeScopedConfig(_0x16b5f8,_0x111adb);const _0x11b09e=_0x111adb['global']?_0x208165(0x126):_0x208165(0x132);if(_0x14caeb)return{'ok':!![],'message':_0x208165(0x157)+_0x11b09e+_0x208165(0x14e)};return{'ok':!![],'message':_0x208165(0x130)+_0x11b09e+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a6_0x19dce3(0x134),'command':a6_0x19dce3(0x129),'description':a6_0x19dce3(0x11e),'risk':a6_0x19dce3(0x141),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a6_0x19dce3(0x151),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a6_0x19dce3(0x132),'type':'boolean','description':a6_0x19dce3(0x11a),'default':![]}],async 'execute'(_0x5e46e5){const _0x100009=a6_0x19dce3,_0x1816a9=resolveAuthScopeFlags(_0x5e46e5),_0x27645b=readScopedConfig(_0x1816a9),_0x2943e9=process.env.LOVRABET_ACCESS_KEY||undefined,_0x2eb7c9=_0x27645b[_0x100009(0x11f)]||undefined,_0x3006df=_0x2943e9||_0x2eb7c9,_0x30f8a9=_0x2943e9?_0x100009(0x136):_0x2eb7c9?(_0x1816a9['global']?'global':_0x100009(0x132))+_0x100009(0x154):null,_0x2d1ecb=['Auth\x20mode:\x20'+AUTH_MODE[_0x100009(0x121)]];if(_0x3006df){const _0x4bea9c=_0x3006df[_0x100009(0x11c)]>0x8?''+_0x3006df[_0x100009(0x13f)](0x0,0x8)+'*'[_0x100009(0x149)](_0x3006df[_0x100009(0x11c)]-0x8):_0x3006df;_0x2d1ecb[_0x100009(0x144)](_0x100009(0x11b)+_0x4bea9c+(_0x30f8a9?'\x20(via\x20'+_0x30f8a9+')':''));}return!_0x3006df&&(_0x2d1ecb[_0x100009(0x144)](''),_0x2d1ecb[_0x100009(0x144)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x2d1ecb[_0x100009(0x144)](''),_0x2d1ecb[_0x100009(0x144)](_0x100009(0x155)+CLI_BIN_NAME+_0x100009(0x127)),_0x2d1ecb[_0x100009(0x144)](''),_0x2d1ecb[_0x100009(0x144)](_0x100009(0x147)),_0x2d1ecb[_0x100009(0x144)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x2d1ecb['push'](''),_0x2d1ecb[_0x100009(0x144)]('Option\x20C:\x20environment\x20variable'),_0x2d1ecb[_0x100009(0x144)](_0x100009(0x14d)),_0x2d1ecb[_0x100009(0x144)](''),_0x2d1ecb[_0x100009(0x144)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x100009(0x12e)),_0x2d1ecb[_0x100009(0x144)](_0x100009(0x156)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x2d1ecb[_0x100009(0x148)]('\x0a')};}}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x5d51a2,_0x18a6a5){const _0x3a0495=a7_0x33b2,_0xb6c55e=_0x5d51a2();while(!![]){try{const _0x49e3a9=parseInt(_0x3a0495(0x17a))/0x1*(parseInt(_0x3a0495(0x171))/0x2)+-parseInt(_0x3a0495(0x177))/0x3*(-parseInt(_0x3a0495(0x170))/0x4)+-parseInt(_0x3a0495(0x17d))/0x5+parseInt(_0x3a0495(0x181))/0x6+parseInt(_0x3a0495(0x16f))/0x7+-parseInt(_0x3a0495(0x178))/0x8*(-parseInt(_0x3a0495(0x173))/0x9)+parseInt(_0x3a0495(0x17b))/0xa*(-parseInt(_0x3a0495(0x17f))/0xb);if(_0x49e3a9===_0x18a6a5)break;else _0xb6c55e['push'](_0xb6c55e['shift']());}catch(_0x4b21ba){_0xb6c55e['push'](_0xb6c55e['shift']());}}}(a7_0x2d4e,0x93f83));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x121ba4=a7_0x33b2;super('User\x20aborted\x20prompt'),this[_0x121ba4(0x179)]='AbortPrompt';}}function a7_0x2d4e(){const _0x294bb2=['16753561MfwGyd','question','6042078owutkJ','):\x20','3360343lRRMxa','4468smZple','459202jJaVpz','SIGINT','22653qbbvMw','\x20\x20AccessKey:\x20','stdout','stdin','1131NsPdIC','536noGalE','name','2QXPGQs','10IoVHZu','\x20\x20AccessKey\x20(','2034390hPYvBS','trim'];a7_0x2d4e=function(){return _0x294bb2;};return a7_0x2d4e();}function a7_0x33b2(_0x400cda,_0x5054cc){_0x400cda=_0x400cda-0x16e;const _0x2d4e7d=a7_0x2d4e();let _0x33b269=_0x2d4e7d[_0x400cda];return _0x33b269;}function createSafeRl(){const _0x536620=a7_0x33b2,_0x5bd16e=createInterface({'input':process[_0x536620(0x176)],'output':process[_0x536620(0x175)]});let _0x4727db;const _0x2e0454=new Promise((_0x461d51,_0x4f0a6c)=>{const _0x2e2ae6=_0x536620;_0x4727db=()=>{const _0x3dd08a=a7_0x33b2;_0x4727db&&(_0x5bd16e['removeListener'](_0x3dd08a(0x172),_0x4727db),_0x4727db=undefined);try{_0x5bd16e['close']();}catch{}_0x4f0a6c(new AbortPrompt());},_0x5bd16e['once'](_0x2e2ae6(0x172),_0x4727db);}),_0x470323=()=>{const _0xe57713=_0x536620;_0x4727db&&(_0x5bd16e['removeListener'](_0xe57713(0x172),_0x4727db),_0x4727db=undefined);try{_0x5bd16e['close']();}catch{}};return{'rl':_0x5bd16e,'abortPromise':_0x2e0454,'disposeSuccess':_0x470323};}export async function promptAccessKey(_0x4cf5ca=''){const {rl:_0x21839e,abortPromise:_0x8a47f1,disposeSuccess:_0x54dd1d}=createSafeRl(),_0x57624d=new Promise(_0x334a8e=>{const _0x5a4ea6=a7_0x33b2,_0x19942e=_0x4cf5ca?_0x5a4ea6(0x17c)+_0x4cf5ca+_0x5a4ea6(0x16e):_0x5a4ea6(0x174);_0x21839e[_0x5a4ea6(0x180)](_0x19942e,_0x1526c1=>{const _0x163a2c=_0x5a4ea6;_0x54dd1d(),_0x334a8e(_0x1526c1[_0x163a2c(0x17e)]()||_0x4cf5ca);});});return Promise['race']([_0x57624d,_0x8a47f1]);}export function isAbortPrompt(_0x3da4f1){return _0x3da4f1 instanceof Error&&_0x3da4f1['name']==='AbortPrompt';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a8_0xe3a7b2=a8_0x143e;(function(_0x49cbfa,_0x1e6634){const _0x35b9d0=a8_0x143e,_0x16609f=_0x49cbfa();while(!![]){try{const _0x119d2d=parseInt(_0x35b9d0(0x1bc))/0x1*(-parseInt(_0x35b9d0(0x1c4))/0x2)+parseInt(_0x35b9d0(0x1bf))/0x3*(parseInt(_0x35b9d0(0x1b7))/0x4)+parseInt(_0x35b9d0(0x1c3))/0x5+-parseInt(_0x35b9d0(0x1c8))/0x6+-parseInt(_0x35b9d0(0x1ba))/0x7*(-parseInt(_0x35b9d0(0x1b9))/0x8)+parseInt(_0x35b9d0(0x1bb))/0x9*(parseInt(_0x35b9d0(0x1c6))/0xa)+parseInt(_0x35b9d0(0x1c7))/0xb;if(_0x119d2d===_0x1e6634)break;else _0x16609f['push'](_0x16609f['shift']());}catch(_0x2540f2){_0x16609f['push'](_0x16609f['shift']());}}}(a8_0x3602,0x873fb));function a8_0x3602(){const _0x5985c3=['776707caeuOQ','num','functionName','284166oLomzQ','description','updatedTime','Script\x20ID','1561430utRPlp','2pjJDCw','verbose','1142520qSgnNJ','1810116GSltCN','2592558UwObcn','read','(none)','20mXbiIH','bff','200tdQoRj','195461DOGYgM','9vNiOzX'];a8_0x3602=function(){return _0x5985c3;};return a8_0x3602();}function a8_0x143e(_0x5eee34,_0x4f5f7a){_0x5eee34=_0x5eee34-0x1b6;const _0x3602f2=a8_0x3602();let _0x143ef5=_0x3602f2[_0x5eee34];return _0x143ef5;}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0xe3a7b2(0x1b8),'command':'detail','description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a8_0xe3a7b2(0x1c9),'flags':[{...ID_FLAG,'description':a8_0xe3a7b2(0x1c2)},VERBOSE_FLAG],async 'execute'(_0x182392){const _0x2377e8=a8_0xe3a7b2,_0x1295e6=await getBffScriptInfo(_0x182392[_0x2377e8(0x1bd)]('id')),_0xed216=_0x182392['bool'](_0x2377e8(0x1c5));if(_0xed216)return{'ok':!![],'data':_0x1295e6};return{'ok':!![],'data':{'id':_0x1295e6['id'],'appCode':_0x1295e6['appCode'],'functionName':_0x1295e6[_0x2377e8(0x1be)]??'','scriptType':_0x1295e6['scriptType'],'description':_0x1295e6[_0x2377e8(0x1c0)]||_0x2377e8(0x1b6),'createdTime':_0x1295e6['createdTime']??'','updatedTime':_0x1295e6[_0x2377e8(0x1c1)]??''}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x1ca6fa=a9_0x1e64;function a9_0x562f(){const _0x11440b=['3592230UvzRRL','exec','3aoJHxa','str','BFF\x20executed\x20in\x20','BFF\x20function\x20name\x20to\x20execute','2929458NtwNLx','1193895sGfUzx','882188pfnQpg','286336LPJIau','1912488kiWVAh','name','36tVRDun','read','147221rxUBxD','2plPHMF','now'];a9_0x562f=function(){return _0x11440b;};return a9_0x562f();}function a9_0x1e64(_0x21022c,_0x8786d6){_0x21022c=_0x21022c-0x10e;const _0x562f3d=a9_0x562f();let _0x1e6469=_0x562f3d[_0x21022c];return _0x1e6469;}(function(_0x2e6f0e,_0x2dfba8){const _0x4cfa08=a9_0x1e64,_0x1360c8=_0x2e6f0e();while(!![]){try{const _0x339914=-parseInt(_0x4cfa08(0x10e))/0x1*(-parseInt(_0x4cfa08(0x10f))/0x2)+parseInt(_0x4cfa08(0x113))/0x3*(parseInt(_0x4cfa08(0x119))/0x4)+-parseInt(_0x4cfa08(0x118))/0x5+parseInt(_0x4cfa08(0x11b))/0x6+-parseInt(_0x4cfa08(0x117))/0x7+parseInt(_0x4cfa08(0x11a))/0x8*(-parseInt(_0x4cfa08(0x11d))/0x9)+parseInt(_0x4cfa08(0x111))/0xa;if(_0x339914===_0x2dfba8)break;else _0x1360c8['push'](_0x1360c8['shift']());}catch(_0x256036){_0x1360c8['push'](_0x1360c8['shift']());}}}(a9_0x562f,0x3be32));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a9_0x1ca6fa(0x112),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a9_0x1ca6fa(0x11e),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0x1ca6fa(0x116)},PARAMS_FLAG],async 'execute'(_0x5d2342){const _0x5939b9=a9_0x1ca6fa,_0x230667=parseJsonParams(_0x5d2342['str']('params')),_0x53777e=Date['now'](),_0x365954=await executeSdkBff(_0x5d2342[_0x5939b9(0x114)](_0x5939b9(0x11c)),_0x230667),_0x19f7cb=Date[_0x5939b9(0x110)]()-_0x53777e;return{'ok':!![],'data':{'result':_0x365954,'elapsed':_0x19f7cb},'message':_0x5939b9(0x115)+_0x19f7cb+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3ecd10,_0x17f423){const _0x3fe1be=a10_0x152f,_0x2008ca=_0x3ecd10();while(!![]){try{const _0x21ff66=-parseInt(_0x3fe1be(0x180))/0x1+-parseInt(_0x3fe1be(0x184))/0x2+-parseInt(_0x3fe1be(0x181))/0x3+parseInt(_0x3fe1be(0x182))/0x4+-parseInt(_0x3fe1be(0x186))/0x5+-parseInt(_0x3fe1be(0x185))/0x6*(-parseInt(_0x3fe1be(0x17f))/0x7)+parseInt(_0x3fe1be(0x183))/0x8;if(_0x21ff66===_0x17f423)break;else _0x2008ca['push'](_0x2008ca['shift']());}catch(_0x30750b){_0x2008ca['push'](_0x2008ca['shift']());}}}(a10_0x58ca,0x4507b));import{bffDetail}from'../../commands/bff/detail.js';function a10_0x152f(_0x8fbd53,_0xfd00a4){_0x8fbd53=_0x8fbd53-0x17f;const _0x58ca6e=a10_0x58ca();let _0x152f9c=_0x58ca6e[_0x8fbd53];return _0x152f9c;}import{bffExec}from'../../commands/bff/exec.js';function a10_0x58ca(){const _0x25f359=['120372PCKMmg','63456FwOMKA','1190508jmsRBj','1874940lhUWrr','122808iIEljH','283518cWLIBT','156EsDHZw','231920ogzMTs'];a10_0x58ca=function(){return _0x25f359;};return a10_0x58ca();}export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x29800b,_0x17313f){const _0x499c3c=a11_0x5174,_0x5aea33=_0x29800b();while(!![]){try{const _0x3a0017=-parseInt(_0x499c3c(0x77))/0x1+parseInt(_0x499c3c(0x7c))/0x2+-parseInt(_0x499c3c(0x79))/0x3+-parseInt(_0x499c3c(0x81))/0x4+parseInt(_0x499c3c(0x82))/0x5*(parseInt(_0x499c3c(0x84))/0x6)+-parseInt(_0x499c3c(0x7b))/0x7+parseInt(_0x499c3c(0x80))/0x8*(parseInt(_0x499c3c(0x83))/0x9);if(_0x3a0017===_0x17313f)break;else _0x5aea33['push'](_0x5aea33['shift']());}catch(_0x4b903e){_0x5aea33['push'](_0x5aea33['shift']());}}}(a11_0x4362,0xc05ad));import{CLI_BIN_NAME}from'../../constant/cli.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{APP_PROFILE_FLAG_KEY_MAP,APP_PROFILE_CONFIG_KEYS,buildAppDoctorFields,buildAppProfileListFields,collectAppProfileOverrides,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getAppProfileConfigKeyList,getAppProfileConfigKeySummary,getAppProfileFlagDefs,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isAppProfileConfigKey,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a11_0x4362(){const _0x44089a=['project-or-global-explicit','global','383538OVtURC','validation','4233726hczqXs','project-default','7616315lesZWT','763174JAfMLm','inProject','\x20init`\x20first.','Use\x20only\x20one\x20config\x20scope\x20flag.','91592WyiUZY','1347856OmOhrS','6450LOVxqX','2097YGDmgK','4458FSsvUQ','project','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).'];a11_0x4362=function(){return _0x44089a;};return a11_0x4362();}export function resolveConfigScope(_0x17ea6e){const _0x344948=a11_0x5174,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x171eda}=_0x17ea6e;if(explicitGlobal&&explicitProject)throw CliErrors[_0x344948(0x78)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x344948(0x7f));if(explicitGlobal)return _0x344948(0x76);if(explicitProject)return'project';switch(_0x171eda){case'global-default':return _0x344948(0x76);case _0x344948(0x7a):return _0x17ea6e[_0x344948(0x7d)]??isInProject()?_0x344948(0x85):'global';case _0x344948(0x75):if(!(_0x17ea6e[_0x344948(0x7d)]??isInProject()))throw CliErrors['validation'](_0x344948(0x74),_0x344948(0x86)+CLI_BIN_NAME+_0x344948(0x7e));return _0x344948(0x85);}}export function toScopeFlags(_0x32d052){return{'global':_0x32d052==='global'};}function a11_0x5174(_0x3e73ce,_0x4933a6){_0x3e73ce=_0x3e73ce-0x74;const _0x4362a5=a11_0x4362();let _0x517428=_0x4362a5[_0x3e73ce];return _0x517428;}export function formatScopeLabel(_0x41d76b){return _0x41d76b==='global'?'\x20(global)':'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3fa11f,_0xfc83b9){const _0x2e0e3b=a12_0x4a5e,_0x2440b7=_0x3fa11f();while(!![]){try{const _0x55b62c=parseInt(_0x2e0e3b(0x18c))/0x1+-parseInt(_0x2e0e3b(0x188))/0x2+parseInt(_0x2e0e3b(0x17f))/0x3*(parseInt(_0x2e0e3b(0x183))/0x4)+parseInt(_0x2e0e3b(0x17b))/0x5+parseInt(_0x2e0e3b(0x17e))/0x6*(-parseInt(_0x2e0e3b(0x182))/0x7)+parseInt(_0x2e0e3b(0x187))/0x8+parseInt(_0x2e0e3b(0x18f))/0x9;if(_0x55b62c===_0xfc83b9)break;else _0x2440b7['push'](_0x2440b7['shift']());}catch(_0x2660d7){_0x2440b7['push'](_0x2440b7['shift']());}}}(a12_0x59b4,0x66bfa));import{CliErrors}from'../../errors.js';function isSet(_0x48d78c,_0x23cc6e){const _0x5db041=_0x48d78c['flag'](_0x23cc6e);return _0x5db041!==undefined&&_0x5db041!==''&&_0x5db041!==![]&&_0x5db041!==0x0;}function fmtNames(_0x156c8d){const _0x1d4f4b=a12_0x4a5e;return _0x156c8d[_0x1d4f4b(0x181)](_0x3d06c0=>'--'+_0x3d06c0)[_0x1d4f4b(0x17d)](',\x20');}export function requireOneOf(_0x5607da,_0x4c97af,_0x5e72e9){const _0x314db8=a12_0x4a5e,_0xe2f7fb=_0x4c97af[_0x314db8(0x184)](_0x320e91=>isSet(_0x5607da,_0x320e91));if(_0xe2f7fb[_0x314db8(0x18d)]!==0x1)throw CliErrors[_0x314db8(0x176)](_0xe2f7fb[_0x314db8(0x18d)]===0x0?_0x314db8(0x175)+fmtNames(_0x4c97af)+'\x20is\x20required\x20for\x20`'+_0x5e72e9+'`.':_0x314db8(0x17c)+fmtNames(_0x4c97af)+_0x314db8(0x190)+fmtNames(_0xe2f7fb)+'.',_0xe2f7fb[_0x314db8(0x18d)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x4c97af):_0x314db8(0x189));}export function requireAnyOf(_0x430a4f,_0x185c9e,_0x53c64e){const _0x53bc92=a12_0x4a5e;if(!_0x185c9e[_0x53bc92(0x180)](_0x39d9f3=>isSet(_0x430a4f,_0x39d9f3)))throw CliErrors['validation'](_0x53bc92(0x17a)+fmtNames(_0x185c9e)+_0x53bc92(0x178)+_0x53c64e+'`.',_0x53bc92(0x18e)+fmtNames(_0x185c9e));}export function mutuallyExclusive(_0x1549e0,_0x4d3423,_0x490f1c){const _0x38a5ee=a12_0x4a5e,_0x45aae7=_0x4d3423[_0x38a5ee(0x184)](_0x243ac8=>isSet(_0x1549e0,_0x243ac8));if(_0x45aae7[_0x38a5ee(0x18d)]>0x1)throw CliErrors[_0x38a5ee(0x176)]('Flags\x20'+fmtNames(_0x45aae7)+_0x38a5ee(0x185)+_0x490f1c+'`.',_0x38a5ee(0x18a)+fmtNames(_0x4d3423));}function a12_0x4a5e(_0xca1120,_0x2ebab2){_0xca1120=_0xca1120-0x175;const _0x59b4ad=a12_0x59b4();let _0x4a5e2d=_0x59b4ad[_0xca1120];return _0x4a5e2d;}export function validatePattern(_0x41f791,_0x1a861e,_0x210c62,_0x5baee9){const _0x11658c=a12_0x4a5e,_0x3dfa2c=_0x41f791[_0x11658c(0x179)](_0x1a861e);if(_0x3dfa2c&&!_0x210c62[_0x11658c(0x177)](_0x3dfa2c))throw CliErrors[_0x11658c(0x176)](_0x11658c(0x186)+_0x1a861e+':\x20expected\x20'+_0x5baee9+_0x11658c(0x18b)+_0x3dfa2c+'\x22.');}function a12_0x59b4(){const _0x28fa61=['length','Provide\x20one\x20of:\x20','6495957zUIfjW','\x20is\x20allowed,\x20found:\x20','Exactly\x20one\x20of\x20','validation','test','\x20is\x20required\x20for\x20`','str','At\x20least\x20one\x20of\x20','1604615biGDhp','Only\x20one\x20of\x20','join','3438258KkpsCK','33YUaMbU','some','map','7QjIXtV','45556DviHKO','filter','\x20are\x20mutually\x20exclusive\x20for\x20`','Invalid\x20--','2396040myOKPS','1533578ENnHUo','Remove\x20all\x20but\x20one.','Use\x20only\x20one\x20of:\x20',',\x20got\x20\x22','293210JGOSTE'];a12_0x59b4=function(){return _0x28fa61;};return a12_0x59b4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x1ea999=a13_0x36df;(function(_0x5dbc39,_0x52e124){const _0xcd6304=a13_0x36df,_0x572407=_0x5dbc39();while(!![]){try{const _0x43cc42=-parseInt(_0xcd6304(0x181))/0x1+parseInt(_0xcd6304(0x174))/0x2*(parseInt(_0xcd6304(0x17b))/0x3)+parseInt(_0xcd6304(0x177))/0x4*(parseInt(_0xcd6304(0x183))/0x5)+-parseInt(_0xcd6304(0x171))/0x6*(parseInt(_0xcd6304(0x16e))/0x7)+parseInt(_0xcd6304(0x17e))/0x8*(parseInt(_0xcd6304(0x178))/0x9)+parseInt(_0xcd6304(0x182))/0xa+parseInt(_0xcd6304(0x17d))/0xb*(parseInt(_0xcd6304(0x179))/0xc);if(_0x43cc42===_0x52e124)break;else _0x572407['push'](_0x572407['shift']());}catch(_0x3cf556){_0x572407['push'](_0x572407['shift']());}}}(a13_0x37d8,0xb5a03));function a13_0x36df(_0x16a732,_0x39a1d8){_0x16a732=_0x16a732-0x16e;const _0x37d8b3=a13_0x37d8();let _0x36df9d=_0x37d8b3[_0x16a732];return _0x36df9d;}export const CODE_FLAG={'name':a13_0x1ea999(0x180),'type':a13_0x1ea999(0x170),'required':!![],'description':a13_0x1ea999(0x17a),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x1ea999(0x176)}};export const SQLCODE_FLAG={'name':a13_0x1ea999(0x172),'type':a13_0x1ea999(0x170),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a13_0x1ea999(0x175)}};export const VERBOSE_FLAG={'name':'verbose','type':a13_0x1ea999(0x17c),'description':a13_0x1ea999(0x173)};export const PARAMS_FLAG={'name':a13_0x1ea999(0x185),'type':a13_0x1ea999(0x170),'description':a13_0x1ea999(0x186)};export const NAME_FLAG={'name':a13_0x1ea999(0x16f),'type':a13_0x1ea999(0x170),'description':a13_0x1ea999(0x184)};function a13_0x37d8(){const _0x2c36e8=['Resource\x20ID','code','384623uSyvCD','7634450ltWlcK','230iPGrFf','Resource\x20name\x20for\x20lookup','params','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','12229qQifNg','name','string','3786pGvDkQ','sqlcode','Return\x20full\x20raw\x20response\x20object','4rayYGz','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','19644vBdDWr','9olEYRT','8676FxYxYR','Dataset\x20code\x20(32-char\x20hex\x20UUID)','732957ftCqWC','boolean','77VztTGP','5982952XnTAIZ'];a13_0x37d8=function(){return _0x2c36e8;};return a13_0x37d8();}export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a13_0x1ea999(0x17f)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a14_0x1a1a(_0x507b41,_0x357a26){_0x507b41=_0x507b41-0x185;const _0x2db3e0=a14_0x2db3();let _0x1a1aa1=_0x2db3e0[_0x507b41];return _0x1a1aa1;}const a14_0x12c9aa=a14_0x1a1a;(function(_0x1f73c1,_0x50facd){const _0x34fb53=a14_0x1a1a,_0x5aa555=_0x1f73c1();while(!![]){try{const _0x184bab=-parseInt(_0x34fb53(0x1a2))/0x1*(parseInt(_0x34fb53(0x1c4))/0x2)+-parseInt(_0x34fb53(0x1c0))/0x3*(-parseInt(_0x34fb53(0x195))/0x4)+parseInt(_0x34fb53(0x1bf))/0x5+parseInt(_0x34fb53(0x1b7))/0x6*(parseInt(_0x34fb53(0x19a))/0x7)+parseInt(_0x34fb53(0x1a7))/0x8+-parseInt(_0x34fb53(0x19c))/0x9*(parseInt(_0x34fb53(0x1a1))/0xa)+-parseInt(_0x34fb53(0x1b2))/0xb;if(_0x184bab===_0x50facd)break;else _0x5aa555['push'](_0x5aa555['shift']());}catch(_0x4b894c){_0x5aa555['push'](_0x5aa555['shift']());}}}(a14_0x2db3,0x405fc));function a14_0x2db3(){const _0x370b71=['Key\x20\x22','2089539CxGXUE','get','`\x20=\x20\x22','App\x20\x22','Available\x20for\x20--app:\x20','20MWqpiu','1HhGEEh','\x20app\x20add`.','Value\x20to\x20assign','key','str','2781056yrdvWw','list','riskLevel','pretty','\x22\x20not\x20found\x20on\x20app\x20\x22','Deleted\x20`','Operate\x20within\x20a\x20specific\x20app\x20profile','Config\x20files:\x0a','raw','\x22\x20not\x20found.','apps','491832vlIibJ','args','Usage:\x20','Config\x20key\x20(supports\x20dot\x20notation:\x20apps.myapp.env)','config','132WRDvkz','Missing\x20key\x20argument.','Missing\x20key\x20or\x20value.','Get\x20a\x20config\x20value','boolean','`\x20from\x20app\x20\x22','string','Settable\x20top-level\x20keys:\x20','239930mntMcV','324VzeBls','\x20(global)','\x22\x20is\x20not\x20settable.','\x20config\x20get\x20<key>','144532FqyHny','pageSize','(none)','\x22.\x20Allowed:\x20','includes','Set\x20`','stringify','\x22\x20not\x20found\x20at\x20top\x20level.','log','Add\x20it\x20first\x20with\x20`','\x22\x20on\x20app\x20profile.','Top-level\x20key\x20\x22','Key\x20not\x20found:\x20','List\x20current\x20config','pageSize\x20must\x20be\x20a\x20positive\x20number','../../context.js','write','join','bool','read','Set\x20a\x20config\x20value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','app','validation','format','split','\x20\x20project:\x20','value','Invalid\x20value\x20for\x20\x22','9932XPtoYk','Delete\x20a\x20config\x20value','object','global','\x22\x20not\x20found\x20in\x20config.','57659WHArXf'];a14_0x2db3=function(){return _0x370b71;};return a14_0x2db3();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getAppProfileConfigKeySummary,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isAppProfileConfigKey,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a14_0x12c9aa(0x198),'type':a14_0x12c9aa(0x1bb),'description':'Write\x20to\x20global\x20config','default':![]},APP_FLAG={'name':a14_0x12c9aa(0x18e),'type':a14_0x12c9aa(0x1bd),'description':a14_0x12c9aa(0x1ad)},listDef={'service':a14_0x12c9aa(0x1b6),'command':a14_0x12c9aa(0x1a8),'description':a14_0x12c9aa(0x185),'risk':a14_0x12c9aa(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1692eb){const _0x2829dd=a14_0x12c9aa,{buildConfigFromFlags:_0x57d456}=await import(_0x2829dd(0x187)),_0x14ade2=_0x57d456({}),_0x58238d=getProjectConfigPath(),_0x62f0a0=resolveWriteConfigPath(_0x2829dd(0x198));if(_0x1692eb[_0x2829dd(0x190)]===_0x2829dd(0x1aa))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x14ade2[_0x2829dd(0x1af)],null,0x2)+'\x0a\x0a')+_0x2829dd(0x1ae)+(_0x2829dd(0x192)+(_0x58238d??_0x2829dd(0x1c6))+'\x0a')+('\x20\x20global:\x20\x20'+_0x62f0a0)};return{'ok':!![],'data':{'effective':_0x14ade2[_0x2829dd(0x1af)],'configFiles':{'project':_0x58238d??null,'global':_0x62f0a0}}};}},getDef={'service':a14_0x12c9aa(0x1b6),'command':a14_0x12c9aa(0x19d),'description':a14_0x12c9aa(0x1ba),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x12c9aa(0x1a5),'description':a14_0x12c9aa(0x1b5),'required':!![]}],'flags':[],async 'execute'(_0x40a8aa){const _0x2e1749=a14_0x12c9aa,_0x6b87a7=_0x40a8aa[_0x2e1749(0x1b3)][0x0];if(!_0x6b87a7)throw CliErrors['validation'](_0x2e1749(0x1b8),_0x2e1749(0x1b4)+CLI_BIN_NAME+_0x2e1749(0x1c3));const {buildConfigFromFlags:_0x5dd8a0}=await import(_0x2e1749(0x187)),{raw:_0x10435e}=_0x5dd8a0({});if(_0x6b87a7[_0x2e1749(0x1c8)]('.')){const _0x3408e3=_0x6b87a7[_0x2e1749(0x191)]('.');let _0x8fecb3=_0x10435e;for(const _0x3f979b of _0x3408e3){if(_0x8fecb3==null||typeof _0x8fecb3!==_0x2e1749(0x197))throw CliErrors['validation'](_0x2e1749(0x1d0)+_0x6b87a7);_0x8fecb3=_0x8fecb3[_0x3f979b];}if(_0x8fecb3===undefined)throw CliErrors[_0x2e1749(0x18f)](_0x2e1749(0x1d0)+_0x6b87a7);return console[_0x2e1749(0x1cc)](typeof _0x8fecb3===_0x2e1749(0x197)?JSON[_0x2e1749(0x1ca)](_0x8fecb3,null,0x2):String(_0x8fecb3)),{'ok':!![]};}const _0x3ac08b=_0x10435e[_0x6b87a7];if(_0x3ac08b===undefined)throw CliErrors['validation'](_0x2e1749(0x1d0)+_0x6b87a7);return console['log'](typeof _0x3ac08b==='object'?JSON[_0x2e1749(0x1ca)](_0x3ac08b,null,0x2):String(_0x3ac08b)),{'ok':!![]};}},setDef={'service':a14_0x12c9aa(0x1b6),'command':'set','description':a14_0x12c9aa(0x18c),'risk':a14_0x12c9aa(0x188),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x12c9aa(0x1a5),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x12c9aa(0x193),'description':a14_0x12c9aa(0x1a4),'required':!![]}],'flags':[GLOBAL_FLAG,APP_FLAG],async 'execute'(_0x11a63b){const _0x9b8c53=a14_0x12c9aa,_0x1e6522=_0x11a63b[_0x9b8c53(0x1b3)][0x0],_0x2223d5=_0x11a63b[_0x9b8c53(0x1b3)][0x1];if(!_0x1e6522||_0x2223d5===undefined)throw CliErrors['validation'](_0x9b8c53(0x1b9),_0x9b8c53(0x1b4)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--app\x20<name>]\x20[--global]');if(ENUM_KEYS[_0x1e6522]&&!ENUM_KEYS[_0x1e6522][_0x9b8c53(0x1c8)](_0x2223d5))throw CliErrors[_0x9b8c53(0x18f)](_0x9b8c53(0x194)+_0x1e6522+_0x9b8c53(0x1c7)+ENUM_KEYS[_0x1e6522][_0x9b8c53(0x189)](',\x20'));if(_0x1e6522===_0x9b8c53(0x1a9))throw CliErrors['validation'](_0x9b8c53(0x18d));if(_0x1e6522===_0x9b8c53(0x1c5)){const _0x4e2022=Number(_0x2223d5);if(isNaN(_0x4e2022)||_0x4e2022<=0x0)throw CliErrors[_0x9b8c53(0x18f)](_0x9b8c53(0x186));}const _0x4d81ed=resolveWriteScope({'explicitGlobal':_0x11a63b[_0x9b8c53(0x18a)](_0x9b8c53(0x198)),'policy':'project-or-global-explicit'}),_0x2e55b2=toScopeFlags(_0x4d81ed),_0x5b1b2d=readScopedConfig(_0x2e55b2),_0x542bb6=_0x11a63b['str'](_0x9b8c53(0x18e));if(_0x542bb6){if(!_0x5b1b2d[_0x9b8c53(0x1b1)])_0x5b1b2d[_0x9b8c53(0x1b1)]={};if(!_0x5b1b2d[_0x9b8c53(0x1b1)][_0x542bb6])throw CliErrors[_0x9b8c53(0x18f)](_0x9b8c53(0x19f)+_0x542bb6+_0x9b8c53(0x199),_0x9b8c53(0x1cd)+CLI_BIN_NAME+_0x9b8c53(0x1a3));if(!isAppProfileConfigKey(_0x1e6522))throw CliErrors[_0x9b8c53(0x18f)]('Cannot\x20set\x20\x22'+_0x1e6522+_0x9b8c53(0x1ce),_0x9b8c53(0x1a0)+getAppProfileConfigKeySummary());_0x5b1b2d[_0x9b8c53(0x1b1)][_0x542bb6][_0x1e6522]=_0x1e6522===_0x9b8c53(0x1c5)?Number(_0x2223d5):_0x2223d5,console['log'](_0x9b8c53(0x1c9)+_0x1e6522+_0x9b8c53(0x19e)+_0x2223d5+'\x22\x20on\x20app\x20\x22'+_0x542bb6+'\x22'+(_0x4d81ed===_0x9b8c53(0x198)?_0x9b8c53(0x1c1):''));}else{if(!isTopLevelConfigKey(_0x1e6522))throw CliErrors[_0x9b8c53(0x18f)](_0x9b8c53(0x1cf)+_0x1e6522+_0x9b8c53(0x1c2),_0x9b8c53(0x1be)+getTopLevelConfigKeySummary());_0x5b1b2d[_0x1e6522]=_0x1e6522===_0x9b8c53(0x1c5)?Number(_0x2223d5):_0x2223d5,console[_0x9b8c53(0x1cc)](_0x9b8c53(0x1c9)+_0x1e6522+_0x9b8c53(0x19e)+_0x2223d5+'\x22'+(_0x4d81ed==='global'?_0x9b8c53(0x1c1):''));}return writeScopedConfig(_0x5b1b2d,_0x2e55b2),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a14_0x12c9aa(0x196),'risk':a14_0x12c9aa(0x188),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG,APP_FLAG],async 'execute'(_0x5639ad){const _0x5d3f86=a14_0x12c9aa,_0xf8116c=_0x5639ad[_0x5d3f86(0x1b3)][0x0];if(!_0xf8116c)throw CliErrors[_0x5d3f86(0x18f)](_0x5d3f86(0x1b8),_0x5d3f86(0x1b4)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--app\x20<name>]\x20[--global]');const _0x599eef=resolveWriteScope({'explicitGlobal':_0x5639ad[_0x5d3f86(0x18a)]('global'),'policy':'project-or-global-explicit'}),_0x977dfa=toScopeFlags(_0x599eef),_0x45a141=readScopedConfig(_0x977dfa),_0x5e2f5a=_0x5639ad[_0x5d3f86(0x1a6)](_0x5d3f86(0x18e));if(_0x5e2f5a){if(!_0x45a141[_0x5d3f86(0x1b1)]?.[_0x5e2f5a])throw CliErrors[_0x5d3f86(0x18f)](_0x5d3f86(0x19f)+_0x5e2f5a+_0x5d3f86(0x1b0));if(_0x45a141['apps'][_0x5e2f5a][_0xf8116c]===undefined)throw CliErrors[_0x5d3f86(0x18f)](_0x5d3f86(0x19b)+_0xf8116c+_0x5d3f86(0x1ab)+_0x5e2f5a+'\x22.');delete _0x45a141[_0x5d3f86(0x1b1)][_0x5e2f5a][_0xf8116c],console[_0x5d3f86(0x1cc)](_0x5d3f86(0x1ac)+_0xf8116c+_0x5d3f86(0x1bc)+_0x5e2f5a+'\x22'+(_0x599eef==='global'?'\x20(global)':''));}else{if(_0x45a141[_0xf8116c]===undefined)throw CliErrors['validation'](_0x5d3f86(0x19b)+_0xf8116c+_0x5d3f86(0x1cb));delete _0x45a141[_0xf8116c],console['log'](_0x5d3f86(0x1ac)+_0xf8116c+'`'+(_0x599eef===_0x5d3f86(0x198)?_0x5d3f86(0x1c1):''));}return writeScopedConfig(_0x45a141,_0x977dfa),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x393cd0,_0x21d332){var _0x5981db=a15_0x2865,_0x256390=_0x393cd0();while(!![]){try{var _0x1047ff=-parseInt(_0x5981db(0x148))/0x1*(parseInt(_0x5981db(0x13f))/0x2)+parseInt(_0x5981db(0x143))/0x3*(-parseInt(_0x5981db(0x144))/0x4)+-parseInt(_0x5981db(0x13e))/0x5*(parseInt(_0x5981db(0x14a))/0x6)+-parseInt(_0x5981db(0x140))/0x7*(parseInt(_0x5981db(0x142))/0x8)+-parseInt(_0x5981db(0x141))/0x9+parseInt(_0x5981db(0x146))/0xa*(-parseInt(_0x5981db(0x145))/0xb)+-parseInt(_0x5981db(0x147))/0xc*(-parseInt(_0x5981db(0x149))/0xd);if(_0x1047ff===_0x21d332)break;else _0x256390['push'](_0x256390['shift']());}catch(_0x11663b){_0x256390['push'](_0x256390['shift']());}}}(a15_0x30a6,0x2f2a6));function a15_0x30a6(){var _0xae8986=['1693272seLALv','5ZxQkpc','175546pjoNFQ','767326skSVFE','2173500kNsmXG','16wDAhMO','3OPkerZ','963448RJHDLn','520718hpOPMR','10LQfEZO','5599536dHcAss','2QHSOoq','39PoQBEk'];a15_0x30a6=function(){return _0xae8986;};return a15_0x30a6();}function a15_0x2865(_0x1a2bb4,_0x4ce7f0){_0x1a2bb4=_0x1a2bb4-0x13e;var _0x30a63f=a15_0x30a6();var _0x2865c1=_0x30a63f[_0x1a2bb4];return _0x2865c1;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,APP_PROFILE_CONFIG_KEYS as APP_PROFILE_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getAppProfileConfigKeyList,getAppProfileConfigKeySummary,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isAppProfileConfigKey,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x16e293=a17_0x5c35;(function(_0x418754,_0xb3aeb4){const _0x35b3d3=a17_0x5c35,_0x33c4fd=_0x418754();while(!![]){try{const _0x3dea46=-parseInt(_0x35b3d3(0x21e))/0x1+parseInt(_0x35b3d3(0x212))/0x2*(parseInt(_0x35b3d3(0x207))/0x3)+parseInt(_0x35b3d3(0x23a))/0x4*(-parseInt(_0x35b3d3(0x22c))/0x5)+-parseInt(_0x35b3d3(0x226))/0x6*(parseInt(_0x35b3d3(0x21c))/0x7)+-parseInt(_0x35b3d3(0x220))/0x8*(parseInt(_0x35b3d3(0x22e))/0x9)+-parseInt(_0x35b3d3(0x218))/0xa*(parseInt(_0x35b3d3(0x219))/0xb)+parseInt(_0x35b3d3(0x238))/0xc;if(_0x3dea46===_0xb3aeb4)break;else _0x33c4fd['push'](_0x33c4fd['shift']());}catch(_0x4ea68d){_0x33c4fd['push'](_0x33c4fd['shift']());}}}(a17_0x3856,0xa8af7));function a17_0x3856(){const _0x370e17=['55518708pzsOdE','command','644muXqsV','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','\x20\x20EXAMPLES','Update\x20an\x20existing\x20record','Preview:\x20data\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','/api/{appCode}/','paramsHint','description','data\x20','now','update','data','high-risk-write','helpExtra','body','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','create','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','delete','Get\x20a\x20single\x20record\x20by\x20ID','risk','\x20completed\x20in\x20','build','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','filter','map','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','read','\x20\x20LOGICAL\x20COMBINATORS','2770263rzsRDo','operation','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','getOne','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','2LMIcFt','\x20\x20PARAMS\x20STRUCTURE','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','71430vFYdgv','253wPtyFW','params','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','7xIBNNp','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','1005604KaqoOH','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','2928MyYUYw','write','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','str','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','6248946nvopGS','dryRun','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20on\x20dataset\x20','39965SVcJlf','POST','33462tvZUct','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','aggregate','paramsRequired','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','code','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}'];a17_0x3856=function(){return _0x370e17;};return a17_0x3856();}function a17_0x5c35(_0x4a86cb,_0x2e5330){_0x4a86cb=_0x4a86cb-0x1f1;const _0x385671=a17_0x3856();let _0x5c3598=_0x385671[_0x4a86cb];return _0x5c3598;}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../common/flags.js';import{requireAnyOf}from'../common/constraints.js';import{parseJsonParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a17_0x16e293(0x200),'operation':a17_0x16e293(0x200),'risk':a17_0x16e293(0x205),'paramsRequired':![],'description':a17_0x16e293(0x214),'paramsHint':a17_0x16e293(0x203)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':['\x20\x20WHERE\x20OPERATORS',a17_0x16e293(0x217),a17_0x16e293(0x228),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}',a17_0x16e293(0x216),a17_0x16e293(0x22a),'\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a17_0x16e293(0x22f),'\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a17_0x16e293(0x206),a17_0x16e293(0x1f9),a17_0x16e293(0x20c),'',a17_0x16e293(0x209),a17_0x16e293(0x1ff),a17_0x16e293(0x21f),a17_0x16e293(0x225),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a17_0x16e293(0x231),'','\x20\x20PAGINATION',a17_0x16e293(0x222),a17_0x16e293(0x229),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)']['join']('\x0a')},{'command':a17_0x16e293(0x20a),'operation':a17_0x16e293(0x20a),'risk':a17_0x16e293(0x205),'paramsRequired':!![],'description':a17_0x16e293(0x1fb),'paramsHint':a17_0x16e293(0x204)},{'command':a17_0x16e293(0x1f8),'operation':'create','risk':a17_0x16e293(0x221),'paramsRequired':!![],'description':a17_0x16e293(0x21d),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a17_0x16e293(0x1f2),'operation':'update','risk':a17_0x16e293(0x221),'paramsRequired':!![],'description':a17_0x16e293(0x23d),'paramsHint':a17_0x16e293(0x21b)},{'command':'delete','operation':a17_0x16e293(0x1fa),'risk':a17_0x16e293(0x1f4),'paramsRequired':!![],'description':a17_0x16e293(0x20b),'paramsHint':a17_0x16e293(0x204)},{'command':a17_0x16e293(0x232),'operation':a17_0x16e293(0x232),'risk':a17_0x16e293(0x205),'paramsRequired':![],'description':a17_0x16e293(0x202),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a17_0x16e293(0x215),'helpExtra':[a17_0x16e293(0x224),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a17_0x16e293(0x23f),a17_0x16e293(0x20f),a17_0x16e293(0x20e),a17_0x16e293(0x237),'\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a17_0x16e293(0x213),a17_0x16e293(0x20d),a17_0x16e293(0x235),a17_0x16e293(0x234),a17_0x16e293(0x230),a17_0x16e293(0x23b),a17_0x16e293(0x210),'',a17_0x16e293(0x23c),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a17_0x16e293(0x211),'',a17_0x16e293(0x1f7),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27']['join']('\x0a')}];function makeDataCommand(_0x44f862){const _0x181d30=a17_0x16e293,_0x3d88c3='data\x20'+_0x44f862[_0x181d30(0x239)],_0x2e660b={'service':_0x181d30(0x1f3),'command':_0x44f862[_0x181d30(0x239)],'description':_0x44f862[_0x181d30(0x242)],'risk':_0x44f862[_0x181d30(0x1fc)],'helpExtra':_0x44f862[_0x181d30(0x1f5)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x44f862[_0x181d30(0x241)]}],..._0x44f862[_0x181d30(0x233)]&&{'validate':async _0x383219=>{const _0x322de7=_0x181d30;requireAnyOf(_0x383219,[_0x322de7(0x21a)],_0x3d88c3);}},async 'execute'(_0xba8fdf){const _0x559496=_0x181d30,_0x5b7b48=_0xba8fdf[_0x559496(0x223)](_0x559496(0x236)),_0x548715=parseJsonParams(_0xba8fdf[_0x559496(0x223)](_0x559496(0x21a)))??{},_0x7402ea=Date[_0x559496(0x1f1)](),_0x15691b=await executeData(_0x5b7b48,_0x44f862[_0x559496(0x208)],_0x548715),_0x2ab6d7=Date[_0x559496(0x1f1)]()-_0x7402ea;return{'ok':!![],'data':{'result':_0x15691b,'elapsed':_0x2ab6d7},'message':_0x559496(0x243)+_0x44f862[_0x559496(0x239)]+_0x559496(0x1fd)+_0x2ab6d7+'ms'};}};return _0x44f862['risk']!=='read'&&(_0x2e660b[_0x181d30(0x227)]=async _0x1b58cd=>{const _0x30b5cd=_0x181d30,_0x9a78fd=_0x1b58cd[_0x30b5cd(0x223)](_0x30b5cd(0x236)),_0x207063=parseJsonParams(_0x1b58cd['str'](_0x30b5cd(0x21a)))??{};return dryRun(_0x30b5cd(0x22d),_0x30b5cd(0x240)+_0x9a78fd+'/'+_0x44f862['operation'])[_0x30b5cd(0x1f6)](_0x207063)[_0x30b5cd(0x242)](_0x30b5cd(0x23e)+_0x44f862['command']+_0x30b5cd(0x22b)+_0x9a78fd)[_0x30b5cd(0x1fe)]();}),_0x2e660b;}export const dataDefinitions=specs[a17_0x16e293(0x201)](makeDataCommand);
|
|
1
|
+
const a16_0x56d80a=a16_0x50f1;(function(_0x56c9b6,_0x440071){const _0x5d652b=a16_0x50f1,_0x29ceac=_0x56c9b6();while(!![]){try{const _0x52e92f=parseInt(_0x5d652b(0x1f4))/0x1+-parseInt(_0x5d652b(0x1f8))/0x2+parseInt(_0x5d652b(0x1fc))/0x3+-parseInt(_0x5d652b(0x1c9))/0x4+-parseInt(_0x5d652b(0x1fe))/0x5*(parseInt(_0x5d652b(0x1bf))/0x6)+parseInt(_0x5d652b(0x1c8))/0x7+parseInt(_0x5d652b(0x1eb))/0x8;if(_0x52e92f===_0x440071)break;else _0x29ceac['push'](_0x29ceac['shift']());}catch(_0x5471b8){_0x29ceac['push'](_0x29ceac['shift']());}}}(a16_0x341d,0x21a7c));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a16_0x50f1(_0x484b2b,_0x3b0f1e){_0x484b2b=_0x484b2b-0x1bd;const _0x341db3=a16_0x341d();let _0x50f101=_0x341db3[_0x484b2b];return _0x50f101;}import{requireAnyOf}from'../../commands/common/constraints.js';function a16_0x341d(){const _0x1b7d76=['\x20\x20AGGREGATE\x20TYPES','5HmAsiY','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','data\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20LOGICAL\x20COMBINATORS','paramsRequired','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','POST','getOne','operation','92334PwCfBq','write','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','command','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','description','risk','1762516MqfhQY','1055740KrUVJE','\x20\x20PAGINATION','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Filter\x20dataset\x20records\x20with\x20query\x20conditions','build','now','delete','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20PARAMS\x20STRUCTURE','filter','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','update','str','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','\x20\x20EXAMPLES','dryRun','\x20completed\x20in\x20','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','read','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','create','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','48704UZPtFP','params','aggregate','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','batchCreate','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20on\x20dataset\x20','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','122951Lorful','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','42900aSsOKx','code','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','173397amxeqG'];a16_0x341d=function(){return _0x1b7d76;};return a16_0x341d();}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a16_0x56d80a(0x1d4),'operation':a16_0x56d80a(0x1d4),'risk':a16_0x56d80a(0x1e5),'paramsRequired':![],'description':a16_0x56d80a(0x1cc),'paramsHint':a16_0x56d80a(0x1f2)+a16_0x56d80a(0x1d1),'helpExtra':[a16_0x56d80a(0x1db),a16_0x56d80a(0x1d6),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a16_0x56d80a(0x1f7),a16_0x56d80a(0x1ee),a16_0x56d80a(0x1ff),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a16_0x56d80a(0x1d0),a16_0x56d80a(0x201),a16_0x56d80a(0x1d5),'',a16_0x56d80a(0x205),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a16_0x56d80a(0x1e4),'',a16_0x56d80a(0x1c4),a16_0x56d80a(0x1ea),a16_0x56d80a(0x1e6),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a16_0x56d80a(0x1e8),'',a16_0x56d80a(0x1ca),a16_0x56d80a(0x1d7),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a16_0x56d80a(0x202)]['join']('\x0a')},{'command':'getOne','operation':a16_0x56d80a(0x1bd),'risk':a16_0x56d80a(0x1e5),'paramsRequired':!![],'description':a16_0x56d80a(0x1c1),'paramsHint':a16_0x56d80a(0x1f3)},{'command':a16_0x56d80a(0x1e7),'operation':a16_0x56d80a(0x1e7),'risk':a16_0x56d80a(0x1c0),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a16_0x56d80a(0x1fa)},{'command':a16_0x56d80a(0x1ef),'operation':a16_0x56d80a(0x1ef),'risk':a16_0x56d80a(0x1c0),'paramsRequired':!![],'description':a16_0x56d80a(0x1e9),'paramsHint':a16_0x56d80a(0x1c2)},{'command':a16_0x56d80a(0x1d8),'operation':a16_0x56d80a(0x1d8),'risk':a16_0x56d80a(0x1c0),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a16_0x56d80a(0x1cf),'operation':a16_0x56d80a(0x1cf),'risk':'high-risk-write','paramsRequired':!![],'description':a16_0x56d80a(0x1fb),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a16_0x56d80a(0x1ed),'operation':'aggregate','risk':a16_0x56d80a(0x1e5),'paramsRequired':![],'description':a16_0x56d80a(0x1f0),'paramsHint':a16_0x56d80a(0x200)+a16_0x56d80a(0x1f6),'helpExtra':[a16_0x56d80a(0x1fd),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a16_0x56d80a(0x207),a16_0x56d80a(0x204),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a16_0x56d80a(0x1c5),a16_0x56d80a(0x1d2),a16_0x56d80a(0x1f5),'',a16_0x56d80a(0x1d3),a16_0x56d80a(0x1e0),a16_0x56d80a(0x1e2),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a16_0x56d80a(0x1e3),a16_0x56d80a(0x1dc),a16_0x56d80a(0x1e1),'',a16_0x56d80a(0x1dd),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','',a16_0x56d80a(0x1cb),a16_0x56d80a(0x1da)]['join']('\x0a')}];function makeDataCommand(_0x14ecbc){const _0x132fa7=a16_0x56d80a,_0xdc2a5a=_0x132fa7(0x203)+_0x14ecbc[_0x132fa7(0x1c3)],_0x22a2b1={'service':'data','command':_0x14ecbc[_0x132fa7(0x1c3)],'description':_0x14ecbc[_0x132fa7(0x1c6)],'risk':_0x14ecbc[_0x132fa7(0x1c7)],'helpExtra':_0x14ecbc['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x14ecbc['paramsHint']}],'validate':async _0x189740=>{const _0x4d52ee=_0x132fa7;_0x14ecbc[_0x4d52ee(0x206)]&&requireAnyOf(_0x189740,[_0x4d52ee(0x1ec)],_0xdc2a5a),_0x14ecbc[_0x4d52ee(0x1be)]===_0x4d52ee(0x1ef)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x189740['str'](_0x4d52ee(0x1ec))));},async 'execute'(_0x533920){const _0x5cbe81=_0x132fa7,_0x2a9534=_0x533920[_0x5cbe81(0x1d9)](_0x5cbe81(0x1f9)),_0x28d00d=_0x14ecbc[_0x5cbe81(0x1be)]===_0x5cbe81(0x1ef)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x533920['str'](_0x5cbe81(0x1ec)))):parseJsonParams(_0x533920[_0x5cbe81(0x1d9)]('params'))??{},_0x59df0b=Date[_0x5cbe81(0x1ce)](),_0x5c8f9b=await executeData(_0x2a9534,_0x14ecbc[_0x5cbe81(0x1be)],_0x28d00d),_0x1bb5e0=Date[_0x5cbe81(0x1ce)]()-_0x59df0b;return{'ok':!![],'data':{'result':_0x5c8f9b,'elapsed':_0x1bb5e0},'message':_0x5cbe81(0x203)+_0x14ecbc['command']+_0x5cbe81(0x1df)+_0x1bb5e0+'ms'};}};return _0x14ecbc['risk']!=='read'&&(_0x22a2b1[_0x132fa7(0x1de)]=async _0x2769b4=>{const _0x106d5a=_0x132fa7,_0x1e2ab0=_0x2769b4['str'](_0x106d5a(0x1f9)),_0x529da2=_0x14ecbc[_0x106d5a(0x1be)]===_0x106d5a(0x1ef)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2769b4['str'](_0x106d5a(0x1ec)))):parseJsonParams(_0x2769b4['str']('params'))??{};return dryRun(_0x106d5a(0x208),'/api/{appCode}/'+_0x1e2ab0+'/'+_0x14ecbc['operation'])['body'](_0x529da2)[_0x106d5a(0x1c6)]('Preview:\x20data\x20'+_0x14ecbc['command']+_0x106d5a(0x1f1)+_0x1e2ab0)[_0x106d5a(0x1cd)]();}),_0x22a2b1;}export const dataDefinitions=specs['map'](makeDataCommand);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a17_0x47532c=a17_0x410a;(function(_0x5e9148,_0x3538a8){const _0x412403=a17_0x410a,_0x2f9fa8=_0x5e9148();while(!![]){try{const _0x2f1e1b=parseInt(_0x412403(0x13e))/0x1+parseInt(_0x412403(0x133))/0x2+parseInt(_0x412403(0x13b))/0x3*(parseInt(_0x412403(0x137))/0x4)+-parseInt(_0x412403(0x145))/0x5+-parseInt(_0x412403(0x174))/0x6+-parseInt(_0x412403(0x135))/0x7+parseInt(_0x412403(0x16a))/0x8;if(_0x2f1e1b===_0x3538a8)break;else _0x2f9fa8['push'](_0x2f9fa8['shift']());}catch(_0x29a36c){_0x2f9fa8['push'](_0x2f9fa8['shift']());}}}(a17_0x4355,0x2f928));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x597de2){const _0x5a508d=a17_0x410a;if(_0x597de2[_0x5a508d(0x15d)])return null;const _0x30c0ec=Boolean(_0x597de2['displayName']!==undefined||_0x597de2['doType']!==undefined);let _0x472e74={};if(!_0x30c0ec&&typeof _0x597de2[_0x5a508d(0x140)]===_0x5a508d(0x15c))try{_0x472e74=JSON[_0x5a508d(0x15e)](_0x597de2['extend']);}catch{}const _0x45ae82=_0x30c0ec?_0x597de2['name']:_0x597de2['code'],_0x1c8c93=_0x30c0ec?_0x597de2[_0x5a508d(0x161)]:_0x597de2[_0x5a508d(0x171)],_0x43f970=_0x30c0ec?_0x597de2[_0x5a508d(0x132)]:_0x597de2['type']||_0x597de2[_0x5a508d(0x164)],_0x462d95=_0x30c0ec?_0x597de2['pkField']===!![]:_0x472e74[_0x5a508d(0x139)]===!![],_0x3f0fe2=_0x30c0ec?_0x597de2[_0x5a508d(0x14c)]===!![]:_0x472e74[_0x5a508d(0x14c)]===!![],_0x7fb43c=_0x30c0ec?_0x597de2[_0x5a508d(0x14b)]??null:_0x472e74[_0x5a508d(0x14b)]??null,_0x5aaa57={'name':_0x45ae82,'displayName':_0x1c8c93||_0x45ae82,'type':_0x43f970,'dbType':_0x597de2[_0x5a508d(0x153)],'pk':_0x462d95,'required':_0x3f0fe2,'description':_0x597de2[_0x5a508d(0x16d)]||undefined};return Array[_0x5a508d(0x14d)](_0x7fb43c)&&_0x7fb43c[_0x5a508d(0x15b)]>0x0&&(_0x5aaa57[_0x5a508d(0x14b)]=_0x7fb43c),_0x5aaa57;}function a17_0x410a(_0x20af56,_0x51dd30){_0x20af56=_0x20af56-0x131;const _0x435515=a17_0x4355();let _0x410a01=_0x435515[_0x20af56];return _0x410a01;}function parseJsonMaybe(_0x167ad2){const _0x184f6c=a17_0x410a;if(typeof _0x167ad2!==_0x184f6c(0x15c))return _0x167ad2;try{return JSON[_0x184f6c(0x15e)](_0x167ad2);}catch{return _0x167ad2;}}function normalizeOperationEntry(_0x12b655,_0x464960){const _0x5e6d22=a17_0x410a;if(!_0x464960||typeof _0x464960!==_0x5e6d22(0x172))return null;if(!_0x464960[_0x5e6d22(0x138)]||!_0x464960[_0x5e6d22(0x13a)])return null;const _0x10460f={'name':_0x12b655,'method':_0x464960['method'],'path':_0x464960['path']};if(_0x464960[_0x5e6d22(0x148)])_0x10460f[_0x5e6d22(0x148)]=_0x464960[_0x5e6d22(0x148)];if(_0x464960[_0x5e6d22(0x14a)]!=null)_0x10460f[_0x5e6d22(0x14a)]=parseJsonMaybe(_0x464960['requestBody']);if(_0x464960['responseBody']!=null)_0x10460f['responseBody']=parseJsonMaybe(_0x464960['responseBody']);if(_0x464960[_0x5e6d22(0x16b)]!=null)_0x10460f['beforeScriptId']=_0x464960['beforeScriptId'];if(_0x464960[_0x5e6d22(0x158)]!=null)_0x10460f[_0x5e6d22(0x158)]=_0x464960[_0x5e6d22(0x158)];if(Array[_0x5e6d22(0x14d)](_0x464960[_0x5e6d22(0x15a)]))_0x10460f[_0x5e6d22(0x15a)]=_0x464960[_0x5e6d22(0x15a)];if(Array[_0x5e6d22(0x14d)](_0x464960[_0x5e6d22(0x155)]))_0x10460f[_0x5e6d22(0x155)]=_0x464960[_0x5e6d22(0x155)];return _0x10460f;}function summarizeDbtable(_0x49b1cb){const _0x5c394c=a17_0x410a,_0x2f4c60={},_0x4ceb50=[_0x5c394c(0x150),_0x5c394c(0x13d),_0x5c394c(0x165),_0x5c394c(0x173),_0x5c394c(0x139),_0x5c394c(0x154),'logicField','createTimeField','updateTimeField','creatorIdField',_0x5c394c(0x13c),_0x5c394c(0x168),_0x5c394c(0x156),'labelField','dblinkInfoDTO'];for(const _0x4b52d5 of _0x4ceb50){if(_0x49b1cb[_0x4b52d5]!==undefined)_0x2f4c60[_0x4b52d5]=_0x49b1cb[_0x4b52d5];}return typeof _0x2f4c60[_0x5c394c(0x154)]==='string'&&_0x2f4c60['allFields']['length']>0x0&&(_0x2f4c60['allFieldNames']=_0x2f4c60[_0x5c394c(0x154)]['split'](',')[_0x5c394c(0x146)](_0x5e102b=>_0x5e102b[_0x5c394c(0x167)]())[_0x5c394c(0x141)](Boolean)),_0x2f4c60;}function a17_0x4355(){const _0x3f00bc=['dbtableConfig','host','properties','requestBody','options','required','isArray','modelId','columnCodeListWithDeleted','dbId','formatRules','toField','dbType','allFields','responseFields','modifierNameField','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','afterScriptId','indexes','requestFields','length','string','deleted','parse','code','toTableName','displayName','toFieldLabel','relations','dataType','tableName','operations','trim','modifierIdField','str','4283416sHcRPF','beforeScriptId','entries','description','fields','modelCode','dataset','name','object','datasetKey','1482294EOsTxb','source','toDatasetName','relatedPageInfoList','doVersion','doType','256436yxZFmL','push','2629088npYUFT','sourceType','4HmkemC','method','pkField','path','358959ZYGGRN','creatorNameField','dbName','320596uBFMDV','title','extend','filter','type','toDatasetCode','read','1432025JeQgeQ','map'];a17_0x4355=function(){return _0x3f00bc;};return a17_0x4355();}function normalizeRelatedPages(_0x32eba3){const _0x12f4ec=a17_0x410a;if(!Array[_0x12f4ec(0x14d)](_0x32eba3))return[];return _0x32eba3[_0x12f4ec(0x141)](_0xe7b4b8=>_0xe7b4b8&&typeof _0xe7b4b8==='object')[_0x12f4ec(0x146)](_0x535f26=>({'id':_0x535f26['id'],'type':_0x535f26[_0x12f4ec(0x142)],'code':_0x535f26[_0x12f4ec(0x15f)],'title':_0x535f26[_0x12f4ec(0x13f)],'deleted':_0x535f26[_0x12f4ec(0x15d)]===!![]}));}export const datasetDetail={'service':'dataset','command':'detail','description':a17_0x47532c(0x157),'risk':a17_0x47532c(0x144),'flags':[CODE_FLAG],async 'execute'(_0x3aa09f){const _0x236b76=a17_0x47532c,_0x112264=await getDatasetDetail(_0x3aa09f[_0x236b76(0x169)]('code')),_0x2f5b91=Array[_0x236b76(0x14d)](_0x112264[_0x236b76(0x16e)])?_0x112264[_0x236b76(0x16e)]:Array['isArray'](_0x112264[_0x236b76(0x149)])?_0x112264[_0x236b76(0x149)]:[],_0x2d7180=_0x2f5b91[_0x236b76(0x146)](_0x1c56f7=>normalizeField(_0x1c56f7))[_0x236b76(0x141)](_0x35e014=>_0x35e014!==null),_0x186ddd=_0x112264[_0x236b76(0x166)]??{},_0xa21e1=[];for(const [_0x1c1f80,_0xe375e2]of Object[_0x236b76(0x16c)](_0x186ddd)){const _0x7e9841=normalizeOperationEntry(_0x1c1f80,_0xe375e2);if(_0x7e9841)_0xa21e1[_0x236b76(0x134)](_0x7e9841);}const _0x1afb88=_0x112264[_0x236b76(0x147)]??{},_0xcae864=_0x112264[_0x236b76(0x170)]??{},_0x5675b8=_0x1afb88[_0x236b76(0x150)]!=null?{'id':_0x1afb88[_0x236b76(0x150)],'name':_0x1afb88['dbName']??null}:undefined;let _0xad238e;return typeof _0x112264[_0x236b76(0x140)]===_0x236b76(0x15c)&&(_0xad238e=parseJsonMaybe(_0x112264[_0x236b76(0x140)])),{'ok':!![],'data':{'id':_0x112264[_0x236b76(0x14e)]??_0x112264['id'],'name':_0x112264[_0x236b76(0x171)],'code':_0x112264[_0x236b76(0x16f)]||_0x112264[_0x236b76(0x15f)],'doVersion':_0x112264[_0x236b76(0x131)],'description':_0x112264['description']||_0xcae864['tableComment']||undefined,'source':_0x112264[_0x236b76(0x175)]||_0xcae864[_0x236b76(0x136)],'table':_0x1afb88['tableName']||_0xcae864[_0x236b76(0x165)],'datasetKey':_0x1afb88[_0x236b76(0x173)],'pk':_0x1afb88[_0x236b76(0x139)],'db':_0x5675b8,'dbtable':summarizeDbtable(_0x1afb88),'fields':_0x2d7180,'operations':_0xa21e1,'indexes':Array['isArray'](_0xcae864[_0x236b76(0x159)])?_0xcae864[_0x236b76(0x159)]:[],'relations':Array[_0x236b76(0x14d)](_0x112264[_0x236b76(0x163)])?_0x112264[_0x236b76(0x163)]['map'](_0x30e330=>({'fromField':_0x30e330['fromField'],'toDataset':_0x30e330[_0x236b76(0x176)],'toCode':_0x30e330[_0x236b76(0x143)],'toTable':_0x30e330[_0x236b76(0x160)],'toField':_0x30e330[_0x236b76(0x152)],'labelField':_0x30e330[_0x236b76(0x162)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x112264[_0x236b76(0x177)]),...Array['isArray'](_0x112264[_0x236b76(0x14f)])?{'columnCodeListWithDeleted':_0x112264[_0x236b76(0x14f)]}:{},'formatRules':Array['isArray'](_0x112264[_0x236b76(0x151)])?_0x112264[_0x236b76(0x151)]:[],'validateRules':Array[_0x236b76(0x14d)](_0x112264['validateRules'])?_0x112264['validateRules']:[],..._0xad238e!==undefined?{'extend':_0xad238e}:{},'stats':{'fieldCount':_0x2d7180[_0x236b76(0x15b)],'operationCount':_0xa21e1[_0x236b76(0x15b)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x190b1e,_0x11d29e){const _0x91534e=a18_0x1006,_0x161930=_0x190b1e();while(!![]){try{const _0x55579c=parseInt(_0x91534e(0x127))/0x1*(parseInt(_0x91534e(0x12e))/0x2)+parseInt(_0x91534e(0x12b))/0x3*(parseInt(_0x91534e(0x126))/0x4)+parseInt(_0x91534e(0x12a))/0x5*(parseInt(_0x91534e(0x12c))/0x6)+-parseInt(_0x91534e(0x123))/0x7+-parseInt(_0x91534e(0x125))/0x8*(parseInt(_0x91534e(0x128))/0x9)+parseInt(_0x91534e(0x124))/0xa+-parseInt(_0x91534e(0x129))/0xb*(parseInt(_0x91534e(0x12d))/0xc);if(_0x55579c===_0x11d29e)break;else _0x161930['push'](_0x161930['shift']());}catch(_0x10333b){_0x161930['push'](_0x161930['shift']());}}}(a18_0x47b7,0x1f3e3));function a18_0x1006(_0x52183b,_0x591147){_0x52183b=_0x52183b-0x123;const _0x47b71d=a18_0x47b7();let _0x100664=_0x47b71d[_0x52183b];return _0x100664;}function a18_0x47b7(){const _0x44886e=['1714180GdthYv','8mJsXAe','4308kQhAvU','13COQvHZ','1716003aUpkEz','1216941VSrWfU','1166745ukWOni','366skRAtN','6wwsGWw','24CqODPn','29236oBaIpp','1304065bjNDZv'];a18_0x47b7=function(){return _0x44886e;};return a18_0x47b7();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';export const datasetDefinitions=[datasetList,datasetDetail];
|