@lovrabet/lovrabet-cli 2.1.8-beta.2 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/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/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/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
|
-
|
|
1
|
+
function a14_0x1623(_0x44cfa0,_0x19c40a){_0x44cfa0=_0x44cfa0-0xfb;const _0x16f672=a14_0x16f6();let _0x162380=_0x16f672[_0x44cfa0];return _0x162380;}const a14_0x14136c=a14_0x1623;function a14_0x16f6(){const _0x5757e5=['17235wEqUrQ','374676rJmDad','Get\x20BFF\x20script\x20details\x20by\x20ID','read','Script\x20ID','1924812wcUzxj','functionName','appCode','bool','verbose','160VARTrE','205518PZLTRq','updatedTime','detail','1994363vhMyOC','2779232LgSRAv','54KHZtgx','40qDCGGl','bff','2733FniRRi','description','createdTime','scriptType'];a14_0x16f6=function(){return _0x5757e5;};return a14_0x16f6();}(function(_0x40eb68,_0x1880e4){const _0x3e3e8a=a14_0x1623,_0x2ce05c=_0x40eb68();while(!![]){try{const _0x43ddd7=parseInt(_0x3e3e8a(0x100))/0x1*(parseInt(_0x3e3e8a(0xfd))/0x2)+parseInt(_0x3e3e8a(0x105))/0x3+parseInt(_0x3e3e8a(0x10e))/0x4*(-parseInt(_0x3e3e8a(0x104))/0x5)+-parseInt(_0x3e3e8a(0x10f))/0x6+-parseInt(_0x3e3e8a(0xfb))/0x7+-parseInt(_0x3e3e8a(0xfc))/0x8+-parseInt(_0x3e3e8a(0x109))/0x9*(-parseInt(_0x3e3e8a(0xfe))/0xa);if(_0x43ddd7===_0x1880e4)break;else _0x2ce05c['push'](_0x2ce05c['shift']());}catch(_0xb4b37e){_0x2ce05c['push'](_0x2ce05c['shift']());}}}(a14_0x16f6,0x3cf6d));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x14136c(0xff),'command':a14_0x14136c(0x111),'description':a14_0x14136c(0x106),'risk':a14_0x14136c(0x107),'flags':[{...ID_FLAG,'description':a14_0x14136c(0x108)},VERBOSE_FLAG],async 'execute'(_0x2d8672){const _0x4e1ab5=a14_0x14136c,_0x1a3fe3=await getBffScriptInfo(_0x2d8672['num']('id')),_0x196583=_0x2d8672[_0x4e1ab5(0x10c)](_0x4e1ab5(0x10d));if(_0x196583)return{'ok':!![],'data':_0x1a3fe3};return{'ok':!![],'data':{'id':_0x1a3fe3['id'],'appCode':_0x1a3fe3[_0x4e1ab5(0x10b)],'functionName':_0x1a3fe3[_0x4e1ab5(0x10a)]??'','scriptType':_0x1a3fe3[_0x4e1ab5(0x103)],'description':_0x1a3fe3[_0x4e1ab5(0x101)]||'(none)','createdTime':_0x1a3fe3[_0x4e1ab5(0x102)]??'','updatedTime':_0x1a3fe3[_0x4e1ab5(0x110)]??''}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a15_0x13dd66=a15_0x9e58;function a15_0x277f(){const _0x3c3432=['str','now','name','4120752zvIBen','3654525lvFhaL','params','bff','BFF\x20function\x20name\x20to\x20execute','4271706mckcsJ','28DZrwAI','7ZyaHEI','10sFkDid','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','exec','1132792lazZrg','14131980BtHvYO','BFF\x20executed\x20in\x20','318039HWOZZf','1018915WiTBtw'];a15_0x277f=function(){return _0x3c3432;};return a15_0x277f();}(function(_0x35f783,_0x3d2c91){const _0x564b09=a15_0x9e58,_0x146109=_0x35f783();while(!![]){try{const _0x4cbbbb=parseInt(_0x564b09(0x197))/0x1+-parseInt(_0x564b09(0x193))/0x2+parseInt(_0x564b09(0x196))/0x3*(parseInt(_0x564b09(0x1a1))/0x4)+parseInt(_0x564b09(0x19c))/0x5+parseInt(_0x564b09(0x1a0))/0x6*(parseInt(_0x564b09(0x1a2))/0x7)+-parseInt(_0x564b09(0x19b))/0x8+parseInt(_0x564b09(0x194))/0x9*(-parseInt(_0x564b09(0x1a3))/0xa);if(_0x4cbbbb===_0x3d2c91)break;else _0x146109['push'](_0x146109['shift']());}catch(_0x4e5421){_0x146109['push'](_0x146109['shift']());}}}(a15_0x277f,0x86cd8));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x9e58(_0x1302ce,_0x1ab5ce){_0x1302ce=_0x1302ce-0x193;const _0x277f14=a15_0x277f();let _0x9e5879=_0x277f14[_0x1302ce];return _0x9e5879;}export const bffExec={'service':a15_0x13dd66(0x19e),'command':a15_0x13dd66(0x1a5),'description':a15_0x13dd66(0x1a4),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x13dd66(0x19f)},PARAMS_FLAG],async 'execute'(_0x5682b3){const _0x1f6f18=a15_0x13dd66,_0x117010=parseJsonParams(_0x5682b3[_0x1f6f18(0x198)](_0x1f6f18(0x19d))),_0x1a791d=Date[_0x1f6f18(0x199)](),_0x227d1c=await executeSdkBff(_0x5682b3['str'](_0x1f6f18(0x19a)),_0x117010),_0x14e3d8=Date['now']()-_0x1a791d;return{'ok':!![],'data':{'result':_0x227d1c,'elapsed':_0x14e3d8},'message':_0x1f6f18(0x195)+_0x14e3d8+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1e3817,_0x11438c){const _0x4da8c0=a16_0x5501,_0x38da87=_0x1e3817();while(!![]){try{const _0x373250=-parseInt(_0x4da8c0(0xba))/0x1*(-parseInt(_0x4da8c0(0xc6))/0x2)+-parseInt(_0x4da8c0(0xbc))/0x3*(parseInt(_0x4da8c0(0xbb))/0x4)+parseInt(_0x4da8c0(0xc3))/0x5*(-parseInt(_0x4da8c0(0xc2))/0x6)+parseInt(_0x4da8c0(0xc1))/0x7*(parseInt(_0x4da8c0(0xbd))/0x8)+-parseInt(_0x4da8c0(0xc5))/0x9*(-parseInt(_0x4da8c0(0xc4))/0xa)+-parseInt(_0x4da8c0(0xc0))/0xb*(parseInt(_0x4da8c0(0xbf))/0xc)+-parseInt(_0x4da8c0(0xbe))/0xd;if(_0x373250===_0x11438c)break;else _0x38da87['push'](_0x38da87['shift']());}catch(_0x381f41){_0x38da87['push'](_0x38da87['shift']());}}}(a16_0x4a29,0x4de4d));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x5501(_0x4b094e,_0x39702f){_0x4b094e=_0x4b094e-0xba;const _0x4a2993=a16_0x4a29();let _0x55014d=_0x4a2993[_0x4b094e];return _0x55014d;}export const bffDefinitions=[bffDetail,bffExec];function a16_0x4a29(){const _0x4c9cd3=['52684apxwSM','45wANMwo','5336YhObyd','4574557DzvIhx','12DGLPSy','1028269RVMDjo','3493ADejbC','6KZkuZA','1548370KrkETi','290cGyrrV','120906ZGUIAh','2zwNQiU','549241pqHpwa'];a16_0x4a29=function(){return _0x4c9cd3;};return a16_0x4a29();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x3172c6=a17_0x27d0;(function(_0x65e289,_0x475861){const _0x1cbec9=a17_0x27d0,_0x11a52b=_0x65e289();while(!![]){try{const _0x43d78c=-parseInt(_0x1cbec9(0xf0))/0x1*(-parseInt(_0x1cbec9(0xeb))/0x2)+-parseInt(_0x1cbec9(0xe5))/0x3+-parseInt(_0x1cbec9(0xd7))/0x4*(-parseInt(_0x1cbec9(0xe2))/0x5)+-parseInt(_0x1cbec9(0xe1))/0x6*(-parseInt(_0x1cbec9(0xd6))/0x7)+parseInt(_0x1cbec9(0xee))/0x8*(-parseInt(_0x1cbec9(0xf2))/0x9)+parseInt(_0x1cbec9(0xdd))/0xa+-parseInt(_0x1cbec9(0xe6))/0xb*(-parseInt(_0x1cbec9(0xec))/0xc);if(_0x43d78c===_0x475861)break;else _0x11a52b['push'](_0x11a52b['shift']());}catch(_0x2685bf){_0x11a52b['push'](_0x11a52b['shift']());}}}(a17_0x1ad9,0x90e38));function a17_0x27d0(_0x4db46c,_0x3ec7ac){_0x4db46c=_0x4db46c-0xd6;const _0x1ad926=a17_0x1ad9();let _0x27d0c2=_0x1ad926[_0x4db46c];return _0x27d0c2;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a17_0x1ad9(){const _0x2d7661=['nonInteractive','2KZRlJb','cli-skill-install','703908siYIYw','skipped','../../skills/npx-skills-add.js','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','\x20-g\x20-y','setLogPath','7VDfjnc','856ADDqNA','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','log','Skipped\x20npx\x20(','\x20-g\x20-y)...','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','551620PEgNVP','unknown','inherit','cwd','4590282fjBSbN','10WolDmi','CLI\x20Built-in\x20Skill\x20installed','write','381075OWfqJZ','11lYpZRK','install','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','error','info','323230CKSIDb','550728UizkPK','npx\x20skills\x20add\x20failed:\x20','48zAzihY'];a17_0x1ad9=function(){return _0x2d7661;};return a17_0x1ad9();}export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x3172c6(0xe7),'description':a17_0x3172c6(0xf5),'risk':a17_0x3172c6(0xe4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x426708){const _0x1e5a52=a17_0x3172c6;logger[_0x1e5a52(0xf7)](process['cwd']()),logger[_0x1e5a52(0xea)](_0x1e5a52(0xf1),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x5a5627,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x121174,runNpxSkillsAddGlobal:_0x1de15e}=await import(_0x1e5a52(0xf4)),_0x582d6b=_0x426708[_0x1e5a52(0xef)]?'pipe':_0x1e5a52(0xdf);console[_0x1e5a52(0xd9)](_0x1e5a52(0xe8)+_0x5a5627+_0x1e5a52(0xdb));const _0x5a856d=_0x1de15e(process[_0x1e5a52(0xe0)](),_0x5a5627,{'stdio':_0x582d6b});if(_0x5a856d[_0x1e5a52(0xf3)])console['log'](_0x1e5a52(0xda)+_0x121174+_0x1e5a52(0xdc));else{if(_0x5a856d['ok'])console[_0x1e5a52(0xd9)](_0x1e5a52(0xe3));else throw CliErrors['apiError'](_0x1e5a52(0xed)+(_0x5a856d[_0x1e5a52(0xe9)]||_0x1e5a52(0xde)),_0x1e5a52(0xd8)+_0x5a5627+_0x1e5a52(0xf6));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a18_0x3948(){const _0x38d668=['3088530mfHeSW','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','validation','22846MofaNH','inProject','\x20init`\x20first.','383544huLyhU','project-or-global-explicit','18LLjRfv','project','\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/','3374608BdPzjn','newConfigFileName','808ANmmpc','Not\x20inside\x20a\x20project\x20(no\x20','9309iDPpyS','Use\x20only\x20one\x20config\x20scope\x20flag.',',\x20or\x20run\x20`','730290iVyDlB','global-default','global','32BbBuAP','1981188kzpadd','project-default','133XzECcc'];a18_0x3948=function(){return _0x38d668;};return a18_0x3948();}(function(_0x3e176e,_0x566ba7){const _0x1d555c=a18_0x4d2d,_0x3a3df7=_0x3e176e();while(!![]){try{const _0x39abbc=-parseInt(_0x1d555c(0x173))/0x1*(parseInt(_0x1d555c(0x17a))/0x2)+parseInt(_0x1d555c(0x16d))/0x3*(parseInt(_0x1d555c(0x16b))/0x4)+parseInt(_0x1d555c(0x170))/0x5+parseInt(_0x1d555c(0x17d))/0x6*(parseInt(_0x1d555c(0x176))/0x7)+parseInt(_0x1d555c(0x169))/0x8*(-parseInt(_0x1d555c(0x165))/0x9)+-parseInt(_0x1d555c(0x177))/0xa+parseInt(_0x1d555c(0x174))/0xb;if(_0x39abbc===_0x566ba7)break;else _0x3a3df7['push'](_0x3a3df7['shift']());}catch(_0x568732){_0x3a3df7['push'](_0x3a3df7['shift']());}}}(a18_0x3948,0x9e90f));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';function a18_0x4d2d(_0x2ac951,_0x957f85){_0x2ac951=_0x2ac951-0x165;const _0x39483e=a18_0x3948();let _0x4d2dbf=_0x39483e[_0x2ac951];return _0x4d2dbf;}export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x56e2a7){const _0x4e7c45=a18_0x4d2d,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x53afcc}=_0x56e2a7;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4e7c45(0x179)](_0x4e7c45(0x178),_0x4e7c45(0x16e));if(explicitGlobal)return _0x4e7c45(0x172);if(explicitProject)return _0x4e7c45(0x166);switch(_0x53afcc){case _0x4e7c45(0x171):return _0x4e7c45(0x172);case _0x4e7c45(0x175):return _0x56e2a7[_0x4e7c45(0x17b)]??isInProject()?_0x4e7c45(0x166):_0x4e7c45(0x172);case _0x4e7c45(0x17e):if(!(_0x56e2a7[_0x4e7c45(0x17b)]??isInProject()))throw CliErrors[_0x4e7c45(0x179)](_0x4e7c45(0x16c)+PRODUCT_CONFIG[_0x4e7c45(0x16a)]+_0x4e7c45(0x167),_0x4e7c45(0x168)+PRODUCT_CONFIG[_0x4e7c45(0x16a)]+_0x4e7c45(0x16f)+CLI_BIN_NAME+_0x4e7c45(0x17c));return _0x4e7c45(0x166);}}export function toScopeFlags(_0x373e0c){const _0x28e8ce=a18_0x4d2d;return{'global':_0x373e0c===_0x28e8ce(0x172)};}export function formatScopeLabel(_0x48c2bb){return _0x48c2bb==='global'?'\x20(global)':'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x206c27,_0x38b4f2){const _0x3686a6=a19_0x222a,_0x5b8f94=_0x206c27();while(!![]){try{const _0x23d93c=-parseInt(_0x3686a6(0x70))/0x1+-parseInt(_0x3686a6(0x6b))/0x2+-parseInt(_0x3686a6(0x83))/0x3+-parseInt(_0x3686a6(0x7f))/0x4*(parseInt(_0x3686a6(0x7d))/0x5)+parseInt(_0x3686a6(0x78))/0x6+-parseInt(_0x3686a6(0x71))/0x7*(-parseInt(_0x3686a6(0x66))/0x8)+parseInt(_0x3686a6(0x6f))/0x9*(parseInt(_0x3686a6(0x72))/0xa);if(_0x23d93c===_0x38b4f2)break;else _0x5b8f94['push'](_0x5b8f94['shift']());}catch(_0x4da171){_0x5b8f94['push'](_0x5b8f94['shift']());}}}(a19_0x3f90,0x8b033));import{CliErrors}from'../../errors.js';function a19_0x3f90(){const _0x5701af=['some','join','Only\x20one\x20of\x20','6455016RUXeoK','At\x20least\x20one\x20of\x20','Invalid\x20--','length','filter','2605BLDmCd','Remove\x20all\x20but\x20one.','7156KGEzwE','Use\x20only\x20one\x20of:\x20','Exactly\x20one\x20of\x20','Flags\x20','924207WnDCLb','str','2576632CHovrQ',',\x20got\x20\x22','map','\x20are\x20mutually\x20exclusive\x20for\x20`','Provide\x20one\x20of:\x20','588120oCDGOp',':\x20expected\x20','\x20is\x20required\x20for\x20`','test','14639553IcNpPs','920939ExlSvq','7FOmOFT','10mfBubn','\x20is\x20allowed,\x20found:\x20','validation'];a19_0x3f90=function(){return _0x5701af;};return a19_0x3f90();}function a19_0x222a(_0x5df274,_0x5d8612){_0x5df274=_0x5df274-0x66;const _0x3f902f=a19_0x3f90();let _0x222a39=_0x3f902f[_0x5df274];return _0x222a39;}function isSet(_0x25aba9,_0x1509bd){const _0x44a6ab=_0x25aba9['flag'](_0x1509bd);return _0x44a6ab!==undefined&&_0x44a6ab!==''&&_0x44a6ab!==![]&&_0x44a6ab!==0x0;}function fmtNames(_0xa1b4a4){const _0xb59e64=a19_0x222a;return _0xa1b4a4[_0xb59e64(0x68)](_0x365f98=>'--'+_0x365f98)[_0xb59e64(0x76)](',\x20');}export function requireOneOf(_0x5e85b0,_0x40eea2,_0x2e740e){const _0xaee1d5=a19_0x222a,_0x1b205e=_0x40eea2[_0xaee1d5(0x7c)](_0x488822=>isSet(_0x5e85b0,_0x488822));if(_0x1b205e[_0xaee1d5(0x7b)]!==0x1)throw CliErrors[_0xaee1d5(0x74)](_0x1b205e[_0xaee1d5(0x7b)]===0x0?_0xaee1d5(0x81)+fmtNames(_0x40eea2)+_0xaee1d5(0x6d)+_0x2e740e+'`.':_0xaee1d5(0x77)+fmtNames(_0x40eea2)+_0xaee1d5(0x73)+fmtNames(_0x1b205e)+'.',_0x1b205e[_0xaee1d5(0x7b)]===0x0?_0xaee1d5(0x6a)+fmtNames(_0x40eea2):_0xaee1d5(0x7e));}export function requireAnyOf(_0x3091be,_0x57ccf9,_0x284701){const _0x15ec01=a19_0x222a;if(!_0x57ccf9[_0x15ec01(0x75)](_0x4325cb=>isSet(_0x3091be,_0x4325cb)))throw CliErrors['validation'](_0x15ec01(0x79)+fmtNames(_0x57ccf9)+_0x15ec01(0x6d)+_0x284701+'`.',_0x15ec01(0x6a)+fmtNames(_0x57ccf9));}export function mutuallyExclusive(_0x208540,_0x5d2d8d,_0x1c6c42){const _0x4faac7=a19_0x222a,_0x1256ba=_0x5d2d8d[_0x4faac7(0x7c)](_0x11bfcf=>isSet(_0x208540,_0x11bfcf));if(_0x1256ba[_0x4faac7(0x7b)]>0x1)throw CliErrors[_0x4faac7(0x74)](_0x4faac7(0x82)+fmtNames(_0x1256ba)+_0x4faac7(0x69)+_0x1c6c42+'`.',_0x4faac7(0x80)+fmtNames(_0x5d2d8d));}export function validatePattern(_0x5689cf,_0xd576a9,_0x437938,_0x27b9d2){const _0x3b5b5e=a19_0x222a,_0x13140f=_0x5689cf[_0x3b5b5e(0x84)](_0xd576a9);if(_0x13140f&&!_0x437938[_0x3b5b5e(0x6e)](_0x13140f))throw CliErrors[_0x3b5b5e(0x74)](_0x3b5b5e(0x7a)+_0xd576a9+_0x3b5b5e(0x6c)+_0x27b9d2+_0x3b5b5e(0x67)+_0x13140f+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x3f4e4a=a20_0x105b;(function(_0x448ba3,_0x12a060){const _0x45fb8a=a20_0x105b,_0x27154c=_0x448ba3();while(!![]){try{const _0x66a4c0=-parseInt(_0x45fb8a(0x73))/0x1*(-parseInt(_0x45fb8a(0x6e))/0x2)+parseInt(_0x45fb8a(0x7f))/0x3*(-parseInt(_0x45fb8a(0x6f))/0x4)+-parseInt(_0x45fb8a(0x70))/0x5+parseInt(_0x45fb8a(0x77))/0x6+parseInt(_0x45fb8a(0x72))/0x7*(parseInt(_0x45fb8a(0x6c))/0x8)+parseInt(_0x45fb8a(0x82))/0x9+-parseInt(_0x45fb8a(0x7b))/0xa*(parseInt(_0x45fb8a(0x6d))/0xb);if(_0x66a4c0===_0x12a060)break;else _0x27154c['push'](_0x27154c['shift']());}catch(_0x302284){_0x27154c['push'](_0x27154c['shift']());}}}(a20_0xb120,0xb497a));export const CODE_FLAG={'name':a20_0x3f4e4a(0x75),'type':a20_0x3f4e4a(0x71),'required':!![],'description':a20_0x3f4e4a(0x7a),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x3f4e4a(0x7e)}};export const SQLCODE_FLAG={'name':a20_0x3f4e4a(0x83),'type':a20_0x3f4e4a(0x71),'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':a20_0x3f4e4a(0x81)}};export const VERBOSE_FLAG={'name':a20_0x3f4e4a(0x78),'type':'boolean','description':a20_0x3f4e4a(0x80)};export const PARAMS_FLAG={'name':a20_0x3f4e4a(0x7d),'type':a20_0x3f4e4a(0x71),'description':a20_0x3f4e4a(0x74)};function a20_0xb120(){const _0x8e223=['verbose','Resource\x20name\x20for\x20lookup','Dataset\x20code\x20(32-char\x20hex\x20UUID)','10970tVDuqY','name','params','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','913989wtIVfC','Return\x20full\x20raw\x20response\x20object','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','3898260jvOZtY','sqlcode','8096bUVJUg','7755iYFuvv','2ZOeTjJ','4kYsjlE','308395kXvvEj','string','2233RUjCkQ','649489KjgHfs','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','code','Resource\x20ID','2843856CjuHvB'];a20_0xb120=function(){return _0x8e223;};return a20_0xb120();}export const NAME_FLAG={'name':a20_0x3f4e4a(0x7c),'type':a20_0x3f4e4a(0x71),'description':a20_0x3f4e4a(0x79)};function a20_0x105b(_0x302cb7,_0xb75c88){_0x302cb7=_0x302cb7-0x6c;const _0xb120f6=a20_0xb120();let _0x105bb9=_0xb120f6[_0x302cb7];return _0x105bb9;}export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a20_0x3f4e4a(0x76)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b95cd,_0x5289a7){const _0x2f9198=a21_0x312f,_0x190380=_0x3b95cd();while(!![]){try{const _0x340313=parseInt(_0x2f9198(0x97))/0x1+-parseInt(_0x2f9198(0x91))/0x2+parseInt(_0x2f9198(0x8e))/0x3+parseInt(_0x2f9198(0x95))/0x4+-parseInt(_0x2f9198(0x93))/0x5*(-parseInt(_0x2f9198(0x90))/0x6)+-parseInt(_0x2f9198(0x8c))/0x7*(parseInt(_0x2f9198(0x8f))/0x8)+-parseInt(_0x2f9198(0x96))/0x9;if(_0x340313===_0x5289a7)break;else _0x190380['push'](_0x190380['shift']());}catch(_0x473420){_0x190380['push'](_0x190380['shift']());}}}(a21_0x4e33,0xc303a));function a21_0x312f(_0x4c2a81,_0x4a94a1){_0x4c2a81=_0x4c2a81-0x8a;const _0x4e33ea=a21_0x4e33();let _0x312f7d=_0x4e33ea[_0x4c2a81];return _0x312f7d;}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a21_0x4e33(){const _0x196938=['\x20MB','4769948dIpkiR','10805490SWIAEE','661255aQQHFr','size','File\x20is\x20not\x20a\x20regular\x20file:\x20','validation','1639645mayROB','\x20path\x20is\x20required.','1692636wTPZBO','24htNqLe','438pgkuXg','1114080IPjFaW','isFile','57615AQSOEe'];a21_0x4e33=function(){return _0x196938;};return a21_0x4e33();}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x36711e){const _0x1fb8ef=a21_0x312f;if(_0x36711e>=BYTES_PER_MB){const _0x3a0679=Math['ceil'](_0x36711e/BYTES_PER_MB*0x64)/0x64;return _0x3a0679['toFixed'](0x2)+_0x1fb8ef(0x94);}return _0x36711e+'\x20B';}export function requireRuntimeUploadFile(_0x49205b,_0x432d85){const _0x976c3f=a21_0x312f,_0x4162b3=_0x49205b['trim']();if(!_0x4162b3)throw CliErrors[_0x976c3f(0x8b)](_0x432d85+_0x976c3f(0x8d));if(!existsSync(_0x4162b3))throw CliErrors[_0x976c3f(0x8b)]('File\x20not\x20found:\x20'+_0x4162b3);const _0x79f3d=statSync(_0x4162b3);if(!_0x79f3d[_0x976c3f(0x92)]())throw CliErrors[_0x976c3f(0x8b)](_0x976c3f(0x8a)+_0x4162b3);if(_0x79f3d[_0x976c3f(0x98)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x976c3f(0x8b)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x4162b3+'\x20('+formatBytes(_0x79f3d[_0x976c3f(0x98)])+')');return{'path':_0x4162b3,'size':_0x79f3d[_0x976c3f(0x98)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x36f488=a22_0x3b3c;(function(_0x14aed8,_0x28ce57){const _0x154e78=a22_0x3b3c,_0x18e755=_0x14aed8();while(!![]){try{const _0x520376=parseInt(_0x154e78(0x1d6))/0x1+-parseInt(_0x154e78(0x1c0))/0x2+parseInt(_0x154e78(0x1b8))/0x3*(-parseInt(_0x154e78(0x1e4))/0x4)+parseInt(_0x154e78(0x1de))/0x5*(parseInt(_0x154e78(0x1c7))/0x6)+parseInt(_0x154e78(0x1cb))/0x7+-parseInt(_0x154e78(0x1c6))/0x8+parseInt(_0x154e78(0x1e5))/0x9;if(_0x520376===_0x28ce57)break;else _0x18e755['push'](_0x18e755['shift']());}catch(_0x2ff7ac){_0x18e755['push'](_0x18e755['shift']());}}}(a22_0x2967,0x1f22d));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':'global','type':'boolean','description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x2f188d){const _0x26832e=a22_0x3b3c,_0x172cbe=_0x2f188d[_0x26832e(0x1d3)]('.');if(_0x172cbe['length']!==0x3||_0x172cbe[0x0]!==_0x26832e(0x1d5)||_0x172cbe[0x2]!==_0x26832e(0x1df))return undefined;const _0x1a6efc=_0x172cbe[0x1]?.[_0x26832e(0x1d2)]();return _0x1a6efc?_0x1a6efc:undefined;}function a22_0x2967(){const _0xa39777=['Key\x20not\x20found:\x20','\x22\x20is\x20not\x20settable.','pageSize','Value\x20to\x20assign','validation','isArray','key','\x20config\x20get\x20<key>','riskLevel','3FRdRjB','\x22.\x20Allowed:\x20','list','`\x20=\x20\x22','Settable\x20keys:\x20','../../context.js','field','config','497118mpapkN','set','\x22\x20not\x20found\x20at\x20top\x20level.','write','stringify','(none)','1843960EHFEQP','188112qJIBqE','global','\x20config\x20delete\x20<key>\x20[--global]','\x20\x20global:\x20\x20','783468FVtQcB','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','bool','log','alias','args','\x20(global)','trim','split','read','apps','8110wCiLdJ','Missing\x20key\x20argument.','Set\x20`','length','pageSize\x20must\x20be\x20a\x20positive\x20number','Config\x20files:\x0a','raw','Invalid\x20value\x20for\x20\x22','40rYjocT','appcode','project-or-global-explicit','object','format','Delete\x20a\x20config\x20value','866356oEvFQC','4070934xrSYih','Key\x20\x22','delete','get','Usage:\x20','Get\x20a\x20config\x20value'];a22_0x2967=function(){return _0xa39777;};return a22_0x2967();}function a22_0x3b3c(_0x10ba7d,_0x1ea20f){_0x10ba7d=_0x10ba7d-0x1b0;const _0x296742=a22_0x2967();let _0x3b3cc4=_0x296742[_0x10ba7d];return _0x3b3cc4;}function parseAliasDeleteKey(_0x3263a7){const _0x2dd68c=a22_0x3b3c,_0x2b84fa=_0x3263a7[_0x2dd68c(0x1d3)]('.');if(_0x2b84fa[_0x2dd68c(0x1d9)]===0x2&&_0x2b84fa[0x0]===_0x2dd68c(0x1d5)){const _0x5a1d02=_0x2b84fa[0x1]?.['trim']();return _0x5a1d02?{'alias':_0x5a1d02}:undefined;}if(_0x2b84fa[_0x2dd68c(0x1d9)]===0x3&&_0x2b84fa[0x0]===_0x2dd68c(0x1d5)&&_0x2b84fa[0x2]===_0x2dd68c(0x1df)){const _0x5088d6=_0x2b84fa[0x1]?.[_0x2dd68c(0x1d2)]();return _0x5088d6?{'alias':_0x5088d6,'field':_0x2dd68c(0x1df)}:undefined;}return undefined;}function setLocalAppAlias(_0x4ed217,_0x3ef34c,_0x492ad0){const _0x186868=a22_0x3b3c,_0x366253=_0x4ed217[_0x186868(0x1d5)]&&typeof _0x4ed217[_0x186868(0x1d5)]==='object'&&!Array['isArray'](_0x4ed217['apps'])?_0x4ed217[_0x186868(0x1d5)]:{},_0x2de57d=_0x366253[_0x3ef34c]&&typeof _0x366253[_0x3ef34c]===_0x186868(0x1e1)&&!Array['isArray'](_0x366253[_0x3ef34c])?_0x366253[_0x3ef34c]:{};_0x2de57d['appcode']=_0x492ad0,_0x366253[_0x3ef34c]=_0x2de57d,_0x4ed217['apps']=_0x366253;}function deleteLocalAppAlias(_0x439621,_0x4d01fb){const _0x32b923=a22_0x3b3c;if(!_0x439621[_0x32b923(0x1d5)]||typeof _0x439621[_0x32b923(0x1d5)]!=='object'||Array[_0x32b923(0x1b4)](_0x439621[_0x32b923(0x1d5)]))return![];const _0x1238d2=_0x439621[_0x32b923(0x1d5)],_0x5e2d05=_0x1238d2[_0x4d01fb[_0x32b923(0x1cf)]];if(!_0x5e2d05||typeof _0x5e2d05!==_0x32b923(0x1e1)||Array[_0x32b923(0x1b4)](_0x5e2d05))return![];if(!_0x4d01fb[_0x32b923(0x1be)])return delete _0x1238d2[_0x4d01fb['alias']],!![];if(!(_0x4d01fb['field']in _0x5e2d05))return![];return delete _0x5e2d05[_0x4d01fb[_0x32b923(0x1be)]],Object['keys'](_0x5e2d05)[_0x32b923(0x1d9)]===0x0&&delete _0x1238d2[_0x4d01fb[_0x32b923(0x1cf)]],!![];}const listDef={'service':'config','command':a22_0x36f488(0x1ba),'description':'List\x20current\x20config','risk':a22_0x36f488(0x1d4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x53bc45){const _0x1bb509=a22_0x36f488,{buildConfigFromFlags:_0x1134a7}=await import(_0x1bb509(0x1bd)),_0x599901=_0x1134a7({}),_0x5a220c=getProjectConfigPath(),_0x255ea2=resolveWriteConfigPath(_0x1bb509(0x1c8));if(_0x53bc45[_0x1bb509(0x1e2)]==='pretty')return{'ok':!![],'message':_0x1bb509(0x1cc)+(JSON[_0x1bb509(0x1c4)](_0x599901[_0x1bb509(0x1dc)],null,0x2)+'\x0a\x0a')+_0x1bb509(0x1db)+('\x20\x20project:\x20'+(_0x5a220c??_0x1bb509(0x1c5))+'\x0a')+(_0x1bb509(0x1ca)+_0x255ea2)};return{'ok':!![],'data':{'effective':_0x599901[_0x1bb509(0x1dc)],'configFiles':{'project':_0x5a220c??null,'global':_0x255ea2}}};}},getDef={'service':a22_0x36f488(0x1bf),'command':a22_0x36f488(0x1e8),'description':a22_0x36f488(0x1ea),'risk':a22_0x36f488(0x1d4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x1abc91){const _0x576866=a22_0x36f488,_0xd61381=_0x1abc91[_0x576866(0x1d0)][0x0];if(!_0xd61381)throw CliErrors[_0x576866(0x1b3)](_0x576866(0x1d7),_0x576866(0x1e9)+CLI_BIN_NAME+_0x576866(0x1b6));const {buildConfigFromFlags:_0x1f3191}=await import('../../context.js'),{raw:_0x47c80f}=_0x1f3191({});if(_0xd61381['includes']('.')){const _0x443e69=_0xd61381[_0x576866(0x1d3)]('.');let _0x45a2a5=_0x47c80f;for(const _0x5694d9 of _0x443e69){if(_0x45a2a5==null||typeof _0x45a2a5!=='object')throw CliErrors[_0x576866(0x1b3)](_0x576866(0x1eb)+_0xd61381);_0x45a2a5=_0x45a2a5[_0x5694d9];}if(_0x45a2a5===undefined)throw CliErrors['validation'](_0x576866(0x1eb)+_0xd61381);return console[_0x576866(0x1ce)](typeof _0x45a2a5===_0x576866(0x1e1)?JSON[_0x576866(0x1c4)](_0x45a2a5,null,0x2):String(_0x45a2a5)),{'ok':!![]};}const _0x280730=_0x47c80f[_0xd61381];if(_0x280730===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0xd61381);return console[_0x576866(0x1ce)](typeof _0x280730===_0x576866(0x1e1)?JSON['stringify'](_0x280730,null,0x2):String(_0x280730)),{'ok':!![]};}},setDef={'service':a22_0x36f488(0x1bf),'command':a22_0x36f488(0x1c1),'description':'Set\x20a\x20config\x20value','risk':a22_0x36f488(0x1c3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x36f488(0x1b5),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x36f488(0x1b2),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x55ca0c){const _0x51a0de=a22_0x36f488,_0x28cf00=_0x55ca0c['args'][0x0],_0x1dcbbf=_0x55ca0c[_0x51a0de(0x1d0)][0x1];if(!_0x28cf00||_0x1dcbbf===undefined)throw CliErrors[_0x51a0de(0x1b3)]('Missing\x20key\x20or\x20value.',_0x51a0de(0x1e9)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x28cf00]&&!ENUM_KEYS[_0x28cf00]['includes'](_0x1dcbbf))throw CliErrors[_0x51a0de(0x1b3)](_0x51a0de(0x1dd)+_0x28cf00+_0x51a0de(0x1b9)+ENUM_KEYS[_0x28cf00]['join'](',\x20'));if(_0x28cf00===_0x51a0de(0x1b7))throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x28cf00===_0x51a0de(0x1b1)){const _0x58bec2=Number(_0x1dcbbf);if(isNaN(_0x58bec2)||_0x58bec2<=0x0)throw CliErrors[_0x51a0de(0x1b3)](_0x51a0de(0x1da));}const _0x2c7e87=resolveWriteScope({'explicitGlobal':_0x55ca0c[_0x51a0de(0x1cd)](_0x51a0de(0x1c8)),'policy':_0x51a0de(0x1e0)}),_0x1bfb87=toScopeFlags(_0x2c7e87),_0x3e6e2d=readScopedConfig(_0x1bfb87),_0x341ca6=parseAliasAppcodeSetKey(_0x28cf00);if(!_0x341ca6&&!isTopLevelConfigKey(_0x28cf00))throw CliErrors[_0x51a0de(0x1b3)]('Top-level\x20key\x20\x22'+_0x28cf00+_0x51a0de(0x1b0),_0x51a0de(0x1bc)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x341ca6?setLocalAppAlias(_0x3e6e2d,_0x341ca6,_0x1dcbbf):_0x3e6e2d[_0x28cf00]=_0x28cf00==='pageSize'?Number(_0x1dcbbf):_0x1dcbbf,console['log'](_0x51a0de(0x1d8)+_0x28cf00+_0x51a0de(0x1bb)+_0x1dcbbf+'\x22'+(_0x2c7e87===_0x51a0de(0x1c8)?_0x51a0de(0x1d1):'')),writeScopedConfig(_0x3e6e2d,_0x1bfb87),{'ok':!![]};}},deleteDef={'service':a22_0x36f488(0x1bf),'command':a22_0x36f488(0x1e7),'description':a22_0x36f488(0x1e3),'risk':a22_0x36f488(0x1c3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x36f488(0x1b5),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x424e5d){const _0x24aa75=a22_0x36f488,_0x221d95=_0x424e5d[_0x24aa75(0x1d0)][0x0];if(!_0x221d95)throw CliErrors[_0x24aa75(0x1b3)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x24aa75(0x1c9));const _0x483637=resolveWriteScope({'explicitGlobal':_0x424e5d[_0x24aa75(0x1cd)]('global'),'policy':_0x24aa75(0x1e0)}),_0xd63a81=toScopeFlags(_0x483637),_0xdaeedc=readScopedConfig(_0xd63a81),_0x3d59eb=parseAliasDeleteKey(_0x221d95);if(_0x3d59eb){if(!deleteLocalAppAlias(_0xdaeedc,_0x3d59eb))throw CliErrors['validation'](_0x24aa75(0x1eb)+_0x221d95);return console[_0x24aa75(0x1ce)]('Deleted\x20`'+_0x221d95+'`'+(_0x483637===_0x24aa75(0x1c8)?_0x24aa75(0x1d1):'')),writeScopedConfig(_0xdaeedc,_0xd63a81),{'ok':!![]};}if(_0xdaeedc[_0x221d95]===undefined)throw CliErrors[_0x24aa75(0x1b3)](_0x24aa75(0x1e6)+_0x221d95+_0x24aa75(0x1c2));return delete _0xdaeedc[_0x221d95],console[_0x24aa75(0x1ce)]('Deleted\x20`'+_0x221d95+'`'+(_0x483637===_0x24aa75(0x1c8)?_0x24aa75(0x1d1):'')),writeScopedConfig(_0xdaeedc,_0xd63a81),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
function a22_0xefaf(_0x2926e5,_0x19f6ee){_0x2926e5=_0x2926e5-0x13a;const _0x32a624=a22_0x32a6();let _0xefafbd=_0x32a624[_0x2926e5];return _0xefafbd;}const a22_0x27f826=a22_0xefaf;(function(_0x2a78b8,_0x519984){const _0x3d2eee=a22_0xefaf,_0x2ad1b7=_0x2a78b8();while(!![]){try{const _0x178206=parseInt(_0x3d2eee(0x168))/0x1+parseInt(_0x3d2eee(0x13d))/0x2+parseInt(_0x3d2eee(0x163))/0x3+-parseInt(_0x3d2eee(0x14b))/0x4+parseInt(_0x3d2eee(0x159))/0x5+parseInt(_0x3d2eee(0x153))/0x6*(-parseInt(_0x3d2eee(0x13f))/0x7)+-parseInt(_0x3d2eee(0x13e))/0x8;if(_0x178206===_0x519984)break;else _0x2ad1b7['push'](_0x2ad1b7['shift']());}catch(_0x14153f){_0x2ad1b7['push'](_0x2ad1b7['shift']());}}}(a22_0x32a6,0x76c8e));import{CliErrors}from'../../errors.js';function a22_0x32a6(){const _0x39a945=['join','boolean','Key\x20\x22','Key\x20not\x20found:\x20','pageSize','3107785JkVmhy','config','Deleted\x20`','Delete\x20a\x20config\x20value','includes','format','split','Top-level\x20key\x20\x22','Get\x20a\x20config\x20value','Config\x20files:\x0a','1974045mIJlxM','global','\x20\x20global:\x20\x20','\x20config\x20get\x20<key>','write','494362fphfbI','\x20\x20project:\x20','Value\x20to\x20assign','bool','object','length','read','Missing\x20key\x20argument.','stringify','appcode','isArray','alias','\x20(global)','get','validation','apps','raw','keys','pretty','project-or-global-explicit','trim','Invalid\x20value\x20for\x20\x22','246386tBDQZS','2208200PJkOdq','7VdSCvD','args','delete','../../context.js','value','Usage:\x20','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','set','riskLevel','Set\x20`','field','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','1812892vigznC','log','(none)','Write\x20to\x20global\x20config','pageSize\x20must\x20be\x20a\x20positive\x20number','key','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a',';\x20apps.<alias>.appcode','4088022FcvUPQ'];a22_0x32a6=function(){return _0x39a945;};return a22_0x32a6();}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':'global','type':a22_0x27f826(0x155),'description':a22_0x27f826(0x14e),'default':![]};function parseAliasAppcodeSetKey(_0x515a24){const _0x278c95=a22_0x27f826,_0x34d0ab=_0x515a24['split']('.');if(_0x34d0ab[_0x278c95(0x16d)]!==0x3||_0x34d0ab[0x0]!==_0x278c95(0x177)||_0x34d0ab[0x2]!==_0x278c95(0x171))return undefined;const _0x2d3848=_0x34d0ab[0x1]?.[_0x278c95(0x13b)]();return _0x2d3848?_0x2d3848:undefined;}function parseAliasDeleteKey(_0x191271){const _0x5176e5=a22_0x27f826,_0x4e505a=_0x191271[_0x5176e5(0x15f)]('.');if(_0x4e505a[_0x5176e5(0x16d)]===0x2&&_0x4e505a[0x0]===_0x5176e5(0x177)){const _0x577ef2=_0x4e505a[0x1]?.[_0x5176e5(0x13b)]();return _0x577ef2?{'alias':_0x577ef2}:undefined;}if(_0x4e505a[_0x5176e5(0x16d)]===0x3&&_0x4e505a[0x0]===_0x5176e5(0x177)&&_0x4e505a[0x2]==='appcode'){const _0x36f4b8=_0x4e505a[0x1]?.[_0x5176e5(0x13b)]();return _0x36f4b8?{'alias':_0x36f4b8,'field':_0x5176e5(0x171)}:undefined;}return undefined;}function setLocalAppAlias(_0x1f7ebd,_0x5e33d7,_0x484530){const _0x3d2939=a22_0x27f826,_0x2833bc=_0x1f7ebd[_0x3d2939(0x177)]&&typeof _0x1f7ebd['apps']===_0x3d2939(0x16c)&&!Array[_0x3d2939(0x172)](_0x1f7ebd[_0x3d2939(0x177)])?_0x1f7ebd['apps']:{},_0xb23df7=_0x2833bc[_0x5e33d7]&&typeof _0x2833bc[_0x5e33d7]===_0x3d2939(0x16c)&&!Array[_0x3d2939(0x172)](_0x2833bc[_0x5e33d7])?_0x2833bc[_0x5e33d7]:{};_0xb23df7[_0x3d2939(0x171)]=_0x484530,_0x2833bc[_0x5e33d7]=_0xb23df7,_0x1f7ebd[_0x3d2939(0x177)]=_0x2833bc;}function deleteLocalAppAlias(_0x27721c,_0x541830){const _0xc8301a=a22_0x27f826;if(!_0x27721c[_0xc8301a(0x177)]||typeof _0x27721c[_0xc8301a(0x177)]!==_0xc8301a(0x16c)||Array[_0xc8301a(0x172)](_0x27721c[_0xc8301a(0x177)]))return![];const _0x5693a4=_0x27721c[_0xc8301a(0x177)],_0x56a5a0=_0x5693a4[_0x541830[_0xc8301a(0x173)]];if(!_0x56a5a0||typeof _0x56a5a0!==_0xc8301a(0x16c)||Array['isArray'](_0x56a5a0))return![];if(!_0x541830[_0xc8301a(0x149)])return delete _0x5693a4[_0x541830['alias']],!![];if(!(_0x541830['field']in _0x56a5a0))return![];return delete _0x56a5a0[_0x541830['field']],Object[_0xc8301a(0x179)](_0x56a5a0)[_0xc8301a(0x16d)]===0x0&&delete _0x5693a4[_0x541830[_0xc8301a(0x173)]],!![];}const listDef={'service':a22_0x27f826(0x15a),'command':'list','description':'List\x20current\x20config','risk':a22_0x27f826(0x16e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x39cfd3){const _0x4ed135=a22_0x27f826,{buildConfigFromFlags:_0xf03221}=await import(_0x4ed135(0x142)),_0x41c745=_0xf03221({}),_0x566ae1=getProjectConfigPath(),_0x745512=resolveWriteConfigPath(_0x4ed135(0x164));if(_0x39cfd3[_0x4ed135(0x15e)]===_0x4ed135(0x17a))return{'ok':!![],'message':_0x4ed135(0x151)+(JSON[_0x4ed135(0x170)](_0x41c745['raw'],null,0x2)+'\x0a\x0a')+_0x4ed135(0x162)+(_0x4ed135(0x169)+(_0x566ae1??_0x4ed135(0x14d))+'\x0a')+(_0x4ed135(0x165)+_0x745512)};return{'ok':!![],'data':{'effective':_0x41c745[_0x4ed135(0x178)],'configFiles':{'project':_0x566ae1??null,'global':_0x745512}}};}},getDef={'service':a22_0x27f826(0x15a),'command':a22_0x27f826(0x175),'description':a22_0x27f826(0x161),'risk':a22_0x27f826(0x16e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x27f826(0x150),'description':a22_0x27f826(0x14a),'required':!![]}],'flags':[],async 'execute'(_0x28bccc){const _0x19f078=a22_0x27f826,_0x3e67e6=_0x28bccc['args'][0x0];if(!_0x3e67e6)throw CliErrors[_0x19f078(0x176)](_0x19f078(0x16f),_0x19f078(0x144)+CLI_BIN_NAME+_0x19f078(0x166));const {buildConfigFromFlags:_0x5162bf}=await import(_0x19f078(0x142)),{raw:_0x272e1d}=_0x5162bf({});if(_0x3e67e6[_0x19f078(0x15d)]('.')){const _0x38edc0=_0x3e67e6[_0x19f078(0x15f)]('.');let _0x10520c=_0x272e1d;for(const _0x42ae9d of _0x38edc0){if(_0x10520c==null||typeof _0x10520c!=='object')throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x3e67e6);_0x10520c=_0x10520c[_0x42ae9d];}if(_0x10520c===undefined)throw CliErrors[_0x19f078(0x176)]('Key\x20not\x20found:\x20'+_0x3e67e6);return console[_0x19f078(0x14c)](typeof _0x10520c===_0x19f078(0x16c)?JSON[_0x19f078(0x170)](_0x10520c,null,0x2):String(_0x10520c)),{'ok':!![]};}const _0x2b1407=_0x272e1d[_0x3e67e6];if(_0x2b1407===undefined)throw CliErrors[_0x19f078(0x176)](_0x19f078(0x157)+_0x3e67e6);return console['log'](typeof _0x2b1407==='object'?JSON[_0x19f078(0x170)](_0x2b1407,null,0x2):String(_0x2b1407)),{'ok':!![]};}},setDef={'service':a22_0x27f826(0x15a),'command':a22_0x27f826(0x146),'description':'Set\x20a\x20config\x20value','risk':a22_0x27f826(0x167),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x27f826(0x150),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x27f826(0x143),'description':a22_0x27f826(0x16a),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x285379){const _0xe1ae7e=a22_0x27f826,_0x519057=_0x285379[_0xe1ae7e(0x140)][0x0],_0x27b662=_0x285379['args'][0x1];if(!_0x519057||_0x27b662===undefined)throw CliErrors[_0xe1ae7e(0x176)]('Missing\x20key\x20or\x20value.',_0xe1ae7e(0x144)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x519057]&&!ENUM_KEYS[_0x519057][_0xe1ae7e(0x15d)](_0x27b662))throw CliErrors['validation'](_0xe1ae7e(0x13c)+_0x519057+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x519057][_0xe1ae7e(0x154)](',\x20'));if(_0x519057===_0xe1ae7e(0x147))throw CliErrors[_0xe1ae7e(0x176)](_0xe1ae7e(0x145));if(_0x519057===_0xe1ae7e(0x158)){const _0x52db1e=Number(_0x27b662);if(isNaN(_0x52db1e)||_0x52db1e<=0x0)throw CliErrors[_0xe1ae7e(0x176)](_0xe1ae7e(0x14f));}const _0xb7be87=resolveWriteScope({'explicitGlobal':_0x285379[_0xe1ae7e(0x16b)](_0xe1ae7e(0x164)),'policy':'project-or-global-explicit'}),_0x831d93=toScopeFlags(_0xb7be87),_0x520774=readScopedConfig(_0x831d93),_0x221e1d=parseAliasAppcodeSetKey(_0x519057);if(!_0x221e1d&&!isTopLevelConfigKey(_0x519057))throw CliErrors[_0xe1ae7e(0x176)](_0xe1ae7e(0x160)+_0x519057+'\x22\x20is\x20not\x20settable.','Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0xe1ae7e(0x152));return _0x221e1d?setLocalAppAlias(_0x520774,_0x221e1d,_0x27b662):_0x520774[_0x519057]=_0x519057===_0xe1ae7e(0x158)?Number(_0x27b662):_0x27b662,console[_0xe1ae7e(0x14c)](_0xe1ae7e(0x148)+_0x519057+'`\x20=\x20\x22'+_0x27b662+'\x22'+(_0xb7be87===_0xe1ae7e(0x164)?_0xe1ae7e(0x174):'')),writeScopedConfig(_0x520774,_0x831d93),{'ok':!![]};}},deleteDef={'service':a22_0x27f826(0x15a),'command':a22_0x27f826(0x141),'description':a22_0x27f826(0x15c),'risk':a22_0x27f826(0x167),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x27f826(0x150),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3d49c3){const _0x246668=a22_0x27f826,_0x4b5024=_0x3d49c3[_0x246668(0x140)][0x0];if(!_0x4b5024)throw CliErrors[_0x246668(0x176)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x28a632=resolveWriteScope({'explicitGlobal':_0x3d49c3[_0x246668(0x16b)](_0x246668(0x164)),'policy':_0x246668(0x13a)}),_0x20050a=toScopeFlags(_0x28a632),_0x20037a=readScopedConfig(_0x20050a),_0x991c77=parseAliasDeleteKey(_0x4b5024);if(_0x991c77){if(!deleteLocalAppAlias(_0x20037a,_0x991c77))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x4b5024);return console['log']('Deleted\x20`'+_0x4b5024+'`'+(_0x28a632==='global'?_0x246668(0x174):'')),writeScopedConfig(_0x20037a,_0x20050a),{'ok':!![]};}if(_0x20037a[_0x4b5024]===undefined)throw CliErrors['validation'](_0x246668(0x156)+_0x4b5024+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x20037a[_0x4b5024],console['log'](_0x246668(0x15b)+_0x4b5024+'`'+(_0x28a632===_0x246668(0x164)?_0x246668(0x174):'')),writeScopedConfig(_0x20037a,_0x20050a),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a23_0x5499(_0x44662a,_0x48da0e){_0x44662a=_0x44662a-0x184;var _0x798f00=a23_0x798f();var _0x549997=_0x798f00[_0x44662a];return _0x549997;}(function(_0x483e52,_0x2b7f90){var _0xcd7591=a23_0x5499,_0x7f603d=_0x483e52();while(!![]){try{var _0x49dc98=-parseInt(_0xcd7591(0x184))/0x1*(parseInt(_0xcd7591(0x188))/0x2)+parseInt(_0xcd7591(0x187))/0x3+-parseInt(_0xcd7591(0x18d))/0x4*(-parseInt(_0xcd7591(0x18a))/0x5)+parseInt(_0xcd7591(0x185))/0x6*(-parseInt(_0xcd7591(0x18b))/0x7)+-parseInt(_0xcd7591(0x18e))/0x8+parseInt(_0xcd7591(0x18c))/0x9+-parseInt(_0xcd7591(0x189))/0xa*(-parseInt(_0xcd7591(0x186))/0xb);if(_0x49dc98===_0x2b7f90)break;else _0x7f603d['push'](_0x7f603d['shift']());}catch(_0x4829fd){_0x7f603d['push'](_0x7f603d['shift']());}}}(a23_0x798f,0x327cd));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';function a23_0x798f(){var _0x3b0ade=['258lDzmpK','22ulfxuB','850323Yuuztl','18418LadasX','1749520Ocytlz','67495QpcdIt','26992SVUFuH','624996vCosjO','8OcIIQN','2120736zcWUEt','10AEkIuk'];a23_0x798f=function(){return _0x3b0ade;};return a23_0x798f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x3b722c=a24_0x201c;(function(_0x28b54e,_0x26f64e){const _0x11beeb=a24_0x201c,_0x5f377b=_0x28b54e();while(!![]){try{const _0x5f50fb=-parseInt(_0x11beeb(0x1f8))/0x1+parseInt(_0x11beeb(0x1e5))/0x2*(parseInt(_0x11beeb(0x1db))/0x3)+-parseInt(_0x11beeb(0x1e2))/0x4+-parseInt(_0x11beeb(0x211))/0x5+parseInt(_0x11beeb(0x200))/0x6*(parseInt(_0x11beeb(0x1d7))/0x7)+parseInt(_0x11beeb(0x1ed))/0x8+-parseInt(_0x11beeb(0x1fc))/0x9*(-parseInt(_0x11beeb(0x1cc))/0xa);if(_0x5f50fb===_0x26f64e)break;else _0x5f377b['push'](_0x5f377b['shift']());}catch(_0x3985d6){_0x5f377b['push'](_0x5f377b['shift']());}}}(a24_0x4895,0x74f67));function a24_0x4895(){const _0x11fed6=['batchCreate','\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\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20$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]}}','data\x20','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','541557hVAbvr','\x20\x20PARAMS\x20STRUCTURE','\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\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}}]','5517WMWtRf','\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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','paramsRequired','11646FhEofr','\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}}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\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','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\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}}','create','\x20\x20EXAMPLES','filter','params','helpExtra','/api/{appCode}/','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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]','body','2376370HTTIKt','join','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Update\x20an\x20existing\x20record','operation','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','Preview:\x20data\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','str','\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}','getOne','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','description','10090wZRmPm','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','aggregate','\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}}]}','delete','write','1211DFuwAB','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20WHERE\x20OPERATORS','code','207849xEZWQB','\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}]','risk','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Get\x20a\x20single\x20record\x20by\x20ID','now','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','2506444rLOcwE','\x20\x20AGGREGATE\x20TYPES','update','10OGTsOA','\x20completed\x20in\x20','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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$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}}','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20on\x20dataset\x20','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','6574368EelgEX','\x20\x20PAGINATION','read','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','command'];a24_0x4895=function(){return _0x11fed6;};return a24_0x4895();}function a24_0x201c(_0x1ddbea,_0x3f2297){_0x1ddbea=_0x1ddbea-0x1cb;const _0x489566=a24_0x4895();let _0x201c40=_0x489566[_0x1ddbea];return _0x201c40;}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}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x3b722c(0x208),'operation':a24_0x3b722c(0x208),'risk':a24_0x3b722c(0x1ef),'paramsRequired':![],'description':a24_0x3b722c(0x1cd),'paramsHint':a24_0x3b722c(0x21d)+a24_0x3b722c(0x202),'helpExtra':[a24_0x3b722c(0x1d9),a24_0x3b722c(0x205),a24_0x3b722c(0x1fa),a24_0x3b722c(0x201),a24_0x3b722c(0x1cf),'\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}}',a24_0x3b722c(0x1f3),a24_0x3b722c(0x1f5),a24_0x3b722c(0x1d0),'\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}}',a24_0x3b722c(0x1e9),'','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a24_0x3b722c(0x1d4),'',a24_0x3b722c(0x1e1),a24_0x3b722c(0x20c),a24_0x3b722c(0x20f),a24_0x3b722c(0x1dc),a24_0x3b722c(0x1e7),a24_0x3b722c(0x20d),'',a24_0x3b722c(0x1ee),a24_0x3b722c(0x1ec),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a24_0x3b722c(0x212)]('\x0a')},{'command':'getOne','operation':a24_0x3b722c(0x21c),'risk':'read','paramsRequired':!![],'description':a24_0x3b722c(0x1df),'paramsHint':a24_0x3b722c(0x1d8)},{'command':a24_0x3b722c(0x206),'operation':a24_0x3b722c(0x206),'risk':'write','paramsRequired':!![],'description':a24_0x3b722c(0x20e),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a24_0x3b722c(0x1f2),'operation':a24_0x3b722c(0x1f2),'risk':a24_0x3b722c(0x1d6),'paramsRequired':!![],'description':a24_0x3b722c(0x204),'paramsHint':a24_0x3b722c(0x21e)},{'command':a24_0x3b722c(0x1e4),'operation':a24_0x3b722c(0x1e4),'risk':a24_0x3b722c(0x1d6),'paramsRequired':!![],'description':a24_0x3b722c(0x215),'paramsHint':a24_0x3b722c(0x217)},{'command':a24_0x3b722c(0x1d5),'operation':a24_0x3b722c(0x1d5),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x3b722c(0x1ea),'paramsHint':a24_0x3b722c(0x1d8)},{'command':a24_0x3b722c(0x1d3),'operation':a24_0x3b722c(0x1d3),'risk':a24_0x3b722c(0x1ef),'paramsRequired':![],'description':a24_0x3b722c(0x1ce),'paramsHint':a24_0x3b722c(0x1f0)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a24_0x3b722c(0x1e3),a24_0x3b722c(0x1e8),a24_0x3b722c(0x219),'\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\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}',a24_0x3b722c(0x1f4),a24_0x3b722c(0x21f),a24_0x3b722c(0x21b),'',a24_0x3b722c(0x1f9),'\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_0x3b722c(0x1fe),a24_0x3b722c(0x213),a24_0x3b722c(0x1de),a24_0x3b722c(0x1fb),a24_0x3b722c(0x1d2),'',a24_0x3b722c(0x207),a24_0x3b722c(0x1d1),a24_0x3b722c(0x1fd),'',a24_0x3b722c(0x214),a24_0x3b722c(0x203),'',a24_0x3b722c(0x1f7)][a24_0x3b722c(0x212)]('\x0a')}];function makeDataCommand(_0xc071e2){const _0x4386f6=a24_0x3b722c,_0x4ff317=_0x4386f6(0x1f6)+_0xc071e2[_0x4386f6(0x1f1)],_0x26336a={'service':'data','command':_0xc071e2[_0x4386f6(0x1f1)],'description':_0xc071e2[_0x4386f6(0x1cb)],'risk':_0xc071e2[_0x4386f6(0x1dd)],'helpExtra':_0xc071e2[_0x4386f6(0x20a)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xc071e2['paramsHint']}],'validate':async _0x5c6271=>{const _0x5992aa=_0x4386f6;_0xc071e2[_0x5992aa(0x1ff)]&&requireAnyOf(_0x5c6271,[_0x5992aa(0x209)],_0x4ff317),_0xc071e2[_0x5992aa(0x216)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5c6271['str'](_0x5992aa(0x209))));},async 'execute'(_0x78ac1b){const _0x29463d=_0x4386f6,_0x5da121=_0x78ac1b['str'](_0x29463d(0x1da)),_0x12890f=_0xc071e2[_0x29463d(0x216)]===_0x29463d(0x1f2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x78ac1b['str']('params'))):parseJsonParams(_0x78ac1b[_0x29463d(0x21a)](_0x29463d(0x209)))??{},_0x2b0173=Date[_0x29463d(0x1e0)](),_0x3fb26f=await executeData(_0x5da121,_0xc071e2['operation'],_0x12890f),_0x1a9f69=Date[_0x29463d(0x1e0)]()-_0x2b0173;return{'ok':!![],'data':{'result':_0x3fb26f,'elapsed':_0x1a9f69},'message':_0x29463d(0x1f6)+_0xc071e2['command']+_0x29463d(0x1e6)+_0x1a9f69+'ms'};}};return _0xc071e2[_0x4386f6(0x1dd)]!==_0x4386f6(0x1ef)&&(_0x26336a['dryRun']=async _0x55088c=>{const _0x3b6186=_0x4386f6,_0x3eaef9=_0x55088c[_0x3b6186(0x21a)]('code'),_0x6ad8aa=_0xc071e2[_0x3b6186(0x216)]===_0x3b6186(0x1f2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x55088c['str'](_0x3b6186(0x209)))):parseJsonParams(_0x55088c[_0x3b6186(0x21a)](_0x3b6186(0x209)))??{};return dryRun('POST',_0x3b6186(0x20b)+_0x3eaef9+'/'+_0xc071e2[_0x3b6186(0x216)])[_0x3b6186(0x210)](_0x6ad8aa)[_0x3b6186(0x1cb)](_0x3b6186(0x218)+_0xc071e2[_0x3b6186(0x1f1)]+_0x3b6186(0x1eb)+_0x3eaef9)['build']();}),_0x26336a;}export const dataDefinitions=specs['map'](makeDataCommand);
|
|
1
|
+
function a24_0x5354(_0x3d25c4,_0x51404c){_0x3d25c4=_0x3d25c4-0x97;const _0x352943=a24_0x3529();let _0x535450=_0x352943[_0x3d25c4];return _0x535450;}const a24_0x496c05=a24_0x5354;function a24_0x3529(){const _0x558db1=['dryRun','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20EXAMPLES','\x20\x20AGGREGATE\x20TYPES','2821VceamK','body','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','delete','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','20889590WVfqjB','/api/{appCode}/','15416jjnPmC','create','\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}}','84VAfOHt','\x20\x20WHERE\x20OPERATORS','Preview:\x20data\x20','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20LOGICAL\x20COMBINATORS','\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\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','aggregate','18228aLEIkW','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','1861821wbYRqI','helpExtra','Update\x20an\x20existing\x20record','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20completed\x20in\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}','filter','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','100218FOHNjS','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','paramsRequired','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','now','params','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\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}}','1575570WMleyA','\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}}]','data\x20','command','map','\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}}]}','read','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\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}}','risk','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','str','getOne','\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\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}','join','\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}}','write','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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}','operation','description','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','update','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','data','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','batchCreate','\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}}','2666900jPTDGJ','\x20\x20PAGINATION','\x20on\x20dataset\x20','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\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}','50cWWjUR','\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]}}','POST'];a24_0x3529=function(){return _0x558db1;};return a24_0x3529();}(function(_0x59fdc8,_0x4ea132){const _0x3c7dd8=a24_0x5354,_0x22afa0=_0x59fdc8();while(!![]){try{const _0x565e10=parseInt(_0x3c7dd8(0xd8))/0x1*(parseInt(_0x3c7dd8(0xcf))/0x2)+-parseInt(_0x3c7dd8(0x97))/0x3+-parseInt(_0x3c7dd8(0xb8))/0x4+parseInt(_0x3c7dd8(0xbd))/0x5*(-parseInt(_0x3c7dd8(0xe3))/0x6)+parseInt(_0x3c7dd8(0xc4))/0x7*(-parseInt(_0x3c7dd8(0xcc))/0x8)+-parseInt(_0x3c7dd8(0xdb))/0x9+parseInt(_0x3c7dd8(0xca))/0xa;if(_0x565e10===_0x4ea132)break;else _0x22afa0['push'](_0x22afa0['shift']());}catch(_0x452a99){_0x22afa0['push'](_0x22afa0['shift']());}}}(a24_0x3529,0x7d08c));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}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x496c05(0xe1),'operation':a24_0x496c05(0xe1),'risk':'read','paramsRequired':![],'description':a24_0x496c05(0xa0),'paramsHint':a24_0x496c05(0xc1)+a24_0x496c05(0xb1),'helpExtra':[a24_0x496c05(0xd0),'\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}}',a24_0x496c05(0xce),a24_0x496c05(0xa3),a24_0x496c05(0xb5),'\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}}',a24_0x496c05(0xb7),a24_0x496c05(0xbe),a24_0x496c05(0xd5),a24_0x496c05(0xeb),a24_0x496c05(0xab),'',a24_0x496c05(0xd3),a24_0x496c05(0x9c),'\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_0x496c05(0xc7),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a24_0x496c05(0xd6),a24_0x496c05(0xa8),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a24_0x496c05(0xde),'',a24_0x496c05(0xb9),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x496c05(0xe2),a24_0x496c05(0xa2)][a24_0x496c05(0xaa)]('\x0a')},{'command':a24_0x496c05(0xa7),'operation':a24_0x496c05(0xa7),'risk':a24_0x496c05(0x9d),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x496c05(0x9e)},{'command':'create','operation':a24_0x496c05(0xcd),'risk':a24_0x496c05(0xac),'paramsRequired':!![],'description':a24_0x496c05(0xad),'paramsHint':a24_0x496c05(0xb3)},{'command':a24_0x496c05(0xb6),'operation':a24_0x496c05(0xb6),'risk':a24_0x496c05(0xac),'paramsRequired':!![],'description':a24_0x496c05(0xc9),'paramsHint':a24_0x496c05(0xd2)},{'command':a24_0x496c05(0xb2),'operation':a24_0x496c05(0xb2),'risk':a24_0x496c05(0xac),'paramsRequired':!![],'description':a24_0x496c05(0xdd),'paramsHint':a24_0x496c05(0xe4)},{'command':a24_0x496c05(0xc8),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x496c05(0xd7),'operation':a24_0x496c05(0xd7),'risk':a24_0x496c05(0x9d),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x496c05(0xe6)+a24_0x496c05(0xa1),'helpExtra':[a24_0x496c05(0xc3),a24_0x496c05(0xa9),'\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}',a24_0x496c05(0xe0),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}',a24_0x496c05(0xbc),a24_0x496c05(0xae),'','\x20\x20PARAMS\x20STRUCTURE',a24_0x496c05(0xc6),a24_0x496c05(0xda),a24_0x496c05(0xea),a24_0x496c05(0x9f),a24_0x496c05(0x98),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a24_0x496c05(0xc2),a24_0x496c05(0xe9),a24_0x496c05(0xd4),'',a24_0x496c05(0xa5),a24_0x496c05(0xd9),'',a24_0x496c05(0xbb)]['join']('\x0a')}];function makeDataCommand(_0x4c15eb){const _0x211faf=a24_0x496c05,_0x537a07=_0x211faf(0x99)+_0x4c15eb[_0x211faf(0x9a)],_0x1cbd68={'service':_0x211faf(0xb4),'command':_0x4c15eb['command'],'description':_0x4c15eb[_0x211faf(0xb0)],'risk':_0x4c15eb['risk'],'helpExtra':_0x4c15eb[_0x211faf(0xdc)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x4c15eb['paramsHint']}],'validate':async _0x4a9cda=>{const _0xc6c9ea=_0x211faf;_0x4c15eb[_0xc6c9ea(0xe5)]&&requireAnyOf(_0x4a9cda,[_0xc6c9ea(0xe8)],_0x537a07),_0x4c15eb['operation']===_0xc6c9ea(0xb6)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4a9cda['str'](_0xc6c9ea(0xe8))));},async 'execute'(_0x3ea613){const _0x125241=_0x211faf,_0x1ad7e2=_0x3ea613['str']('code'),_0x545d94=_0x4c15eb['operation']===_0x125241(0xb6)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3ea613['str'](_0x125241(0xe8)))):parseJsonParams(_0x3ea613[_0x125241(0xa6)](_0x125241(0xe8)))??{},_0x4c683e=Date[_0x125241(0xe7)](),_0x35624b=await executeData(_0x1ad7e2,_0x4c15eb[_0x125241(0xaf)],_0x545d94),_0x3960c4=Date[_0x125241(0xe7)]()-_0x4c683e;return{'ok':!![],'data':{'result':_0x35624b,'elapsed':_0x3960c4},'message':_0x125241(0x99)+_0x4c15eb['command']+_0x125241(0xdf)+_0x3960c4+'ms'};}};return _0x4c15eb[_0x211faf(0xa4)]!=='read'&&(_0x1cbd68[_0x211faf(0xc0)]=async _0x57b87e=>{const _0xdc80b7=_0x211faf,_0x56ec74=_0x57b87e[_0xdc80b7(0xa6)]('code'),_0xa6b176=_0x4c15eb[_0xdc80b7(0xaf)]===_0xdc80b7(0xb6)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x57b87e[_0xdc80b7(0xa6)]('params'))):parseJsonParams(_0x57b87e[_0xdc80b7(0xa6)](_0xdc80b7(0xe8)))??{};return dryRun(_0xdc80b7(0xbf),_0xdc80b7(0xcb)+_0x56ec74+'/'+_0x4c15eb['operation'])[_0xdc80b7(0xc5)](_0xa6b176)['description'](_0xdc80b7(0xd1)+_0x4c15eb[_0xdc80b7(0x9a)]+_0xdc80b7(0xba)+_0x56ec74)['build']();}),_0x1cbd68;}export const dataDefinitions=specs[a24_0x496c05(0x9b)](makeDataCommand);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x4b2aa8=a25_0x185e;(function(_0x50c331,_0xac97c4){const _0x4f2c18=a25_0x185e,_0x4f29a6=_0x50c331();while(!![]){try{const _0x3b9513=parseInt(_0x4f2c18(0x1cf))/0x1+-parseInt(_0x4f2c18(0x1b1))/0x2+-parseInt(_0x4f2c18(0x1b0))/0x3*(parseInt(_0x4f2c18(0x199))/0x4)+parseInt(_0x4f2c18(0x19e))/0x5+-parseInt(_0x4f2c18(0x1be))/0x6+parseInt(_0x4f2c18(0x1c5))/0x7*(-parseInt(_0x4f2c18(0x1bf))/0x8)+parseInt(_0x4f2c18(0x18e))/0x9*(parseInt(_0x4f2c18(0x1bd))/0xa);if(_0x3b9513===_0xac97c4)break;else _0x4f29a6['push'](_0x4f29a6['shift']());}catch(_0x224883){_0x4f29a6['push'](_0x4f29a6['shift']());}}}(a25_0x27eb,0xe32bb));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a25_0x27eb(){const _0xb576a=['50yLPYiw','246738AzvcfQ','264448pqIUaP','indexes','entries','datasetKey','creatorIdField','object','371Cgthnh','allFields','host','type','push','find','map','modifierNameField','code','responseFields','139686ZgGxou','description','dbType','deleted','dblinkInfoDTO','options','detail','sourceType','2882493AUYNHt','dataType','dbtableConfig','extend','creatorNameField','columnCodeListWithDeleted','trim','pkField','requestFields','fields','doVersion','1672276QUtjAG','isArray','createTimeField','modifierIdField','required','7374990qyRTXW','beforeScriptId','dataset','method','doType','operations','string','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','source','name','responseBody','tableName','dbId','read','dbName','path','relations','parse','3HaiJul','148836AQqugq','formatRules','afterScriptId','validateRules','updateTimeField','requestBody','tableComment','length','str','displayName','modelCode','filter'];a25_0x27eb=function(){return _0xb576a;};return a25_0x27eb();}function normalizeField(_0x56040c){const _0x11328a=a25_0x185e;if(_0x56040c[_0x11328a(0x1d2)])return null;const _0x3a95a9=Boolean(_0x56040c['displayName']!==undefined||_0x56040c[_0x11328a(0x1a2)]!==undefined);let _0x54c7ff={};if(!_0x3a95a9&&typeof _0x56040c[_0x11328a(0x191)]===_0x11328a(0x1a4))try{_0x54c7ff=JSON['parse'](_0x56040c[_0x11328a(0x191)]);}catch{}const _0x2450da=_0x3a95a9?_0x56040c[_0x11328a(0x1a7)]:_0x56040c['code'],_0x54e5fa=_0x3a95a9?_0x56040c[_0x11328a(0x1ba)]:_0x56040c[_0x11328a(0x1a7)],_0x38caf8=_0x3a95a9?_0x56040c[_0x11328a(0x1a2)]:_0x56040c[_0x11328a(0x1c8)]||_0x56040c[_0x11328a(0x18f)],_0x4c7731=_0x3a95a9?_0x56040c[_0x11328a(0x195)]===!![]:_0x54c7ff[_0x11328a(0x195)]===!![],_0xaca54e=_0x3a95a9?_0x56040c[_0x11328a(0x19d)]===!![]:_0x54c7ff[_0x11328a(0x19d)]===!![],_0x2e42f7=_0x3a95a9?_0x56040c[_0x11328a(0x18b)]??null:_0x54c7ff[_0x11328a(0x18b)]??null,_0x1926e1={'name':_0x2450da,'displayName':_0x54e5fa||_0x2450da,'type':_0x38caf8,'dbType':_0x56040c[_0x11328a(0x1d1)],'pk':_0x4c7731,'required':_0xaca54e,'description':_0x56040c[_0x11328a(0x1d0)]||undefined};return Array[_0x11328a(0x19a)](_0x2e42f7)&&_0x2e42f7[_0x11328a(0x1b8)]>0x0&&(_0x1926e1[_0x11328a(0x18b)]=_0x2e42f7),_0x1926e1;}function parseJsonMaybe(_0xbd3dc5){const _0x3af704=a25_0x185e;if(typeof _0xbd3dc5!==_0x3af704(0x1a4))return _0xbd3dc5;try{return JSON[_0x3af704(0x1af)](_0xbd3dc5);}catch{return _0xbd3dc5;}}function normalizeOperationEntry(_0x38d09a,_0x368b0b){const _0x2c9573=a25_0x185e;if(!_0x368b0b||typeof _0x368b0b!==_0x2c9573(0x1c4))return null;if(!_0x368b0b[_0x2c9573(0x1a1)]||!_0x368b0b[_0x2c9573(0x1ad)])return null;const _0x552a3c={'name':_0x38d09a,'method':_0x368b0b[_0x2c9573(0x1a1)],'path':_0x368b0b[_0x2c9573(0x1ad)]};if(_0x368b0b[_0x2c9573(0x1c7)])_0x552a3c[_0x2c9573(0x1c7)]=_0x368b0b[_0x2c9573(0x1c7)];if(_0x368b0b[_0x2c9573(0x1b6)]!=null)_0x552a3c[_0x2c9573(0x1b6)]=parseJsonMaybe(_0x368b0b[_0x2c9573(0x1b6)]);if(_0x368b0b[_0x2c9573(0x1a8)]!=null)_0x552a3c[_0x2c9573(0x1a8)]=parseJsonMaybe(_0x368b0b[_0x2c9573(0x1a8)]);if(_0x368b0b['beforeScriptId']!=null)_0x552a3c[_0x2c9573(0x19f)]=_0x368b0b['beforeScriptId'];if(_0x368b0b[_0x2c9573(0x1b3)]!=null)_0x552a3c[_0x2c9573(0x1b3)]=_0x368b0b[_0x2c9573(0x1b3)];if(Array[_0x2c9573(0x19a)](_0x368b0b['requestFields']))_0x552a3c[_0x2c9573(0x196)]=_0x368b0b[_0x2c9573(0x196)];if(Array[_0x2c9573(0x19a)](_0x368b0b[_0x2c9573(0x1ce)]))_0x552a3c['responseFields']=_0x368b0b['responseFields'];return _0x552a3c;}function summarizeDbtable(_0x5a0b6f){const _0x55ddbe=a25_0x185e,_0x106e4b={},_0x406e95=['dbId',_0x55ddbe(0x1ac),_0x55ddbe(0x1a9),_0x55ddbe(0x1c2),_0x55ddbe(0x195),'allFields','logicField',_0x55ddbe(0x19b),_0x55ddbe(0x1b5),_0x55ddbe(0x1c3),_0x55ddbe(0x192),_0x55ddbe(0x19c),_0x55ddbe(0x1cc),'labelField',_0x55ddbe(0x1d3)];for(const _0x3743f1 of _0x406e95){if(_0x5a0b6f[_0x3743f1]!==undefined)_0x106e4b[_0x3743f1]=_0x5a0b6f[_0x3743f1];}return typeof _0x106e4b[_0x55ddbe(0x1c6)]===_0x55ddbe(0x1a4)&&_0x106e4b[_0x55ddbe(0x1c6)][_0x55ddbe(0x1b8)]>0x0&&(_0x106e4b['allFieldNames']=_0x106e4b[_0x55ddbe(0x1c6)]['split'](',')[_0x55ddbe(0x1cb)](_0x4f02cc=>_0x4f02cc[_0x55ddbe(0x194)]())[_0x55ddbe(0x1bc)](Boolean)),_0x106e4b;}function a25_0x185e(_0x23c48c,_0x193d33){_0x23c48c=_0x23c48c-0x18b;const _0x27ebd4=a25_0x27eb();let _0x185e44=_0x27ebd4[_0x23c48c];return _0x185e44;}function normalizeRelatedPages(_0x1ef1f6){const _0x537779=a25_0x185e;if(!Array[_0x537779(0x19a)](_0x1ef1f6))return[];return _0x1ef1f6[_0x537779(0x1bc)](_0x172b33=>_0x172b33&&typeof _0x172b33===_0x537779(0x1c4))[_0x537779(0x1cb)](_0x5006b2=>({'id':_0x5006b2['id'],'type':_0x5006b2[_0x537779(0x1c8)],'code':_0x5006b2[_0x537779(0x1cd)],'title':_0x5006b2['title'],'deleted':_0x5006b2[_0x537779(0x1d2)]===!![]}));}function normalizeFallbackFieldName(_0x5447d7,_0xf81ae0){const _0x15490f=_0x5447d7['trim']();if(!_0x15490f)return null;return{'name':_0x15490f,'displayName':_0x15490f,'type':undefined,'dbType':undefined,'pk':_0x15490f===_0xf81ae0,'required':![],'description':undefined};}async function loadListFieldFallback(_0x7582d5,_0x3b64a1){const _0x14ca4d=a25_0x185e;if(!_0x7582d5||!_0x3b64a1)return[];try{const _0x59140e=await listDatasets(_0x7582d5,{'code':_0x3b64a1}),_0x3cb885=_0x59140e[_0x14ca4d(0x1ca)](_0x5b9c3d=>_0x5b9c3d[_0x14ca4d(0x1cd)]===_0x3b64a1)??_0x59140e[0x0],_0x360cfd=_0x3cb885?.[_0x14ca4d(0x190)]??{},_0x2ad4d9=typeof _0x360cfd[_0x14ca4d(0x1c6)]==='string'?_0x360cfd[_0x14ca4d(0x1c6)]['split'](','):[];return _0x2ad4d9[_0x14ca4d(0x1cb)](_0x3c1d51=>normalizeFallbackFieldName(_0x3c1d51,_0x360cfd['pkField']))[_0x14ca4d(0x1bc)](_0x213010=>_0x213010!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x4b2aa8(0x1a0),'command':a25_0x4b2aa8(0x18c),'description':a25_0x4b2aa8(0x1a5),'risk':a25_0x4b2aa8(0x1ab),'flags':[CODE_FLAG],async 'execute'(_0x466621){const _0x4cec40=a25_0x4b2aa8,_0x3c7239=await getDatasetDetail(_0x466621['str']('code')),_0x5b7f43=Array[_0x4cec40(0x19a)](_0x3c7239[_0x4cec40(0x197)])?_0x3c7239[_0x4cec40(0x197)]:Array['isArray'](_0x3c7239['properties'])?_0x3c7239['properties']:[];let _0x1ea195=_0x5b7f43[_0x4cec40(0x1cb)](_0x1c7e5a=>normalizeField(_0x1c7e5a))[_0x4cec40(0x1bc)](_0x528514=>_0x528514!==null);_0x1ea195[_0x4cec40(0x1b8)]===0x0&&(_0x1ea195=await loadListFieldFallback(_0x466621['appCode'],_0x466621[_0x4cec40(0x1b9)](_0x4cec40(0x1cd))));const _0x3c75a1=_0x3c7239[_0x4cec40(0x1a3)]??{},_0x36e670=[];for(const [_0xc691a5,_0x124bca]of Object[_0x4cec40(0x1c1)](_0x3c75a1)){const _0x5bd28f=normalizeOperationEntry(_0xc691a5,_0x124bca);if(_0x5bd28f)_0x36e670[_0x4cec40(0x1c9)](_0x5bd28f);}const _0x300557=_0x3c7239['dbtableConfig']??{},_0x5df5f3=_0x3c7239['dataset']??{},_0x3719e6=_0x300557[_0x4cec40(0x1aa)]!=null?{'id':_0x300557[_0x4cec40(0x1aa)],'name':_0x300557['dbName']??null}:undefined;let _0x18accc;return typeof _0x3c7239[_0x4cec40(0x191)]===_0x4cec40(0x1a4)&&(_0x18accc=parseJsonMaybe(_0x3c7239[_0x4cec40(0x191)])),{'ok':!![],'data':{'id':_0x3c7239['modelId']??_0x3c7239['id'],'name':_0x3c7239[_0x4cec40(0x1a7)],'code':_0x3c7239[_0x4cec40(0x1bb)]||_0x3c7239[_0x4cec40(0x1cd)],'doVersion':_0x3c7239[_0x4cec40(0x198)],'description':_0x3c7239['description']||_0x5df5f3[_0x4cec40(0x1b7)]||undefined,'source':_0x3c7239[_0x4cec40(0x1a6)]||_0x5df5f3[_0x4cec40(0x18d)],'table':_0x300557[_0x4cec40(0x1a9)]||_0x5df5f3[_0x4cec40(0x1a9)],'datasetKey':_0x300557[_0x4cec40(0x1c2)],'pk':_0x300557[_0x4cec40(0x195)],'db':_0x3719e6,'dbtable':summarizeDbtable(_0x300557),'fields':_0x1ea195,'operations':_0x36e670,'indexes':Array[_0x4cec40(0x19a)](_0x5df5f3[_0x4cec40(0x1c0)])?_0x5df5f3[_0x4cec40(0x1c0)]:[],'relations':_0x3c7239[_0x4cec40(0x1ae)]??null,'relatedPages':normalizeRelatedPages(_0x3c7239['relatedPageInfoList']),...Array[_0x4cec40(0x19a)](_0x3c7239['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x3c7239[_0x4cec40(0x193)]}:{},'formatRules':Array[_0x4cec40(0x19a)](_0x3c7239['formatRules'])?_0x3c7239[_0x4cec40(0x1b2)]:[],'validateRules':Array['isArray'](_0x3c7239[_0x4cec40(0x1b4)])?_0x3c7239[_0x4cec40(0x1b4)]:[],..._0x18accc!==undefined?{'extend':_0x18accc}:{},'stats':{'fieldCount':_0x1ea195[_0x4cec40(0x1b8)],'operationCount':_0x36e670[_0x4cec40(0x1b8)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5aeeac,_0xa9cc45){const _0x346364=a26_0x4a33,_0x2a4bc0=_0x5aeeac();while(!![]){try{const _0x3a7abf=parseInt(_0x346364(0x1a2))/0x1*(parseInt(_0x346364(0x1a3))/0x2)+-parseInt(_0x346364(0x1a7))/0x3*(-parseInt(_0x346364(0x1a8))/0x4)+-parseInt(_0x346364(0x1a5))/0x5*(-parseInt(_0x346364(0x1a6))/0x6)+parseInt(_0x346364(0x1a4))/0x7+parseInt(_0x346364(0x1aa))/0x8+-parseInt(_0x346364(0x1a1))/0x9+-parseInt(_0x346364(0x1a9))/0xa;if(_0x3a7abf===_0xa9cc45)break;else _0x2a4bc0['push'](_0x2a4bc0['shift']());}catch(_0x5a6e60){_0x2a4bc0['push'](_0x2a4bc0['shift']());}}}(a26_0x3af7,0x1c84a));function a26_0x3af7(){const _0x22579f=['1319580VBBkMF','9444EOflHk','4qqKbEc','1479646cJfDnU','295Ypcqkt','2178EaSKIO','6PmunXX','90884gKipmV','914320ymXMvJ','461896FAWJXO'];a26_0x3af7=function(){return _0x22579f;};return a26_0x3af7();}function a26_0x4a33(_0x4b28f4,_0x12b5ec){_0x4b28f4=_0x4b28f4-0x1a1;const _0x3af737=a26_0x3af7();let _0x4a337b=_0x3af737[_0x4b28f4];return _0x4a337b;}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x17d4d5=a27_0x1d3c;function a27_0x1d3c(_0x1464dd,_0x3c67b8){_0x1464dd=_0x1464dd-0x98;const _0xef47b2=a27_0xef47();let _0x1d3c8e=_0xef47b2[_0x1464dd];return _0x1d3c8e;}(function(_0x50118c,_0x41a2d5){const _0xb55743=a27_0x1d3c,_0x2ac511=_0x50118c();while(!![]){try{const _0x98c3=-parseInt(_0xb55743(0xa7))/0x1+-parseInt(_0xb55743(0xac))/0x2*(-parseInt(_0xb55743(0xa0))/0x3)+parseInt(_0xb55743(0xa3))/0x4+-parseInt(_0xb55743(0x9b))/0x5*(-parseInt(_0xb55743(0xae))/0x6)+parseInt(_0xb55743(0x99))/0x7+-parseInt(_0xb55743(0xa1))/0x8*(parseInt(_0xb55743(0xa8))/0x9)+-parseInt(_0xb55743(0x9e))/0xa*(-parseInt(_0xb55743(0xaa))/0xb);if(_0x98c3===_0x41a2d5)break;else _0x2ac511['push'](_0x2ac511['shift']());}catch(_0x30dc54){_0x2ac511['push'](_0x2ac511['shift']());}}}(a27_0xef47,0x7dfc0));import{listDatasets}from'../../core/api-client.js';function a27_0xef47(){const _0x425feb=['18675sDzvZx','trim','909337RaREHS','dataset','2uGzXDu','tableName','6vcRuXB','string','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','list','869169JAKSUM','name','5089415lSKgeD','dbtableConfig','str','10bupyqG','description','266913ACuaQB','696dfycQK','map','1260844nfCRDI','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','allFields','pkField','932342WjMPUN'];a27_0xef47=function(){return _0x425feb;};return a27_0xef47();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x17d4d5(0xab),'command':a27_0x17d4d5(0x98),'description':a27_0x17d4d5(0xa4),'risk':'read','flags':[{'name':a27_0x17d4d5(0x9a),'type':a27_0x17d4d5(0xaf),'description':a27_0x17d4d5(0xb0)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x1d3d0a){const _0x456950=a27_0x17d4d5,_0x434b5a=_0x1d3d0a[_0x456950(0x9d)](_0x456950(0x9a)),_0x5e356c=_0x1d3d0a[_0x456950(0x9d)]('code'),_0x33e827=await listDatasets(_0x1d3d0a['appCode'],{..._0x434b5a&&{'name':_0x434b5a},..._0x5e356c&&{'code':_0x5e356c}});return{'ok':!![],'data':{'total':_0x33e827['length'],'datasets':_0x33e827['map'](_0x4b9227=>{const _0x2d5823=_0x456950,_0x1b8563=_0x4b9227[_0x2d5823(0x9c)]??{};return{'id':_0x4b9227['id'],'code':_0x4b9227['code'],'name':_0x4b9227[_0x2d5823(0x9a)],'source':_0x4b9227['source'],'description':_0x4b9227[_0x2d5823(0x9f)],'table':_0x1b8563[_0x2d5823(0xad)],'datasetKey':_0x1b8563['datasetKey'],'pk':_0x1b8563[_0x2d5823(0xa6)],'fields':_0x1b8563[_0x2d5823(0xa5)]?_0x1b8563[_0x2d5823(0xa5)]['split'](',')[_0x2d5823(0xa2)](_0x5b7bda=>_0x5b7bda[_0x2d5823(0xa9)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a28_0x8fdee7=a28_0x73ee;function a28_0x3c59(){const _0x18ccde=['read','241506tYEyMS','1608487hrmbbN','code','3781377otMPhl','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','trim','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','str','appCode','15750jxKWkc','1110620HQACYF','56mFyIYA','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','543323gHqPHA','556WvIwln','70FOtXkU','sdk-doc','1258772WEahIT','50inVwFx'];a28_0x3c59=function(){return _0x18ccde;};return a28_0x3c59();}function a28_0x73ee(_0x22c9b2,_0x316168){_0x22c9b2=_0x22c9b2-0x108;const _0x3c59eb=a28_0x3c59();let _0x73ee6d=_0x3c59eb[_0x22c9b2];return _0x73ee6d;}(function(_0x4cd952,_0x30eaad){const _0x13a531=a28_0x73ee,_0x352218=_0x4cd952();while(!![]){try{const _0x39278a=parseInt(_0x13a531(0x10d))/0x1+-parseInt(_0x13a531(0x109))/0x2+-parseInt(_0x13a531(0x115))/0x3*(-parseInt(_0x13a531(0x11a))/0x4)+-parseInt(_0x13a531(0x11b))/0x5*(-parseInt(_0x13a531(0x10c))/0x6)+parseInt(_0x13a531(0x116))/0x7*(-parseInt(_0x13a531(0x117))/0x8)+-parseInt(_0x13a531(0x10f))/0x9+-parseInt(_0x13a531(0x10a))/0xa*(-parseInt(_0x13a531(0x119))/0xb);if(_0x39278a===_0x30eaad)break;else _0x352218['push'](_0x352218['shift']());}catch(_0x19ca7a){_0x352218['push'](_0x352218['shift']());}}}(a28_0x3c59,0xf158d));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x8fdee7(0x118);export function formatDatasetSdkMarkdown(_0x56e6eb){const _0x5b946d=a28_0x8fdee7,_0x307ff8=typeof _0x56e6eb==='string'?_0x56e6eb[_0x5b946d(0x111)]():'';return _0x307ff8||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':a28_0x8fdee7(0x108),'description':a28_0x8fdee7(0x110),'risk':a28_0x8fdee7(0x10b),'flags':[{...CODE_FLAG,'description':a28_0x8fdee7(0x112)}],async 'execute'(_0x1405ce){const _0x3a55ea=a28_0x8fdee7,_0x4bd8af=_0x1405ce[_0x3a55ea(0x113)](_0x3a55ea(0x10e)),_0x581ef4=await getDatasetSdkUsageDoc(_0x4bd8af,_0x1405ce['appCode']);return{'ok':!![],'data':{'code':_0x4bd8af,'appCode':_0x1405ce[_0x3a55ea(0x114)],'markdown':formatDatasetSdkMarkdown(_0x581ef4)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x1bd385=a29_0x3827;(function(_0x4c555d,_0x53da6b){const _0x4fc379=a29_0x3827,_0x1b335a=_0x4c555d();while(!![]){try{const _0x370149=parseInt(_0x4fc379(0xc6))/0x1*(parseInt(_0x4fc379(0xc1))/0x2)+parseInt(_0x4fc379(0x8e))/0x3*(-parseInt(_0x4fc379(0xa5))/0x4)+-parseInt(_0x4fc379(0xbd))/0x5*(-parseInt(_0x4fc379(0xc9))/0x6)+parseInt(_0x4fc379(0x9a))/0x7+parseInt(_0x4fc379(0xdf))/0x8*(parseInt(_0x4fc379(0x8c))/0x9)+parseInt(_0x4fc379(0xd0))/0xa+parseInt(_0x4fc379(0x9b))/0xb*(-parseInt(_0x4fc379(0x91))/0xc);if(_0x370149===_0x53da6b)break;else _0x1b335a['push'](_0x1b335a['shift']());}catch(_0xf1a013){_0x1b335a['push'](_0x1b335a['shift']());}}}(a29_0x58a8,0xe2b61));function a29_0x3827(_0x377768,_0x2dacfe){_0x377768=_0x377768-0x8c;const _0x58a894=a29_0x58a8();let _0x38270b=_0x58a894[_0x377768];return _0x38270b;}function a29_0x58a8(){const _0x1d69ed=['(missing)','\x20\x20Config\x20Files','status','3sKDJCO','✗\x20Invalid','registryPath','66zLNEdS','serviceCount','(unnamed)','accessKey','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','13116480vJqsYO','locale','\x20(legacy/compat\x20only)','version','✓\x20Valid\x20JSON','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','yellow','commandCount','padEnd','source','\x20(accessKey)','arch','(no\x20file)','4447376iAAcpB','verbose','9KsfcMB','defaultApp','189pgakfs','(none)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','12sAJDQq','path','✗\x20Invalid\x20JSON','⚠\x20Empty','(removed\x20—\x20cookie\x20auth\x20disabled)','log','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1053836WCfMaM','17120279ILQhXm','green','red','\x20\x20Auth','\x20\x20─','gray','(default)','\x20\x20API\x20Endpoints','doctor','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','55928TJdayd','(not\x20set)','length','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','serviceCode','\x20Imported\x20from:\x20','name','services','(not\x20found)','platform','\x20\x20runtimeDomain:\x20\x20\x20','format','Global','check','Diagnose\x20CLI\x20configuration\x20and\x20environment','message','✓\x20Loaded','\x20doctor','empty','currentApp','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','124205FpkqFQ','Project','bold','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','716330ZjPnzD','\x20commands)'];a29_0x58a8=function(){return _0x1d69ed;};return a29_0x58a8();}import a29_0xfa7ff7 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';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(_0x3d4c7d){const _0x3d0807=a29_0x3827,_0x39260f=getCliVersion(),_0x3146e8=buildConfigFromFlags({});await initGlobalEnvironment(_0x3146e8),console['log'](),console[_0x3d0807(0x96)](a29_0xfa7ff7[_0x3d0807(0xbf)](CLI_BIN_NAME+_0x3d0807(0xb8))),console[_0x3d0807(0x96)](a29_0xfa7ff7['gray']('─'[_0x3d0807(0xd7)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x39260f),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x3d0807(0xd3)]),console[_0x3d0807(0x96)](_0x3d0807(0xc0)+process[_0x3d0807(0xb0)]+'\x20'+process[_0x3d0807(0xdd)]),console['log'](),console['log'](a29_0xfa7ff7['bold'](_0x3d0807(0xc4))),console[_0x3d0807(0x96)](a29_0xfa7ff7[_0x3d0807(0xa0)](_0x3d0807(0x9f)['repeat'](0x1e)));const _0x48c00b=getGlobalConfigPath(),_0x1728b1=getProjectConfigPath();console['log'](_0x3d0807(0xd6)+(_0x48c00b||a29_0xfa7ff7[_0x3d0807(0xa0)](_0x3d0807(0xaf)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1728b1||a29_0xfa7ff7[_0x3d0807(0xa0)](_0x3d0807(0xaf)))),console[_0x3d0807(0x96)](),console[_0x3d0807(0x96)](a29_0xfa7ff7[_0x3d0807(0xbf)]('\x20\x20Config\x20JSON')),console[_0x3d0807(0x96)](a29_0xfa7ff7[_0x3d0807(0xa0)](_0x3d0807(0x9f)[_0x3d0807(0xd7)](0x1e)));const _0x45c3e0=(_0x7e931f,_0x12db9b)=>{const _0x3f68b5=_0x3d0807;if(!_0x12db9b){console[_0x3f68b5(0x96)]('\x20\x20'+_0x7e931f[_0x3f68b5(0xda)](0x11)+'\x20'+a29_0xfa7ff7['gray'](_0x3f68b5(0xde)));return;}const _0x2e87eb=inspectCliConfigJsonFile(_0x12db9b);if(_0x2e87eb[_0x3f68b5(0xc5)]==='ok')console[_0x3f68b5(0x96)]('\x20\x20'+_0x7e931f[_0x3f68b5(0xda)](0x11)+'\x20'+a29_0xfa7ff7[_0x3f68b5(0x9c)](_0x3f68b5(0xd4)));else{if(_0x2e87eb[_0x3f68b5(0xc5)]===_0x3f68b5(0xb9))console['log']('\x20\x20'+_0x7e931f[_0x3f68b5(0xda)](0x11)+'\x20'+a29_0xfa7ff7[_0x3f68b5(0xd8)](_0x3f68b5(0xa9)));else _0x2e87eb[_0x3f68b5(0xc5)]==='missing'?console['log']('\x20\x20'+_0x7e931f[_0x3f68b5(0xda)](0x11)+'\x20'+a29_0xfa7ff7['gray'](_0x3f68b5(0xc3))):(console[_0x3f68b5(0x96)]('\x20\x20'+_0x7e931f[_0x3f68b5(0xda)](0x11)+'\x20'+a29_0xfa7ff7[_0x3f68b5(0x9d)](_0x3f68b5(0x93))),console['log']('\x20\x20'+''[_0x3f68b5(0xda)](0x11)+'\x20'+a29_0xfa7ff7[_0x3f68b5(0x9d)](_0x2e87eb['message'])));}};_0x45c3e0(_0x3d0807(0xb3),_0x48c00b),_0x45c3e0(_0x3d0807(0xbe),_0x1728b1),console[_0x3d0807(0x96)](),console[_0x3d0807(0x96)](a29_0xfa7ff7[_0x3d0807(0xbf)]('\x20\x20Merged\x20Config')),console['log'](a29_0xfa7ff7['gray'](_0x3d0807(0x9f)[_0x3d0807(0xd7)](0x1e))),console[_0x3d0807(0x96)](_0x3d0807(0x99)+(_0x3146e8['appCode']||a29_0xfa7ff7['red'](_0x3d0807(0xa6)))),console['log'](_0x3d0807(0xcf)+_0x3146e8['env']);const _0x45305c=isLegacyCompatConfigKey(_0x3d0807(0xd1))?a29_0xfa7ff7[_0x3d0807(0xa0)](_0x3146e8[_0x3d0807(0xd1)]+_0x3d0807(0xd2)):_0x3146e8['locale'];console[_0x3d0807(0x96)](_0x3d0807(0xd5)+_0x45305c),console[_0x3d0807(0x96)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3146e8[_0x3d0807(0x8d)]||a29_0xfa7ff7[_0x3d0807(0xa0)](_0x3d0807(0x8f)))),console[_0x3d0807(0x96)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3146e8[_0x3d0807(0xba)]||a29_0xfa7ff7[_0x3d0807(0xa0)](_0x3d0807(0x8f)))),console['log'](_0x3d0807(0xa8)+(_0x3146e8[_0x3d0807(0xb2)]||a29_0xfa7ff7[_0x3d0807(0xa0)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x3d0807(0xb2)]+')'))),console[_0x3d0807(0x96)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3146e8['pageSize']??a29_0xfa7ff7['gray'](_0x3d0807(0xa1)))),console[_0x3d0807(0x96)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3146e8['riskLevel']),console[_0x3d0807(0x96)](_0x3d0807(0x90)+_0x3146e8[_0x3d0807(0xe0)]),console['log'](_0x3d0807(0xbc)+AUTH_MODE['ClientAk']),console['log'](_0x3d0807(0x97)+(_0x3146e8[_0x3d0807(0xcc)]?a29_0xfa7ff7[_0x3d0807(0x9c)](_0x3d0807(0x98)+_0x3146e8[_0x3d0807(0xcc)][_0x3d0807(0xa7)]+')'):a29_0xfa7ff7['gray'](_0x3d0807(0x8f)))),console[_0x3d0807(0x96)](),console[_0x3d0807(0x96)](a29_0xfa7ff7[_0x3d0807(0xbf)](_0x3d0807(0xa2))),console[_0x3d0807(0x96)](a29_0xfa7ff7['gray'](_0x3d0807(0x9f)['repeat'](0x1e))),console[_0x3d0807(0x96)](_0x3d0807(0xbb)+getApiDomain()),console['log'](_0x3d0807(0xa4)+getUserDomain()),console['log'](_0x3d0807(0xb1)+getRuntimeDomain()),console['log'](),console['log'](a29_0xfa7ff7[_0x3d0807(0xbf)]('\x20\x20Service\x20Tree')),console[_0x3d0807(0x96)](a29_0xfa7ff7[_0x3d0807(0xa0)](_0x3d0807(0x9f)[_0x3d0807(0xd7)](0x1e)));const _0x147255=inspectServiceRegistry();console[_0x3d0807(0x96)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x147255[_0x3d0807(0xc8)]),console[_0x3d0807(0x96)](_0x3d0807(0xcd)+formatServiceRegistryStatus(_0x147255)),console[_0x3d0807(0x96)](_0x3d0807(0xaa)+_0x147255[_0x3d0807(0xca)]),console['log']('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x147255[_0x3d0807(0xd9)]);for(const _0x23f9da of _0x147255[_0x3d0807(0xae)]){console[_0x3d0807(0x96)]('\x20\x20'+(_0x23f9da[_0x3d0807(0xab)]+':')[_0x3d0807(0xda)](0x11)+'\x20'+(_0x23f9da[_0x3d0807(0xad)]||a29_0xfa7ff7['gray'](_0x3d0807(0xcb)))+'\x20('+_0x23f9da[_0x3d0807(0xd9)]+_0x3d0807(0xc2)),console[_0x3d0807(0x96)]('\x20\x20'+''[_0x3d0807(0xda)](0x11)+_0x3d0807(0xac)+_0x23f9da[_0x3d0807(0xdb)][_0x3d0807(0x92)]);}return console[_0x3d0807(0x96)](),console[_0x3d0807(0x96)](a29_0xfa7ff7[_0x3d0807(0xbf)](_0x3d0807(0x9e))),console[_0x3d0807(0x96)](a29_0xfa7ff7[_0x3d0807(0xa0)](_0x3d0807(0x9f)[_0x3d0807(0xd7)](0x1e))),console[_0x3d0807(0x96)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a29_0xfa7ff7['green'](AUTH_MODE['ClientAk']+_0x3d0807(0xdc))),console['log'](_0x3d0807(0xce)+a29_0xfa7ff7['gray'](_0x3d0807(0x95))),console[_0x3d0807(0x96)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x9fdbaa){const _0x283174=a29_0x3827;if(_0x9fdbaa[_0x283174(0xc5)]==='ok')return a29_0xfa7ff7[_0x283174(0x9c)](_0x283174(0xb7));if(_0x9fdbaa[_0x283174(0xc5)]==='missing')return a29_0xfa7ff7[_0x283174(0xa0)](_0x283174(0xaf));if(_0x9fdbaa[_0x283174(0xc5)]===_0x283174(0xb9))return a29_0xfa7ff7['yellow'](_0x283174(0x94));return a29_0xfa7ff7[_0x283174(0x9d)](_0x283174(0xc7)+(_0x9fdbaa[_0x283174(0xb6)]?':\x20'+_0x9fdbaa[_0x283174(0xb6)]:''));}export const doctorDefinition={'service':a29_0x1bd385(0xa3),'command':a29_0x1bd385(0xb4),'description':a29_0x1bd385(0xb5),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x1a1b71=a30_0x2712;(function(_0x27d54d,_0x10abd6){const _0x2b9f71=a30_0x2712,_0x13bc13=_0x27d54d();while(!![]){try{const _0xd6e657=-parseInt(_0x2b9f71(0x88))/0x1*(-parseInt(_0x2b9f71(0x80))/0x2)+-parseInt(_0x2b9f71(0x90))/0x3*(parseInt(_0x2b9f71(0x85))/0x4)+-parseInt(_0x2b9f71(0x96))/0x5*(parseInt(_0x2b9f71(0x8e))/0x6)+parseInt(_0x2b9f71(0x78))/0x7+-parseInt(_0x2b9f71(0x8f))/0x8+-parseInt(_0x2b9f71(0x86))/0x9+parseInt(_0x2b9f71(0x77))/0xa*(parseInt(_0x2b9f71(0x8a))/0xb);if(_0xd6e657===_0x10abd6)break;else _0x13bc13['push'](_0x13bc13['shift']());}catch(_0x55f878){_0x13bc13['push'](_0x13bc13['shift']());}}}(a30_0x327d,0x6ef81));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a30_0x1a1b71(0x82),'type':'string','required':!![],'description':a30_0x1a1b71(0x7d)},FILEPATH_FLAG={'name':a30_0x1a1b71(0x92),'type':a30_0x1a1b71(0x7f),'required':!![],'description':a30_0x1a1b71(0x81)},DOWNLOAD_FLAG={'name':'download','type':a30_0x1a1b71(0x76),'description':a30_0x1a1b71(0x8b)};function requireFilePath(_0xe66ec7){const _0xc13f54=a30_0x1a1b71,_0x59fe54=_0xe66ec7[_0xc13f54(0x93)]();if(!_0x59fe54)throw CliErrors[_0xc13f54(0x84)](_0xc13f54(0x87));return _0x59fe54;}function a30_0x2712(_0x14efd7,_0x2f5c13){_0x14efd7=_0x14efd7-0x74;const _0x327d14=a30_0x327d();let _0x27123f=_0x327d14[_0x14efd7];return _0x27123f;}const fileUpload={'service':a30_0x1a1b71(0x82),'command':a30_0x1a1b71(0x83),'description':'Upload\x20a\x20local\x20file\x20to\x20the\x20current\x20runtime\x20app','risk':a30_0x1a1b71(0x74),'flags':[FILE_FLAG],async 'dryRun'(_0x31480d){const _0x573d5a=a30_0x1a1b71,_0xac6e=requireRuntimeUploadFile(_0x31480d['str'](_0x573d5a(0x82)),_0x573d5a(0x89));return dryRun(_0x573d5a(0x94),_0x573d5a(0x79))['body']({'appCode':_0x31480d['appCode'],'multipart':{'file':_0xac6e}})[_0x573d5a(0x8c)]('Preview:\x20upload\x20'+_0xac6e[_0x573d5a(0x91)]+_0x573d5a(0x98)+_0x31480d['appCode'])['build']();},async 'execute'(_0x1ebd9c){const _0x6a98df=a30_0x1a1b71,_0x11e622=requireRuntimeUploadFile(_0x1ebd9c[_0x6a98df(0x95)](_0x6a98df(0x82)),'File'),_0x11ec90=await uploadRuntimeFile(_0x1ebd9c[_0x6a98df(0x75)],_0x11e622[_0x6a98df(0x91)]);return{'ok':!![],'data':_0x11ec90,'message':_0x11ec90[_0x6a98df(0x97)]?_0x6a98df(0x7b)+_0x11ec90['filePath']:'Uploaded\x20file.'};}},fileQueryUrl={'service':a30_0x1a1b71(0x82),'command':a30_0x1a1b71(0x7e),'description':a30_0x1a1b71(0x7c),'risk':a30_0x1a1b71(0x7a),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG],async 'execute'(_0x4227de){const _0x1196b1=a30_0x1a1b71,_0x3cc23b=requireFilePath(_0x4227de[_0x1196b1(0x95)](_0x1196b1(0x92))),_0x5a5748=await queryRuntimeFileUrl(_0x3cc23b,{'download':_0x4227de[_0x1196b1(0x8d)]('download')});return{'ok':!![],'data':_0x5a5748};}};function a30_0x327d(){const _0x4223b8=['query-url','string','14ajtsMT','Runtime\x20filePath\x20returned\x20by\x20file\x20upload','file','upload','validation','12OfnQvJ','739053YKFMzp','filePath\x20is\x20required.','43285MtORkA','File','34045ktCcZi','Return\x20a\x20download\x20URL\x20instead\x20of\x20a\x20preview\x20URL\x20when\x20supported','description','bool','6hpqzjA','5594640zmLnGC','760278FdNmXA','path','filepath','trim','POST','str','457220WxNIez','filePath','\x20to\x20runtime\x20app\x20','write','appCode','boolean','4290NPiMPZ','3198636KjLuVb','/client/uploadFile','read','Uploaded\x20file:\x20','Query\x20a\x20temporary\x20URL\x20for\x20an\x20uploaded\x20runtime\x20file','Path\x20to\x20the\x20local\x20file\x20to\x20upload'];a30_0x327d=function(){return _0x4223b8;};return a30_0x327d();}export const fileDefinitions=[fileUpload,fileQueryUrl];
|