@lovrabet/lovrabet-cli 2.1.12 → 2.1.13-beta.1
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/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- 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/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.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/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -0
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- 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/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- 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 -1
- 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/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x28fb97=a14_0x5bf0;(function(_0x3b2f52,_0x54b831){const _0x382db1=a14_0x5bf0,_0x49349a=_0x3b2f52();while(!![]){try{const _0x55aca2=parseInt(_0x382db1(0xfe))/0x1+-parseInt(_0x382db1(0x108))/0x2+-parseInt(_0x382db1(0x10e))/0x3*(-parseInt(_0x382db1(0x106))/0x4)+-parseInt(_0x382db1(0x100))/0x5*(parseInt(_0x382db1(0x104))/0x6)+parseInt(_0x382db1(0x10f))/0x7+parseInt(_0x382db1(0x110))/0x8*(parseInt(_0x382db1(0x10d))/0x9)+-parseInt(_0x382db1(0x107))/0xa*(parseInt(_0x382db1(0xfc))/0xb);if(_0x55aca2===_0x54b831)break;else _0x49349a['push'](_0x49349a['shift']());}catch(_0x4ccc97){_0x49349a['push'](_0x49349a['shift']());}}}(a14_0x1c7e,0x1c542));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a14_0x5bf0(_0x36ad1d,_0x110f6a){_0x36ad1d=_0x36ad1d-0xfc;const _0x1c7e7e=a14_0x1c7e();let _0x5bf018=_0x1c7e7e[_0x36ad1d];return _0x5bf018;}function a14_0x1c7e(){const _0x427797=['906MHJBaa','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','263084uJxfOt','3190130nWAWYz','314204iEsPYL','description','version','gmtModified','detail','27pDxxbi','9kMMOLv','890155yXEWeV','469408qrslsx','11gknwnU','appCode','144040NGPddj','functionName','1735DOecBY','name','(none)','BFF\x20function\x20name'];a14_0x1c7e=function(){return _0x427797;};return a14_0x1c7e();}export const bffDetail={'service':'bff','command':a14_0x28fb97(0x10c),'description':a14_0x28fb97(0x105),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a14_0x28fb97(0x103)}],async 'execute'(_0x245fa){const _0x59a3fb=a14_0x28fb97,_0x11327b=await getBffEndpointContract(_0x245fa['appCode'],_0x245fa['str'](_0x59a3fb(0x101)));return{'ok':!![],'data':{'appCode':_0x11327b[_0x59a3fb(0xfd)],'functionName':_0x11327b[_0x59a3fb(0xff)],'description':_0x11327b[_0x59a3fb(0x109)]||_0x59a3fb(0x102),'version':_0x11327b[_0x59a3fb(0x10a)],'gmtModified':_0x11327b[_0x59a3fb(0x10b)]}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x4af3c5=a15_0x565d;function a15_0x565d(_0x2d1800,_0x4f709a){_0x2d1800=_0x2d1800-0x1d1;const _0x201b9b=a15_0x201b();let _0x565db2=_0x201b9b[_0x2d1800];return _0x565db2;}(function(_0x2086fc,_0x4e76ec){const _0x2e4379=a15_0x565d,_0x3ae1c0=_0x2086fc();while(!![]){try{const _0x12e26a=-parseInt(_0x2e4379(0x1e1))/0x1*(-parseInt(_0x2e4379(0x1d5))/0x2)+-parseInt(_0x2e4379(0x1d1))/0x3+-parseInt(_0x2e4379(0x1dd))/0x4+parseInt(_0x2e4379(0x1da))/0x5*(-parseInt(_0x2e4379(0x1d2))/0x6)+parseInt(_0x2e4379(0x1d8))/0x7*(-parseInt(_0x2e4379(0x1d7))/0x8)+parseInt(_0x2e4379(0x1df))/0x9*(parseInt(_0x2e4379(0x1de))/0xa)+parseInt(_0x2e4379(0x1d4))/0xb;if(_0x12e26a===_0x4e76ec)break;else _0x3ae1c0['push'](_0x3ae1c0['shift']());}catch(_0x4c823c){_0x3ae1c0['push'](_0x3ae1c0['shift']());}}}(a15_0x201b,0xa634d));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x201b(){const _0x200880=['56DGArHN','769321twCvKh','now','6619395SBsprB','name','BFF\x20executed\x20in\x20','875476waAYok','10Hlekpd','1871379wOWssz','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','136NMhmoQ','params','read','466848JPjItR','6XFxUgO','exec','19225965OmwLDg','17540hDSZQz','str'];a15_0x201b=function(){return _0x200880;};return a15_0x201b();}export const bffExec={'service':'bff','command':a15_0x4af3c5(0x1d3),'description':a15_0x4af3c5(0x1e0),'risk':a15_0x4af3c5(0x1e3),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x31619f){const _0x4caf4a=a15_0x4af3c5,_0x2de305=parseJsonParams(_0x31619f[_0x4caf4a(0x1d6)](_0x4caf4a(0x1e2))),_0x6a8d9e=Date[_0x4caf4a(0x1d9)](),_0x12bd03=await executeSdkBff(_0x31619f[_0x4caf4a(0x1d6)](_0x4caf4a(0x1db)),_0x2de305),_0x133d90=Date[_0x4caf4a(0x1d9)]()-_0x6a8d9e;return{'ok':!![],'data':{'result':_0x12bd03,'elapsed':_0x133d90},'message':_0x4caf4a(0x1dc)+_0x133d90+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a16_0x471d(){const _0x3c809e=['34377kFCWiO','464940fMlOyh','2432315igDpIG','330eCtDlV','196960Ocyyyx','24CQcsKe','3444888wZlbdc','111213MPHrvT','256810gipKtB','222rCcGJf'];a16_0x471d=function(){return _0x3c809e;};return a16_0x471d();}function a16_0x2682(_0x26a60d,_0x5e7da5){_0x26a60d=_0x26a60d-0xa2;const _0x471d14=a16_0x471d();let _0x268262=_0x471d14[_0x26a60d];return _0x268262;}(function(_0x313da2,_0x54d352){const _0x588fc8=a16_0x2682,_0x505831=_0x313da2();while(!![]){try{const _0x2b467a=parseInt(_0x588fc8(0xab))/0x1+-parseInt(_0x588fc8(0xa8))/0x2+-parseInt(_0x588fc8(0xa5))/0x3*(parseInt(_0x588fc8(0xa4))/0x4)+parseInt(_0x588fc8(0xa2))/0x5+-parseInt(_0x588fc8(0xa9))/0x6*(parseInt(_0x588fc8(0xaa))/0x7)+parseInt(_0x588fc8(0xa6))/0x8+-parseInt(_0x588fc8(0xa7))/0x9*(parseInt(_0x588fc8(0xa3))/0xa);if(_0x2b467a===_0x54d352)break;else _0x505831['push'](_0x505831['shift']());}catch(_0x4c2a15){_0x505831['push'](_0x505831['shift']());}}}(a16_0x471d,0x41f79));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a17_0xdc5ca4=a17_0x5905;function a17_0x573e(){const _0x177435=['104492LGqpjk','42rFwpcN','inherit','cwd','log','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','setLogPath','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','4cpLNWg','553197MwBLAB','pipe','3393102TQKwys','1bistgg','1684100RDZrZX','write','\x20-g\x20-y)...','error','5uZKjMW','npx\x20skills\x20add\x20failed:\x20','apiError','637749ZWZExw','cli-skill-install','CLI\x20Built-in\x20Skill\x20installed','skipped','2440250xaTHMu','570272pwEAxe'];a17_0x573e=function(){return _0x177435;};return a17_0x573e();}(function(_0x2c46ce,_0x2d4505){const _0x183357=a17_0x5905,_0x299bf1=_0x2c46ce();while(!![]){try{const _0xbcc162=-parseInt(_0x183357(0xd5))/0x1*(parseInt(_0x183357(0xe3))/0x2)+-parseInt(_0x183357(0xee))/0x3*(parseInt(_0x183357(0xed))/0x4)+-parseInt(_0x183357(0xda))/0x5*(-parseInt(_0x183357(0xd4))/0x6)+parseInt(_0x183357(0xe4))/0x7*(parseInt(_0x183357(0xe2))/0x8)+-parseInt(_0x183357(0xdd))/0x9+-parseInt(_0x183357(0xe1))/0xa+-parseInt(_0x183357(0xd6))/0xb;if(_0xbcc162===_0x2d4505)break;else _0x299bf1['push'](_0x299bf1['shift']());}catch(_0x31c211){_0x299bf1['push'](_0x299bf1['shift']());}}}(a17_0x573e,0x4674e));import{CliErrors}from'../../errors.js';function a17_0x5905(_0x5a8cb1,_0xa5cc2d){_0x5a8cb1=_0x5a8cb1-0xd4;const _0x573e60=a17_0x573e();let _0x5905c7=_0x573e60[_0x5a8cb1];return _0x5905c7;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':'install','description':a17_0xdc5ca4(0xec),'risk':a17_0xdc5ca4(0xd7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1ef9f2){const _0x1b6122=a17_0xdc5ca4;logger[_0x1b6122(0xe9)](process[_0x1b6122(0xe6)]()),logger['info'](_0x1b6122(0xde),_0x1b6122(0xe8));const {LOVRABET_SKILL_SOURCE:_0x4892b7,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x164089,runNpxSkillsAddGlobal:_0x3322b2}=await import('../../skills/npx-skills-add.js'),_0x22d60b=_0x1ef9f2['nonInteractive']?_0x1b6122(0xef):_0x1b6122(0xe5);console['log']('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x4892b7+_0x1b6122(0xd8));const _0x66a6ea=_0x3322b2(process[_0x1b6122(0xe6)](),_0x4892b7,{'stdio':_0x22d60b});if(_0x66a6ea[_0x1b6122(0xe0)])console[_0x1b6122(0xe7)]('Skipped\x20npx\x20('+_0x164089+_0x1b6122(0xea));else{if(_0x66a6ea['ok'])console[_0x1b6122(0xe7)](_0x1b6122(0xdf));else throw CliErrors[_0x1b6122(0xdc)](_0x1b6122(0xdb)+(_0x66a6ea[_0x1b6122(0xd9)]||'unknown'),_0x1b6122(0xeb)+_0x4892b7+'\x20-g\x20-y');}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32b46f,_0xd2c42a){const _0x308ee2=a18_0x2e13,_0x27b081=_0x32b46f();while(!![]){try{const _0x5214af=parseInt(_0x308ee2(0x144))/0x1+parseInt(_0x308ee2(0x13c))/0x2*(-parseInt(_0x308ee2(0x146))/0x3)+parseInt(_0x308ee2(0x139))/0x4*(parseInt(_0x308ee2(0x141))/0x5)+parseInt(_0x308ee2(0x149))/0x6*(parseInt(_0x308ee2(0x14b))/0x7)+-parseInt(_0x308ee2(0x136))/0x8*(-parseInt(_0x308ee2(0x14c))/0x9)+parseInt(_0x308ee2(0x147))/0xa*(parseInt(_0x308ee2(0x137))/0xb)+-parseInt(_0x308ee2(0x148))/0xc*(parseInt(_0x308ee2(0x14a))/0xd);if(_0x5214af===_0xd2c42a)break;else _0x27b081['push'](_0x27b081['shift']());}catch(_0x48c506){_0x27b081['push'](_0x27b081['shift']());}}}(a18_0x499d,0x1fbed));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.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{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a18_0x499d(){const _0x42f657=['project-default','6VefguH','newConfigFileName','\x20init`\x20first.','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',',\x20or\x20run\x20`','1144345itOJGO','validation','project-or-global-explicit','214536xhdVCj','\x20found).','110508JbDGcu','10cEkGpg','36CrflLm','6ouqfOE','3579966RsqPtB','1385335qoGNjs','1917LdQZkq','project','inProject','Add\x20--global\x20to\x20write\x20to\x20~/','7432RIlGVp','2502456UlmsGe','global','4yDoWcU','Use\x20only\x20one\x20config\x20scope\x20flag.'];a18_0x499d=function(){return _0x42f657;};return a18_0x499d();}export function resolveConfigScope(_0x3a4d00){const _0x59dcd1=a18_0x2e13,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x1add46}=_0x3a4d00;if(explicitGlobal&&explicitProject)throw CliErrors[_0x59dcd1(0x142)](_0x59dcd1(0x13f),_0x59dcd1(0x13a));if(explicitGlobal)return'global';if(explicitProject)return _0x59dcd1(0x14d);switch(_0x1add46){case'global-default':return _0x59dcd1(0x138);case _0x59dcd1(0x13b):return _0x3a4d00[_0x59dcd1(0x14e)]??isInProject()?_0x59dcd1(0x14d):_0x59dcd1(0x138);case _0x59dcd1(0x143):if(!(_0x3a4d00['inProject']??isInProject()))throw CliErrors[_0x59dcd1(0x142)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x59dcd1(0x13d)]+_0x59dcd1(0x145),_0x59dcd1(0x14f)+PRODUCT_CONFIG[_0x59dcd1(0x13d)]+_0x59dcd1(0x140)+CLI_BIN_NAME+_0x59dcd1(0x13e));return _0x59dcd1(0x14d);}}export function toScopeFlags(_0x1d88f8){const _0x304039=a18_0x2e13;return{'global':_0x1d88f8===_0x304039(0x138)};}function a18_0x2e13(_0xf70870,_0x5b2a97){_0xf70870=_0xf70870-0x136;const _0x499dc0=a18_0x499d();let _0x2e13b0=_0x499dc0[_0xf70870];return _0x2e13b0;}export function formatScopeLabel(_0x415c9e){const _0xf53122=a18_0x2e13;return _0x415c9e===_0xf53122(0x138)?'\x20(global)':'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a19_0x4d63(_0x4687e6,_0xb5baa5){_0x4687e6=_0x4687e6-0xab;const _0x3f3b02=a19_0x3f3b();let _0x4d6383=_0x3f3b02[_0x4687e6];return _0x4d6383;}(function(_0x374336,_0x2c9263){const _0x401cd9=a19_0x4d63,_0x4783c6=_0x374336();while(!![]){try{const _0x3b6a2d=-parseInt(_0x401cd9(0xba))/0x1+-parseInt(_0x401cd9(0xb3))/0x2*(-parseInt(_0x401cd9(0xc6))/0x3)+parseInt(_0x401cd9(0xc3))/0x4*(parseInt(_0x401cd9(0xbd))/0x5)+parseInt(_0x401cd9(0xc1))/0x6*(-parseInt(_0x401cd9(0xbf))/0x7)+parseInt(_0x401cd9(0xb2))/0x8*(parseInt(_0x401cd9(0xbb))/0x9)+-parseInt(_0x401cd9(0xb9))/0xa*(-parseInt(_0x401cd9(0xaf))/0xb)+-parseInt(_0x401cd9(0xbe))/0xc*(parseInt(_0x401cd9(0xab))/0xd);if(_0x3b6a2d===_0x2c9263)break;else _0x4783c6['push'](_0x4783c6['shift']());}catch(_0x38b6cf){_0x4783c6['push'](_0x4783c6['shift']());}}}(a19_0x3f3b,0x506ec));import{CliErrors}from'../../errors.js';function isSet(_0x29a2c0,_0x45754){const _0x5cb5de=a19_0x4d63,_0xecd4c5=_0x29a2c0[_0x5cb5de(0xad)](_0x45754);return _0xecd4c5!==undefined&&_0xecd4c5!==''&&_0xecd4c5!==![]&&_0xecd4c5!==0x0;}function fmtNames(_0x1bda7e){const _0x5ce6ef=a19_0x4d63;return _0x1bda7e['map'](_0x51481e=>'--'+_0x51481e)[_0x5ce6ef(0xb1)](',\x20');}export function requireOneOf(_0x53fa94,_0x856e61,_0x5ca016){const _0x246485=a19_0x4d63,_0x1dbe54=_0x856e61['filter'](_0x4066b3=>isSet(_0x53fa94,_0x4066b3));if(_0x1dbe54[_0x246485(0xb8)]!==0x1)throw CliErrors[_0x246485(0xc8)](_0x1dbe54['length']===0x0?_0x246485(0xb0)+fmtNames(_0x856e61)+_0x246485(0xb4)+_0x5ca016+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x856e61)+_0x246485(0xae)+fmtNames(_0x1dbe54)+'.',_0x1dbe54[_0x246485(0xb8)]===0x0?_0x246485(0xc4)+fmtNames(_0x856e61):_0x246485(0xb7));}export function requireAnyOf(_0x5025ca,_0x101dd3,_0x4b18dc){const _0x1ff695=a19_0x4d63;if(!_0x101dd3[_0x1ff695(0xb5)](_0x458fae=>isSet(_0x5025ca,_0x458fae)))throw CliErrors['validation'](_0x1ff695(0xc0)+fmtNames(_0x101dd3)+_0x1ff695(0xb4)+_0x4b18dc+'`.',_0x1ff695(0xc4)+fmtNames(_0x101dd3));}export function mutuallyExclusive(_0x1607ea,_0x4267b0,_0x26c888){const _0x1ba52f=a19_0x4d63,_0x6a1b38=_0x4267b0[_0x1ba52f(0xc7)](_0x427584=>isSet(_0x1607ea,_0x427584));if(_0x6a1b38[_0x1ba52f(0xb8)]>0x1)throw CliErrors['validation']('Flags\x20'+fmtNames(_0x6a1b38)+_0x1ba52f(0xbc)+_0x26c888+'`.',_0x1ba52f(0xc5)+fmtNames(_0x4267b0));}export function validatePattern(_0x14f329,_0xfec9cd,_0x3a3602,_0x200ca2){const _0x5719ad=a19_0x4d63,_0x686721=_0x14f329['str'](_0xfec9cd);if(_0x686721&&!_0x3a3602[_0x5719ad(0xb6)](_0x686721))throw CliErrors[_0x5719ad(0xc8)](_0x5719ad(0xc2)+_0xfec9cd+':\x20expected\x20'+_0x200ca2+_0x5719ad(0xac)+_0x686721+'\x22.');}function a19_0x3f3b(){const _0x1946ea=['1299102FOmhLl','\x20is\x20required\x20for\x20`','some','test','Remove\x20all\x20but\x20one.','length','130mMqNMm','167980KyObYe','9ELYoXV','\x20are\x20mutually\x20exclusive\x20for\x20`','546965BFbinF','437340eyiuwK','7HWlOVx','At\x20least\x20one\x20of\x20','1609482IGJeDo','Invalid\x20--','16SQQiOj','Provide\x20one\x20of:\x20','Use\x20only\x20one\x20of:\x20','3QWgnYi','filter','validation','299JSNaKu',',\x20got\x20\x22','flag','\x20is\x20allowed,\x20found:\x20','222959JqbPOv','Exactly\x20one\x20of\x20','join','2026352tgcQys'];a19_0x3f3b=function(){return _0x1946ea;};return a19_0x3f3b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x49381f=a20_0x373c;function a20_0x6019(){const _0x298954=['Dataset\x20code\x20(32-char\x20hex\x20UUID)','verbose','boolean','Resource\x20ID','693775fXeUqa','1475978kkaVLR','810002SPUYOp','4Nyihao','sqlcode','params','10527448ckdBuL','2500182ZfIPuU','string','4308750IkXLql','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','18EEdjOL','2442792oepcfF','Return\x20full\x20raw\x20response\x20object','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','code','name'];a20_0x6019=function(){return _0x298954;};return a20_0x6019();}function a20_0x373c(_0x535f4e,_0x3dada6){_0x535f4e=_0x535f4e-0x74;const _0x601945=a20_0x6019();let _0x373c72=_0x601945[_0x535f4e];return _0x373c72;}(function(_0x6106fe,_0xb757e6){const _0x4235d2=a20_0x373c,_0x123ae9=_0x6106fe();while(!![]){try{const _0x1c4060=-parseInt(_0x4235d2(0x76))/0x1+parseInt(_0x4235d2(0x78))/0x2+-parseInt(_0x4235d2(0x82))/0x3+parseInt(_0x4235d2(0x79))/0x4*(parseInt(_0x4235d2(0x7f))/0x5)+parseInt(_0x4235d2(0x81))/0x6*(-parseInt(_0x4235d2(0x77))/0x7)+parseInt(_0x4235d2(0x7c))/0x8+parseInt(_0x4235d2(0x7d))/0x9;if(_0x1c4060===_0xb757e6)break;else _0x123ae9['push'](_0x123ae9['shift']());}catch(_0x2169c7){_0x123ae9['push'](_0x123ae9['shift']());}}}(a20_0x6019,0xafc07));export const CODE_FLAG={'name':a20_0x49381f(0x85),'type':a20_0x49381f(0x7e),'required':!![],'description':a20_0x49381f(0x87),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x49381f(0x80)}};export const SQLCODE_FLAG={'name':a20_0x49381f(0x7a),'type':a20_0x49381f(0x7e),'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':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a20_0x49381f(0x88),'type':a20_0x49381f(0x74),'description':a20_0x49381f(0x83)};export const PARAMS_FLAG={'name':a20_0x49381f(0x7b),'type':a20_0x49381f(0x7e),'description':a20_0x49381f(0x84)};export const NAME_FLAG={'name':a20_0x49381f(0x86),'type':a20_0x49381f(0x7e),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a20_0x49381f(0x75)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x12639d,_0x54043d){const _0x17b979=a21_0x5548,_0x400e8a=_0x12639d();while(!![]){try{const _0x286612=parseInt(_0x17b979(0x11d))/0x1+parseInt(_0x17b979(0x119))/0x2+-parseInt(_0x17b979(0x11c))/0x3*(parseInt(_0x17b979(0x11e))/0x4)+-parseInt(_0x17b979(0x115))/0x5+parseInt(_0x17b979(0x11a))/0x6*(parseInt(_0x17b979(0x116))/0x7)+parseInt(_0x17b979(0x111))/0x8+parseInt(_0x17b979(0x114))/0x9*(parseInt(_0x17b979(0x11f))/0xa);if(_0x286612===_0x54043d)break;else _0x400e8a['push'](_0x400e8a['shift']());}catch(_0x21f78a){_0x400e8a['push'](_0x400e8a['shift']());}}}(a21_0x2d84,0x39a0f));import{existsSync,statSync}from'node:fs';function a21_0x5548(_0x16988f,_0x2f418a){_0x16988f=_0x16988f-0x111;const _0x2d849e=a21_0x2d84();let _0x554894=_0x2d849e[_0x16988f];return _0x554894;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x54fca1){const _0x527c6c=a21_0x5548;if(_0x54fca1>=BYTES_PER_MB){const _0x5ed307=Math[_0x527c6c(0x121)](_0x54fca1/BYTES_PER_MB*0x64)/0x64;return _0x5ed307[_0x527c6c(0x118)](0x2)+_0x527c6c(0x112);}return _0x54fca1+'\x20B';}export function requireRuntimeUploadFile(_0x411d4e,_0x427edf){const _0x286ca7=a21_0x5548,_0x12530e=_0x411d4e['trim']();if(!_0x12530e)throw CliErrors[_0x286ca7(0x117)](_0x427edf+_0x286ca7(0x120));if(!existsSync(_0x12530e))throw CliErrors[_0x286ca7(0x117)](_0x286ca7(0x123)+_0x12530e);const _0x550abf=statSync(_0x12530e);if(!_0x550abf['isFile']())throw CliErrors[_0x286ca7(0x117)](_0x286ca7(0x11b)+_0x12530e);if(_0x550abf[_0x286ca7(0x113)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x286ca7(0x122)+_0x12530e+'\x20('+formatBytes(_0x550abf['size'])+')');return{'path':_0x12530e,'size':_0x550abf['size']};}function a21_0x2d84(){const _0x48f6dc=['\x20path\x20is\x20required.','ceil','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','File\x20not\x20found:\x20','1485864VFdFxS','\x20MB','size','29439qDUaHv','1112160ObUkBn','14HNswLi','validation','toFixed','824326aEhhJH','501024eeDxjd','File\x20is\x20not\x20a\x20regular\x20file:\x20','7617yYnelc','52214LxguKI','632PiXwnW','130NkbIfU'];a21_0x2d84=function(){return _0x48f6dc;};return a21_0x2d84();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x2a4ed0=a22_0x8c9d;(function(_0x145b35,_0x3a200e){const _0x3776ad=a22_0x8c9d,_0x40e4bf=_0x145b35();while(!![]){try{const _0x4d490c=parseInt(_0x3776ad(0x6b))/0x1+parseInt(_0x3776ad(0xa7))/0x2+parseInt(_0x3776ad(0x6a))/0x3+-parseInt(_0x3776ad(0x9f))/0x4*(parseInt(_0x3776ad(0x9d))/0x5)+-parseInt(_0x3776ad(0x71))/0x6*(parseInt(_0x3776ad(0x86))/0x7)+parseInt(_0x3776ad(0x98))/0x8+-parseInt(_0x3776ad(0x9c))/0x9;if(_0x4d490c===_0x3a200e)break;else _0x40e4bf['push'](_0x40e4bf['shift']());}catch(_0x237097){_0x40e4bf['push'](_0x40e4bf['shift']());}}}(a22_0x8dc0,0x48d47));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';function a22_0x8c9d(_0x35a30e,_0x1d6fd6){_0x35a30e=_0x35a30e-0x6a;const _0x8dc060=a22_0x8dc0();let _0x8c9d82=_0x8dc060[_0x35a30e];return _0x8c9d82;}const GLOBAL_FLAG={'name':a22_0x2a4ed0(0xab),'type':a22_0x2a4ed0(0xa9),'description':a22_0x2a4ed0(0x85),'default':![]};function parseAliasAppcodeSetKey(_0x1b8dc2){const _0x2a8ff3=a22_0x2a4ed0,_0x164136=_0x1b8dc2['split']('.');if(_0x164136[_0x2a8ff3(0x7e)]!==0x3||_0x164136[0x0]!==_0x2a8ff3(0x77)||_0x164136[0x2]!==_0x2a8ff3(0x7b))return undefined;const _0x24830c=_0x164136[0x1]?.[_0x2a8ff3(0x7f)]();return _0x24830c?_0x24830c:undefined;}function a22_0x8dc0(){const _0x3fc106=['7EeGzCN','format','Delete\x20a\x20config\x20value','raw','riskLevel','alias','write','\x20(global)','Set\x20`','pretty','\x22\x20is\x20not\x20settable.','includes','Deleted\x20`','key','pageSize\x20must\x20be\x20a\x20positive\x20number','set','pageSize','project-or-global-explicit','4303824fkLZCD','List\x20current\x20config','value',';\x20apps.<alias>.appcode','5940189zJwANu','67780VkVKca','Usage:\x20','24HrvmpA','(none)','read','Get\x20a\x20config\x20value','Invalid\x20value\x20for\x20\x22','Top-level\x20key\x20\x22','stringify','validation','247490pbWlOr','keys','boolean','bool','global','141447HKpnJz','526193oAZARH','Value\x20to\x20assign','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20\x20global:\x20\x20','`\x20=\x20\x22','isArray','1172382TbMEar','Set\x20a\x20config\x20value','../../context.js','object','log','Key\x20not\x20found:\x20','apps','args','list','join','appcode','\x20config\x20get\x20<key>','\x20config\x20set\x20<key>\x20<value>\x20[--global]','length','trim','config','field','\x20\x20project:\x20','\x22\x20not\x20found\x20at\x20top\x20level.','split','Write\x20to\x20global\x20config'];a22_0x8dc0=function(){return _0x3fc106;};return a22_0x8dc0();}function parseAliasDeleteKey(_0x15858d){const _0xb1daa4=a22_0x2a4ed0,_0x14b0ed=_0x15858d[_0xb1daa4(0x84)]('.');if(_0x14b0ed[_0xb1daa4(0x7e)]===0x2&&_0x14b0ed[0x0]==='apps'){const _0xb6bc46=_0x14b0ed[0x1]?.['trim']();return _0xb6bc46?{'alias':_0xb6bc46}:undefined;}if(_0x14b0ed[_0xb1daa4(0x7e)]===0x3&&_0x14b0ed[0x0]===_0xb1daa4(0x77)&&_0x14b0ed[0x2]===_0xb1daa4(0x7b)){const _0x3b8bb6=_0x14b0ed[0x1]?.[_0xb1daa4(0x7f)]();return _0x3b8bb6?{'alias':_0x3b8bb6,'field':_0xb1daa4(0x7b)}:undefined;}return undefined;}function setLocalAppAlias(_0x4f6ccb,_0x5a4b95,_0x52b8b7){const _0x2e9fba=a22_0x2a4ed0,_0x349a83=_0x4f6ccb[_0x2e9fba(0x77)]&&typeof _0x4f6ccb[_0x2e9fba(0x77)]===_0x2e9fba(0x74)&&!Array[_0x2e9fba(0x70)](_0x4f6ccb[_0x2e9fba(0x77)])?_0x4f6ccb['apps']:{},_0x557c9d=_0x349a83[_0x5a4b95]&&typeof _0x349a83[_0x5a4b95]==='object'&&!Array[_0x2e9fba(0x70)](_0x349a83[_0x5a4b95])?_0x349a83[_0x5a4b95]:{};_0x557c9d[_0x2e9fba(0x7b)]=_0x52b8b7,_0x349a83[_0x5a4b95]=_0x557c9d,_0x4f6ccb[_0x2e9fba(0x77)]=_0x349a83;}function deleteLocalAppAlias(_0x35ce16,_0x951940){const _0x40dc32=a22_0x2a4ed0;if(!_0x35ce16[_0x40dc32(0x77)]||typeof _0x35ce16['apps']!==_0x40dc32(0x74)||Array[_0x40dc32(0x70)](_0x35ce16[_0x40dc32(0x77)]))return![];const _0x43c082=_0x35ce16[_0x40dc32(0x77)],_0x42161e=_0x43c082[_0x951940[_0x40dc32(0x8b)]];if(!_0x42161e||typeof _0x42161e!=='object'||Array['isArray'](_0x42161e))return![];if(!_0x951940[_0x40dc32(0x81)])return delete _0x43c082[_0x951940[_0x40dc32(0x8b)]],!![];if(!(_0x951940[_0x40dc32(0x81)]in _0x42161e))return![];return delete _0x42161e[_0x951940[_0x40dc32(0x81)]],Object[_0x40dc32(0xa8)](_0x42161e)[_0x40dc32(0x7e)]===0x0&&delete _0x43c082[_0x951940[_0x40dc32(0x8b)]],!![];}const listDef={'service':a22_0x2a4ed0(0x80),'command':a22_0x2a4ed0(0x79),'description':a22_0x2a4ed0(0x99),'risk':a22_0x2a4ed0(0xa1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2cc868){const _0x3ef61a=a22_0x2a4ed0,{buildConfigFromFlags:_0x12ecb9}=await import(_0x3ef61a(0x73)),_0x549a9a=_0x12ecb9({}),_0x4a9b5e=getProjectConfigPath(),_0x288a68=resolveWriteConfigPath(_0x3ef61a(0xab));if(_0x2cc868[_0x3ef61a(0x87)]===_0x3ef61a(0x8f))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x549a9a[_0x3ef61a(0x89)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x3ef61a(0x82)+(_0x4a9b5e??_0x3ef61a(0xa0))+'\x0a')+(_0x3ef61a(0x6e)+_0x288a68)};return{'ok':!![],'data':{'effective':_0x549a9a['raw'],'configFiles':{'project':_0x4a9b5e??null,'global':_0x288a68}}};}},getDef={'service':a22_0x2a4ed0(0x80),'command':'get','description':a22_0x2a4ed0(0xa2),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2a4ed0(0x93),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x5c808f){const _0x3df1aa=a22_0x2a4ed0,_0x597f2d=_0x5c808f[_0x3df1aa(0x78)][0x0];if(!_0x597f2d)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x3df1aa(0x9e)+CLI_BIN_NAME+_0x3df1aa(0x7c));const {buildConfigFromFlags:_0x34c28c}=await import(_0x3df1aa(0x73)),{raw:_0x290970}=_0x34c28c({});if(_0x597f2d[_0x3df1aa(0x91)]('.')){const _0x334d5c=_0x597f2d[_0x3df1aa(0x84)]('.');let _0x285ba7=_0x290970;for(const _0x1263b2 of _0x334d5c){if(_0x285ba7==null||typeof _0x285ba7!==_0x3df1aa(0x74))throw CliErrors[_0x3df1aa(0xa6)](_0x3df1aa(0x76)+_0x597f2d);_0x285ba7=_0x285ba7[_0x1263b2];}if(_0x285ba7===undefined)throw CliErrors[_0x3df1aa(0xa6)](_0x3df1aa(0x76)+_0x597f2d);return console['log'](typeof _0x285ba7===_0x3df1aa(0x74)?JSON[_0x3df1aa(0xa5)](_0x285ba7,null,0x2):String(_0x285ba7)),{'ok':!![]};}const _0x50774a=_0x290970[_0x597f2d];if(_0x50774a===undefined)throw CliErrors[_0x3df1aa(0xa6)](_0x3df1aa(0x76)+_0x597f2d);return console[_0x3df1aa(0x75)](typeof _0x50774a===_0x3df1aa(0x74)?JSON[_0x3df1aa(0xa5)](_0x50774a,null,0x2):String(_0x50774a)),{'ok':!![]};}},setDef={'service':a22_0x2a4ed0(0x80),'command':a22_0x2a4ed0(0x95),'description':a22_0x2a4ed0(0x72),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2a4ed0(0x93),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x2a4ed0(0x9a),'description':a22_0x2a4ed0(0x6c),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x292caa){const _0x2b2d15=a22_0x2a4ed0,_0x1584d9=_0x292caa[_0x2b2d15(0x78)][0x0],_0x44b643=_0x292caa[_0x2b2d15(0x78)][0x1];if(!_0x1584d9||_0x44b643===undefined)throw CliErrors[_0x2b2d15(0xa6)]('Missing\x20key\x20or\x20value.',_0x2b2d15(0x9e)+CLI_BIN_NAME+_0x2b2d15(0x7d));if(ENUM_KEYS[_0x1584d9]&&!ENUM_KEYS[_0x1584d9][_0x2b2d15(0x91)](_0x44b643))throw CliErrors['validation'](_0x2b2d15(0xa3)+_0x1584d9+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x1584d9][_0x2b2d15(0x7a)](',\x20'));if(_0x1584d9===_0x2b2d15(0x8a))throw CliErrors['validation'](_0x2b2d15(0x6d));if(_0x1584d9===_0x2b2d15(0x96)){const _0x3b6ccd=Number(_0x44b643);if(isNaN(_0x3b6ccd)||_0x3b6ccd<=0x0)throw CliErrors['validation'](_0x2b2d15(0x94));}const _0x525e54=resolveWriteScope({'explicitGlobal':_0x292caa[_0x2b2d15(0xaa)]('global'),'policy':_0x2b2d15(0x97)}),_0x40ca89=toScopeFlags(_0x525e54),_0x2019ec=readScopedConfig(_0x40ca89),_0x272c34=parseAliasAppcodeSetKey(_0x1584d9);if(!_0x272c34&&!isTopLevelConfigKey(_0x1584d9))throw CliErrors[_0x2b2d15(0xa6)](_0x2b2d15(0xa4)+_0x1584d9+_0x2b2d15(0x90),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x2b2d15(0x9b));return _0x272c34?setLocalAppAlias(_0x2019ec,_0x272c34,_0x44b643):_0x2019ec[_0x1584d9]=_0x1584d9===_0x2b2d15(0x96)?Number(_0x44b643):_0x44b643,console[_0x2b2d15(0x75)](_0x2b2d15(0x8e)+_0x1584d9+_0x2b2d15(0x6f)+_0x44b643+'\x22'+(_0x525e54===_0x2b2d15(0xab)?_0x2b2d15(0x8d):'')),writeScopedConfig(_0x2019ec,_0x40ca89),{'ok':!![]};}},deleteDef={'service':a22_0x2a4ed0(0x80),'command':'delete','description':a22_0x2a4ed0(0x88),'risk':a22_0x2a4ed0(0x8c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2a4ed0(0x93),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x1478cd){const _0x574a39=a22_0x2a4ed0,_0x1f111c=_0x1478cd[_0x574a39(0x78)][0x0];if(!_0x1f111c)throw CliErrors[_0x574a39(0xa6)]('Missing\x20key\x20argument.',_0x574a39(0x9e)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x2bc504=resolveWriteScope({'explicitGlobal':_0x1478cd[_0x574a39(0xaa)](_0x574a39(0xab)),'policy':_0x574a39(0x97)}),_0x3b6db9=toScopeFlags(_0x2bc504),_0x5c488e=readScopedConfig(_0x3b6db9),_0x4770f1=parseAliasDeleteKey(_0x1f111c);if(_0x4770f1){if(!deleteLocalAppAlias(_0x5c488e,_0x4770f1))throw CliErrors[_0x574a39(0xa6)](_0x574a39(0x76)+_0x1f111c);return console['log'](_0x574a39(0x92)+_0x1f111c+'`'+(_0x2bc504===_0x574a39(0xab)?_0x574a39(0x8d):'')),writeScopedConfig(_0x5c488e,_0x3b6db9),{'ok':!![]};}if(_0x5c488e[_0x1f111c]===undefined)throw CliErrors[_0x574a39(0xa6)]('Key\x20\x22'+_0x1f111c+_0x574a39(0x83));return delete _0x5c488e[_0x1f111c],console[_0x574a39(0x75)]('Deleted\x20`'+_0x1f111c+'`'+(_0x2bc504===_0x574a39(0xab)?_0x574a39(0x8d):'')),writeScopedConfig(_0x5c488e,_0x3b6db9),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x2d9ca7=a22_0x1574;(function(_0x17c56f,_0x568f7c){const _0x19df47=a22_0x1574,_0x1ea6bc=_0x17c56f();while(!![]){try{const _0x31e34a=parseInt(_0x19df47(0x181))/0x1+-parseInt(_0x19df47(0x1a9))/0x2+parseInt(_0x19df47(0x18c))/0x3*(-parseInt(_0x19df47(0x186))/0x4)+-parseInt(_0x19df47(0x192))/0x5+parseInt(_0x19df47(0x1a3))/0x6*(parseInt(_0x19df47(0x1b4))/0x7)+parseInt(_0x19df47(0x1bc))/0x8+parseInt(_0x19df47(0x17d))/0x9*(-parseInt(_0x19df47(0x1b2))/0xa);if(_0x31e34a===_0x568f7c)break;else _0x1ea6bc['push'](_0x1ea6bc['shift']());}catch(_0x1669a5){_0x1ea6bc['push'](_0x1ea6bc['shift']());}}}(a22_0x2a68,0x80131));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';function a22_0x1574(_0x192d3c,_0x11bf28){_0x192d3c=_0x192d3c-0x179;const _0x2a68d6=a22_0x2a68();let _0x157475=_0x2a68d6[_0x192d3c];return _0x157475;}const GLOBAL_FLAG={'name':'global','type':a22_0x2d9ca7(0x1b0),'description':a22_0x2d9ca7(0x1a5),'default':![]};function parseAliasAppcodeSetKey(_0x5e9c0e){const _0x59edbe=a22_0x2d9ca7,_0x3f211c=_0x5e9c0e[_0x59edbe(0x1ba)]('.');if(_0x3f211c[_0x59edbe(0x18d)]!==0x3||_0x3f211c[0x0]!=='apps'||_0x3f211c[0x2]!==_0x59edbe(0x1ae))return undefined;const _0xfe746d=_0x3f211c[0x1]?.[_0x59edbe(0x1b7)]();return _0xfe746d?_0xfe746d:undefined;}function parseAliasDeleteKey(_0x27e68c){const _0x105fc4=a22_0x2d9ca7,_0xc2aad3=_0x27e68c['split']('.');if(_0xc2aad3[_0x105fc4(0x18d)]===0x2&&_0xc2aad3[0x0]==='apps'){const _0x582d82=_0xc2aad3[0x1]?.[_0x105fc4(0x1b7)]();return _0x582d82?{'alias':_0x582d82}:undefined;}if(_0xc2aad3[_0x105fc4(0x18d)]===0x3&&_0xc2aad3[0x0]===_0x105fc4(0x179)&&_0xc2aad3[0x2]===_0x105fc4(0x1ae)){const _0x129039=_0xc2aad3[0x1]?.[_0x105fc4(0x1b7)]();return _0x129039?{'alias':_0x129039,'field':_0x105fc4(0x1ae)}:undefined;}return undefined;}function setLocalAppAlias(_0x1430c3,_0x1d667e,_0x19bb83){const _0x47174d=a22_0x2d9ca7,_0x4f909c=_0x1430c3[_0x47174d(0x179)]&&typeof _0x1430c3['apps']==='object'&&!Array[_0x47174d(0x17e)](_0x1430c3[_0x47174d(0x179)])?_0x1430c3[_0x47174d(0x179)]:{},_0x4795dd=_0x4f909c[_0x1d667e]&&typeof _0x4f909c[_0x1d667e]==='object'&&!Array['isArray'](_0x4f909c[_0x1d667e])?_0x4f909c[_0x1d667e]:{};_0x4795dd[_0x47174d(0x1ae)]=_0x19bb83,_0x4f909c[_0x1d667e]=_0x4795dd,_0x1430c3['apps']=_0x4f909c;}function a22_0x2a68(){const _0x206465=['\x20config\x20set\x20<key>\x20<value>\x20[--global]','project-or-global-explicit','args','stringify','keys','list','Usage:\x20','Set\x20`','field','5983566ciLCET','pageSize','Write\x20to\x20global\x20config','Get\x20a\x20config\x20value','read','\x20config\x20get\x20<key>','660238AEdAjq','\x20(global)',';\x20apps.<alias>.appcode','pretty','includes','appcode','format','boolean','\x20config\x20delete\x20<key>\x20[--global]','250rYgQrB','Missing\x20key\x20or\x20value.','7Rqnkga','Delete\x20a\x20config\x20value','bool','trim','pageSize\x20must\x20be\x20a\x20positive\x20number','global','split','Missing\x20key\x20argument.','5206256mSDpvs','apps','Settable\x20keys:\x20','\x22\x20not\x20found\x20at\x20top\x20level.','\x22.\x20Allowed:\x20','205020rqucZv','isArray','delete','(none)','701875gAOSVs','\x20\x20global:\x20\x20','validation','\x20\x20project:\x20','Key\x20not\x20found:\x20','16596FJPzHl','object','\x22\x20is\x20not\x20settable.','alias','config','log','207QABqux','length','Deleted\x20`','raw','set','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','3197125AYcjog','key','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','write','riskLevel','value','get','Top-level\x20key\x20\x22'];a22_0x2a68=function(){return _0x206465;};return a22_0x2a68();}function deleteLocalAppAlias(_0x1c1127,_0x1564c2){const _0x29cfdf=a22_0x2d9ca7;if(!_0x1c1127[_0x29cfdf(0x179)]||typeof _0x1c1127['apps']!=='object'||Array[_0x29cfdf(0x17e)](_0x1c1127[_0x29cfdf(0x179)]))return![];const _0x44ccc7=_0x1c1127[_0x29cfdf(0x179)],_0xa73b10=_0x44ccc7[_0x1564c2[_0x29cfdf(0x189)]];if(!_0xa73b10||typeof _0xa73b10!==_0x29cfdf(0x187)||Array[_0x29cfdf(0x17e)](_0xa73b10))return![];if(!_0x1564c2[_0x29cfdf(0x1a2)])return delete _0x44ccc7[_0x1564c2[_0x29cfdf(0x189)]],!![];if(!(_0x1564c2[_0x29cfdf(0x1a2)]in _0xa73b10))return![];return delete _0xa73b10[_0x1564c2[_0x29cfdf(0x1a2)]],Object[_0x29cfdf(0x19e)](_0xa73b10)[_0x29cfdf(0x18d)]===0x0&&delete _0x44ccc7[_0x1564c2[_0x29cfdf(0x189)]],!![];}const listDef={'service':a22_0x2d9ca7(0x18a),'command':a22_0x2d9ca7(0x19f),'description':'List\x20current\x20config','risk':a22_0x2d9ca7(0x1a7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x37dcff){const _0x3592ca=a22_0x2d9ca7,{buildConfigFromFlags:_0x2583d8}=await import('../../context.js'),_0x30262c=_0x2583d8({}),_0x3cd43d=getProjectConfigPath(),_0x13dadd=resolveWriteConfigPath(_0x3592ca(0x1b9));if(_0x37dcff[_0x3592ca(0x1af)]===_0x3592ca(0x1ac))return{'ok':!![],'message':_0x3592ca(0x191)+(JSON[_0x3592ca(0x19d)](_0x30262c[_0x3592ca(0x18f)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x3592ca(0x184)+(_0x3cd43d??_0x3592ca(0x180))+'\x0a')+(_0x3592ca(0x182)+_0x13dadd)};return{'ok':!![],'data':{'effective':_0x30262c['raw'],'configFiles':{'project':_0x3cd43d??null,'global':_0x13dadd}}};}},getDef={'service':a22_0x2d9ca7(0x18a),'command':a22_0x2d9ca7(0x198),'description':a22_0x2d9ca7(0x1a6),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2d9ca7(0x193),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x358625){const _0x4df4a=a22_0x2d9ca7,_0x585d29=_0x358625[_0x4df4a(0x19c)][0x0];if(!_0x585d29)throw CliErrors[_0x4df4a(0x183)](_0x4df4a(0x1bb),_0x4df4a(0x1a0)+CLI_BIN_NAME+_0x4df4a(0x1a8));const {buildConfigFromFlags:_0x3f60ea}=await import('../../context.js'),{raw:_0x1653a4}=_0x3f60ea({});if(_0x585d29[_0x4df4a(0x1ad)]('.')){const _0x353ed8=_0x585d29[_0x4df4a(0x1ba)]('.');let _0x17e82d=_0x1653a4;for(const _0x3543f3 of _0x353ed8){if(_0x17e82d==null||typeof _0x17e82d!=='object')throw CliErrors['validation'](_0x4df4a(0x185)+_0x585d29);_0x17e82d=_0x17e82d[_0x3543f3];}if(_0x17e82d===undefined)throw CliErrors[_0x4df4a(0x183)](_0x4df4a(0x185)+_0x585d29);return console[_0x4df4a(0x18b)](typeof _0x17e82d==='object'?JSON['stringify'](_0x17e82d,null,0x2):String(_0x17e82d)),{'ok':!![]};}const _0x14314f=_0x1653a4[_0x585d29];if(_0x14314f===undefined)throw CliErrors[_0x4df4a(0x183)](_0x4df4a(0x185)+_0x585d29);return console['log'](typeof _0x14314f==='object'?JSON[_0x4df4a(0x19d)](_0x14314f,null,0x2):String(_0x14314f)),{'ok':!![]};}},setDef={'service':'config','command':a22_0x2d9ca7(0x190),'description':'Set\x20a\x20config\x20value','risk':a22_0x2d9ca7(0x195),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2d9ca7(0x193),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x2d9ca7(0x197),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x40bcc9){const _0x3d83f8=a22_0x2d9ca7,_0x18b60a=_0x40bcc9[_0x3d83f8(0x19c)][0x0],_0x1f7a14=_0x40bcc9['args'][0x1];if(!_0x18b60a||_0x1f7a14===undefined)throw CliErrors['validation'](_0x3d83f8(0x1b3),_0x3d83f8(0x1a0)+CLI_BIN_NAME+_0x3d83f8(0x19a));if(ENUM_KEYS[_0x18b60a]&&!ENUM_KEYS[_0x18b60a][_0x3d83f8(0x1ad)](_0x1f7a14))throw CliErrors[_0x3d83f8(0x183)]('Invalid\x20value\x20for\x20\x22'+_0x18b60a+_0x3d83f8(0x17c)+ENUM_KEYS[_0x18b60a]['join'](',\x20'));if(_0x18b60a===_0x3d83f8(0x196))throw CliErrors[_0x3d83f8(0x183)](_0x3d83f8(0x194));if(_0x18b60a===_0x3d83f8(0x1a4)){const _0x4d6dbc=Number(_0x1f7a14);if(isNaN(_0x4d6dbc)||_0x4d6dbc<=0x0)throw CliErrors[_0x3d83f8(0x183)](_0x3d83f8(0x1b8));}const _0x18bca7=resolveWriteScope({'explicitGlobal':_0x40bcc9[_0x3d83f8(0x1b6)](_0x3d83f8(0x1b9)),'policy':_0x3d83f8(0x19b)}),_0x38b9fe=toScopeFlags(_0x18bca7),_0x2688a2=readScopedConfig(_0x38b9fe),_0x5be36a=parseAliasAppcodeSetKey(_0x18b60a);if(!_0x5be36a&&!isTopLevelConfigKey(_0x18b60a))throw CliErrors['validation'](_0x3d83f8(0x199)+_0x18b60a+_0x3d83f8(0x188),_0x3d83f8(0x17a)+getTopLevelConfigKeySummary()+_0x3d83f8(0x1ab));return _0x5be36a?setLocalAppAlias(_0x2688a2,_0x5be36a,_0x1f7a14):_0x2688a2[_0x18b60a]=_0x18b60a===_0x3d83f8(0x1a4)?Number(_0x1f7a14):_0x1f7a14,console[_0x3d83f8(0x18b)](_0x3d83f8(0x1a1)+_0x18b60a+'`\x20=\x20\x22'+_0x1f7a14+'\x22'+(_0x18bca7==='global'?'\x20(global)':'')),writeScopedConfig(_0x2688a2,_0x38b9fe),{'ok':!![]};}},deleteDef={'service':a22_0x2d9ca7(0x18a),'command':a22_0x2d9ca7(0x17f),'description':a22_0x2d9ca7(0x1b5),'risk':a22_0x2d9ca7(0x195),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2d9ca7(0x193),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3ffa88){const _0x4f227=a22_0x2d9ca7,_0xffc5a0=_0x3ffa88[_0x4f227(0x19c)][0x0];if(!_0xffc5a0)throw CliErrors[_0x4f227(0x183)](_0x4f227(0x1bb),_0x4f227(0x1a0)+CLI_BIN_NAME+_0x4f227(0x1b1));const _0x36be59=resolveWriteScope({'explicitGlobal':_0x3ffa88['bool'](_0x4f227(0x1b9)),'policy':'project-or-global-explicit'}),_0x271de3=toScopeFlags(_0x36be59),_0x3dfbb0=readScopedConfig(_0x271de3),_0x24027b=parseAliasDeleteKey(_0xffc5a0);if(_0x24027b){if(!deleteLocalAppAlias(_0x3dfbb0,_0x24027b))throw CliErrors[_0x4f227(0x183)](_0x4f227(0x185)+_0xffc5a0);return console[_0x4f227(0x18b)](_0x4f227(0x18e)+_0xffc5a0+'`'+(_0x36be59===_0x4f227(0x1b9)?_0x4f227(0x1aa):'')),writeScopedConfig(_0x3dfbb0,_0x271de3),{'ok':!![]};}if(_0x3dfbb0[_0xffc5a0]===undefined)throw CliErrors[_0x4f227(0x183)]('Key\x20\x22'+_0xffc5a0+_0x4f227(0x17b));return delete _0x3dfbb0[_0xffc5a0],console[_0x4f227(0x18b)](_0x4f227(0x18e)+_0xffc5a0+'`'+(_0x36be59===_0x4f227(0x1b9)?_0x4f227(0x1aa):'')),writeScopedConfig(_0x3dfbb0,_0x271de3),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf13b5,_0x26aac7){var _0x2ed489=a23_0x3a1d,_0x42043c=_0xf13b5();while(!![]){try{var _0x6b7835=-parseInt(_0x2ed489(0x126))/0x1+-parseInt(_0x2ed489(0x12a))/0x2*(parseInt(_0x2ed489(0x12c))/0x3)+-parseInt(_0x2ed489(0x12d))/0x4*(parseInt(_0x2ed489(0x128))/0x5)+parseInt(_0x2ed489(0x127))/0x6*(parseInt(_0x2ed489(0x124))/0x7)+-parseInt(_0x2ed489(0x12b))/0x8+parseInt(_0x2ed489(0x129))/0x9+parseInt(_0x2ed489(0x123))/0xa*(parseInt(_0x2ed489(0x125))/0xb);if(_0x6b7835===_0x26aac7)break;else _0x42043c['push'](_0x42043c['shift']());}catch(_0x828cb1){_0x42043c['push'](_0x42043c['shift']());}}}(a23_0x29c9,0xed6b7));function a23_0x29c9(){var _0x2bc4dd=['40182sWesGc','170oFfjmf','16937415MEEmSS','116VwLUvZ','2993896uZPSvj','79752AceOOc','24876cqvtjw','5083170CYWnpb','1631HqutJb','33KrtkcU','1867261NUNNyV'];a23_0x29c9=function(){return _0x2bc4dd;};return a23_0x29c9();}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0x3a1d(_0x595a34,_0xa600f4){_0x595a34=_0x595a34-0x123;var _0x29c902=a23_0x29c9();var _0x3a1d2e=_0x29c902[_0x595a34];return _0x3a1d2e;}export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a24_0x483a(){const _0x5a8a29=['\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\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20LOGICAL\x20COMBINATORS','2358yYUcuG','str','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\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]','\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$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}}','create','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','map','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','1260hAZsMj','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20WHERE\x20OPERATORS','1185qFuoKf','\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}}','delete','POST','10087wurhYB','80pskYGx','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20on\x20dataset\x20','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\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\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}}','now','\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}}','join','command','134374TpKmPo','1878nDgiXp','/api/{appCode}/','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Preview:\x20data\x20','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','filter','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\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{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20EXAMPLES','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\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{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\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]','1245909wgcdGm','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','data\x20','2492556HbIvLW','476739jDwmiP','Update\x20an\x20existing\x20record','\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\x20PARAMS\x20STRUCTURE','update','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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}}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','data','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','batchCreate','code','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Get\x20a\x20single\x20record\x20by\x20ID','paramsHint','\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]}}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','dryRun','aggregate','\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}}','write','\x20completed\x20in\x20','description','helpExtra','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','getOne','length','params','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','read','6905xbZhdT','\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{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20AGGREGATE\x20TYPES','risk','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','body','operation'];a24_0x483a=function(){return _0x5a8a29;};return a24_0x483a();}function a24_0x5bd6(_0x473f0d,_0x2e9b7a){_0x473f0d=_0x473f0d-0x191;const _0x483a2e=a24_0x483a();let _0x5bd673=_0x483a2e[_0x473f0d];return _0x5bd673;}const a24_0x2d4bb7=a24_0x5bd6;(function(_0x2b4ea1,_0x4dba3e){const _0x4fcb80=a24_0x5bd6,_0x3f483f=_0x2b4ea1();while(!![]){try{const _0x1ec1d3=parseInt(_0x4fcb80(0x1e0))/0x1+parseInt(_0x4fcb80(0x1c0))/0x2*(-parseInt(_0x4fcb80(0x1ce))/0x3)+parseInt(_0x4fcb80(0x194))/0x4+-parseInt(_0x4fcb80(0x1b4))/0x5*(parseInt(_0x4fcb80(0x1e1))/0x6)+-parseInt(_0x4fcb80(0x191))/0x7+-parseInt(_0x4fcb80(0x1d3))/0x8*(-parseInt(_0x4fcb80(0x195))/0x9)+-parseInt(_0x4fcb80(0x1cb))/0xa*(-parseInt(_0x4fcb80(0x1d2))/0xb);if(_0x1ec1d3===_0x4dba3e)break;else _0x3f483f['push'](_0x3f483f['shift']());}catch(_0x385dbe){_0x3f483f['push'](_0x3f483f['shift']());}}}(a24_0x483a,0x4fca4));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x2d4bb7(0x1e6),'operation':a24_0x2d4bb7(0x1e6),'risk':a24_0x2d4bb7(0x1b3),'paramsRequired':![],'description':a24_0x2d4bb7(0x1cc),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x2d4bb7(0x1b9),'helpExtra':[a24_0x2d4bb7(0x1cd),a24_0x2d4bb7(0x197),a24_0x2d4bb7(0x1db),a24_0x2d4bb7(0x1cf),a24_0x2d4bb7(0x19b),a24_0x2d4bb7(0x1c6),a24_0x2d4bb7(0x1c5),a24_0x2d4bb7(0x1a4),'\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}}',a24_0x2d4bb7(0x1a8),a24_0x2d4bb7(0x1dd),'',a24_0x2d4bb7(0x1bf),'\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}}]}',a24_0x2d4bb7(0x1d9),'',a24_0x2d4bb7(0x1e5),a24_0x2d4bb7(0x19e),a24_0x2d4bb7(0x1c4),a24_0x2d4bb7(0x1bc),a24_0x2d4bb7(0x1a1),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x2d4bb7(0x1ad),a24_0x2d4bb7(0x1c8)][a24_0x2d4bb7(0x1de)]('\x0a')},{'command':a24_0x2d4bb7(0x1af),'operation':a24_0x2d4bb7(0x1af),'risk':a24_0x2d4bb7(0x1b3),'paramsRequired':!![],'description':a24_0x2d4bb7(0x1a2),'paramsHint':a24_0x2d4bb7(0x1d8)},{'command':a24_0x2d4bb7(0x1c7),'operation':a24_0x2d4bb7(0x1c7),'risk':'write','paramsRequired':!![],'description':a24_0x2d4bb7(0x1d7),'paramsHint':a24_0x2d4bb7(0x1a5)},{'command':'batchCreate','operation':'batchCreate','risk':a24_0x2d4bb7(0x1a9),'paramsRequired':!![],'description':a24_0x2d4bb7(0x1c2),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':a24_0x2d4bb7(0x199),'risk':a24_0x2d4bb7(0x1a9),'paramsRequired':!![],'description':a24_0x2d4bb7(0x196),'paramsHint':a24_0x2d4bb7(0x1d4)+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x2d4bb7(0x1d0),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':a24_0x2d4bb7(0x1c3),'paramsHint':a24_0x2d4bb7(0x1d8)},{'command':'aggregate','operation':a24_0x2d4bb7(0x1a7),'risk':'read','paramsRequired':![],'description':a24_0x2d4bb7(0x1b8),'paramsHint':a24_0x2d4bb7(0x1e7)+a24_0x2d4bb7(0x1e3),'helpExtra':[a24_0x2d4bb7(0x1b6),a24_0x2d4bb7(0x192),a24_0x2d4bb7(0x1be),a24_0x2d4bb7(0x1ae),a24_0x2d4bb7(0x1b5),a24_0x2d4bb7(0x1e8),'\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{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}',a24_0x2d4bb7(0x1ec),'',a24_0x2d4bb7(0x198),a24_0x2d4bb7(0x1ed),a24_0x2d4bb7(0x19a),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a24_0x2d4bb7(0x1bd),a24_0x2d4bb7(0x1b2),a24_0x2d4bb7(0x1d5),'',a24_0x2d4bb7(0x1ea),a24_0x2d4bb7(0x1e9),a24_0x2d4bb7(0x19c),'',a24_0x2d4bb7(0x1ca),a24_0x2d4bb7(0x1da),'',a24_0x2d4bb7(0x1eb)][a24_0x2d4bb7(0x1de)]('\x0a')}];function makeDataCommand(_0x2bf382){const _0x8f1717=a24_0x2d4bb7,_0x137646=_0x8f1717(0x193)+_0x2bf382[_0x8f1717(0x1df)],_0x26f797={'service':_0x8f1717(0x19d),'command':_0x2bf382[_0x8f1717(0x1df)],'description':_0x2bf382['description'],'risk':_0x2bf382[_0x8f1717(0x1b7)],'helpExtra':_0x2bf382[_0x8f1717(0x1ac)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x2bf382[_0x8f1717(0x1a3)]}],'validate':async _0x21d565=>{const _0x2935b3=_0x8f1717;_0x2bf382['paramsRequired']&&requireAnyOf(_0x21d565,[_0x2935b3(0x1b1)],_0x137646),_0x2bf382[_0x2935b3(0x1bb)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x21d565['str'](_0x2935b3(0x1b1)))),_0x2bf382[_0x2935b3(0x1bb)]===_0x2935b3(0x199)&&parseUpdateIdsFromParams(parseJsonParams(_0x21d565['str']('params'))??{});},async 'execute'(_0x2abedc){const _0x4a0cc3=_0x8f1717,_0x26dbf8=_0x2abedc[_0x4a0cc3(0x1c1)](_0x4a0cc3(0x1a0)),_0x13c585=_0x2bf382[_0x4a0cc3(0x1bb)]===_0x4a0cc3(0x19f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2abedc[_0x4a0cc3(0x1c1)](_0x4a0cc3(0x1b1)))):parseJsonParams(_0x2abedc['str'](_0x4a0cc3(0x1b1)))??{},_0x1158e1=_0x2bf382['operation']===_0x4a0cc3(0x199)?parseUpdateIdsFromParams(_0x13c585):undefined,_0x1720a5=_0x1158e1?normalizeUpdateParamsForRuntime(_0x13c585,_0x1158e1):_0x13c585,_0x25b721=Date[_0x4a0cc3(0x1dc)](),_0x12027e=await executeData(_0x26dbf8,_0x2bf382[_0x4a0cc3(0x1bb)],_0x1720a5),_0x5c6a06=Date['now']()-_0x25b721,_0x568566=_0x1158e1&&_0x1158e1[_0x4a0cc3(0x1b0)]>0x1?buildBatchUpdateResult(_0x1158e1,_0x12027e):_0x12027e;return{'ok':!![],'data':{'result':_0x568566,'elapsed':_0x5c6a06},'message':'data\x20'+_0x2bf382[_0x4a0cc3(0x1df)]+_0x4a0cc3(0x1aa)+_0x5c6a06+'ms'};}};return _0x2bf382[_0x8f1717(0x1b7)]!==_0x8f1717(0x1b3)&&(_0x26f797[_0x8f1717(0x1a6)]=async _0x23a108=>{const _0xadf25b=_0x8f1717,_0x5cf55a=_0x23a108[_0xadf25b(0x1c1)](_0xadf25b(0x1a0)),_0x4a6494=_0x2bf382['operation']===_0xadf25b(0x19f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x23a108[_0xadf25b(0x1c1)](_0xadf25b(0x1b1)))):parseJsonParams(_0x23a108[_0xadf25b(0x1c1)](_0xadf25b(0x1b1)))??{};let _0xe77c86=_0x4a6494;if(_0x2bf382['operation']===_0xadf25b(0x199)){const _0x1d40d5=parseUpdateIdsFromParams(_0x4a6494);_0xe77c86=normalizeUpdateParamsForRuntime(_0x4a6494,_0x1d40d5);}return dryRun(_0xadf25b(0x1d1),_0xadf25b(0x1e2)+_0x5cf55a+'/'+_0x2bf382[_0xadf25b(0x1bb)])[_0xadf25b(0x1ba)](_0xe77c86)[_0xadf25b(0x1ab)](_0xadf25b(0x1e4)+_0x2bf382[_0xadf25b(0x1df)]+_0xadf25b(0x1d6)+_0x5cf55a)['build']();}),_0x26f797;}export const dataDefinitions=specs[a24_0x2d4bb7(0x1c9)](makeDataCommand);function buildBatchUpdateResult(_0x22f0d7,_0x52b1dc){const _0x32707e=a24_0x2d4bb7;return{'operation':'update','mode':'batch','ids':_0x22f0d7,'total':_0x22f0d7[_0x32707e(0x1b0)],'result':_0x52b1dc};}
|
|
1
|
+
function a24_0x2d40(){const _0x479558=['filter','7wYQbWc','description','/api/{appCode}/','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','write','helpExtra','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','join','\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{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\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{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\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}}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','body','POST','data','\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}}','1023950qPlhjP','batchCreate','command','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\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}}','aggregate','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20on\x20dataset\x20','high-risk-write','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','438QgArWF','now','\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]','696029cSdoLF','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','read','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','2516978SioFgU','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','length','\x20\x20PAGINATION','risk','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','890GSECTS','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','operation','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','data\x20','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\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\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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\x20WHERE\x20OPERATORS','\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}}]}','\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}}','1885848zDZCjc','4329128rpgUub','\x20\x20PARAMS\x20STRUCTURE','Preview:\x20data\x20','build','\x20\x20AGGREGATE\x20TYPES','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','166284SaKtTj','Update\x20an\x20existing\x20record','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\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','params','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','map','\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{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','batch','dryRun','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','code','getOne','\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}}]}','update','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\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\x20LOGICAL\x20COMBINATORS','paramsHint','\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{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\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}}','25960QnyYFZ','\x20\x20EXAMPLES','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','str'];a24_0x2d40=function(){return _0x479558;};return a24_0x2d40();}const a24_0x28458e=a24_0x41c9;(function(_0xb12b5,_0x250316){const _0x46fb62=a24_0x41c9,_0x192ad7=_0xb12b5();while(!![]){try{const _0xb2313=-parseInt(_0x46fb62(0x1c9))/0x1+parseInt(_0x46fb62(0x1ce))/0x2+parseInt(_0x46fb62(0x1c6))/0x3*(-parseInt(_0x46fb62(0x1ff))/0x4)+-parseInt(_0x46fb62(0x215))/0x5+parseInt(_0x46fb62(0x1e2))/0x6+parseInt(_0x46fb62(0x205))/0x7*(-parseInt(_0x46fb62(0x1e3))/0x8)+-parseInt(_0x46fb62(0x1e9))/0x9*(-parseInt(_0x46fb62(0x1d4))/0xa);if(_0xb2313===_0x250316)break;else _0x192ad7['push'](_0x192ad7['shift']());}catch(_0x20ebb6){_0x192ad7['push'](_0x192ad7['shift']());}}}(a24_0x2d40,0xca10d));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a24_0x41c9(_0x259e9a,_0x54c89c){_0x259e9a=_0x259e9a-0x1c2;const _0x2d4044=a24_0x2d40();let _0x41c9a7=_0x2d4044[_0x259e9a];return _0x41c9a7;}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x28458e(0x204),'operation':a24_0x28458e(0x204),'risk':a24_0x28458e(0x1cb),'paramsRequired':![],'description':a24_0x28458e(0x202),'paramsHint':a24_0x28458e(0x1d3)+a24_0x28458e(0x1da),'helpExtra':[a24_0x28458e(0x1df),a24_0x28458e(0x21b),a24_0x28458e(0x20f),'\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}}',a24_0x28458e(0x1e1),a24_0x28458e(0x219),a24_0x28458e(0x1fe),'\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]}}',a24_0x28458e(0x1fa),a24_0x28458e(0x214),'\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}}','',a24_0x28458e(0x1fb),a24_0x28458e(0x1e0),a24_0x28458e(0x1f7),'',a24_0x28458e(0x1e8),a24_0x28458e(0x1c5),a24_0x28458e(0x21a),a24_0x28458e(0x1de),a24_0x28458e(0x21d),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x28458e(0x1d1),a24_0x28458e(0x1ca),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a24_0x28458e(0x208)][a24_0x28458e(0x20c)]('\x0a')},{'command':a24_0x28458e(0x1f6),'operation':a24_0x28458e(0x1f6),'risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x28458e(0x1dd)},{'command':'create','operation':'create','risk':a24_0x28458e(0x209),'paramsRequired':!![],'description':a24_0x28458e(0x1f4),'paramsHint':a24_0x28458e(0x1d7)},{'command':a24_0x28458e(0x216),'operation':a24_0x28458e(0x216),'risk':a24_0x28458e(0x209),'paramsRequired':!![],'description':a24_0x28458e(0x1cf),'paramsHint':a24_0x28458e(0x1cd)},{'command':a24_0x28458e(0x1f8),'operation':'update','risk':a24_0x28458e(0x209),'paramsRequired':!![],'description':a24_0x28458e(0x1ea),'paramsHint':a24_0x28458e(0x1d5)+a24_0x28458e(0x210)},{'command':'delete','operation':'delete','risk':a24_0x28458e(0x1c3),'paramsRequired':!![],'description':a24_0x28458e(0x1ed),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'aggregate','operation':a24_0x28458e(0x21c),'risk':'read','paramsRequired':![],'description':a24_0x28458e(0x1f3),'paramsHint':a24_0x28458e(0x1f9)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a24_0x28458e(0x1e7),a24_0x28458e(0x1f2),a24_0x28458e(0x1dc),a24_0x28458e(0x20e),a24_0x28458e(0x1fd),'\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{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}',a24_0x28458e(0x20d),a24_0x28458e(0x1ef),'',a24_0x28458e(0x1e4),a24_0x28458e(0x1c8),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a24_0x28458e(0x20b),a24_0x28458e(0x1db),a24_0x28458e(0x1c4),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a24_0x28458e(0x200),a24_0x28458e(0x1d8),a24_0x28458e(0x201),'',a24_0x28458e(0x218),a24_0x28458e(0x1eb),'',a24_0x28458e(0x1cc)][a24_0x28458e(0x20c)]('\x0a')}];function makeDataCommand(_0x2256e6){const _0x51e86b=a24_0x28458e,_0xb7782f='data\x20'+_0x2256e6[_0x51e86b(0x217)],_0x459276={'service':_0x51e86b(0x213),'command':_0x2256e6[_0x51e86b(0x217)],'description':_0x2256e6[_0x51e86b(0x206)],'risk':_0x2256e6[_0x51e86b(0x1d2)],'helpExtra':_0x2256e6[_0x51e86b(0x20a)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x2256e6[_0x51e86b(0x1fc)]}],'validate':async _0x35ce44=>{const _0x550125=_0x51e86b;_0x2256e6['paramsRequired']&&requireAnyOf(_0x35ce44,[_0x550125(0x1ec)],_0xb7782f),_0x2256e6[_0x550125(0x1d6)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x35ce44[_0x550125(0x203)](_0x550125(0x1ec)))),_0x2256e6['operation']===_0x550125(0x1f8)&&parseUpdateIdsFromParams(parseJsonParams(_0x35ce44[_0x550125(0x203)](_0x550125(0x1ec)))??{});},async 'execute'(_0xd5d273){const _0x3cba8c=_0x51e86b,_0x317311=_0xd5d273[_0x3cba8c(0x203)](_0x3cba8c(0x1f5)),_0x52f781=_0x2256e6[_0x3cba8c(0x1d6)]===_0x3cba8c(0x216)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xd5d273[_0x3cba8c(0x203)](_0x3cba8c(0x1ec)))):parseJsonParams(_0xd5d273[_0x3cba8c(0x203)](_0x3cba8c(0x1ec)))??{},_0x23c9c9=_0x2256e6[_0x3cba8c(0x1d6)]==='update'?parseUpdateIdsFromParams(_0x52f781):undefined,_0x31fe39=_0x23c9c9?normalizeUpdateParamsForRuntime(_0x52f781,_0x23c9c9):_0x52f781,_0x29e42f=Date[_0x3cba8c(0x1c7)](),_0x26d891=await executeData(_0x317311,_0x2256e6['operation'],_0x31fe39),_0x6c8e01=Date[_0x3cba8c(0x1c7)]()-_0x29e42f,_0x559194=_0x23c9c9&&_0x23c9c9[_0x3cba8c(0x1d0)]>0x1?buildBatchUpdateResult(_0x23c9c9,_0x26d891):_0x26d891;return{'ok':!![],'data':{'result':_0x559194,'elapsed':_0x6c8e01},'message':_0x3cba8c(0x1d9)+_0x2256e6['command']+'\x20completed\x20in\x20'+_0x6c8e01+'ms'};}};return _0x2256e6[_0x51e86b(0x1d2)]!==_0x51e86b(0x1cb)&&(_0x459276[_0x51e86b(0x1f1)]=async _0x20e2a2=>{const _0x1601aa=_0x51e86b,_0x46a5eb=_0x20e2a2[_0x1601aa(0x203)]('code'),_0xcbb24e=_0x2256e6[_0x1601aa(0x1d6)]===_0x1601aa(0x216)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x20e2a2[_0x1601aa(0x203)](_0x1601aa(0x1ec)))):parseJsonParams(_0x20e2a2[_0x1601aa(0x203)](_0x1601aa(0x1ec)))??{};let _0x345b4b=_0xcbb24e;if(_0x2256e6['operation']===_0x1601aa(0x1f8)){const _0x603e89=parseUpdateIdsFromParams(_0xcbb24e);_0x345b4b=normalizeUpdateParamsForRuntime(_0xcbb24e,_0x603e89);}return dryRun(_0x1601aa(0x212),_0x1601aa(0x207)+_0x46a5eb+'/'+_0x2256e6['operation'])[_0x1601aa(0x211)](_0x345b4b)[_0x1601aa(0x206)](_0x1601aa(0x1e5)+_0x2256e6[_0x1601aa(0x217)]+_0x1601aa(0x1c2)+_0x46a5eb)[_0x1601aa(0x1e6)]();}),_0x459276;}export const dataDefinitions=specs[a24_0x28458e(0x1ee)](makeDataCommand);function buildBatchUpdateResult(_0x2c6cca,_0x483320){const _0xe2833a=a24_0x28458e;return{'operation':_0xe2833a(0x1f8),'mode':_0xe2833a(0x1f0),'ids':_0x2c6cca,'total':_0x2c6cca[_0xe2833a(0x1d0)],'result':_0x483320};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x44c4e0=a25_0x5cb7;(function(_0x1ebecb,_0x11b9f6){const _0x3ddd8d=a25_0x5cb7,_0x258dad=_0x1ebecb();while(!![]){try{const _0x101853=-parseInt(_0x3ddd8d(0x10d))/0x1*(parseInt(_0x3ddd8d(0x102))/0x2)+parseInt(_0x3ddd8d(0xfd))/0x3+-parseInt(_0x3ddd8d(0x11d))/0x4*(parseInt(_0x3ddd8d(0x101))/0x5)+-parseInt(_0x3ddd8d(0x12b))/0x6+-parseInt(_0x3ddd8d(0x134))/0x7+-parseInt(_0x3ddd8d(0xfc))/0x8+parseInt(_0x3ddd8d(0x133))/0x9*(parseInt(_0x3ddd8d(0x12d))/0xa);if(_0x101853===_0x11b9f6)break;else _0x258dad['push'](_0x258dad['shift']());}catch(_0x4c2239){_0x258dad['push'](_0x258dad['shift']());}}}(a25_0x4a39,0x337f6));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x854f57){const _0x3cc538=a25_0x5cb7;if(_0x854f57[_0x3cc538(0xf9)])return null;const _0x22230f=Boolean(_0x854f57['displayName']!==undefined||_0x854f57[_0x3cc538(0x104)]!==undefined);let _0x2a45b1={};if(!_0x22230f&&typeof _0x854f57[_0x3cc538(0xf1)]===_0x3cc538(0x113))try{_0x2a45b1=JSON[_0x3cc538(0x106)](_0x854f57['extend']);}catch{}const _0x544f59=_0x22230f?_0x854f57['name']:_0x854f57[_0x3cc538(0xfa)],_0x48524b=_0x22230f?_0x854f57[_0x3cc538(0x121)]:_0x854f57[_0x3cc538(0xf5)],_0x20d630=_0x22230f?_0x854f57['doType']:_0x854f57[_0x3cc538(0x119)]||_0x854f57[_0x3cc538(0x132)],_0x3c0869=_0x22230f?_0x854f57[_0x3cc538(0x100)]===!![]:_0x2a45b1['pkField']===!![],_0x4f4a1b=_0x22230f?_0x854f57[_0x3cc538(0x10b)]===!![]:_0x2a45b1['required']===!![],_0x1cdc11=_0x22230f?_0x854f57[_0x3cc538(0x111)]??null:_0x2a45b1[_0x3cc538(0x111)]??null,_0x4f602c={'name':_0x544f59,'displayName':_0x48524b||_0x544f59,'type':_0x20d630,'dbType':_0x854f57[_0x3cc538(0xf0)],'pk':_0x3c0869,'required':_0x4f4a1b,'description':_0x854f57[_0x3cc538(0x137)]||undefined};return Array[_0x3cc538(0xf6)](_0x1cdc11)&&_0x1cdc11[_0x3cc538(0x11c)]>0x0&&(_0x4f602c[_0x3cc538(0x111)]=_0x1cdc11),_0x4f602c;}function parseJsonMaybe(_0x5ae798){const _0x1cb187=a25_0x5cb7;if(typeof _0x5ae798!==_0x1cb187(0x113))return _0x5ae798;try{return JSON['parse'](_0x5ae798);}catch{return _0x5ae798;}}function normalizeOperationEntry(_0x258335,_0x58f369){const _0xc6b6b6=a25_0x5cb7;if(!_0x58f369||typeof _0x58f369!=='object')return null;if(!_0x58f369['method']||!_0x58f369[_0xc6b6b6(0x115)])return null;const _0x21034d={'name':_0x258335,'method':_0x58f369[_0xc6b6b6(0x10e)],'path':_0x58f369[_0xc6b6b6(0x115)]};if(_0x58f369[_0xc6b6b6(0x11b)])_0x21034d[_0xc6b6b6(0x11b)]=_0x58f369[_0xc6b6b6(0x11b)];if(_0x58f369[_0xc6b6b6(0x10c)]!=null)_0x21034d[_0xc6b6b6(0x10c)]=parseJsonMaybe(_0x58f369[_0xc6b6b6(0x10c)]);if(_0x58f369[_0xc6b6b6(0x130)]!=null)_0x21034d[_0xc6b6b6(0x130)]=parseJsonMaybe(_0x58f369['responseBody']);if(_0x58f369[_0xc6b6b6(0xff)]!=null)_0x21034d[_0xc6b6b6(0xff)]=_0x58f369['beforeScriptId'];if(_0x58f369[_0xc6b6b6(0xef)]!=null)_0x21034d[_0xc6b6b6(0xef)]=_0x58f369[_0xc6b6b6(0xef)];if(Array[_0xc6b6b6(0xf6)](_0x58f369[_0xc6b6b6(0x110)]))_0x21034d[_0xc6b6b6(0x110)]=_0x58f369[_0xc6b6b6(0x110)];if(Array['isArray'](_0x58f369[_0xc6b6b6(0x117)]))_0x21034d[_0xc6b6b6(0x117)]=_0x58f369[_0xc6b6b6(0x117)];return _0x21034d;}function summarizeDbtable(_0x3a45e1){const _0x4e9d19=a25_0x5cb7,_0x51f61e={},_0xfeeb26=[_0x4e9d19(0x108),_0x4e9d19(0x11f),_0x4e9d19(0xf8),'datasetKey',_0x4e9d19(0x100),_0x4e9d19(0x129),'logicField',_0x4e9d19(0x118),_0x4e9d19(0x135),_0x4e9d19(0x122),_0x4e9d19(0x12f),_0x4e9d19(0xfb),_0x4e9d19(0x103),_0x4e9d19(0x107),_0x4e9d19(0xfe)];for(const _0x53894d of _0xfeeb26){if(_0x3a45e1[_0x53894d]!==undefined)_0x51f61e[_0x53894d]=_0x3a45e1[_0x53894d];}return typeof _0x51f61e[_0x4e9d19(0x129)]==='string'&&_0x51f61e[_0x4e9d19(0x129)][_0x4e9d19(0x11c)]>0x0&&(_0x51f61e[_0x4e9d19(0xf2)]=_0x51f61e[_0x4e9d19(0x129)][_0x4e9d19(0x12e)](',')[_0x4e9d19(0x114)](_0x3ed94d=>_0x3ed94d[_0x4e9d19(0x109)]())[_0x4e9d19(0x136)](Boolean)),_0x51f61e;}function normalizeRelatedPages(_0x4cf430){const _0x5631e2=a25_0x5cb7;if(!Array[_0x5631e2(0xf6)](_0x4cf430))return[];return _0x4cf430['filter'](_0x3327ed=>_0x3327ed&&typeof _0x3327ed==='object')[_0x5631e2(0x114)](_0x3940c1=>({'id':_0x3940c1['id'],'type':_0x3940c1[_0x5631e2(0x119)],'code':_0x3940c1[_0x5631e2(0xfa)],'title':_0x3940c1[_0x5631e2(0x120)],'deleted':_0x3940c1[_0x5631e2(0xf9)]===!![]}));}function normalizeFallbackFieldName(_0x1b9b7e,_0xdd8020){const _0x212deb=a25_0x5cb7,_0x34ca75=_0x1b9b7e[_0x212deb(0x109)]();if(!_0x34ca75)return null;return{'name':_0x34ca75,'displayName':_0x34ca75,'type':undefined,'dbType':undefined,'pk':_0x34ca75===_0xdd8020,'required':![],'description':undefined};}function a25_0x5cb7(_0x2d0a20,_0x4801f6){_0x2d0a20=_0x2d0a20-0xee;const _0x4a397a=a25_0x4a39();let _0x5cb725=_0x4a397a[_0x2d0a20];return _0x5cb725;}async function loadListFieldFallback(_0x51d80b,_0x6fd269){const _0xcdb17c=a25_0x5cb7;if(!_0x51d80b||!_0x6fd269)return[];try{const _0x5f0599=await listDatasets(_0x51d80b,{'code':_0x6fd269}),_0xfa52cc=_0x5f0599[_0xcdb17c(0x12a)](_0x504ecb=>_0x504ecb[_0xcdb17c(0xfa)]===_0x6fd269)??_0x5f0599[0x0],_0x1fdabf=_0xfa52cc?.[_0xcdb17c(0xee)]??{},_0x5d53da=typeof _0x1fdabf['allFields']===_0xcdb17c(0x113)?_0x1fdabf[_0xcdb17c(0x129)][_0xcdb17c(0x12e)](','):[];return _0x5d53da[_0xcdb17c(0x114)](_0x245ce3=>normalizeFallbackFieldName(_0x245ce3,_0x1fdabf[_0xcdb17c(0x100)]))[_0xcdb17c(0x136)](_0x358170=>_0x358170!==null);}catch{return[];}}function a25_0x4a39(){const _0x189190=['code','modifierIdField','3001776qqIFIP','937782NfVOnK','dblinkInfoDTO','beforeScriptId','pkField','1148885lOOwLp','2EYZGvx','modifierNameField','doType','relatedPageInfoList','parse','labelField','dbId','trim','dataset','required','requestBody','54807uLgsTD','method','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','requestFields','options','modelCode','string','map','path','sourceType','responseFields','createTimeField','type','relations','host','length','4DyPSYa','formatRules','dbName','title','displayName','creatorIdField','properties','validateRules','entries','read','datasetKey','source','allFields','find','218916tBWlPj','indexes','480IDUJzc','split','creatorNameField','responseBody','operations','dataType','160065RHoeeu','1813336xRUGhu','updateTimeField','filter','description','tableComment','str','dbtableConfig','afterScriptId','dbType','extend','allFieldNames','fields','push','name','isArray','columnCodeListWithDeleted','tableName','deleted'];a25_0x4a39=function(){return _0x189190;};return a25_0x4a39();}export const datasetDetail={'service':a25_0x44c4e0(0x10a),'command':'detail','description':a25_0x44c4e0(0x10f),'risk':a25_0x44c4e0(0x126),'flags':[CODE_FLAG],async 'execute'(_0x434c19){const _0x458372=a25_0x44c4e0,_0x7f6abf=await getDatasetDetail(_0x434c19[_0x458372(0x139)](_0x458372(0xfa))),_0x2acf13=Array['isArray'](_0x7f6abf[_0x458372(0xf3)])?_0x7f6abf[_0x458372(0xf3)]:Array['isArray'](_0x7f6abf[_0x458372(0x123)])?_0x7f6abf[_0x458372(0x123)]:[];let _0x221521=_0x2acf13['map'](_0x6f1989=>normalizeField(_0x6f1989))[_0x458372(0x136)](_0x3e4446=>_0x3e4446!==null);_0x221521[_0x458372(0x11c)]===0x0&&(_0x221521=await loadListFieldFallback(_0x434c19['appCode'],_0x434c19['str'](_0x458372(0xfa))));const _0x3aeb54=_0x7f6abf[_0x458372(0x131)]??{},_0xe6182b=[];for(const [_0x5bb9e9,_0x1dfb1a]of Object[_0x458372(0x125)](_0x3aeb54)){const _0x3e6d2b=normalizeOperationEntry(_0x5bb9e9,_0x1dfb1a);if(_0x3e6d2b)_0xe6182b[_0x458372(0xf4)](_0x3e6d2b);}const _0x566f6e=_0x7f6abf[_0x458372(0xee)]??{},_0x377060=_0x7f6abf[_0x458372(0x10a)]??{},_0x58eb2f=_0x566f6e[_0x458372(0x108)]!=null?{'id':_0x566f6e[_0x458372(0x108)],'name':_0x566f6e[_0x458372(0x11f)]??null}:undefined;let _0x58fd0b;return typeof _0x7f6abf['extend']===_0x458372(0x113)&&(_0x58fd0b=parseJsonMaybe(_0x7f6abf[_0x458372(0xf1)])),{'ok':!![],'data':{'id':_0x7f6abf['modelId']??_0x7f6abf['id'],'name':_0x7f6abf['name'],'code':_0x7f6abf[_0x458372(0x112)]||_0x7f6abf[_0x458372(0xfa)],'doVersion':_0x7f6abf['doVersion'],'description':_0x7f6abf['description']||_0x377060[_0x458372(0x138)]||undefined,'source':_0x7f6abf[_0x458372(0x128)]||_0x377060[_0x458372(0x116)],'table':_0x566f6e[_0x458372(0xf8)]||_0x377060['tableName'],'datasetKey':_0x566f6e[_0x458372(0x127)],'pk':_0x566f6e[_0x458372(0x100)],'db':_0x58eb2f,'dbtable':summarizeDbtable(_0x566f6e),'fields':_0x221521,'operations':_0xe6182b,'indexes':Array[_0x458372(0xf6)](_0x377060[_0x458372(0x12c)])?_0x377060['indexes']:[],'relations':_0x7f6abf[_0x458372(0x11a)]??null,'relatedPages':normalizeRelatedPages(_0x7f6abf[_0x458372(0x105)]),...Array[_0x458372(0xf6)](_0x7f6abf[_0x458372(0xf7)])?{'columnCodeListWithDeleted':_0x7f6abf[_0x458372(0xf7)]}:{},'formatRules':Array[_0x458372(0xf6)](_0x7f6abf[_0x458372(0x11e)])?_0x7f6abf[_0x458372(0x11e)]:[],'validateRules':Array[_0x458372(0xf6)](_0x7f6abf[_0x458372(0x124)])?_0x7f6abf['validateRules']:[],..._0x58fd0b!==undefined?{'extend':_0x58fd0b}:{},'stats':{'fieldCount':_0x221521['length'],'operationCount':_0xe6182b[_0x458372(0x11c)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2cf559,_0x38955f){const _0x3a94e0=a26_0x1d4f,_0x250ea1=_0x2cf559();while(!![]){try{const _0x1aaaf8=parseInt(_0x3a94e0(0x67))/0x1*(-parseInt(_0x3a94e0(0x68))/0x2)+parseInt(_0x3a94e0(0x6f))/0x3+-parseInt(_0x3a94e0(0x71))/0x4*(parseInt(_0x3a94e0(0x6b))/0x5)+parseInt(_0x3a94e0(0x6c))/0x6*(parseInt(_0x3a94e0(0x6a))/0x7)+parseInt(_0x3a94e0(0x72))/0x8*(parseInt(_0x3a94e0(0x6d))/0x9)+parseInt(_0x3a94e0(0x70))/0xa+parseInt(_0x3a94e0(0x69))/0xb*(parseInt(_0x3a94e0(0x6e))/0xc);if(_0x1aaaf8===_0x38955f)break;else _0x250ea1['push'](_0x250ea1['shift']());}catch(_0x5094d6){_0x250ea1['push'](_0x250ea1['shift']());}}}(a26_0x14b7,0xd7da0));function a26_0x1d4f(_0x4621c9,_0x4c2939){_0x4621c9=_0x4621c9-0x67;const _0x14b7c6=a26_0x14b7();let _0x1d4fb7=_0x14b7c6[_0x4621c9];return _0x1d4fb7;}function a26_0x14b7(){const _0x2ac835=['8RftijY','6253797UpUulm','240079EawqLy','1642145EjEhQM','90gDYGOf','1251loHLxZ','12FBtKiF','1754415SRgvkZ','2330690COjCOW','4dznPGe','33496wysUAd','317573dtiLdv'];a26_0x14b7=function(){return _0x2ac835;};return a26_0x14b7();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a27_0x1ccd(){const _0x1bbf06=['1532504yooqla','36165BwvHzd','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','16836630QZTAJb','split','pkField','5841220RejNZV','1874KPrXya','35GSNrko','list','trim','str','50064syszBh','879PSnibH','557406GIEdgq','392VizgTr','name','length','allFields','datasetKey','description','map','9HNOFkI','code'];a27_0x1ccd=function(){return _0x1bbf06;};return a27_0x1ccd();}const a27_0x4ce10c=a27_0x3d8a;(function(_0x1271de,_0x122df6){const _0x3485ec=a27_0x3d8a,_0x2d76b0=_0x1271de();while(!![]){try{const _0x16bd8e=parseInt(_0x3485ec(0x183))/0x1+-parseInt(_0x3485ec(0x17c))/0x2*(parseInt(_0x3485ec(0x182))/0x3)+parseInt(_0x3485ec(0x16c))/0x4*(-parseInt(_0x3485ec(0x176))/0x5)+parseInt(_0x3485ec(0x181))/0x6*(-parseInt(_0x3485ec(0x17d))/0x7)+parseInt(_0x3485ec(0x175))/0x8*(parseInt(_0x3485ec(0x173))/0x9)+parseInt(_0x3485ec(0x178))/0xa+-parseInt(_0x3485ec(0x17b))/0xb;if(_0x16bd8e===_0x122df6)break;else _0x2d76b0['push'](_0x2d76b0['shift']());}catch(_0x48e00e){_0x2d76b0['push'](_0x2d76b0['shift']());}}}(a27_0x1ccd,0xd5fe5));function a27_0x3d8a(_0x3053fb,_0x4d4beb){_0x3053fb=_0x3053fb-0x16c;const _0x1ccd4c=a27_0x1ccd();let _0x3d8a1d=_0x1ccd4c[_0x3053fb];return _0x3d8a1d;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a27_0x4ce10c(0x17e),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':'read','flags':[{'name':a27_0x4ce10c(0x16d),'type':'string','description':a27_0x4ce10c(0x177)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x42b121){const _0x50bfc4=a27_0x4ce10c,_0x420dec=_0x42b121[_0x50bfc4(0x180)]('name'),_0x5198c3=_0x42b121[_0x50bfc4(0x180)](_0x50bfc4(0x174)),_0x44943e=await listDatasets(_0x42b121['appCode'],{..._0x420dec&&{'name':_0x420dec},..._0x5198c3&&{'code':_0x5198c3}});return{'ok':!![],'data':{'total':_0x44943e[_0x50bfc4(0x16e)],'datasets':_0x44943e[_0x50bfc4(0x172)](_0x5afb8e=>{const _0x47c5f4=_0x50bfc4,_0x2c9686=_0x5afb8e['dbtableConfig']??{};return{'id':_0x5afb8e['id'],'code':_0x5afb8e['code'],'name':_0x5afb8e[_0x47c5f4(0x16d)],'source':_0x5afb8e['source'],'description':_0x5afb8e[_0x47c5f4(0x171)],'table':_0x2c9686['tableName'],'datasetKey':_0x2c9686[_0x47c5f4(0x170)],'pk':_0x2c9686[_0x47c5f4(0x17a)],'fields':_0x2c9686['allFields']?_0x2c9686[_0x47c5f4(0x16f)][_0x47c5f4(0x179)](',')[_0x47c5f4(0x172)](_0x2f9b94=>_0x2f9b94[_0x47c5f4(0x17f)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a28_0xef2347=a28_0x2464;function a28_0x55f9(){const _0x5006d9=['str','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','4704WxeKnb','trim','5060Eoxdwv','96026qOavPV','2rHYDPJ','sdk-doc','16ZmrfDF','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','dataset','9yCyKKG','27102HkgHfq','460BVgVeT','code','appCode','1650860WbHjhC','439046XxgtmY','977488kHzBpu','1417917HSpZES'];a28_0x55f9=function(){return _0x5006d9;};return a28_0x55f9();}(function(_0x32ccb3,_0x5d12bb){const _0x24405b=a28_0x2464,_0x20c709=_0x32ccb3();while(!![]){try{const _0x27f324=parseInt(_0x24405b(0x90))/0x1+-parseInt(_0x24405b(0x99))/0x2*(-parseInt(_0x24405b(0x92))/0x3)+-parseInt(_0x24405b(0x91))/0x4+-parseInt(_0x24405b(0x8c))/0x5*(parseInt(_0x24405b(0x8b))/0x6)+-parseInt(_0x24405b(0x98))/0x7*(parseInt(_0x24405b(0x9b))/0x8)+-parseInt(_0x24405b(0x8a))/0x9*(parseInt(_0x24405b(0x8f))/0xa)+-parseInt(_0x24405b(0x97))/0xb*(-parseInt(_0x24405b(0x95))/0xc);if(_0x27f324===_0x5d12bb)break;else _0x20c709['push'](_0x20c709['shift']());}catch(_0x17743d){_0x20c709['push'](_0x20c709['shift']());}}}(a28_0x55f9,0x3a7bb));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x2464(_0x31a91b,_0x3d9afc){_0x31a91b=_0x31a91b-0x89;const _0x55f951=a28_0x55f9();let _0x2464a3=_0x55f951[_0x31a91b];return _0x2464a3;}const DEFAULT_MARKDOWN=a28_0xef2347(0x94);export function formatDatasetSdkMarkdown(_0x426731){const _0x35c2d4=a28_0xef2347,_0xf2c06f=typeof _0x426731==='string'?_0x426731[_0x35c2d4(0x96)]():'';return _0xf2c06f||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0xef2347(0x89),'command':a28_0xef2347(0x9a),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':a28_0xef2347(0x9c)}],async 'execute'(_0x2b683a){const _0x3b7580=a28_0xef2347,_0x208dc5=_0x2b683a[_0x3b7580(0x93)](_0x3b7580(0x8d)),_0x26f23f=await getDatasetSdkUsageDoc(_0x208dc5,_0x2b683a[_0x3b7580(0x8e)]);return{'ok':!![],'data':{'code':_0x208dc5,'appCode':_0x2b683a[_0x3b7580(0x8e)],'markdown':formatDatasetSdkMarkdown(_0x26f23f)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a29_0xf51a12=a29_0xe4cd;(function(_0x148728,_0x666208){const _0x101b67=a29_0xe4cd,_0x393dae=_0x148728();while(!![]){try{const _0x37dc27=-parseInt(_0x101b67(0x18f))/0x1*(parseInt(_0x101b67(0x15f))/0x2)+-parseInt(_0x101b67(0x19c))/0x3+parseInt(_0x101b67(0x161))/0x4+parseInt(_0x101b67(0x174))/0x5*(-parseInt(_0x101b67(0x16a))/0x6)+parseInt(_0x101b67(0x1ac))/0x7*(parseInt(_0x101b67(0x1a1))/0x8)+parseInt(_0x101b67(0x163))/0x9*(-parseInt(_0x101b67(0x183))/0xa)+parseInt(_0x101b67(0x1b0))/0xb;if(_0x37dc27===_0x666208)break;else _0x393dae['push'](_0x393dae['shift']());}catch(_0x4474f8){_0x393dae['push'](_0x393dae['shift']());}}}(a29_0x33af,0x63fad));import a29_0x41444b from'chalk';function a29_0x33af(){const _0x12db77=['2139TBUuAq','source','check','gray','(not\x20found)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','\x20(legacy/compat\x20only)','platform','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','\x20\x20Config\x20JSON','pageSize','354024hchMfT','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','defaultApp','commandCount','8pXKhSL','bold','length','version','(missing)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','message','red','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','3048934HbNgRd','format','✗\x20Invalid\x20JSON','(unnamed)','3443451DQgWLE','\x20Imported\x20from:\x20','(set,\x20length=','\x20\x20auth\x20(effective):\x20','padEnd','2WWwrUm','✗\x20Invalid','172208YlMxms','\x20doctor','6111oiSdta','locale','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','log','doctor','serviceCode','34452HiQgMt','missing','(not\x20set)','\x20\x20Auth','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20(accessKey)','verbose','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','75pQYMtk','path','registryPath','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','services','name','green','\x20\x20API\x20Endpoints','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','repeat','(default:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','2590GOgwVU','⚠\x20Empty\x20(treated\x20as\x20{})','Diagnose\x20CLI\x20configuration\x20and\x20environment','empty','\x20\x20Config\x20Files','status','yellow','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','appCode','ClientAk','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20'];a29_0x33af=function(){return _0x12db77;};return a29_0x33af();}import{CLI_BIN_NAME}from'../constant/cli.js';function a29_0xe4cd(_0x3a80f8,_0x35ec88){_0x3a80f8=_0x3a80f8-0x15d;const _0x33af81=a29_0x33af();let _0xe4cd94=_0x33af81[_0x3a80f8];return _0xe4cd94;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x21cece){const _0x5ea5a4=a29_0xe4cd,_0x39f2a3=getCliVersion(),_0x428da6=buildConfigFromFlags({});await initGlobalEnvironment(_0x428da6),console[_0x5ea5a4(0x167)](),console[_0x5ea5a4(0x167)](a29_0x41444b[_0x5ea5a4(0x1a2)](CLI_BIN_NAME+_0x5ea5a4(0x162))),console[_0x5ea5a4(0x167)](a29_0x41444b[_0x5ea5a4(0x192)]('─'['repeat'](0x32))),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x1a6)+_0x39f2a3),console[_0x5ea5a4(0x167)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5ea5a4(0x1a4)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5ea5a4(0x197)]+'\x20'+process[_0x5ea5a4(0x1a8)]),console[_0x5ea5a4(0x167)](),console[_0x5ea5a4(0x167)](a29_0x41444b[_0x5ea5a4(0x1a2)](_0x5ea5a4(0x187))),console[_0x5ea5a4(0x167)](a29_0x41444b['gray']('\x20\x20─'[_0x5ea5a4(0x180)](0x1e)));const _0x439012=getGlobalConfigPath(),_0x3eff0c=getProjectConfigPath();console[_0x5ea5a4(0x167)](_0x5ea5a4(0x1a7)+(_0x439012||a29_0x41444b['gray']('(not\x20found)'))),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x1ab)+(_0x3eff0c||a29_0x41444b[_0x5ea5a4(0x192)](_0x5ea5a4(0x193)))),console['log'](),console['log'](a29_0x41444b[_0x5ea5a4(0x1a2)](_0x5ea5a4(0x19a))),console['log'](a29_0x41444b[_0x5ea5a4(0x192)](_0x5ea5a4(0x166)[_0x5ea5a4(0x180)](0x1e)));const _0x2b5f4e=(_0x4faea0,_0x57881c)=>{const _0x4e05a3=_0x5ea5a4;if(!_0x57881c){console['log']('\x20\x20'+_0x4faea0[_0x4e05a3(0x15e)](0x11)+'\x20'+a29_0x41444b[_0x4e05a3(0x192)]('(no\x20file)'));return;}const _0x49d853=inspectCliConfigJsonFile(_0x57881c);if(_0x49d853[_0x4e05a3(0x188)]==='ok')console[_0x4e05a3(0x167)]('\x20\x20'+_0x4faea0['padEnd'](0x11)+'\x20'+a29_0x41444b[_0x4e05a3(0x17b)]('✓\x20Valid\x20JSON'));else{if(_0x49d853[_0x4e05a3(0x188)]===_0x4e05a3(0x186))console[_0x4e05a3(0x167)]('\x20\x20'+_0x4faea0[_0x4e05a3(0x15e)](0x11)+'\x20'+a29_0x41444b[_0x4e05a3(0x189)](_0x4e05a3(0x184)));else _0x49d853['status']==='missing'?console[_0x4e05a3(0x167)]('\x20\x20'+_0x4faea0[_0x4e05a3(0x15e)](0x11)+'\x20'+a29_0x41444b[_0x4e05a3(0x192)](_0x4e05a3(0x1a5))):(console[_0x4e05a3(0x167)]('\x20\x20'+_0x4faea0[_0x4e05a3(0x15e)](0x11)+'\x20'+a29_0x41444b['red'](_0x4e05a3(0x1ae))),console[_0x4e05a3(0x167)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a29_0x41444b[_0x4e05a3(0x1aa)](_0x49d853[_0x4e05a3(0x1a9)])));}};_0x2b5f4e('Global',_0x439012),_0x2b5f4e('Project',_0x3eff0c),console[_0x5ea5a4(0x167)](),console[_0x5ea5a4(0x167)](a29_0x41444b[_0x5ea5a4(0x1a2)]('\x20\x20Merged\x20Config')),console[_0x5ea5a4(0x167)](a29_0x41444b[_0x5ea5a4(0x192)](_0x5ea5a4(0x166)[_0x5ea5a4(0x180)](0x1e))),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x18d)+(_0x428da6[_0x5ea5a4(0x18b)]||a29_0x41444b[_0x5ea5a4(0x1aa)](_0x5ea5a4(0x16c)))),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x17e)+_0x428da6['env']);const _0x2996f3=isLegacyCompatConfigKey(_0x5ea5a4(0x164))?a29_0x41444b[_0x5ea5a4(0x192)](_0x428da6[_0x5ea5a4(0x164)]+_0x5ea5a4(0x196)):_0x428da6[_0x5ea5a4(0x164)];console[_0x5ea5a4(0x167)](_0x5ea5a4(0x177)+_0x2996f3),console[_0x5ea5a4(0x167)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x428da6[_0x5ea5a4(0x19f)]||a29_0x41444b[_0x5ea5a4(0x192)](_0x5ea5a4(0x170)))),console[_0x5ea5a4(0x167)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x428da6['currentApp']||a29_0x41444b[_0x5ea5a4(0x192)](_0x5ea5a4(0x170)))),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x17d)+(_0x428da6[_0x5ea5a4(0x1ad)]||a29_0x41444b[_0x5ea5a4(0x192)](_0x5ea5a4(0x181)+DEFAULT_CONFIG_VALUES[_0x5ea5a4(0x1ad)]+')'))),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x18a)+(_0x428da6[_0x5ea5a4(0x19b)]??a29_0x41444b['gray']('(default)'))),console[_0x5ea5a4(0x167)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x428da6['riskLevel']),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x182)+_0x428da6[_0x5ea5a4(0x172)]),console['log'](_0x5ea5a4(0x15d)+AUTH_MODE[_0x5ea5a4(0x18c)]),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x198)+(_0x428da6[_0x5ea5a4(0x178)]?a29_0x41444b[_0x5ea5a4(0x17b)](_0x5ea5a4(0x1b2)+_0x428da6['accessKey'][_0x5ea5a4(0x1a3)]+')'):a29_0x41444b['gray'](_0x5ea5a4(0x170)))),console['log'](),console['log'](a29_0x41444b['bold'](_0x5ea5a4(0x17c))),console[_0x5ea5a4(0x167)](a29_0x41444b[_0x5ea5a4(0x192)]('\x20\x20─'[_0x5ea5a4(0x180)](0x1e))),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x16e)+getApiDomain()),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x194)+getUserDomain()),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x18e)+getRuntimeDomain()),console[_0x5ea5a4(0x167)](),console['log'](a29_0x41444b['bold']('\x20\x20Service\x20Tree')),console[_0x5ea5a4(0x167)](a29_0x41444b[_0x5ea5a4(0x192)](_0x5ea5a4(0x166)[_0x5ea5a4(0x180)](0x1e)));const _0x382201=inspectServiceRegistry();console[_0x5ea5a4(0x167)](_0x5ea5a4(0x173)+_0x382201[_0x5ea5a4(0x176)]),console[_0x5ea5a4(0x167)](_0x5ea5a4(0x16f)+formatServiceRegistryStatus(_0x382201)),console['log'](_0x5ea5a4(0x165)+_0x382201['serviceCount']),console['log'](_0x5ea5a4(0x19d)+_0x382201[_0x5ea5a4(0x1a0)]);for(const _0x5856bc of _0x382201[_0x5ea5a4(0x179)]){console[_0x5ea5a4(0x167)]('\x20\x20'+(_0x5856bc[_0x5ea5a4(0x169)]+':')[_0x5ea5a4(0x15e)](0x11)+'\x20'+(_0x5856bc[_0x5ea5a4(0x17a)]||a29_0x41444b['gray'](_0x5ea5a4(0x1af)))+'\x20('+_0x5856bc[_0x5ea5a4(0x1a0)]+'\x20commands)'),console[_0x5ea5a4(0x167)]('\x20\x20'+''[_0x5ea5a4(0x15e)](0x11)+_0x5ea5a4(0x1b1)+_0x5856bc[_0x5ea5a4(0x190)][_0x5ea5a4(0x175)]);}return console[_0x5ea5a4(0x167)](),console[_0x5ea5a4(0x167)](a29_0x41444b['bold'](_0x5ea5a4(0x16d))),console[_0x5ea5a4(0x167)](a29_0x41444b[_0x5ea5a4(0x192)](_0x5ea5a4(0x166)[_0x5ea5a4(0x180)](0x1e))),console[_0x5ea5a4(0x167)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a29_0x41444b[_0x5ea5a4(0x17b)](AUTH_MODE[_0x5ea5a4(0x18c)]+_0x5ea5a4(0x171))),console['log'](_0x5ea5a4(0x195)+a29_0x41444b[_0x5ea5a4(0x192)](_0x5ea5a4(0x19e))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x168fb8){const _0x2a628a=a29_0xe4cd;if(_0x168fb8[_0x2a628a(0x188)]==='ok')return a29_0x41444b[_0x2a628a(0x17b)](_0x2a628a(0x17f));if(_0x168fb8[_0x2a628a(0x188)]===_0x2a628a(0x16b))return a29_0x41444b[_0x2a628a(0x192)](_0x2a628a(0x193));if(_0x168fb8[_0x2a628a(0x188)]===_0x2a628a(0x186))return a29_0x41444b[_0x2a628a(0x189)](_0x2a628a(0x199));return a29_0x41444b[_0x2a628a(0x1aa)](_0x2a628a(0x160)+(_0x168fb8[_0x2a628a(0x1a9)]?':\x20'+_0x168fb8[_0x2a628a(0x1a9)]:''));}export const doctorDefinition={'service':a29_0xf51a12(0x168),'command':a29_0xf51a12(0x191),'description':a29_0xf51a12(0x185),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|