@lovrabet/lovrabet-cli 2.1.15 → 2.1.16-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/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -0
- 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 -1
- 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_0x508734=a14_0x2930;(function(_0x48cc8f,_0x1fc895){const _0x30df1f=a14_0x2930,_0x342ee8=_0x48cc8f();while(!![]){try{const _0x4e52bc=-parseInt(_0x30df1f(0x1ce))/0x1+-parseInt(_0x30df1f(0x1e3))/0x2*(-parseInt(_0x30df1f(0x1d9))/0x3)+parseInt(_0x30df1f(0x1e4))/0x4*(parseInt(_0x30df1f(0x1e2))/0x5)+-parseInt(_0x30df1f(0x1da))/0x6*(-parseInt(_0x30df1f(0x1e1))/0x7)+parseInt(_0x30df1f(0x1d8))/0x8*(parseInt(_0x30df1f(0x1d7))/0x9)+parseInt(_0x30df1f(0x1dc))/0xa+-parseInt(_0x30df1f(0x1df))/0xb;if(_0x4e52bc===_0x1fc895)break;else _0x342ee8['push'](_0x342ee8['shift']());}catch(_0xb97fd1){_0x342ee8['push'](_0x342ee8['shift']());}}}(a14_0x5735,0x2c95d));import{getBffEndpointContract}from'../../core/api-client.js';function a14_0x2930(_0xb13cf5,_0x30f55b){_0xb13cf5=_0xb13cf5-0x1ce;const _0x573531=a14_0x5735();let _0x2930ef=_0x573531[_0xb13cf5];return _0x2930ef;}import{NAME_FLAG}from'../../commands/common/flags.js';function a14_0x5735(){const _0x1c102d=['192GGOKHV','227956fBQwnE','(none)','functionName','gmtModified','description','detail','read','str','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','63fbtyNN','22568ZyIvhS','36939eNhIrG','1038iigTNj','version','1958910HtFFbA','appCode','bff','5799431bknMmV','name','5271ylclNz','27025HlIdFz','54sEhtcq'];a14_0x5735=function(){return _0x1c102d;};return a14_0x5735();}export const bffDetail={'service':a14_0x508734(0x1de),'command':a14_0x508734(0x1d3),'description':a14_0x508734(0x1d6),'risk':a14_0x508734(0x1d4),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name'}],async 'execute'(_0x8489ff){const _0x4a4004=a14_0x508734,_0x1dfb30=await getBffEndpointContract(_0x8489ff[_0x4a4004(0x1dd)],_0x8489ff[_0x4a4004(0x1d5)](_0x4a4004(0x1e0)));return{'ok':!![],'data':{'appCode':_0x1dfb30['appCode'],'functionName':_0x1dfb30[_0x4a4004(0x1d0)],'description':_0x1dfb30[_0x4a4004(0x1d2)]||_0x4a4004(0x1cf),'version':_0x1dfb30[_0x4a4004(0x1db)],'gmtModified':_0x1dfb30[_0x4a4004(0x1d1)]}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15_0x39b339=a15_0x33a1;(function(_0x30b8d8,_0x219ee0){const _0x594f6b=a15_0x33a1,_0x5161dd=_0x30b8d8();while(!![]){try{const _0x2de88b=-parseInt(_0x594f6b(0x186))/0x1*(-parseInt(_0x594f6b(0x17f))/0x2)+-parseInt(_0x594f6b(0x17d))/0x3*(-parseInt(_0x594f6b(0x175))/0x4)+-parseInt(_0x594f6b(0x177))/0x5*(parseInt(_0x594f6b(0x17e))/0x6)+parseInt(_0x594f6b(0x17b))/0x7+-parseInt(_0x594f6b(0x183))/0x8*(-parseInt(_0x594f6b(0x178))/0x9)+parseInt(_0x594f6b(0x181))/0xa*(parseInt(_0x594f6b(0x184))/0xb)+-parseInt(_0x594f6b(0x182))/0xc;if(_0x2de88b===_0x219ee0)break;else _0x5161dd['push'](_0x5161dd['shift']());}catch(_0x6eb6a5){_0x5161dd['push'](_0x5161dd['shift']());}}}(a15_0x260a,0x3e5e8));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x33a1(_0x25ced6,_0x39aa0b){_0x25ced6=_0x25ced6-0x175;const _0x260a04=a15_0x260a();let _0x33a169=_0x260a04[_0x25ced6];return _0x33a169;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x260a(){const _0x205ff6=['BFF\x20function\x20name\x20to\x20execute','10840sXtLnI','10062408ltxGwB','2952096cUWZCQ','3278Xiysep','BFF\x20executed\x20in\x20','41QAqVBd','4AQMzAW','exec','5RrSCMa','9uFkaiR','now','read','727489GhGuTp','name','1088457MDlJMk','599574dLtpvb','1714pQwXPc'];a15_0x260a=function(){return _0x205ff6;};return a15_0x260a();}export const bffExec={'service':'bff','command':a15_0x39b339(0x176),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a15_0x39b339(0x17a),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x39b339(0x180)},PARAMS_FLAG],async 'execute'(_0x4c5090){const _0x1da16f=a15_0x39b339,_0x5c335f=parseJsonParams(_0x4c5090['str']('params')),_0x2d47f1=Date[_0x1da16f(0x179)](),_0x42eff4=await executeSdkBff(_0x4c5090['str'](_0x1da16f(0x17c)),_0x5c335f),_0x4e2918=Date[_0x1da16f(0x179)]()-_0x2d47f1;return{'ok':!![],'data':{'result':_0x42eff4,'elapsed':_0x4e2918},'message':_0x1da16f(0x185)+_0x4e2918+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2ea280,_0x261c34){const _0x3e50f3=a16_0x4cc5,_0x2beef1=_0x2ea280();while(!![]){try{const _0x1e202b=parseInt(_0x3e50f3(0xbe))/0x1+-parseInt(_0x3e50f3(0xc0))/0x2+parseInt(_0x3e50f3(0xbc))/0x3*(parseInt(_0x3e50f3(0xc2))/0x4)+parseInt(_0x3e50f3(0xbf))/0x5*(parseInt(_0x3e50f3(0xc3))/0x6)+-parseInt(_0x3e50f3(0xc1))/0x7*(-parseInt(_0x3e50f3(0xbb))/0x8)+-parseInt(_0x3e50f3(0xba))/0x9+parseInt(_0x3e50f3(0xbd))/0xa*(-parseInt(_0x3e50f3(0xc4))/0xb);if(_0x1e202b===_0x261c34)break;else _0x2beef1['push'](_0x2beef1['shift']());}catch(_0x3fd0af){_0x2beef1['push'](_0x2beef1['shift']());}}}(a16_0x5c45,0xbc7ea));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x4cc5(_0x3ca07c,_0x40c642){_0x3ca07c=_0x3ca07c-0xba;const _0x5c4557=a16_0x5c45();let _0x4cc57d=_0x5c4557[_0x3ca07c];return _0x4cc57d;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a16_0x5c45(){const _0x47bac6=['1578906Pgpjfm','10276ZmpCmK','219848psveqx','2722908WGWLNM','8304329cQeOBa','2487069KkRTYP','7088vUrfxv','51zkBnLH','30GneHng','960047eAycxv','10WCWfrG'];a16_0x5c45=function(){return _0x47bac6;};return a16_0x5c45();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x5d59f8=a17_0x5cf1;(function(_0x24e507,_0x4b44d8){const _0x338de3=a17_0x5cf1,_0x392c22=_0x24e507();while(!![]){try{const _0x77b76b=-parseInt(_0x338de3(0x1b6))/0x1+-parseInt(_0x338de3(0x1ad))/0x2*(-parseInt(_0x338de3(0x1b5))/0x3)+parseInt(_0x338de3(0x1ba))/0x4+parseInt(_0x338de3(0x1b4))/0x5*(parseInt(_0x338de3(0x1ac))/0x6)+-parseInt(_0x338de3(0x1b3))/0x7*(-parseInt(_0x338de3(0x1c1))/0x8)+-parseInt(_0x338de3(0x1be))/0x9*(-parseInt(_0x338de3(0x1a5))/0xa)+parseInt(_0x338de3(0x1a9))/0xb*(-parseInt(_0x338de3(0x1b9))/0xc);if(_0x77b76b===_0x4b44d8)break;else _0x392c22['push'](_0x392c22['shift']());}catch(_0x217b94){_0x392c22['push'](_0x392c22['shift']());}}}(a17_0x5d7b,0xaf355));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a17_0x5d7b(){const _0x2b8d36=['Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','skipped','115682SpIAbb','5mmHkUR','39FMxPnJ','777409iyOErI','cwd','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','2004ByeduE','1975164dHQOKe','write','npx\x20skills\x20add\x20failed:\x20','Skipped\x20npx\x20(','1854aBgNMb','inherit','log','184fCyedO','pipe','apiError','cli-skill-install','CLI\x20Built-in\x20Skill\x20installed','48590HvrDDk','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','info','\x20-g\x20-y)...','57497wNiNbi','unknown','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','2569782dArGfG','9974HBGqSa','nonInteractive','install','\x20-g\x20-y'];a17_0x5d7b=function(){return _0x2b8d36;};return a17_0x5d7b();}function a17_0x5cf1(_0x3a43f4,_0x12295b){_0x3a43f4=_0x3a43f4-0x1a2;const _0x5d7b85=a17_0x5d7b();let _0x5cf1e9=_0x5d7b85[_0x3a43f4];return _0x5cf1e9;}export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x5d59f8(0x1af),'description':a17_0x5d59f8(0x1a6),'risk':a17_0x5d59f8(0x1bb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xf1f7b3){const _0x37899d=a17_0x5d59f8;logger['setLogPath'](process[_0x37899d(0x1b7)]()),logger[_0x37899d(0x1a7)](_0x37899d(0x1a3),_0x37899d(0x1ab));const {LOVRABET_SKILL_SOURCE:_0x436e89,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x34aee9,runNpxSkillsAddGlobal:_0x147a87}=await import('../../skills/npx-skills-add.js'),_0x433aab=_0xf1f7b3[_0x37899d(0x1ae)]?_0x37899d(0x1c2):_0x37899d(0x1bf);console[_0x37899d(0x1c0)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x436e89+_0x37899d(0x1a8));const _0x5ad324=_0x147a87(process[_0x37899d(0x1b7)](),_0x436e89,{'stdio':_0x433aab});if(_0x5ad324[_0x37899d(0x1b2)])console[_0x37899d(0x1c0)](_0x37899d(0x1bd)+_0x34aee9+_0x37899d(0x1b8));else{if(_0x5ad324['ok'])console[_0x37899d(0x1c0)](_0x37899d(0x1a4));else throw CliErrors[_0x37899d(0x1a2)](_0x37899d(0x1bc)+(_0x5ad324['error']||_0x37899d(0x1aa)),_0x37899d(0x1b1)+_0x436e89+_0x37899d(0x1b0));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44732a,_0x444850){const _0x1edf38=a18_0x38a8,_0x5cb52f=_0x44732a();while(!![]){try{const _0x5a1402=parseInt(_0x1edf38(0x1dd))/0x1+parseInt(_0x1edf38(0x1e2))/0x2+parseInt(_0x1edf38(0x1dc))/0x3+-parseInt(_0x1edf38(0x1e3))/0x4*(-parseInt(_0x1edf38(0x1e7))/0x5)+parseInt(_0x1edf38(0x1de))/0x6+-parseInt(_0x1edf38(0x1ef))/0x7*(parseInt(_0x1edf38(0x1e6))/0x8)+-parseInt(_0x1edf38(0x1ec))/0x9;if(_0x5a1402===_0x444850)break;else _0x5cb52f['push'](_0x5cb52f['shift']());}catch(_0x561bc7){_0x5cb52f['push'](_0x5cb52f['shift']());}}}(a18_0x3d41,0xf33b3));function a18_0x38a8(_0x24a895,_0x333db8){_0x24a895=_0x24a895-0x1dc;const _0x3d4185=a18_0x3d41();let _0x38a85f=_0x3d4185[_0x24a895];return _0x38a85f;}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_0x3d41(){const _0x466d4b=['\x20init`\x20first.','global','636686ZgMsHy','12bOOiDq','global-default','inProject','1056uQFrkf','893725VADoAB','project','Add\x20--global\x20to\x20write\x20to\x20~/','newConfigFileName','project-default','30758931rBQPbV','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','\x20found).','46508sFtLIg',',\x20or\x20run\x20`','\x20(global)','project-or-global-explicit','4926813cjvUUP','822099mHxQXy','11831964JUyzld','validation'];a18_0x3d41=function(){return _0x466d4b;};return a18_0x3d41();}export function resolveConfigScope(_0x163b9d){const _0x4ec2e1=a18_0x38a8,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x3f67af}=_0x163b9d;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4ec2e1(0x1df)](_0x4ec2e1(0x1ed),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x4ec2e1(0x1e1);if(explicitProject)return _0x4ec2e1(0x1e8);switch(_0x3f67af){case _0x4ec2e1(0x1e4):return _0x4ec2e1(0x1e1);case _0x4ec2e1(0x1eb):return _0x163b9d['inProject']??isInProject()?_0x4ec2e1(0x1e8):_0x4ec2e1(0x1e1);case _0x4ec2e1(0x1f2):if(!(_0x163b9d[_0x4ec2e1(0x1e5)]??isInProject()))throw CliErrors[_0x4ec2e1(0x1df)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x4ec2e1(0x1ea)]+_0x4ec2e1(0x1ee),_0x4ec2e1(0x1e9)+PRODUCT_CONFIG[_0x4ec2e1(0x1ea)]+_0x4ec2e1(0x1f0)+CLI_BIN_NAME+_0x4ec2e1(0x1e0));return _0x4ec2e1(0x1e8);}}export function toScopeFlags(_0x465547){const _0x4217e4=a18_0x38a8;return{'global':_0x465547===_0x4217e4(0x1e1)};}export function formatScopeLabel(_0x5a74de){const _0x68741=a18_0x38a8;return _0x5a74de==='global'?_0x68741(0x1f1):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x48f2d9,_0x2ab25f){const _0x3b58fe=a19_0x1508,_0x140148=_0x48f2d9();while(!![]){try{const _0xc624bb=parseInt(_0x3b58fe(0x1aa))/0x1+-parseInt(_0x3b58fe(0x1af))/0x2+-parseInt(_0x3b58fe(0x1a7))/0x3+-parseInt(_0x3b58fe(0x1a9))/0x4+-parseInt(_0x3b58fe(0x1a6))/0x5*(parseInt(_0x3b58fe(0x1b7))/0x6)+parseInt(_0x3b58fe(0x1ad))/0x7*(parseInt(_0x3b58fe(0x1b8))/0x8)+parseInt(_0x3b58fe(0x1ab))/0x9;if(_0xc624bb===_0x2ab25f)break;else _0x140148['push'](_0x140148['shift']());}catch(_0x1b4f4d){_0x140148['push'](_0x140148['shift']());}}}(a19_0x3d9f,0x92086));import{CliErrors}from'../../errors.js';function isSet(_0x46e187,_0x500ded){const _0x2529bf=_0x46e187['flag'](_0x500ded);return _0x2529bf!==undefined&&_0x2529bf!==''&&_0x2529bf!==![]&&_0x2529bf!==0x0;}function fmtNames(_0x40c141){const _0x4206e0=a19_0x1508;return _0x40c141[_0x4206e0(0x1a4)](_0x3a8f6d=>'--'+_0x3a8f6d)[_0x4206e0(0x1b5)](',\x20');}export function requireOneOf(_0xbf6bb3,_0x2f833e,_0x58fd10){const _0x38893b=a19_0x1508,_0x50d7=_0x2f833e[_0x38893b(0x1b6)](_0x434e5a=>isSet(_0xbf6bb3,_0x434e5a));if(_0x50d7[_0x38893b(0x1a1)]!==0x1)throw CliErrors[_0x38893b(0x1a0)](_0x50d7[_0x38893b(0x1a1)]===0x0?_0x38893b(0x1b2)+fmtNames(_0x2f833e)+_0x38893b(0x1a3)+_0x58fd10+'`.':_0x38893b(0x1a5)+fmtNames(_0x2f833e)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x50d7)+'.',_0x50d7[_0x38893b(0x1a1)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x2f833e):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x297922,_0x20261c,_0xf688f5){const _0x5307df=a19_0x1508;if(!_0x20261c[_0x5307df(0x1a8)](_0x3b9052=>isSet(_0x297922,_0x3b9052)))throw CliErrors[_0x5307df(0x1a0)](_0x5307df(0x1a2)+fmtNames(_0x20261c)+_0x5307df(0x1a3)+_0xf688f5+'`.',_0x5307df(0x19f)+fmtNames(_0x20261c));}export function mutuallyExclusive(_0x20d634,_0x2464c5,_0x187e11){const _0x490075=a19_0x1508,_0x4b4f98=_0x2464c5[_0x490075(0x1b6)](_0x2391e9=>isSet(_0x20d634,_0x2391e9));if(_0x4b4f98[_0x490075(0x1a1)]>0x1)throw CliErrors[_0x490075(0x1a0)](_0x490075(0x1ae)+fmtNames(_0x4b4f98)+_0x490075(0x1b4)+_0x187e11+'`.',_0x490075(0x1ac)+fmtNames(_0x2464c5));}function a19_0x1508(_0x590c2d,_0x4231ba){_0x590c2d=_0x590c2d-0x19f;const _0x3d9f39=a19_0x3d9f();let _0x1508dd=_0x3d9f39[_0x590c2d];return _0x1508dd;}function a19_0x3d9f(){const _0x2de53c=['10569303xJWtzq','Use\x20only\x20one\x20of:\x20','7esiSDO','Flags\x20','364482vqEyCx',':\x20expected\x20','str','Exactly\x20one\x20of\x20','Invalid\x20--','\x20are\x20mutually\x20exclusive\x20for\x20`','join','filter','2022nfTWpB','3120976yWneLE','Provide\x20one\x20of:\x20','validation','length','At\x20least\x20one\x20of\x20','\x20is\x20required\x20for\x20`','map','Only\x20one\x20of\x20','5710cxuuiL','2350329DFJyKr','some','725688iiNHMw','565621RTaNSL'];a19_0x3d9f=function(){return _0x2de53c;};return a19_0x3d9f();}export function validatePattern(_0x20c5f5,_0x4b5b19,_0x43a5d6,_0x2eb59e){const _0x1c5f3a=a19_0x1508,_0x889b2c=_0x20c5f5[_0x1c5f3a(0x1b1)](_0x4b5b19);if(_0x889b2c&&!_0x43a5d6['test'](_0x889b2c))throw CliErrors[_0x1c5f3a(0x1a0)](_0x1c5f3a(0x1b3)+_0x4b5b19+_0x1c5f3a(0x1b0)+_0x2eb59e+',\x20got\x20\x22'+_0x889b2c+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a20_0x148ad3=a20_0x29a7;(function(_0x1a5ba7,_0x3c3b23){const _0x23fada=a20_0x29a7,_0x1804c1=_0x1a5ba7();while(!![]){try{const _0x135edb=-parseInt(_0x23fada(0xce))/0x1*(parseInt(_0x23fada(0xc7))/0x2)+parseInt(_0x23fada(0xcc))/0x3*(-parseInt(_0x23fada(0xd4))/0x4)+parseInt(_0x23fada(0xc8))/0x5*(parseInt(_0x23fada(0xd3))/0x6)+-parseInt(_0x23fada(0xdb))/0x7+-parseInt(_0x23fada(0xd1))/0x8*(parseInt(_0x23fada(0xd5))/0x9)+-parseInt(_0x23fada(0xc4))/0xa+-parseInt(_0x23fada(0xcb))/0xb*(-parseInt(_0x23fada(0xd6))/0xc);if(_0x135edb===_0x3c3b23)break;else _0x1804c1['push'](_0x1804c1['shift']());}catch(_0x304097){_0x1804c1['push'](_0x1804c1['shift']());}}}(a20_0x934f,0xe1e54));export const CODE_FLAG={'name':a20_0x148ad3(0xd2),'type':a20_0x148ad3(0xd8),'required':!![],'description':a20_0x148ad3(0xd9),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x148ad3(0xcf)}};export const SQLCODE_FLAG={'name':a20_0x148ad3(0xda),'type':'string','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)'}};function a20_0x29a7(_0x26bf01,_0x45ac8e){_0x26bf01=_0x26bf01-0xc3;const _0x934f35=a20_0x934f();let _0x29a783=_0x934f35[_0x26bf01];return _0x29a783;}export const VERBOSE_FLAG={'name':a20_0x148ad3(0xdc),'type':a20_0x148ad3(0xc6),'description':a20_0x148ad3(0xd0)};function a20_0x934f(){const _0x45b3d3=['12SkgISb','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','string','Dataset\x20code\x20(32-char\x20hex\x20UUID)','sqlcode','5350723aFTGPv','verbose','params','4840150lxrLnd','number','boolean','2HOmhip','525MfttsA','name','Resource\x20ID','45888590ydlIVT','222pswWvc','Resource\x20name\x20for\x20lookup','458338wxkzog','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Return\x20full\x20raw\x20response\x20object','152aNyLcG','code','78180DmyWDe','83156AAVsdP','648684tvDkXC'];a20_0x934f=function(){return _0x45b3d3;};return a20_0x934f();}export const PARAMS_FLAG={'name':a20_0x148ad3(0xc3),'type':a20_0x148ad3(0xd8),'description':a20_0x148ad3(0xd7)};export const NAME_FLAG={'name':a20_0x148ad3(0xc9),'type':a20_0x148ad3(0xd8),'description':a20_0x148ad3(0xcd)};export const ID_FLAG={'name':'id','type':a20_0x148ad3(0xc5),'required':!![],'description':a20_0x148ad3(0xca)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x16a851,_0x5110bf){const _0x38333f=a21_0xa841,_0x1a130d=_0x16a851();while(!![]){try{const _0x5539fe=-parseInt(_0x38333f(0x9b))/0x1*(parseInt(_0x38333f(0xa4))/0x2)+-parseInt(_0x38333f(0xa2))/0x3*(-parseInt(_0x38333f(0x98))/0x4)+-parseInt(_0x38333f(0x91))/0x5*(parseInt(_0x38333f(0x9a))/0x6)+parseInt(_0x38333f(0x9d))/0x7+parseInt(_0x38333f(0x99))/0x8*(-parseInt(_0x38333f(0x94))/0x9)+parseInt(_0x38333f(0x90))/0xa*(parseInt(_0x38333f(0xa3))/0xb)+parseInt(_0x38333f(0x93))/0xc;if(_0x5539fe===_0x5110bf)break;else _0x1a130d['push'](_0x1a130d['shift']());}catch(_0x58bf82){_0x1a130d['push'](_0x1a130d['shift']());}}}(a21_0x35b2,0xd3b4a));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a21_0xa841(_0x19e952,_0x2d82a8){_0x19e952=_0x19e952-0x90;const _0x35b2d8=a21_0x35b2();let _0xa841dc=_0x35b2d8[_0x19e952];return _0xa841dc;}function a21_0x35b2(){const _0x29786e=['File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20not\x20found:\x20','8eBPDAq','34096SFliFP','30HZMyvc','500687VpsTDo','validation','3662526fBGVwG','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','toFixed','isFile','size','481155PWnMyd','33uIZUPN','6DCQDxB','442690XSlNmx','1000130ylYqLl','\x20MB','35205792KFKZGD','1143vCqTVq','trim'];a21_0x35b2=function(){return _0x29786e;};return a21_0x35b2();}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0xcf706d){const _0x1c6184=a21_0xa841;if(_0xcf706d>=BYTES_PER_MB){const _0x3e304a=Math['ceil'](_0xcf706d/BYTES_PER_MB*0x64)/0x64;return _0x3e304a[_0x1c6184(0x9f)](0x2)+_0x1c6184(0x92);}return _0xcf706d+'\x20B';}export function requireRuntimeUploadFile(_0x2c53c7,_0x575956){const _0x3d2c4d=a21_0xa841,_0x10670b=_0x2c53c7[_0x3d2c4d(0x95)]();if(!_0x10670b)throw CliErrors[_0x3d2c4d(0x9c)](_0x575956+'\x20path\x20is\x20required.');if(!existsSync(_0x10670b))throw CliErrors[_0x3d2c4d(0x9c)](_0x3d2c4d(0x97)+_0x10670b);const _0x2a8ec0=statSync(_0x10670b);if(!_0x2a8ec0[_0x3d2c4d(0xa0)]())throw CliErrors[_0x3d2c4d(0x9c)](_0x3d2c4d(0x96)+_0x10670b);if(_0x2a8ec0[_0x3d2c4d(0xa1)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x3d2c4d(0x9e)+_0x10670b+'\x20('+formatBytes(_0x2a8ec0['size'])+')');return{'path':_0x10670b,'size':_0x2a8ec0['size']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a21_0x10930a=a21_0x8a9e;(function(_0x1833b3,_0x399119){const _0xb6d97a=a21_0x8a9e,_0x4000ea=_0x1833b3();while(!![]){try{const _0x10cce0=-parseInt(_0xb6d97a(0xeb))/0x1+-parseInt(_0xb6d97a(0xee))/0x2+-parseInt(_0xb6d97a(0xea))/0x3*(parseInt(_0xb6d97a(0x118))/0x4)+parseInt(_0xb6d97a(0x122))/0x5*(-parseInt(_0xb6d97a(0x105))/0x6)+parseInt(_0xb6d97a(0xf1))/0x7*(-parseInt(_0xb6d97a(0x127))/0x8)+parseInt(_0xb6d97a(0x10a))/0x9+-parseInt(_0xb6d97a(0x124))/0xa*(-parseInt(_0xb6d97a(0x11f))/0xb);if(_0x10cce0===_0x399119)break;else _0x4000ea['push'](_0x4000ea['shift']());}catch(_0x34a116){_0x4000ea['push'](_0x4000ea['shift']());}}}(a21_0xf6e0,0xdef04));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';function a21_0xf6e0(){const _0xdfda69=['3173654GjGMaE','key','includes','1246QalDwk','\x20(global)','pageSize','length','global','log','\x22\x20is\x20not\x20settable.','project-or-global-explicit','set','Key\x20\x22','\x20\x20global:\x20\x20','read','Set\x20a\x20config\x20value','isArray','Get\x20a\x20config\x20value','\x22.\x20Allowed:\x20','bool','`\x20=\x20\x22','alias','Write\x20to\x20global\x20config','18VxzfRa','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','trim','value','stringify','15511014QWlbIK','delete','Top-level\x20key\x20\x22','Missing\x20key\x20argument.','object','\x20config\x20delete\x20<key>\x20[--global]','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20\x20project:\x20','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','config','pretty','Delete\x20a\x20config\x20value','validation','Invalid\x20value\x20for\x20\x22','24guHGJu','Deleted\x20`','\x22\x20not\x20found\x20at\x20top\x20level.','Set\x20`','../../context.js','field','write','22sLdgju','join','Config\x20files:\x0a','2481890CnJeHE',';\x20apps.<alias>.appcode','23747430fnwanR','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','format','24088lOxphO','Value\x20to\x20assign','Usage:\x20','appcode','boolean','Key\x20not\x20found:\x20','\x20config\x20get\x20<key>','apps','raw','Settable\x20keys:\x20','List\x20current\x20config','870405EoewdE','207047ckYbIm','split','args'];a21_0xf6e0=function(){return _0xdfda69;};return a21_0xf6e0();}import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a21_0x10930a(0xf5),'type':a21_0x10930a(0x12b),'description':a21_0x10930a(0x104),'default':![]};function parseAliasAppcodeSetKey(_0x4f64fc){const _0x3004f9=a21_0x10930a,_0x3813e0=_0x4f64fc[_0x3004f9(0xec)]('.');if(_0x3813e0['length']!==0x3||_0x3813e0[0x0]!==_0x3004f9(0x12e)||_0x3813e0[0x2]!==_0x3004f9(0x12a))return undefined;const _0x4a16f3=_0x3813e0[0x1]?.[_0x3004f9(0x107)]();return _0x4a16f3?_0x4a16f3:undefined;}function parseAliasDeleteKey(_0x56152f){const _0x21b5d2=a21_0x10930a,_0x4c80a3=_0x56152f[_0x21b5d2(0xec)]('.');if(_0x4c80a3[_0x21b5d2(0xf4)]===0x2&&_0x4c80a3[0x0]===_0x21b5d2(0x12e)){const _0x1f7ad2=_0x4c80a3[0x1]?.[_0x21b5d2(0x107)]();return _0x1f7ad2?{'alias':_0x1f7ad2}:undefined;}if(_0x4c80a3[_0x21b5d2(0xf4)]===0x3&&_0x4c80a3[0x0]===_0x21b5d2(0x12e)&&_0x4c80a3[0x2]===_0x21b5d2(0x12a)){const _0xabf395=_0x4c80a3[0x1]?.[_0x21b5d2(0x107)]();return _0xabf395?{'alias':_0xabf395,'field':_0x21b5d2(0x12a)}:undefined;}return undefined;}function setLocalAppAlias(_0x5d8ca8,_0x1363b8,_0x2f7b90){const _0x14b48d=a21_0x10930a,_0x40553e=_0x5d8ca8[_0x14b48d(0x12e)]&&typeof _0x5d8ca8[_0x14b48d(0x12e)]===_0x14b48d(0x10e)&&!Array[_0x14b48d(0xfe)](_0x5d8ca8[_0x14b48d(0x12e)])?_0x5d8ca8[_0x14b48d(0x12e)]:{},_0x3baadf=_0x40553e[_0x1363b8]&&typeof _0x40553e[_0x1363b8]===_0x14b48d(0x10e)&&!Array[_0x14b48d(0xfe)](_0x40553e[_0x1363b8])?_0x40553e[_0x1363b8]:{};_0x3baadf[_0x14b48d(0x12a)]=_0x2f7b90,_0x40553e[_0x1363b8]=_0x3baadf,_0x5d8ca8[_0x14b48d(0x12e)]=_0x40553e;}function a21_0x8a9e(_0x676122,_0x4689fe){_0x676122=_0x676122-0xe7;const _0xf6e00e=a21_0xf6e0();let _0x8a9e12=_0xf6e00e[_0x676122];return _0x8a9e12;}function deleteLocalAppAlias(_0x4f2533,_0x3a141c){const _0x41e073=a21_0x10930a;if(!_0x4f2533['apps']||typeof _0x4f2533[_0x41e073(0x12e)]!==_0x41e073(0x10e)||Array['isArray'](_0x4f2533[_0x41e073(0x12e)]))return![];const _0xbd822e=_0x4f2533['apps'],_0x5dfce3=_0xbd822e[_0x3a141c[_0x41e073(0x103)]];if(!_0x5dfce3||typeof _0x5dfce3!==_0x41e073(0x10e)||Array[_0x41e073(0xfe)](_0x5dfce3))return![];if(!_0x3a141c['field'])return delete _0xbd822e[_0x3a141c['alias']],!![];if(!(_0x3a141c[_0x41e073(0x11d)]in _0x5dfce3))return![];return delete _0x5dfce3[_0x3a141c[_0x41e073(0x11d)]],Object['keys'](_0x5dfce3)[_0x41e073(0xf4)]===0x0&&delete _0xbd822e[_0x3a141c['alias']],!![];}const listDef={'service':a21_0x10930a(0x113),'command':'list','description':a21_0x10930a(0xe9),'risk':a21_0x10930a(0xfc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x412d82){const _0x37afbb=a21_0x10930a,{buildConfigFromFlags:_0x3bfd42}=await import('../../context.js'),_0x2a4eed=_0x3bfd42({}),_0x4e9fed=getProjectConfigPath(),_0x26efdd=resolveWriteConfigPath('global');if(_0x412d82[_0x37afbb(0x126)]===_0x37afbb(0x114))return{'ok':!![],'message':_0x37afbb(0x112)+(JSON[_0x37afbb(0x109)](_0x2a4eed[_0x37afbb(0xe7)],null,0x2)+'\x0a\x0a')+_0x37afbb(0x121)+(_0x37afbb(0x111)+(_0x4e9fed??'(none)')+'\x0a')+(_0x37afbb(0xfb)+_0x26efdd)};return{'ok':!![],'data':{'effective':_0x2a4eed[_0x37afbb(0xe7)],'configFiles':{'project':_0x4e9fed??null,'global':_0x26efdd}}};}},getDef={'service':a21_0x10930a(0x113),'command':'get','description':a21_0x10930a(0xff),'risk':a21_0x10930a(0xfc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x10930a(0xef),'description':a21_0x10930a(0x125),'required':!![]}],'flags':[],async 'execute'(_0x2491a1){const _0x3e785b=a21_0x10930a,_0x3f5d4f=_0x2491a1[_0x3e785b(0xed)][0x0];if(!_0x3f5d4f)throw CliErrors[_0x3e785b(0x116)]('Missing\x20key\x20argument.',_0x3e785b(0x129)+CLI_BIN_NAME+_0x3e785b(0x12d));const {buildConfigFromFlags:_0x4cfbe9}=await import(_0x3e785b(0x11c)),{raw:_0x13d85d}=_0x4cfbe9({});if(_0x3f5d4f[_0x3e785b(0xf0)]('.')){const _0x14e136=_0x3f5d4f[_0x3e785b(0xec)]('.');let _0x32fcbf=_0x13d85d;for(const _0x1dcc5f of _0x14e136){if(_0x32fcbf==null||typeof _0x32fcbf!==_0x3e785b(0x10e))throw CliErrors[_0x3e785b(0x116)](_0x3e785b(0x12c)+_0x3f5d4f);_0x32fcbf=_0x32fcbf[_0x1dcc5f];}if(_0x32fcbf===undefined)throw CliErrors[_0x3e785b(0x116)](_0x3e785b(0x12c)+_0x3f5d4f);return console[_0x3e785b(0xf6)](typeof _0x32fcbf===_0x3e785b(0x10e)?JSON['stringify'](_0x32fcbf,null,0x2):String(_0x32fcbf)),{'ok':!![]};}const _0x396148=_0x13d85d[_0x3f5d4f];if(_0x396148===undefined)throw CliErrors[_0x3e785b(0x116)](_0x3e785b(0x12c)+_0x3f5d4f);return console[_0x3e785b(0xf6)](typeof _0x396148===_0x3e785b(0x10e)?JSON[_0x3e785b(0x109)](_0x396148,null,0x2):String(_0x396148)),{'ok':!![]};}},setDef={'service':a21_0x10930a(0x113),'command':a21_0x10930a(0xf9),'description':a21_0x10930a(0xfd),'risk':a21_0x10930a(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a21_0x10930a(0x108),'description':a21_0x10930a(0x128),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xbe5172){const _0x451ec5=a21_0x10930a,_0x4e969f=_0xbe5172[_0x451ec5(0xed)][0x0],_0x5766b7=_0xbe5172[_0x451ec5(0xed)][0x1];if(!_0x4e969f||_0x5766b7===undefined)throw CliErrors[_0x451ec5(0x116)]('Missing\x20key\x20or\x20value.',_0x451ec5(0x129)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x4e969f]&&!ENUM_KEYS[_0x4e969f][_0x451ec5(0xf0)](_0x5766b7))throw CliErrors['validation'](_0x451ec5(0x117)+_0x4e969f+_0x451ec5(0x100)+ENUM_KEYS[_0x4e969f][_0x451ec5(0x120)](',\x20'));if(_0x4e969f==='riskLevel')throw CliErrors['validation'](_0x451ec5(0x106));if(_0x4e969f===_0x451ec5(0xf3)){const _0x24a6c8=Number(_0x5766b7);if(isNaN(_0x24a6c8)||_0x24a6c8<=0x0)throw CliErrors[_0x451ec5(0x116)](_0x451ec5(0x110));}const _0x148672=resolveWriteScope({'explicitGlobal':_0xbe5172['bool'](_0x451ec5(0xf5)),'policy':_0x451ec5(0xf8)}),_0x305e4e=toScopeFlags(_0x148672),_0x13fbbb=readScopedConfig(_0x305e4e),_0x4076cf=parseAliasAppcodeSetKey(_0x4e969f);if(!_0x4076cf&&!isTopLevelConfigKey(_0x4e969f))throw CliErrors[_0x451ec5(0x116)](_0x451ec5(0x10c)+_0x4e969f+_0x451ec5(0xf7),_0x451ec5(0xe8)+getTopLevelConfigKeySummary()+_0x451ec5(0x123));return _0x4076cf?setLocalAppAlias(_0x13fbbb,_0x4076cf,_0x5766b7):_0x13fbbb[_0x4e969f]=_0x4e969f===_0x451ec5(0xf3)?Number(_0x5766b7):_0x5766b7,console[_0x451ec5(0xf6)](_0x451ec5(0x11b)+_0x4e969f+_0x451ec5(0x102)+_0x5766b7+'\x22'+(_0x148672==='global'?_0x451ec5(0xf2):'')),writeScopedConfig(_0x13fbbb,_0x305e4e),{'ok':!![]};}},deleteDef={'service':a21_0x10930a(0x113),'command':a21_0x10930a(0x10b),'description':a21_0x10930a(0x115),'risk':a21_0x10930a(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5e29ce){const _0x41e78d=a21_0x10930a,_0x5dac45=_0x5e29ce[_0x41e78d(0xed)][0x0];if(!_0x5dac45)throw CliErrors[_0x41e78d(0x116)](_0x41e78d(0x10d),_0x41e78d(0x129)+CLI_BIN_NAME+_0x41e78d(0x10f));const _0x174017=resolveWriteScope({'explicitGlobal':_0x5e29ce[_0x41e78d(0x101)](_0x41e78d(0xf5)),'policy':_0x41e78d(0xf8)}),_0x2682dc=toScopeFlags(_0x174017),_0xbddf92=readScopedConfig(_0x2682dc),_0x13f9f4=parseAliasDeleteKey(_0x5dac45);if(_0x13f9f4){if(!deleteLocalAppAlias(_0xbddf92,_0x13f9f4))throw CliErrors['validation'](_0x41e78d(0x12c)+_0x5dac45);return console[_0x41e78d(0xf6)](_0x41e78d(0x119)+_0x5dac45+'`'+(_0x174017===_0x41e78d(0xf5)?_0x41e78d(0xf2):'')),writeScopedConfig(_0xbddf92,_0x2682dc),{'ok':!![]};}if(_0xbddf92[_0x5dac45]===undefined)throw CliErrors[_0x41e78d(0x116)](_0x41e78d(0xfa)+_0x5dac45+_0x41e78d(0x11a));return delete _0xbddf92[_0x5dac45],console[_0x41e78d(0xf6)](_0x41e78d(0x119)+_0x5dac45+'`'+(_0x174017===_0x41e78d(0xf5)?_0x41e78d(0xf2):'')),writeScopedConfig(_0xbddf92,_0x2682dc),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
function a22_0x3367(_0x15b9b6,_0x478ac7){_0x15b9b6=_0x15b9b6-0x1db;const _0x264cad=a22_0x264c();let _0x336723=_0x264cad[_0x15b9b6];return _0x336723;}const a22_0x5cec3a=a22_0x3367;(function(_0x5b1519,_0x4c5425){const _0x22e6ad=a22_0x3367,_0x29becd=_0x5b1519();while(!![]){try{const _0x5524eb=-parseInt(_0x22e6ad(0x1e1))/0x1+-parseInt(_0x22e6ad(0x217))/0x2*(parseInt(_0x22e6ad(0x207))/0x3)+parseInt(_0x22e6ad(0x1e5))/0x4*(-parseInt(_0x22e6ad(0x1dd))/0x5)+-parseInt(_0x22e6ad(0x1ff))/0x6+parseInt(_0x22e6ad(0x1fe))/0x7+-parseInt(_0x22e6ad(0x20c))/0x8*(parseInt(_0x22e6ad(0x219))/0x9)+parseInt(_0x22e6ad(0x215))/0xa;if(_0x5524eb===_0x4c5425)break;else _0x29becd['push'](_0x29becd['shift']());}catch(_0x42cfbf){_0x29becd['push'](_0x29becd['shift']());}}}(a22_0x264c,0x85b6b));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';const GLOBAL_FLAG={'name':a22_0x5cec3a(0x218),'type':a22_0x5cec3a(0x208),'description':a22_0x5cec3a(0x205),'default':![]};function parseAliasAppcodeSetKey(_0x368d3b){const _0x1712b8=a22_0x5cec3a,_0x8dd50a=_0x368d3b[_0x1712b8(0x1f7)]('.');if(_0x8dd50a[_0x1712b8(0x1e3)]!==0x3||_0x8dd50a[0x0]!==_0x1712b8(0x21a)||_0x8dd50a[0x2]!==_0x1712b8(0x1fc))return undefined;const _0x55e745=_0x8dd50a[0x1]?.[_0x1712b8(0x1de)]();return _0x55e745?_0x55e745:undefined;}function parseAliasDeleteKey(_0x510c47){const _0x4d730a=a22_0x5cec3a,_0x44a2e4=_0x510c47['split']('.');if(_0x44a2e4['length']===0x2&&_0x44a2e4[0x0]===_0x4d730a(0x21a)){const _0x5d8483=_0x44a2e4[0x1]?.[_0x4d730a(0x1de)]();return _0x5d8483?{'alias':_0x5d8483}:undefined;}if(_0x44a2e4[_0x4d730a(0x1e3)]===0x3&&_0x44a2e4[0x0]===_0x4d730a(0x21a)&&_0x44a2e4[0x2]===_0x4d730a(0x1fc)){const _0x14d86d=_0x44a2e4[0x1]?.[_0x4d730a(0x1de)]();return _0x14d86d?{'alias':_0x14d86d,'field':_0x4d730a(0x1fc)}:undefined;}return undefined;}function setLocalAppAlias(_0x1c9c23,_0x5de411,_0x13e111){const _0x487052=a22_0x5cec3a,_0x12f497=_0x1c9c23[_0x487052(0x21a)]&&typeof _0x1c9c23['apps']==='object'&&!Array[_0x487052(0x1ec)](_0x1c9c23[_0x487052(0x21a)])?_0x1c9c23[_0x487052(0x21a)]:{},_0x4eddf4=_0x12f497[_0x5de411]&&typeof _0x12f497[_0x5de411]===_0x487052(0x202)&&!Array['isArray'](_0x12f497[_0x5de411])?_0x12f497[_0x5de411]:{};_0x4eddf4['appcode']=_0x13e111,_0x12f497[_0x5de411]=_0x4eddf4,_0x1c9c23[_0x487052(0x21a)]=_0x12f497;}function deleteLocalAppAlias(_0x4a986e,_0x4e95a0){const _0x51d7dc=a22_0x5cec3a;if(!_0x4a986e[_0x51d7dc(0x21a)]||typeof _0x4a986e['apps']!==_0x51d7dc(0x202)||Array[_0x51d7dc(0x1ec)](_0x4a986e[_0x51d7dc(0x21a)]))return![];const _0x547717=_0x4a986e[_0x51d7dc(0x21a)],_0x1d0345=_0x547717[_0x4e95a0['alias']];if(!_0x1d0345||typeof _0x1d0345!==_0x51d7dc(0x202)||Array[_0x51d7dc(0x1ec)](_0x1d0345))return![];if(!_0x4e95a0['field'])return delete _0x547717[_0x4e95a0['alias']],!![];if(!(_0x4e95a0['field']in _0x1d0345))return![];return delete _0x1d0345[_0x4e95a0[_0x51d7dc(0x212)]],Object[_0x51d7dc(0x1f1)](_0x1d0345)[_0x51d7dc(0x1e3)]===0x0&&delete _0x547717[_0x4e95a0[_0x51d7dc(0x1e8)]],!![];}function a22_0x264c(){const _0x2aedc9=['trim','List\x20current\x20config','Missing\x20key\x20argument.','415577TsrqDU','join','length','Config\x20files:\x0a','193412EGzMLY','args','Key\x20not\x20found:\x20','alias','\x20config\x20set\x20<key>\x20<value>\x20[--global]','pageSize','Usage:\x20','isArray','Missing\x20key\x20or\x20value.','log','bool','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','keys','(none)','\x20config\x20delete\x20<key>\x20[--global]','value','Deleted\x20`','Settable\x20keys:\x20','split','Delete\x20a\x20config\x20value','\x20\x20project:\x20','Get\x20a\x20config\x20value','includes','appcode',';\x20apps.<alias>.appcode','685566RlGzou','1541766pNthQY','list','\x20(global)','object','raw','validation','Write\x20to\x20global\x20config','Key\x20\x22','489UBDSRo','boolean','project-or-global-explicit','set','config','8Ucwxsh','\x22.\x20Allowed:\x20','\x20config\x20get\x20<key>','key','delete','../../context.js','field','\x22\x20not\x20found\x20at\x20top\x20level.','write','33244650MqtMAF','stringify','11686DivkqP','global','6896115SGpZrP','apps','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','get','50yNjscR'];a22_0x264c=function(){return _0x2aedc9;};return a22_0x264c();}const listDef={'service':'config','command':a22_0x5cec3a(0x200),'description':a22_0x5cec3a(0x1df),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4eedfb){const _0x22943f=a22_0x5cec3a,{buildConfigFromFlags:_0x285849}=await import(_0x22943f(0x211)),_0x1689c4=_0x285849({}),_0x55b8ef=getProjectConfigPath(),_0x3b4ca9=resolveWriteConfigPath(_0x22943f(0x218));if(_0x4eedfb['format']==='pretty')return{'ok':!![],'message':_0x22943f(0x1db)+(JSON['stringify'](_0x1689c4[_0x22943f(0x203)],null,0x2)+'\x0a\x0a')+_0x22943f(0x1e4)+(_0x22943f(0x1f9)+(_0x55b8ef??_0x22943f(0x1f2))+'\x0a')+('\x20\x20global:\x20\x20'+_0x3b4ca9)};return{'ok':!![],'data':{'effective':_0x1689c4['raw'],'configFiles':{'project':_0x55b8ef??null,'global':_0x3b4ca9}}};}},getDef={'service':a22_0x5cec3a(0x20b),'command':a22_0x5cec3a(0x1dc),'description':a22_0x5cec3a(0x1fa),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a22_0x5cec3a(0x1f0),'required':!![]}],'flags':[],async 'execute'(_0x4eb075){const _0x37ce73=a22_0x5cec3a,_0x570dfd=_0x4eb075[_0x37ce73(0x1e6)][0x0];if(!_0x570dfd)throw CliErrors[_0x37ce73(0x204)](_0x37ce73(0x1e0),_0x37ce73(0x1eb)+CLI_BIN_NAME+_0x37ce73(0x20e));const {buildConfigFromFlags:_0x57fb4d}=await import(_0x37ce73(0x211)),{raw:_0x428735}=_0x57fb4d({});if(_0x570dfd['includes']('.')){const _0x56fec9=_0x570dfd[_0x37ce73(0x1f7)]('.');let _0x36a5e4=_0x428735;for(const _0x3fdf24 of _0x56fec9){if(_0x36a5e4==null||typeof _0x36a5e4!==_0x37ce73(0x202))throw CliErrors[_0x37ce73(0x204)]('Key\x20not\x20found:\x20'+_0x570dfd);_0x36a5e4=_0x36a5e4[_0x3fdf24];}if(_0x36a5e4===undefined)throw CliErrors['validation'](_0x37ce73(0x1e7)+_0x570dfd);return console[_0x37ce73(0x1ee)](typeof _0x36a5e4===_0x37ce73(0x202)?JSON[_0x37ce73(0x216)](_0x36a5e4,null,0x2):String(_0x36a5e4)),{'ok':!![]};}const _0x1a2985=_0x428735[_0x570dfd];if(_0x1a2985===undefined)throw CliErrors[_0x37ce73(0x204)]('Key\x20not\x20found:\x20'+_0x570dfd);return console['log'](typeof _0x1a2985===_0x37ce73(0x202)?JSON[_0x37ce73(0x216)](_0x1a2985,null,0x2):String(_0x1a2985)),{'ok':!![]};}},setDef={'service':a22_0x5cec3a(0x20b),'command':a22_0x5cec3a(0x20a),'description':'Set\x20a\x20config\x20value','risk':a22_0x5cec3a(0x214),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x5cec3a(0x20f),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x5cec3a(0x1f4),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3a9d78){const _0x511498=a22_0x5cec3a,_0xb8f317=_0x3a9d78[_0x511498(0x1e6)][0x0],_0x33168b=_0x3a9d78[_0x511498(0x1e6)][0x1];if(!_0xb8f317||_0x33168b===undefined)throw CliErrors['validation'](_0x511498(0x1ed),_0x511498(0x1eb)+CLI_BIN_NAME+_0x511498(0x1e9));if(ENUM_KEYS[_0xb8f317]&&!ENUM_KEYS[_0xb8f317][_0x511498(0x1fb)](_0x33168b))throw CliErrors[_0x511498(0x204)]('Invalid\x20value\x20for\x20\x22'+_0xb8f317+_0x511498(0x20d)+ENUM_KEYS[_0xb8f317][_0x511498(0x1e2)](',\x20'));if(_0xb8f317==='riskLevel')throw CliErrors[_0x511498(0x204)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0xb8f317===_0x511498(0x1ea)){const _0x355a30=Number(_0x33168b);if(isNaN(_0x355a30)||_0x355a30<=0x0)throw CliErrors[_0x511498(0x204)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x3bc673=resolveWriteScope({'explicitGlobal':_0x3a9d78[_0x511498(0x1ef)](_0x511498(0x218)),'policy':_0x511498(0x209)}),_0x6a8793=toScopeFlags(_0x3bc673),_0x5ab7a6=readScopedConfig(_0x6a8793),_0x35d1aa=parseAliasAppcodeSetKey(_0xb8f317);if(!_0x35d1aa&&!isTopLevelConfigKey(_0xb8f317))throw CliErrors[_0x511498(0x204)]('Top-level\x20key\x20\x22'+_0xb8f317+'\x22\x20is\x20not\x20settable.',_0x511498(0x1f6)+getTopLevelConfigKeySummary()+_0x511498(0x1fd));return _0x35d1aa?setLocalAppAlias(_0x5ab7a6,_0x35d1aa,_0x33168b):_0x5ab7a6[_0xb8f317]=_0xb8f317==='pageSize'?Number(_0x33168b):_0x33168b,console[_0x511498(0x1ee)]('Set\x20`'+_0xb8f317+'`\x20=\x20\x22'+_0x33168b+'\x22'+(_0x3bc673===_0x511498(0x218)?_0x511498(0x201):'')),writeScopedConfig(_0x5ab7a6,_0x6a8793),{'ok':!![]};}},deleteDef={'service':a22_0x5cec3a(0x20b),'command':a22_0x5cec3a(0x210),'description':a22_0x5cec3a(0x1f8),'risk':a22_0x5cec3a(0x214),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x5cec3a(0x20f),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5bae17){const _0xc768ef=a22_0x5cec3a,_0x318e3f=_0x5bae17['args'][0x0];if(!_0x318e3f)throw CliErrors[_0xc768ef(0x204)](_0xc768ef(0x1e0),_0xc768ef(0x1eb)+CLI_BIN_NAME+_0xc768ef(0x1f3));const _0x136d91=resolveWriteScope({'explicitGlobal':_0x5bae17[_0xc768ef(0x1ef)]('global'),'policy':_0xc768ef(0x209)}),_0x3f03c2=toScopeFlags(_0x136d91),_0x5ca540=readScopedConfig(_0x3f03c2),_0xc8028e=parseAliasDeleteKey(_0x318e3f);if(_0xc8028e){if(!deleteLocalAppAlias(_0x5ca540,_0xc8028e))throw CliErrors[_0xc768ef(0x204)](_0xc768ef(0x1e7)+_0x318e3f);return console['log'](_0xc768ef(0x1f5)+_0x318e3f+'`'+(_0x136d91===_0xc768ef(0x218)?_0xc768ef(0x201):'')),writeScopedConfig(_0x5ca540,_0x3f03c2),{'ok':!![]};}if(_0x5ca540[_0x318e3f]===undefined)throw CliErrors[_0xc768ef(0x204)](_0xc768ef(0x206)+_0x318e3f+_0xc768ef(0x213));return delete _0x5ca540[_0x318e3f],console[_0xc768ef(0x1ee)](_0xc768ef(0x1f5)+_0x318e3f+'`'+(_0x136d91==='global'?_0xc768ef(0x201):'')),writeScopedConfig(_0x5ca540,_0x3f03c2),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x97548b,_0x4005af){var _0x3c7479=a23_0x5c5e,_0x1d55a4=_0x97548b();while(!![]){try{var _0x99597d=-parseInt(_0x3c7479(0x1e4))/0x1*(parseInt(_0x3c7479(0x1dd))/0x2)+-parseInt(_0x3c7479(0x1e1))/0x3*(parseInt(_0x3c7479(0x1e3))/0x4)+parseInt(_0x3c7479(0x1e2))/0x5*(-parseInt(_0x3c7479(0x1da))/0x6)+parseInt(_0x3c7479(0x1e0))/0x7+parseInt(_0x3c7479(0x1de))/0x8+-parseInt(_0x3c7479(0x1dc))/0x9*(parseInt(_0x3c7479(0x1db))/0xa)+parseInt(_0x3c7479(0x1df))/0xb;if(_0x99597d===_0x4005af)break;else _0x1d55a4['push'](_0x1d55a4['shift']());}catch(_0x4093fe){_0x1d55a4['push'](_0x1d55a4['shift']());}}}(a23_0x54cd,0x722c2));function a23_0x54cd(){var _0x2b4e37=['719592CcMrFZ','8890670nYSMZZ','9WtpVnF','462620kHsniI','589408aGGGED','22458612rSvGwo','5273373feNzug','192732lxcCOg','10fBznuy','36SizSvW','3avfXNb'];a23_0x54cd=function(){return _0x2b4e37;};return a23_0x54cd();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x5c5e(_0xc49df,_0x3cf810){_0xc49df=_0xc49df-0x1da;var _0x54cdf5=a23_0x54cd();var _0x5c5e67=_0x54cdf5[_0xc49df];return _0x5c5e67;}export{CLI_BIN_NAME};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 a23_0x59e2(_0x5edd16,_0x1e192d){_0x5edd16=_0x5edd16-0x185;const _0x2bfcd=a23_0x2bfc();let _0x59e28c=_0x2bfcd[_0x5edd16];return _0x59e28c;}const a23_0x167b1a=a23_0x59e2;(function(_0x24cc67,_0x2a0a6a){const _0x4611e3=a23_0x59e2,_0x2b7841=_0x24cc67();while(!![]){try{const _0x3c17e9=parseInt(_0x4611e3(0x1cc))/0x1+-parseInt(_0x4611e3(0x1a2))/0x2*(-parseInt(_0x4611e3(0x1a4))/0x3)+parseInt(_0x4611e3(0x1a0))/0x4+-parseInt(_0x4611e3(0x1b8))/0x5+-parseInt(_0x4611e3(0x1b2))/0x6*(-parseInt(_0x4611e3(0x1d0))/0x7)+parseInt(_0x4611e3(0x198))/0x8+-parseInt(_0x4611e3(0x1da))/0x9*(parseInt(_0x4611e3(0x1bd))/0xa);if(_0x3c17e9===_0x2a0a6a)break;else _0x2b7841['push'](_0x2b7841['shift']());}catch(_0x162650){_0x2b7841['push'](_0x2b7841['shift']());}}}(a23_0x2bfc,0x9d447));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':a23_0x167b1a(0x19b),'operation':a23_0x167b1a(0x19b),'risk':a23_0x167b1a(0x1cf),'paramsRequired':![],'description':a23_0x167b1a(0x1cd),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a23_0x167b1a(0x19a),'helpExtra':[a23_0x167b1a(0x1c8),'\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}}',a23_0x167b1a(0x1b6),a23_0x167b1a(0x185),a23_0x167b1a(0x187),a23_0x167b1a(0x1af),a23_0x167b1a(0x195),a23_0x167b1a(0x19d),'\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}}',a23_0x167b1a(0x1b0),a23_0x167b1a(0x1d4),'',a23_0x167b1a(0x1b5),a23_0x167b1a(0x1d8),a23_0x167b1a(0x19c),'',a23_0x167b1a(0x1ca),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a23_0x167b1a(0x193),a23_0x167b1a(0x189),a23_0x167b1a(0x1c6),a23_0x167b1a(0x1b1),'',a23_0x167b1a(0x19e),a23_0x167b1a(0x1a9),a23_0x167b1a(0x1c9),a23_0x167b1a(0x188)][a23_0x167b1a(0x1a1)]('\x0a')},{'command':a23_0x167b1a(0x18e),'operation':'getOne','risk':a23_0x167b1a(0x1cf),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a23_0x167b1a(0x18a)},{'command':a23_0x167b1a(0x18d),'operation':a23_0x167b1a(0x18d),'risk':a23_0x167b1a(0x194),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a23_0x167b1a(0x18b)},{'command':a23_0x167b1a(0x1c2),'operation':a23_0x167b1a(0x1c2),'risk':a23_0x167b1a(0x194),'paramsRequired':!![],'description':a23_0x167b1a(0x1ce),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a23_0x167b1a(0x19f),'operation':a23_0x167b1a(0x19f),'risk':'write','paramsRequired':!![],'description':a23_0x167b1a(0x1bb),'paramsHint':a23_0x167b1a(0x1b9)+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a23_0x167b1a(0x1ae),'operation':a23_0x167b1a(0x1ae),'risk':'high-risk-write','paramsRequired':!![],'description':a23_0x167b1a(0x1ab),'paramsHint':a23_0x167b1a(0x18a)},{'command':a23_0x167b1a(0x18c),'operation':a23_0x167b1a(0x18c),'risk':'read','paramsRequired':![],'description':a23_0x167b1a(0x1d2),'paramsHint':a23_0x167b1a(0x1bf)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a23_0x167b1a(0x1a5),'\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}',a23_0x167b1a(0x1bc),'\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}',a23_0x167b1a(0x191),a23_0x167b1a(0x1ba),a23_0x167b1a(0x196),a23_0x167b1a(0x1d3),'','\x20\x20PARAMS\x20STRUCTURE',a23_0x167b1a(0x18f),a23_0x167b1a(0x1d9),a23_0x167b1a(0x1c0),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a23_0x167b1a(0x1aa),a23_0x167b1a(0x1b7),'',a23_0x167b1a(0x1d6),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a23_0x167b1a(0x197),'',a23_0x167b1a(0x1be),a23_0x167b1a(0x1a7),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a23_0x167b1a(0x1a1)]('\x0a')}];function makeDataCommand(_0x3923b2){const _0x47c5ae=a23_0x167b1a,_0x3469b5='data\x20'+_0x3923b2[_0x47c5ae(0x1ac)],_0x334caa={'service':_0x47c5ae(0x1c5),'command':_0x3923b2[_0x47c5ae(0x1ac)],'description':_0x3923b2[_0x47c5ae(0x199)],'risk':_0x3923b2[_0x47c5ae(0x1a6)],'helpExtra':_0x3923b2['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3923b2[_0x47c5ae(0x192)]}],'validate':async _0x6483cb=>{const _0x4e8636=_0x47c5ae;_0x3923b2[_0x4e8636(0x1a8)]&&requireAnyOf(_0x6483cb,[_0x4e8636(0x1d7)],_0x3469b5),_0x3923b2['operation']===_0x4e8636(0x1c2)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x6483cb[_0x4e8636(0x1c4)](_0x4e8636(0x1d7)))),_0x3923b2[_0x4e8636(0x1a3)]===_0x4e8636(0x19f)&&parseUpdateIdsFromParams(parseJsonParams(_0x6483cb['str'](_0x4e8636(0x1d7)))??{});},async 'execute'(_0xa3e73){const _0x949b5c=_0x47c5ae,_0x50a467=_0xa3e73[_0x949b5c(0x1c4)](_0x949b5c(0x1cb)),_0x5bea09=_0x3923b2[_0x949b5c(0x1a3)]===_0x949b5c(0x1c2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xa3e73['str'](_0x949b5c(0x1d7)))):parseJsonParams(_0xa3e73[_0x949b5c(0x1c4)](_0x949b5c(0x1d7)))??{},_0xd06d94=_0x3923b2[_0x949b5c(0x1a3)]===_0x949b5c(0x19f)?parseUpdateIdsFromParams(_0x5bea09):undefined,_0x230c6e=_0xd06d94?normalizeUpdateParamsForRuntime(_0x5bea09,_0xd06d94):_0x5bea09,_0x5224dc=Date[_0x949b5c(0x1c7)](),_0x41a93a=await executeData(_0x50a467,_0x3923b2[_0x949b5c(0x1a3)],_0x230c6e),_0x1288e6=Date[_0x949b5c(0x1c7)]()-_0x5224dc,_0x4eb3d4=_0xd06d94&&_0xd06d94['length']>0x1?buildBatchUpdateResult(_0xd06d94,_0x41a93a):_0x41a93a;return{'ok':!![],'data':{'result':_0x4eb3d4,'elapsed':_0x1288e6},'message':_0x949b5c(0x1d1)+_0x3923b2[_0x949b5c(0x1ac)]+_0x949b5c(0x1ad)+_0x1288e6+'ms'};}};return _0x3923b2[_0x47c5ae(0x1a6)]!=='read'&&(_0x334caa[_0x47c5ae(0x1b3)]=async _0x29453a=>{const _0xd997ac=_0x47c5ae,_0x3bfcd7=_0x29453a[_0xd997ac(0x1c4)]('code'),_0x5f0f8c=_0x3923b2[_0xd997ac(0x1a3)]===_0xd997ac(0x1c2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x29453a['str']('params'))):parseJsonParams(_0x29453a['str'](_0xd997ac(0x1d7)))??{};let _0x32bbdc=_0x5f0f8c;if(_0x3923b2[_0xd997ac(0x1a3)]===_0xd997ac(0x19f)){const _0x33d9d4=parseUpdateIdsFromParams(_0x5f0f8c);_0x32bbdc=normalizeUpdateParamsForRuntime(_0x5f0f8c,_0x33d9d4);}return dryRun(_0xd997ac(0x186),'/api/{appCode}/'+_0x3bfcd7+'/'+_0x3923b2[_0xd997ac(0x1a3)])[_0xd997ac(0x1d5)](_0x32bbdc)[_0xd997ac(0x199)](_0xd997ac(0x1c3)+_0x3923b2[_0xd997ac(0x1ac)]+_0xd997ac(0x1c1)+_0x3bfcd7)[_0xd997ac(0x190)]();}),_0x334caa;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0x549486,_0x73e960){const _0x166e4c=a23_0x167b1a;return{'operation':'update','mode':'batch','ids':_0x549486,'total':_0x549486[_0x166e4c(0x1b4)],'result':_0x73e960};}function a23_0x2bfc(){const _0x18cc89=['\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\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}}','body','\x20\x20EXAMPLES','params','\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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','45cVdelL','\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}}','POST','\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\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\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}]','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','aggregate','create','getOne','\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]','build','\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}','paramsHint','\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]','write','\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\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\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','10129312znrViM','description','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','filter','\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$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]}}','\x20\x20PAGINATION','update','5023708wlPTsa','join','6OjjyuW','operation','603933FsBPJG','\x20\x20AGGREGATE\x20TYPES','risk','\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','paramsRequired','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\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}}]','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','command','\x20completed\x20in\x20','delete','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','414NivhgX','dryRun','length','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','6309210uYgSLA','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\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}','Update\x20an\x20existing\x20record','\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}','5560010AMUzIm','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20on\x20dataset\x20','batchCreate','Preview:\x20data\x20','str','data','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','now','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','code','519677bEoakx','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','read','105539CegROI','data\x20','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)'];a23_0x2bfc=function(){return _0x18cc89;};return a23_0x2bfc();}
|
|
1
|
+
function a24_0xdc63(){const _0x5ce8e2=['\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','description','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','101672IvwQTY','risk','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\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}}','923868FpDHOI','46188kwolnG','aggregate','code','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','POST','join','body','\x20\x20EXAMPLES','map','data\x20','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','operation','dryRun','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','update','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','187YYnKtA','paramsRequired','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','high-risk-write','\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}}','build','4341VPGtJg','6893210seWWMN','getOne','params','4482558pSNKCS','batchCreate','\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','175hUgVtX','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','write','\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\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$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]}}','\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\x20LOGICAL\x20COMBINATORS','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','Filter\x20dataset\x20records\x20with\x20query\x20conditions','str','\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}}','data','\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}}','Preview:\x20data\x20','read','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','command','\x20on\x20dataset\x20','\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\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}','\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\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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}}','840YvoPMk','\x20completed\x20in\x20','filter','30UpzMIT','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','batch','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','Get\x20a\x20single\x20record\x20by\x20ID','create','7KVivjp','now','\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','2346195ZzQsNX','delete'];a24_0xdc63=function(){return _0x5ce8e2;};return a24_0xdc63();}const a24_0x3a3692=a24_0x4018;(function(_0x3fc2a3,_0x277604){const _0x2c2f7f=a24_0x4018,_0x389ef2=_0x3fc2a3();while(!![]){try{const _0x4aaa5b=-parseInt(_0x2c2f7f(0x152))/0x1*(parseInt(_0x2c2f7f(0x11d))/0x2)+-parseInt(_0x2c2f7f(0x127))/0x3+-parseInt(_0x2c2f7f(0x12e))/0x4*(-parseInt(_0x2c2f7f(0xff))/0x5)+parseInt(_0x2c2f7f(0xfc))/0x6*(-parseInt(_0x2c2f7f(0x123))/0x7)+-parseInt(_0x2c2f7f(0x11a))/0x8*(-parseInt(_0x2c2f7f(0x13a))/0x9)+-parseInt(_0x2c2f7f(0x153))/0xa+parseInt(_0x2c2f7f(0x14c))/0xb*(parseInt(_0x2c2f7f(0x139))/0xc);if(_0x4aaa5b===_0x277604)break;else _0x389ef2['push'](_0x389ef2['shift']());}catch(_0x208c7e){_0x389ef2['push'](_0x389ef2['shift']());}}}(a24_0xdc63,0x6ec4d));import{executeData}from'../../core/sdk-client.js';function a24_0x4018(_0x440768,_0x4d4e3f){_0x440768=_0x440768-0xfa;const _0xdc634=a24_0xdc63();let _0x401857=_0xdc634[_0x440768];return _0x401857;}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_0x3a3692(0x11c),'operation':a24_0x3a3692(0x11c),'risk':a24_0x3a3692(0x111),'paramsRequired':![],'description':a24_0x3a3692(0x10b),'paramsHint':a24_0x3a3692(0x11e)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':['\x20\x20WHERE\x20OPERATORS',a24_0x3a3692(0x10d),a24_0x3a3692(0x138),'\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_0x3a3692(0x117),a24_0x3a3692(0x10f),a24_0x3a3692(0x10a),a24_0x3a3692(0x105),a24_0x3a3692(0x150),a24_0x3a3692(0x119),a24_0x3a3692(0x129),'',a24_0x3a3692(0x107),a24_0x3a3692(0x104),'\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}}]}','',a24_0x3a3692(0x149),a24_0x3a3692(0x13d),a24_0x3a3692(0x106),a24_0x3a3692(0x103),a24_0x3a3692(0x132),a24_0x3a3692(0x118),'','\x20\x20PAGINATION',a24_0x3a3692(0x131),a24_0x3a3692(0x134),a24_0x3a3692(0x14b)][a24_0x3a3692(0x13f)]('\x0a')},{'command':'getOne','operation':a24_0x3a3692(0xfa),'risk':'read','paramsRequired':!![],'description':a24_0x3a3692(0x121),'paramsHint':a24_0x3a3692(0x126)},{'command':a24_0x3a3692(0x122),'operation':a24_0x3a3692(0x122),'risk':'write','paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a24_0x3a3692(0xfd),'operation':a24_0x3a3692(0xfd),'risk':a24_0x3a3692(0x102),'paramsRequired':!![],'description':a24_0x3a3692(0x144),'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_0x3a3692(0x14a),'risk':a24_0x3a3692(0x102),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a24_0x3a3692(0x136)+a24_0x3a3692(0x112)},{'command':a24_0x3a3692(0x128),'operation':a24_0x3a3692(0x128),'risk':a24_0x3a3692(0x14f),'paramsRequired':!![],'description':a24_0x3a3692(0x145),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'aggregate','operation':a24_0x3a3692(0x13b),'risk':a24_0x3a3692(0x111),'paramsRequired':![],'description':a24_0x3a3692(0x108),'paramsHint':a24_0x3a3692(0x12d)+a24_0x3a3692(0x14e),'helpExtra':['\x20\x20AGGREGATE\x20TYPES',a24_0x3a3692(0x116),a24_0x3a3692(0x125),a24_0x3a3692(0x137),a24_0x3a3692(0x12b),'\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\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_0x3a3692(0x115),'',a24_0x3a3692(0x100),'\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]',a24_0x3a3692(0x130),a24_0x3a3692(0x101),a24_0x3a3692(0x12a),'\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}}]',a24_0x3a3692(0x109),'',a24_0x3a3692(0x141),a24_0x3a3692(0x120),a24_0x3a3692(0x133),'',a24_0x3a3692(0x146),a24_0x3a3692(0xfe),'',a24_0x3a3692(0x135)][a24_0x3a3692(0x13f)]('\x0a')}];function makeDataCommand(_0x244da7){const _0x37ef16=a24_0x3a3692,_0x4cf488=_0x37ef16(0x143)+_0x244da7[_0x37ef16(0x113)],_0xf683f6={'service':_0x37ef16(0x10e),'command':_0x244da7['command'],'description':_0x244da7['description'],'risk':_0x244da7[_0x37ef16(0x12f)],'helpExtra':_0x244da7['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x244da7['paramsHint']}],'validate':async _0x3bfc31=>{const _0x22d203=_0x37ef16;_0x244da7[_0x22d203(0x14d)]&&requireAnyOf(_0x3bfc31,[_0x22d203(0xfb)],_0x4cf488),_0x244da7['operation']===_0x22d203(0xfd)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3bfc31[_0x22d203(0x10c)]('params'))),_0x244da7[_0x22d203(0x147)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x3bfc31['str']('params'))??{});},async 'execute'(_0xe06eb4){const _0x87e515=_0x37ef16,_0x19fb96=_0xe06eb4['str'](_0x87e515(0x13c)),_0x25caae=_0x244da7[_0x87e515(0x147)]===_0x87e515(0xfd)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xe06eb4[_0x87e515(0x10c)](_0x87e515(0xfb)))):parseJsonParams(_0xe06eb4['str'](_0x87e515(0xfb)))??{},_0x1779f8=_0x244da7[_0x87e515(0x147)]===_0x87e515(0x14a)?parseUpdateIdsFromParams(_0x25caae):undefined,_0x412db6=_0x1779f8?normalizeUpdateParamsForRuntime(_0x25caae,_0x1779f8):_0x25caae,_0xa37531=Date[_0x87e515(0x124)](),_0x388395=await executeData(_0x19fb96,_0x244da7[_0x87e515(0x147)],_0x412db6),_0x5c5539=Date[_0x87e515(0x124)]()-_0xa37531,_0x37b8c1=_0x1779f8&&_0x1779f8['length']>0x1?buildBatchUpdateResult(_0x1779f8,_0x388395):_0x388395;return{'ok':!![],'data':{'result':_0x37b8c1,'elapsed':_0x5c5539},'message':_0x87e515(0x143)+_0x244da7[_0x87e515(0x113)]+_0x87e515(0x11b)+_0x5c5539+'ms'};}};return _0x244da7['risk']!==_0x37ef16(0x111)&&(_0xf683f6[_0x37ef16(0x148)]=async _0x41a61e=>{const _0x2359bf=_0x37ef16,_0x59781f=_0x41a61e['str'](_0x2359bf(0x13c)),_0x3311d9=_0x244da7[_0x2359bf(0x147)]===_0x2359bf(0xfd)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x41a61e['str'](_0x2359bf(0xfb)))):parseJsonParams(_0x41a61e[_0x2359bf(0x10c)]('params'))??{};let _0x58ea9c=_0x3311d9;if(_0x244da7[_0x2359bf(0x147)]===_0x2359bf(0x14a)){const _0x2e4731=parseUpdateIdsFromParams(_0x3311d9);_0x58ea9c=normalizeUpdateParamsForRuntime(_0x3311d9,_0x2e4731);}return dryRun(_0x2359bf(0x13e),'/api/{appCode}/'+_0x59781f+'/'+_0x244da7['operation'])[_0x2359bf(0x140)](_0x58ea9c)[_0x2359bf(0x12c)](_0x2359bf(0x110)+_0x244da7[_0x2359bf(0x113)]+_0x2359bf(0x114)+_0x59781f)[_0x2359bf(0x151)]();}),_0xf683f6;}export const dataDefinitions=specs[a24_0x3a3692(0x142)](makeDataCommand);function buildBatchUpdateResult(_0x293f36,_0xa755a4){const _0x242f34=a24_0x3a3692;return{'operation':_0x242f34(0x14a),'mode':_0x242f34(0x11f),'ids':_0x293f36,'total':_0x293f36['length'],'result':_0xa755a4};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a25_0x354d69=a25_0x2056;(function(_0x36bdec,_0x37b7e9){const _0x52013b=a25_0x2056,_0x370685=_0x36bdec();while(!![]){try{const _0x10fd21=-parseInt(_0x52013b(0x93))/0x1+parseInt(_0x52013b(0x8e))/0x2*(parseInt(_0x52013b(0x86))/0x3)+-parseInt(_0x52013b(0x97))/0x4*(parseInt(_0x52013b(0xae))/0x5)+parseInt(_0x52013b(0x96))/0x6+parseInt(_0x52013b(0xa7))/0x7*(parseInt(_0x52013b(0xbf))/0x8)+parseInt(_0x52013b(0xb1))/0x9*(parseInt(_0x52013b(0x9a))/0xa)+parseInt(_0x52013b(0x8f))/0xb*(-parseInt(_0x52013b(0x88))/0xc);if(_0x10fd21===_0x37b7e9)break;else _0x370685['push'](_0x370685['shift']());}catch(_0x5c02f1){_0x370685['push'](_0x370685['shift']());}}}(a25_0x17a2,0x6bbed));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x975c9){const _0xf50ea2=a25_0x2056;if(_0x975c9[_0xf50ea2(0xa8)])return null;const _0x1faa78=Boolean(_0x975c9[_0xf50ea2(0x99)]!==undefined||_0x975c9[_0xf50ea2(0xa5)]!==undefined);let _0x16b48b={};if(!_0x1faa78&&typeof _0x975c9[_0xf50ea2(0xbb)]===_0xf50ea2(0xc4))try{_0x16b48b=JSON[_0xf50ea2(0xaa)](_0x975c9[_0xf50ea2(0xbb)]);}catch{}const _0x2089dd=_0x1faa78?_0x975c9[_0xf50ea2(0x85)]:_0x975c9[_0xf50ea2(0x84)],_0x2c1647=_0x1faa78?_0x975c9['displayName']:_0x975c9[_0xf50ea2(0x85)],_0x581ffa=_0x1faa78?_0x975c9['doType']:_0x975c9[_0xf50ea2(0xbc)]||_0x975c9[_0xf50ea2(0x87)],_0x516bf4=_0x1faa78?_0x975c9[_0xf50ea2(0xba)]===!![]:_0x16b48b[_0xf50ea2(0xba)]===!![],_0x906b32=_0x1faa78?_0x975c9['required']===!![]:_0x16b48b[_0xf50ea2(0xc3)]===!![],_0x2b128e=_0x1faa78?_0x975c9[_0xf50ea2(0x8d)]??null:_0x16b48b[_0xf50ea2(0x8d)]??null,_0x2edb10={'name':_0x2089dd,'displayName':_0x2c1647||_0x2089dd,'type':_0x581ffa,'dbType':_0x975c9[_0xf50ea2(0xb0)],'pk':_0x516bf4,'required':_0x906b32,'description':_0x975c9['description']||undefined};return Array['isArray'](_0x2b128e)&&_0x2b128e['length']>0x0&&(_0x2edb10[_0xf50ea2(0x8d)]=_0x2b128e),_0x2edb10;}function a25_0x2056(_0x544fe3,_0x10a95f){_0x544fe3=_0x544fe3-0x7e;const _0x17a2ff=a25_0x17a2();let _0x205684=_0x17a2ff[_0x544fe3];return _0x205684;}function parseJsonMaybe(_0x586a64){const _0x433ede=a25_0x2056;if(typeof _0x586a64!==_0x433ede(0xc4))return _0x586a64;try{return JSON[_0x433ede(0xaa)](_0x586a64);}catch{return _0x586a64;}}function normalizeOperationEntry(_0x406d0c,_0x3a171a){const _0xea2e12=a25_0x2056;if(!_0x3a171a||typeof _0x3a171a!==_0xea2e12(0x9f))return null;if(!_0x3a171a[_0xea2e12(0xc0)]||!_0x3a171a[_0xea2e12(0x8b)])return null;const _0x586235={'name':_0x406d0c,'method':_0x3a171a[_0xea2e12(0xc0)],'path':_0x3a171a[_0xea2e12(0x8b)]};if(_0x3a171a['host'])_0x586235['host']=_0x3a171a['host'];if(_0x3a171a[_0xea2e12(0xa2)]!=null)_0x586235['requestBody']=parseJsonMaybe(_0x3a171a[_0xea2e12(0xa2)]);if(_0x3a171a['responseBody']!=null)_0x586235[_0xea2e12(0xb5)]=parseJsonMaybe(_0x3a171a[_0xea2e12(0xb5)]);if(_0x3a171a[_0xea2e12(0xa1)]!=null)_0x586235[_0xea2e12(0xa1)]=_0x3a171a[_0xea2e12(0xa1)];if(_0x3a171a[_0xea2e12(0x94)]!=null)_0x586235[_0xea2e12(0x94)]=_0x3a171a[_0xea2e12(0x94)];if(Array[_0xea2e12(0xb9)](_0x3a171a[_0xea2e12(0x9d)]))_0x586235[_0xea2e12(0x9d)]=_0x3a171a['requestFields'];if(Array[_0xea2e12(0xb9)](_0x3a171a[_0xea2e12(0xb7)]))_0x586235[_0xea2e12(0xb7)]=_0x3a171a['responseFields'];return _0x586235;}function summarizeDbtable(_0x3ef26c){const _0x3e4bf3=a25_0x2056,_0x5757e7={},_0x36d727=['dbId','dbName',_0x3e4bf3(0xac),_0x3e4bf3(0x9b),_0x3e4bf3(0xba),'allFields','logicField',_0x3e4bf3(0x9e),'updateTimeField',_0x3e4bf3(0xbd),_0x3e4bf3(0x92),_0x3e4bf3(0x95),_0x3e4bf3(0xaf),_0x3e4bf3(0xc2),_0x3e4bf3(0xb8)];for(const _0x30b1e2 of _0x36d727){if(_0x3ef26c[_0x30b1e2]!==undefined)_0x5757e7[_0x30b1e2]=_0x3ef26c[_0x30b1e2];}return typeof _0x5757e7[_0x3e4bf3(0x8c)]===_0x3e4bf3(0xc4)&&_0x5757e7[_0x3e4bf3(0x8c)]['length']>0x0&&(_0x5757e7[_0x3e4bf3(0x81)]=_0x5757e7[_0x3e4bf3(0x8c)][_0x3e4bf3(0xb6)](',')[_0x3e4bf3(0x80)](_0x2ab63f=>_0x2ab63f[_0x3e4bf3(0x91)]())[_0x3e4bf3(0xab)](Boolean)),_0x5757e7;}function normalizeRelatedPages(_0x161692){const _0x5d02eb=a25_0x2056;if(!Array[_0x5d02eb(0xb9)](_0x161692))return[];return _0x161692[_0x5d02eb(0xab)](_0x33b415=>_0x33b415&&typeof _0x33b415===_0x5d02eb(0x9f))['map'](_0x5f45e1=>({'id':_0x5f45e1['id'],'type':_0x5f45e1[_0x5d02eb(0xbc)],'code':_0x5f45e1[_0x5d02eb(0x84)],'title':_0x5f45e1[_0x5d02eb(0xb4)],'deleted':_0x5f45e1[_0x5d02eb(0xa8)]===!![]}));}function a25_0x17a2(){const _0x19ea98=['string','description','length','indexes','map','allFieldNames','doVersion','read','code','name','1974117rJSSiS','dataType','10436604OvKtUo','properties','dbId','path','allFields','options','2PSwvXN','11KbkviZ','formatRules','trim','creatorNameField','793866OxRESK','afterScriptId','modifierIdField','2062638suvxGj','628aOZOQh','push','displayName','10wxCqew','datasetKey','tableComment','requestFields','createTimeField','object','dataset','beforeScriptId','requestBody','modelId','fields','doType','str','3787Bdlqnj','deleted','find','parse','filter','tableName','dbtableConfig','5305EWkgrH','modifierNameField','dbType','6309738Neozkx','columnCodeListWithDeleted','relations','title','responseBody','split','responseFields','dblinkInfoDTO','isArray','pkField','extend','type','creatorIdField','source','8408CXJPjT','method','operations','labelField','required'];a25_0x17a2=function(){return _0x19ea98;};return a25_0x17a2();}function normalizeFallbackFieldName(_0x3fe7de,_0x46444e){const _0x535e34=a25_0x2056,_0x49ea52=_0x3fe7de[_0x535e34(0x91)]();if(!_0x49ea52)return null;return{'name':_0x49ea52,'displayName':_0x49ea52,'type':undefined,'dbType':undefined,'pk':_0x49ea52===_0x46444e,'required':![],'description':undefined};}async function loadListFieldFallback(_0x58bf65,_0x304aa8){const _0x3bd5c7=a25_0x2056;if(!_0x58bf65||!_0x304aa8)return[];try{const _0x1cb569=await listDatasets(_0x58bf65,{'code':_0x304aa8}),_0x17a995=_0x1cb569[_0x3bd5c7(0xa9)](_0x443b26=>_0x443b26[_0x3bd5c7(0x84)]===_0x304aa8)??_0x1cb569[0x0],_0x3aa1d6=_0x17a995?.[_0x3bd5c7(0xad)]??{},_0x253188=typeof _0x3aa1d6[_0x3bd5c7(0x8c)]===_0x3bd5c7(0xc4)?_0x3aa1d6[_0x3bd5c7(0x8c)]['split'](','):[];return _0x253188[_0x3bd5c7(0x80)](_0x503d39=>normalizeFallbackFieldName(_0x503d39,_0x3aa1d6['pkField']))[_0x3bd5c7(0xab)](_0x14e553=>_0x14e553!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x354d69(0xa0),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a25_0x354d69(0x83),'flags':[CODE_FLAG],async 'execute'(_0x3a71dd){const _0x4adb01=a25_0x354d69,_0x6b7027=await getDatasetDetail(_0x3a71dd[_0x4adb01(0xa6)](_0x4adb01(0x84))),_0xdd794b=Array['isArray'](_0x6b7027[_0x4adb01(0xa4)])?_0x6b7027[_0x4adb01(0xa4)]:Array[_0x4adb01(0xb9)](_0x6b7027[_0x4adb01(0x89)])?_0x6b7027[_0x4adb01(0x89)]:[];let _0x2b81d8=_0xdd794b[_0x4adb01(0x80)](_0xaf2e67=>normalizeField(_0xaf2e67))[_0x4adb01(0xab)](_0x58954c=>_0x58954c!==null);_0x2b81d8[_0x4adb01(0x7e)]===0x0&&(_0x2b81d8=await loadListFieldFallback(_0x3a71dd['appCode'],_0x3a71dd[_0x4adb01(0xa6)](_0x4adb01(0x84))));const _0x5d0894=_0x6b7027[_0x4adb01(0xc1)]??{},_0x36ca7a=[];for(const [_0x33972b,_0x2bdf3c]of Object['entries'](_0x5d0894)){const _0x11ffc7=normalizeOperationEntry(_0x33972b,_0x2bdf3c);if(_0x11ffc7)_0x36ca7a[_0x4adb01(0x98)](_0x11ffc7);}const _0x3ad998=_0x6b7027[_0x4adb01(0xad)]??{},_0x3baeaf=_0x6b7027['dataset']??{},_0x4b1666=_0x3ad998[_0x4adb01(0x8a)]!=null?{'id':_0x3ad998[_0x4adb01(0x8a)],'name':_0x3ad998['dbName']??null}:undefined;let _0x32ecbb;return typeof _0x6b7027['extend']===_0x4adb01(0xc4)&&(_0x32ecbb=parseJsonMaybe(_0x6b7027['extend'])),{'ok':!![],'data':{'id':_0x6b7027[_0x4adb01(0xa3)]??_0x6b7027['id'],'name':_0x6b7027[_0x4adb01(0x85)],'code':_0x6b7027['modelCode']||_0x6b7027[_0x4adb01(0x84)],'doVersion':_0x6b7027[_0x4adb01(0x82)],'description':_0x6b7027[_0x4adb01(0xc5)]||_0x3baeaf[_0x4adb01(0x9c)]||undefined,'source':_0x6b7027[_0x4adb01(0xbe)]||_0x3baeaf['sourceType'],'table':_0x3ad998[_0x4adb01(0xac)]||_0x3baeaf[_0x4adb01(0xac)],'datasetKey':_0x3ad998[_0x4adb01(0x9b)],'pk':_0x3ad998[_0x4adb01(0xba)],'db':_0x4b1666,'dbtable':summarizeDbtable(_0x3ad998),'fields':_0x2b81d8,'operations':_0x36ca7a,'indexes':Array[_0x4adb01(0xb9)](_0x3baeaf['indexes'])?_0x3baeaf[_0x4adb01(0x7f)]:[],'relations':_0x6b7027[_0x4adb01(0xb3)]??null,'relatedPages':normalizeRelatedPages(_0x6b7027['relatedPageInfoList']),...Array[_0x4adb01(0xb9)](_0x6b7027[_0x4adb01(0xb2)])?{'columnCodeListWithDeleted':_0x6b7027[_0x4adb01(0xb2)]}:{},'formatRules':Array[_0x4adb01(0xb9)](_0x6b7027[_0x4adb01(0x90)])?_0x6b7027[_0x4adb01(0x90)]:[],'validateRules':Array[_0x4adb01(0xb9)](_0x6b7027['validateRules'])?_0x6b7027['validateRules']:[],..._0x32ecbb!==undefined?{'extend':_0x32ecbb}:{},'stats':{'fieldCount':_0x2b81d8['length'],'operationCount':_0x36ca7a['length']}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x366fa0,_0x53c878){const _0x450904=a26_0x105a,_0x2d38a5=_0x366fa0();while(!![]){try{const _0xe9655=parseInt(_0x450904(0x17a))/0x1*(-parseInt(_0x450904(0x17c))/0x2)+parseInt(_0x450904(0x179))/0x3*(parseInt(_0x450904(0x17e))/0x4)+parseInt(_0x450904(0x17b))/0x5+parseInt(_0x450904(0x17d))/0x6*(parseInt(_0x450904(0x181))/0x7)+parseInt(_0x450904(0x17f))/0x8+-parseInt(_0x450904(0x180))/0x9*(-parseInt(_0x450904(0x178))/0xa)+-parseInt(_0x450904(0x182))/0xb;if(_0xe9655===_0x53c878)break;else _0x2d38a5['push'](_0x2d38a5['shift']());}catch(_0x547e15){_0x2d38a5['push'](_0x2d38a5['shift']());}}}(a26_0x535d,0xea656));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x105a(_0x308437,_0x1e8507){_0x308437=_0x308437-0x178;const _0x535d57=a26_0x535d();let _0x105a8f=_0x535d57[_0x308437];return _0x105a8f;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0x535d(){const _0x3575a6=['28WKHqCH','2622ititxH','4sEXwrw','13044960zJMFZb','27PgqlEo','23611PnYBzf','69200945tlOATY','5475230YNgtWI','3930141dEQABz','17939feUrHO','7224950XIIVuq'];a26_0x535d=function(){return _0x3575a6;};return a26_0x535d();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a27_0x14fc(_0x176693,_0x4504b0){_0x176693=_0x176693-0xa1;const _0x1ec254=a27_0x1ec2();let _0x14fc79=_0x1ec254[_0x176693];return _0x14fc79;}const a27_0x3e9a54=a27_0x14fc;(function(_0x28de6a,_0x418459){const _0x347d13=a27_0x14fc,_0x52906a=_0x28de6a();while(!![]){try{const _0x120e39=-parseInt(_0x347d13(0xa1))/0x1*(-parseInt(_0x347d13(0xb1))/0x2)+parseInt(_0x347d13(0xa5))/0x3+-parseInt(_0x347d13(0xa9))/0x4+parseInt(_0x347d13(0xaa))/0x5*(-parseInt(_0x347d13(0xab))/0x6)+-parseInt(_0x347d13(0xa7))/0x7+parseInt(_0x347d13(0xb0))/0x8+parseInt(_0x347d13(0xad))/0x9*(parseInt(_0x347d13(0xb3))/0xa);if(_0x120e39===_0x418459)break;else _0x52906a['push'](_0x52906a['shift']());}catch(_0x1dcb65){_0x52906a['push'](_0x52906a['shift']());}}}(a27_0x1ec2,0x83a14));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x1ec2(){const _0x3f0908=['datasetKey','allFields','name','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','4385WWAwOG','tableName','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','str','1539045IYzkAt','trim','1750861HwJxKd','read','3143408xWzkyt','5JtbCOB','6340266KGkrzJ','code','1206xLlvqy','dbtableConfig','split','4950016lghXJc','242YsuLvH','list','72350ArNeRC'];a27_0x1ec2=function(){return _0x3f0908;};return a27_0x1ec2();}export const datasetList={'service':'dataset','command':a27_0x3e9a54(0xb2),'description':a27_0x3e9a54(0xa3),'risk':a27_0x3e9a54(0xa8),'flags':[{'name':a27_0x3e9a54(0xb6),'type':'string','description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a27_0x3e9a54(0xb7)}],async 'execute'(_0x136442){const _0x2aa4f7=a27_0x3e9a54,_0x35cec3=_0x136442['str'](_0x2aa4f7(0xb6)),_0x1cc768=_0x136442[_0x2aa4f7(0xa4)](_0x2aa4f7(0xac)),_0x3644d9=await listDatasets(_0x136442['appCode'],{..._0x35cec3&&{'name':_0x35cec3},..._0x1cc768&&{'code':_0x1cc768}});return{'ok':!![],'data':{'total':_0x3644d9['length'],'datasets':_0x3644d9['map'](_0x13a8c5=>{const _0x3bacec=_0x2aa4f7,_0x4cb514=_0x13a8c5[_0x3bacec(0xae)]??{};return{'id':_0x13a8c5['id'],'code':_0x13a8c5[_0x3bacec(0xac)],'name':_0x13a8c5[_0x3bacec(0xb6)],'source':_0x13a8c5['source'],'description':_0x13a8c5['description'],'table':_0x4cb514[_0x3bacec(0xa2)],'datasetKey':_0x4cb514[_0x3bacec(0xb4)],'pk':_0x4cb514['pkField'],'fields':_0x4cb514[_0x3bacec(0xb5)]?_0x4cb514[_0x3bacec(0xb5)][_0x3bacec(0xaf)](',')['map'](_0x2339ea=>_0x2339ea[_0x3bacec(0xa6)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x549200=a28_0x343b;(function(_0x33d073,_0x4da319){const _0x106c02=a28_0x343b,_0x3d81c6=_0x33d073();while(!![]){try{const _0x182247=-parseInt(_0x106c02(0xb2))/0x1*(parseInt(_0x106c02(0xa7))/0x2)+-parseInt(_0x106c02(0xb4))/0x3+-parseInt(_0x106c02(0xae))/0x4+parseInt(_0x106c02(0xa8))/0x5+-parseInt(_0x106c02(0xa9))/0x6+-parseInt(_0x106c02(0xb1))/0x7*(-parseInt(_0x106c02(0xac))/0x8)+parseInt(_0x106c02(0xb3))/0x9;if(_0x182247===_0x4da319)break;else _0x3d81c6['push'](_0x3d81c6['shift']());}catch(_0x10853f){_0x3d81c6['push'](_0x3d81c6['shift']());}}}(a28_0x43c1,0xc8741));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a28_0x43c1(){const _0x3035ab=['#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','trim','2569yTUXOj','1atopTi','16853436oYKYtu','68550lhWxrT','read','code','sdk-doc','appCode','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','2261482EZflKz','2723465WLIBbS','5530302hIboSW','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','dataset','15496oUKWBA','string','927244tEKEEo'];a28_0x43c1=function(){return _0x3035ab;};return a28_0x43c1();}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x549200(0xaf);function a28_0x343b(_0x28ea19,_0x506897){_0x28ea19=_0x28ea19-0xa7;const _0x43c1ca=a28_0x43c1();let _0x343b8c=_0x43c1ca[_0x28ea19];return _0x343b8c;}export function formatDatasetSdkMarkdown(_0x1f1ddb){const _0x412e2a=a28_0x549200,_0x432f32=typeof _0x1f1ddb===_0x412e2a(0xad)?_0x1f1ddb[_0x412e2a(0xb0)]():'';return _0x432f32||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x549200(0xab),'command':a28_0x549200(0xb7),'description':a28_0x549200(0xb9),'risk':a28_0x549200(0xb5),'flags':[{...CODE_FLAG,'description':a28_0x549200(0xaa)}],async 'execute'(_0x1b7248){const _0x36a725=a28_0x549200,_0x3556b8=_0x1b7248['str'](_0x36a725(0xb6)),_0x33d265=await getDatasetSdkUsageDoc(_0x3556b8,_0x1b7248[_0x36a725(0xb8)]);return{'ok':!![],'data':{'code':_0x3556b8,'appCode':_0x1b7248[_0x36a725(0xb8)],'markdown':formatDatasetSdkMarkdown(_0x33d265)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x131c92=a29_0x40ba;function a29_0x40ba(_0x57ebf4,_0x41ca6f){_0x57ebf4=_0x57ebf4-0x134;const _0x18a2de=a29_0x18a2();let _0x40ba7e=_0x18a2de[_0x57ebf4];return _0x40ba7e;}(function(_0x4955ae,_0x27503e){const _0x2621df=a29_0x40ba,_0x3942f2=_0x4955ae();while(!![]){try{const _0xf88b66=-parseInt(_0x2621df(0x154))/0x1*(-parseInt(_0x2621df(0x17d))/0x2)+parseInt(_0x2621df(0x159))/0x3+parseInt(_0x2621df(0x18a))/0x4+parseInt(_0x2621df(0x14c))/0x5*(parseInt(_0x2621df(0x14f))/0x6)+parseInt(_0x2621df(0x138))/0x7*(parseInt(_0x2621df(0x185))/0x8)+parseInt(_0x2621df(0x174))/0x9+-parseInt(_0x2621df(0x140))/0xa;if(_0xf88b66===_0x27503e)break;else _0x3942f2['push'](_0x3942f2['shift']());}catch(_0x7d1155){_0x3942f2['push'](_0x3942f2['shift']());}}}(a29_0x18a2,0x39761));import a29_0x13394a from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a29_0x18a2(){const _0x5855a4=['\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','name','✓\x20Valid\x20JSON','24VQZODE','accessKey','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','Diagnose\x20CLI\x20configuration\x20and\x20environment','1408636CMHbHa','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','log','padEnd','700469jiUrCr','\x20\x20Merged\x20Config','(none)','platform','check','⚠\x20Empty','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','ClientAk','15750830cRjwPe','(not\x20found)','✗\x20Invalid','appCode','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','\x20\x20─','env','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','missing','20cfwVnY','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','587766HJxFxv','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','serviceCode','red','source','244dlsRJl','(default)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','format','Global','119133YPcLpo','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20Imported\x20from:\x20','message','yellow','green','✓\x20Loaded','bold','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','empty','doctor','currentApp','\x20doctor','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20commands)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','Project','repeat','gray','(set,\x20length=','verbose','locale','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','3857445GqKMYj','\x20\x20Service\x20Tree','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','serviceCount','status','\x20(legacy/compat\x20only)','services','path','2442AKMKrs','\x20\x20API\x20Endpoints','⚠\x20Empty\x20(treated\x20as\x20{})','(unnamed)','registryPath'];a29_0x18a2=function(){return _0x5855a4;};return a29_0x18a2();}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(_0x152990){const _0x32882b=a29_0x40ba,_0x48d87e=getCliVersion(),_0x577a28=buildConfigFromFlags({});await initGlobalEnvironment(_0x577a28),console[_0x32882b(0x136)](),console[_0x32882b(0x136)](a29_0x13394a[_0x32882b(0x161)](CLI_BIN_NAME+_0x32882b(0x167))),console[_0x32882b(0x136)](a29_0x13394a['gray']('─'['repeat'](0x32))),console[_0x32882b(0x136)](_0x32882b(0x14a)+_0x48d87e),console[_0x32882b(0x136)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x32882b(0x188)]),console[_0x32882b(0x136)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x32882b(0x13b)]+'\x20'+process['arch']),console[_0x32882b(0x136)](),console[_0x32882b(0x136)](a29_0x13394a[_0x32882b(0x161)](_0x32882b(0x177))),console[_0x32882b(0x136)](a29_0x13394a[_0x32882b(0x16f)]('\x20\x20─'['repeat'](0x1e)));const _0x1e47a5=getGlobalConfigPath(),_0x298b25=getProjectConfigPath();console[_0x32882b(0x136)](_0x32882b(0x176)+(_0x1e47a5||a29_0x13394a[_0x32882b(0x16f)](_0x32882b(0x141)))),console[_0x32882b(0x136)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x298b25||a29_0x13394a[_0x32882b(0x16f)]('(not\x20found)'))),console[_0x32882b(0x136)](),console[_0x32882b(0x136)](a29_0x13394a[_0x32882b(0x161)]('\x20\x20Config\x20JSON')),console['log'](a29_0x13394a['gray'](_0x32882b(0x146)[_0x32882b(0x16e)](0x1e)));const _0x525c7b=(_0x5b67f2,_0x4b1d62)=>{const _0x186dba=_0x32882b;if(!_0x4b1d62){console[_0x186dba(0x136)]('\x20\x20'+_0x5b67f2[_0x186dba(0x137)](0x11)+'\x20'+a29_0x13394a[_0x186dba(0x16f)](_0x186dba(0x14e)));return;}const _0x440140=inspectCliConfigJsonFile(_0x4b1d62);if(_0x440140['status']==='ok')console['log']('\x20\x20'+_0x5b67f2[_0x186dba(0x137)](0x11)+'\x20'+a29_0x13394a[_0x186dba(0x15f)](_0x186dba(0x184)));else{if(_0x440140['status']===_0x186dba(0x164))console['log']('\x20\x20'+_0x5b67f2[_0x186dba(0x137)](0x11)+'\x20'+a29_0x13394a[_0x186dba(0x15e)](_0x186dba(0x17f)));else _0x440140[_0x186dba(0x179)]===_0x186dba(0x14b)?console[_0x186dba(0x136)]('\x20\x20'+_0x5b67f2[_0x186dba(0x137)](0x11)+'\x20'+a29_0x13394a['gray'](_0x186dba(0x16c))):(console[_0x186dba(0x136)]('\x20\x20'+_0x5b67f2[_0x186dba(0x137)](0x11)+'\x20'+a29_0x13394a[_0x186dba(0x152)](_0x186dba(0x135))),console[_0x186dba(0x136)]('\x20\x20'+''[_0x186dba(0x137)](0x11)+'\x20'+a29_0x13394a[_0x186dba(0x152)](_0x440140[_0x186dba(0x15d)])));}};_0x525c7b(_0x32882b(0x158),_0x1e47a5),_0x525c7b(_0x32882b(0x16d),_0x298b25),console['log'](),console[_0x32882b(0x136)](a29_0x13394a[_0x32882b(0x161)](_0x32882b(0x139))),console['log'](a29_0x13394a[_0x32882b(0x16f)](_0x32882b(0x146)[_0x32882b(0x16e)](0x1e))),console[_0x32882b(0x136)](_0x32882b(0x173)+(_0x577a28[_0x32882b(0x143)]||a29_0x13394a[_0x32882b(0x152)](_0x32882b(0x149)))),console[_0x32882b(0x136)](_0x32882b(0x162)+_0x577a28[_0x32882b(0x147)]);const _0x215a3c=isLegacyCompatConfigKey(_0x32882b(0x172))?a29_0x13394a[_0x32882b(0x16f)](_0x577a28[_0x32882b(0x172)]+_0x32882b(0x17a)):_0x577a28[_0x32882b(0x172)];console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x215a3c),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x577a28['defaultApp']||a29_0x13394a['gray'](_0x32882b(0x13a)))),console['log'](_0x32882b(0x182)+(_0x577a28[_0x32882b(0x166)]||a29_0x13394a[_0x32882b(0x16f)](_0x32882b(0x13a)))),console['log'](_0x32882b(0x16b)+(_0x577a28['format']||a29_0x13394a[_0x32882b(0x16f)](_0x32882b(0x145)+DEFAULT_CONFIG_VALUES[_0x32882b(0x157)]+')'))),console[_0x32882b(0x136)](_0x32882b(0x15a)+(_0x577a28['pageSize']??a29_0x13394a['gray'](_0x32882b(0x155)))),console[_0x32882b(0x136)](_0x32882b(0x148)+_0x577a28[_0x32882b(0x15b)]),console[_0x32882b(0x136)](_0x32882b(0x144)+_0x577a28[_0x32882b(0x171)]),console['log']('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x32882b(0x13f)]),console[_0x32882b(0x136)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x577a28[_0x32882b(0x186)]?a29_0x13394a['green'](_0x32882b(0x170)+_0x577a28[_0x32882b(0x186)]['length']+')'):a29_0x13394a[_0x32882b(0x16f)](_0x32882b(0x13a)))),console['log'](),console['log'](a29_0x13394a[_0x32882b(0x161)](_0x32882b(0x17e))),console[_0x32882b(0x136)](a29_0x13394a['gray']('\x20\x20─'[_0x32882b(0x16e)](0x1e))),console['log'](_0x32882b(0x156)+getApiDomain()),console[_0x32882b(0x136)](_0x32882b(0x13e)+getUserDomain()),console[_0x32882b(0x136)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console[_0x32882b(0x136)](a29_0x13394a[_0x32882b(0x161)](_0x32882b(0x175))),console[_0x32882b(0x136)](a29_0x13394a[_0x32882b(0x16f)](_0x32882b(0x146)[_0x32882b(0x16e)](0x1e)));const _0xe9cc5c=inspectServiceRegistry();console['log'](_0x32882b(0x150)+_0xe9cc5c[_0x32882b(0x181)]),console[_0x32882b(0x136)](_0x32882b(0x187)+formatServiceRegistryStatus(_0xe9cc5c)),console[_0x32882b(0x136)](_0x32882b(0x169)+_0xe9cc5c[_0x32882b(0x178)]),console['log'](_0x32882b(0x134)+_0xe9cc5c['commandCount']);for(const _0x3e762e of _0xe9cc5c[_0x32882b(0x17b)]){console[_0x32882b(0x136)]('\x20\x20'+(_0x3e762e[_0x32882b(0x151)]+':')['padEnd'](0x11)+'\x20'+(_0x3e762e[_0x32882b(0x183)]||a29_0x13394a[_0x32882b(0x16f)](_0x32882b(0x180)))+'\x20('+_0x3e762e['commandCount']+_0x32882b(0x16a)),console['log']('\x20\x20'+''[_0x32882b(0x137)](0x11)+_0x32882b(0x15c)+_0x3e762e[_0x32882b(0x153)][_0x32882b(0x17c)]);}return console[_0x32882b(0x136)](),console[_0x32882b(0x136)](a29_0x13394a[_0x32882b(0x161)]('\x20\x20Auth')),console[_0x32882b(0x136)](a29_0x13394a[_0x32882b(0x16f)](_0x32882b(0x146)[_0x32882b(0x16e)](0x1e))),console[_0x32882b(0x136)](_0x32882b(0x14d)+a29_0x13394a['green'](AUTH_MODE[_0x32882b(0x13f)]+'\x20(accessKey)')),console[_0x32882b(0x136)](_0x32882b(0x163)+a29_0x13394a[_0x32882b(0x16f)](_0x32882b(0x168))),console[_0x32882b(0x136)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3de820){const _0x4af01c=a29_0x40ba;if(_0x3de820[_0x4af01c(0x179)]==='ok')return a29_0x13394a[_0x4af01c(0x15f)](_0x4af01c(0x160));if(_0x3de820[_0x4af01c(0x179)]===_0x4af01c(0x14b))return a29_0x13394a['gray'](_0x4af01c(0x141));if(_0x3de820['status']===_0x4af01c(0x164))return a29_0x13394a[_0x4af01c(0x15e)](_0x4af01c(0x13d));return a29_0x13394a['red'](_0x4af01c(0x142)+(_0x3de820[_0x4af01c(0x15d)]?':\x20'+_0x3de820[_0x4af01c(0x15d)]:''));}export const doctorDefinition={'service':a29_0x131c92(0x165),'command':a29_0x131c92(0x13c),'description':a29_0x131c92(0x189),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|