@lovrabet/lovrabet-cli 2.1.14 → 2.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/lib/commands/app-config/shared.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a15_0x1733(){const _0x1b98ef=['11325080HkqOvV','1705551GHJiwg','593770xijYaz','363436sCHrpE','6790609LQSzzb','1718076OLuEsh','5sJmDrH','2147544GNuNFy'];a15_0x1733=function(){return _0x1b98ef;};return a15_0x1733();}(function(_0x167b5f,_0x2defe3){const _0x423ea3=a15_0x5eec,_0xac4e36=_0x167b5f();while(!![]){try{const _0x273e5a=-parseInt(_0x423ea3(0x18b))/0x1*(-parseInt(_0x423ea3(0x190))/0x2)+parseInt(_0x423ea3(0x18e))/0x3+-parseInt(_0x423ea3(0x18c))/0x4+-parseInt(_0x423ea3(0x18f))/0x5+parseInt(_0x423ea3(0x18a))/0x6+parseInt(_0x423ea3(0x189))/0x7+-parseInt(_0x423ea3(0x18d))/0x8;if(_0x273e5a===_0x2defe3)break;else _0xac4e36['push'](_0xac4e36['shift']());}catch(_0x11e6f7){_0xac4e36['push'](_0xac4e36['shift']());}}}(a15_0x1733,0xa1af9));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a15_0x5eec(_0x4c48b7,_0x4abea4){_0x4c48b7=_0x4c48b7-0x189;const _0x17332a=a15_0x1733();let _0x5eec0f=_0x17332a[_0x4c48b7];return _0x5eec0f;}export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x59f42d=a16_0xb23c;(function(_0x549e2c,_0x770920){const _0x4b2bf8=a16_0xb23c,_0x252cfd=_0x549e2c();while(!![]){try{const _0x3bb995=parseInt(_0x4b2bf8(0xb8))/0x1*(-parseInt(_0x4b2bf8(0xc0))/0x2)+-parseInt(_0x4b2bf8(0xbe))/0x3+-parseInt(_0x4b2bf8(0xb3))/0x4+-parseInt(_0x4b2bf8(0xbc))/0x5*(parseInt(_0x4b2bf8(0xc7))/0x6)+parseInt(_0x4b2bf8(0xb5))/0x7+parseInt(_0x4b2bf8(0xb9))/0x8*(parseInt(_0x4b2bf8(0xc6))/0x9)+parseInt(_0x4b2bf8(0xbf))/0xa;if(_0x3bb995===_0x770920)break;else _0x252cfd['push'](_0x252cfd['shift']());}catch(_0x3dce31){_0x252cfd['push'](_0x252cfd['shift']());}}}(a16_0x3805,0x75db6));function a16_0xb23c(_0x4955a6,_0x3b7bef){_0x4955a6=_0x4955a6-0xb2;const _0x3805bf=a16_0x3805();let _0xb23ce4=_0x3805bf[_0x4955a6];return _0xb23ce4;}function a16_0x3805(){const _0xb25b46=['235735uRziPA','cwd','301428IVViEV','15461390dXYahJ','6738eFYMgb','skipped','write','nonInteractive','log','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','3231PhSTVs','84GAljVA','pipe','install','setLogPath','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','2197436FWfJNA','apiError','5891697MQtsbe','../../skills/npx-skills-add.js','info','252zmaqch','5656WAWtXy','cli-skill-install','unknown'];a16_0x3805=function(){return _0xb25b46;};return a16_0x3805();}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a16_0x59f42d(0xc9),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a16_0x59f42d(0xc2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x419681){const _0x4296da=a16_0x59f42d;logger[_0x4296da(0xca)](process['cwd']()),logger[_0x4296da(0xb7)](_0x4296da(0xba),_0x4296da(0xb2));const {LOVRABET_SKILL_SOURCE:_0x244539,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x182319,runNpxSkillsAddGlobal:_0x36cf3e}=await import(_0x4296da(0xb6)),_0x1c9ab6=_0x419681[_0x4296da(0xc3)]?_0x4296da(0xc8):'inherit';console[_0x4296da(0xc4)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x244539+'\x20-g\x20-y)...');const _0x1fea91=_0x36cf3e(process[_0x4296da(0xbd)](),_0x244539,{'stdio':_0x1c9ab6});if(_0x1fea91[_0x4296da(0xc1)])console[_0x4296da(0xc4)]('Skipped\x20npx\x20('+_0x182319+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x1fea91['ok'])console[_0x4296da(0xc4)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x4296da(0xb4)]('npx\x20skills\x20add\x20failed:\x20'+(_0x1fea91['error']||_0x4296da(0xbb)),_0x4296da(0xc5)+_0x244539+'\x20-g\x20-y');}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2bf6e6,_0x152421){const _0x43b02b=a17_0x10c9,_0x509372=_0x2bf6e6();while(!![]){try{const _0x4b16f6=parseInt(_0x43b02b(0x17f))/0x1*(parseInt(_0x43b02b(0x179))/0x2)+parseInt(_0x43b02b(0x176))/0x3*(parseInt(_0x43b02b(0x17a))/0x4)+-parseInt(_0x43b02b(0x181))/0x5+parseInt(_0x43b02b(0x16c))/0x6*(-parseInt(_0x43b02b(0x180))/0x7)+-parseInt(_0x43b02b(0x170))/0x8+parseInt(_0x43b02b(0x16e))/0x9*(-parseInt(_0x43b02b(0x182))/0xa)+parseInt(_0x43b02b(0x173))/0xb*(parseInt(_0x43b02b(0x17c))/0xc);if(_0x4b16f6===_0x152421)break;else _0x509372['push'](_0x509372['shift']());}catch(_0x248ad6){_0x509372['push'](_0x509372['shift']());}}}(a17_0x539c,0xd0e0e));import{CLI_BIN_NAME}from'../../constant/cli.js';function a17_0x10c9(_0x509879,_0x443a13){_0x509879=_0x509879-0x16a;const _0x539cb8=a17_0x539c();let _0x10c994=_0x539cb8[_0x509879];return _0x10c994;}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a17_0x539c(){const _0x29640a=['11090YyBgFF','project','newConfigFileName','\x20found).','78CiFEXr','project-default','12357zlUgfe',',\x20or\x20run\x20`','8611280WblbAl','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','inProject','11085734BAmqHX','global','\x20init`\x20first.','9111IDfeQQ','validation','\x20(global)','46226xSgtZi','920bHuHHL','Add\x20--global\x20to\x20write\x20to\x20~/','48VLFyKz','global-default','Not\x20inside\x20a\x20project\x20(no\x20','15nuNJYq','415709vJoglQ','4248585lzvMJK'];a17_0x539c=function(){return _0x29640a;};return a17_0x539c();}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x5a3a7f){const _0x1a089d=a17_0x10c9,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x290e2e}=_0x5a3a7f;if(explicitGlobal&&explicitProject)throw CliErrors[_0x1a089d(0x177)](_0x1a089d(0x171),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x1a089d(0x174);if(explicitProject)return _0x1a089d(0x183);switch(_0x290e2e){case _0x1a089d(0x17d):return _0x1a089d(0x174);case _0x1a089d(0x16d):return _0x5a3a7f[_0x1a089d(0x172)]??isInProject()?_0x1a089d(0x183):'global';case'project-or-global-explicit':if(!(_0x5a3a7f[_0x1a089d(0x172)]??isInProject()))throw CliErrors['validation'](_0x1a089d(0x17e)+PRODUCT_CONFIG[_0x1a089d(0x16a)]+_0x1a089d(0x16b),_0x1a089d(0x17b)+PRODUCT_CONFIG[_0x1a089d(0x16a)]+_0x1a089d(0x16f)+CLI_BIN_NAME+_0x1a089d(0x175));return _0x1a089d(0x183);}}export function toScopeFlags(_0x3a3eeb){const _0x3c4a41=a17_0x10c9;return{'global':_0x3a3eeb===_0x3c4a41(0x174)};}export function formatScopeLabel(_0xd7a093){const _0x195065=a17_0x10c9;return _0xd7a093===_0x195065(0x174)?_0x195065(0x178):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a18_0x59f2(_0x2208fa,_0x1364ed){_0x2208fa=_0x2208fa-0x13d;const _0x2ac553=a18_0x2ac5();let _0x59f29d=_0x2ac553[_0x2208fa];return _0x59f29d;}(function(_0x28757e,_0x569b99){const _0x49b5c3=a18_0x59f2,_0x1d0bfb=_0x28757e();while(!![]){try{const _0x15458c=-parseInt(_0x49b5c3(0x147))/0x1*(parseInt(_0x49b5c3(0x14a))/0x2)+parseInt(_0x49b5c3(0x13d))/0x3+-parseInt(_0x49b5c3(0x14f))/0x4+-parseInt(_0x49b5c3(0x145))/0x5*(-parseInt(_0x49b5c3(0x140))/0x6)+parseInt(_0x49b5c3(0x14e))/0x7*(-parseInt(_0x49b5c3(0x14d))/0x8)+-parseInt(_0x49b5c3(0x156))/0x9+-parseInt(_0x49b5c3(0x149))/0xa*(-parseInt(_0x49b5c3(0x146))/0xb);if(_0x15458c===_0x569b99)break;else _0x1d0bfb['push'](_0x1d0bfb['shift']());}catch(_0x27ba35){_0x1d0bfb['push'](_0x1d0bfb['shift']());}}}(a18_0x2ac5,0x57e6f));import{CliErrors}from'../../errors.js';function isSet(_0x12d60e,_0x3c63b5){const _0x12e1c2=a18_0x59f2,_0x450103=_0x12d60e[_0x12e1c2(0x154)](_0x3c63b5);return _0x450103!==undefined&&_0x450103!==''&&_0x450103!==![]&&_0x450103!==0x0;}function fmtNames(_0x3fb324){return _0x3fb324['map'](_0x409d52=>'--'+_0x409d52)['join'](',\x20');}export function requireOneOf(_0x2e087f,_0x205f98,_0x33c61d){const _0x43ecd8=a18_0x59f2,_0x14ec92=_0x205f98[_0x43ecd8(0x14b)](_0x46b293=>isSet(_0x2e087f,_0x46b293));if(_0x14ec92[_0x43ecd8(0x152)]!==0x1)throw CliErrors[_0x43ecd8(0x13f)](_0x14ec92[_0x43ecd8(0x152)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x205f98)+_0x43ecd8(0x144)+_0x33c61d+'`.':_0x43ecd8(0x14c)+fmtNames(_0x205f98)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x14ec92)+'.',_0x14ec92[_0x43ecd8(0x152)]===0x0?_0x43ecd8(0x143)+fmtNames(_0x205f98):_0x43ecd8(0x148));}export function requireAnyOf(_0x4a8373,_0x29b512,_0x56c86b){const _0x43fef4=a18_0x59f2;if(!_0x29b512[_0x43fef4(0x150)](_0x172257=>isSet(_0x4a8373,_0x172257)))throw CliErrors[_0x43fef4(0x13f)](_0x43fef4(0x142)+fmtNames(_0x29b512)+_0x43fef4(0x144)+_0x56c86b+'`.',_0x43fef4(0x143)+fmtNames(_0x29b512));}function a18_0x2ac5(){const _0x1f730c=['test','validation','3946782nfbfgb',',\x20got\x20\x22','At\x20least\x20one\x20of\x20','Provide\x20one\x20of:\x20','\x20is\x20required\x20for\x20`','5KJjffE','9157247AolrRQ','451602LsBCsi','Remove\x20all\x20but\x20one.','10WLxngQ','2gWhyPj','filter','Only\x20one\x20of\x20','13480erKtKn','1204fjnffO','1279428MoBtyx','some','Invalid\x20--','length',':\x20expected\x20','flag','str','947313MUmPYd','108927Pnzrrt'];a18_0x2ac5=function(){return _0x1f730c;};return a18_0x2ac5();}export function mutuallyExclusive(_0x45f77b,_0x1e15c6,_0x1298fa){const _0x1414d1=_0x1e15c6['filter'](_0x291e40=>isSet(_0x45f77b,_0x291e40));if(_0x1414d1['length']>0x1)throw CliErrors['validation']('Flags\x20'+fmtNames(_0x1414d1)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x1298fa+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x1e15c6));}export function validatePattern(_0x23fb90,_0x2663a5,_0x16b574,_0x44b667){const _0x2ade2f=a18_0x59f2,_0x3e422a=_0x23fb90[_0x2ade2f(0x155)](_0x2663a5);if(_0x3e422a&&!_0x16b574[_0x2ade2f(0x13e)](_0x3e422a))throw CliErrors[_0x2ade2f(0x13f)](_0x2ade2f(0x151)+_0x2663a5+_0x2ade2f(0x153)+_0x44b667+_0x2ade2f(0x141)+_0x3e422a+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a19_0xa8cc(){const _0x2423e6=['9bBNprw','24geYPeM','1019144MeFPJd','verbose','23597CpkmKC','5ZWtqPz','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','1949772zQUyro','8028631EpXtVB','396846axMbBK','string','Resource\x20name\x20for\x20lookup','Resource\x20ID','12418rhSFvA','12RpAfKw','name','10hdjfbA','2994608HCeHLU','612VRtraq','Return\x20full\x20raw\x20response\x20object','boolean','number','sqlcode','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'];a19_0xa8cc=function(){return _0x2423e6;};return a19_0xa8cc();}function a19_0x1494(_0x3ab879,_0x39f67b){_0x3ab879=_0x3ab879-0x1d3;const _0xa8cc=a19_0xa8cc();let _0x149481=_0xa8cc[_0x3ab879];return _0x149481;}const a19_0x21bf25=a19_0x1494;(function(_0x241af3,_0x1ce618){const _0x31a614=a19_0x1494,_0x408fdd=_0x241af3();while(!![]){try{const _0x5f1579=-parseInt(_0x31a614(0x1d5))/0x1*(-parseInt(_0x31a614(0x1ea))/0x2)+-parseInt(_0x31a614(0x1da))/0x3+-parseInt(_0x31a614(0x1d3))/0x4*(-parseInt(_0x31a614(0x1d6))/0x5)+parseInt(_0x31a614(0x1e3))/0x6*(-parseInt(_0x31a614(0x1de))/0x7)+parseInt(_0x31a614(0x1e2))/0x8*(-parseInt(_0x31a614(0x1e9))/0x9)+parseInt(_0x31a614(0x1e1))/0xa*(-parseInt(_0x31a614(0x1d8))/0xb)+parseInt(_0x31a614(0x1df))/0xc*(parseInt(_0x31a614(0x1d9))/0xd);if(_0x5f1579===_0x1ce618)break;else _0x408fdd['push'](_0x408fdd['shift']());}catch(_0x573baf){_0x408fdd['push'](_0x408fdd['shift']());}}}(a19_0xa8cc,0x46fa9));export const CODE_FLAG={'name':'code','type':a19_0x21bf25(0x1db),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a19_0x21bf25(0x1d7)}};export const SQLCODE_FLAG={'name':a19_0x21bf25(0x1e7),'type':a19_0x21bf25(0x1db),'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':a19_0x21bf25(0x1e8)}};export const VERBOSE_FLAG={'name':a19_0x21bf25(0x1d4),'type':a19_0x21bf25(0x1e5),'description':a19_0x21bf25(0x1e4)};export const PARAMS_FLAG={'name':'params','type':'string','description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a19_0x21bf25(0x1e0),'type':a19_0x21bf25(0x1db),'description':a19_0x21bf25(0x1dc)};export const ID_FLAG={'name':'id','type':a19_0x21bf25(0x1e6),'required':!![],'description':a19_0x21bf25(0x1dd)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b2a54,_0x5d07dc){const _0x5e463a=a20_0x1b67,_0xa4fb61=_0x1b2a54();while(!![]){try{const _0x139298=-parseInt(_0x5e463a(0xd8))/0x1+-parseInt(_0x5e463a(0xce))/0x2*(-parseInt(_0x5e463a(0xd3))/0x3)+parseInt(_0x5e463a(0xde))/0x4+parseInt(_0x5e463a(0xdd))/0x5*(parseInt(_0x5e463a(0xe0))/0x6)+parseInt(_0x5e463a(0xd6))/0x7*(parseInt(_0x5e463a(0xd5))/0x8)+-parseInt(_0x5e463a(0xd1))/0x9+-parseInt(_0x5e463a(0xdc))/0xa*(-parseInt(_0x5e463a(0xd0))/0xb);if(_0x139298===_0x5d07dc)break;else _0xa4fb61['push'](_0xa4fb61['shift']());}catch(_0x205897){_0xa4fb61['push'](_0xa4fb61['shift']());}}}(a20_0x1c77,0xe215a));function a20_0x1b67(_0x3da416,_0x503680){_0x3da416=_0x3da416-0xce;const _0x1c7703=a20_0x1c77();let _0x1b67b8=_0x1c7703[_0x3da416];return _0x1b67b8;}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x1bea10){const _0x5ad6ad=a20_0x1b67;if(_0x1bea10>=BYTES_PER_MB){const _0x5220a3=Math[_0x5ad6ad(0xdf)](_0x1bea10/BYTES_PER_MB*0x64)/0x64;return _0x5220a3[_0x5ad6ad(0xdb)](0x2)+_0x5ad6ad(0xd4);}return _0x1bea10+'\x20B';}export function requireRuntimeUploadFile(_0x30895c,_0x2b11b0){const _0x279fce=a20_0x1b67,_0x1468ed=_0x30895c[_0x279fce(0xda)]();if(!_0x1468ed)throw CliErrors[_0x279fce(0xd7)](_0x2b11b0+_0x279fce(0xd2));if(!existsSync(_0x1468ed))throw CliErrors[_0x279fce(0xd7)]('File\x20not\x20found:\x20'+_0x1468ed);const _0x1bf8d3=statSync(_0x1468ed);if(!_0x1bf8d3[_0x279fce(0xe1)]())throw CliErrors[_0x279fce(0xd7)](_0x279fce(0xe2)+_0x1468ed);if(_0x1bf8d3[_0x279fce(0xcf)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x279fce(0xd7)](_0x279fce(0xd9)+_0x1468ed+'\x20('+formatBytes(_0x1bf8d3[_0x279fce(0xcf)])+')');return{'path':_0x1468ed,'size':_0x1bf8d3[_0x279fce(0xcf)]};}function a20_0x1c77(){const _0x3d27a0=['200yVUSfc','171780NqvxMo','validation','1397906QPSsSw','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','trim','toFixed','30TLvcyb','310955OrPIJb','1190396KsFjJz','ceil','6jFqCAW','isFile','File\x20is\x20not\x20a\x20regular\x20file:\x20','400396ZfgkmI','size','991727bwUoao','4692573KhhJUA','\x20path\x20is\x20required.','24UcyCMq','\x20MB'];a20_0x1c77=function(){return _0x3d27a0;};return a20_0x1c77();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x3296e2=a22_0x1702;(function(_0x9fc1cf,_0x13686f){const _0x3477c1=a22_0x1702,_0x395c23=_0x9fc1cf();while(!![]){try{const _0x41b2b2=-parseInt(_0x3477c1(0x18d))/0x1*(parseInt(_0x3477c1(0x19a))/0x2)+-parseInt(_0x3477c1(0x19e))/0x3+-parseInt(_0x3477c1(0x1b1))/0x4+parseInt(_0x3477c1(0x1b3))/0x5+-parseInt(_0x3477c1(0x185))/0x6*(parseInt(_0x3477c1(0x1aa))/0x7)+-parseInt(_0x3477c1(0x19b))/0x8+parseInt(_0x3477c1(0x1a7))/0x9;if(_0x41b2b2===_0x13686f)break;else _0x395c23['push'](_0x395c23['shift']());}catch(_0x362cd8){_0x395c23['push'](_0x395c23['shift']());}}}(a22_0x32be,0x3d167));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':a22_0x3296e2(0x18c),'description':a22_0x3296e2(0x1a3),'default':![]};function parseAliasAppcodeSetKey(_0x2ad4fb){const _0x273207=a22_0x3296e2,_0x2b12be=_0x2ad4fb[_0x273207(0x182)]('.');if(_0x2b12be[_0x273207(0x19c)]!==0x3||_0x2b12be[0x0]!==_0x273207(0x17b)||_0x2b12be[0x2]!=='appcode')return undefined;const _0x23effa=_0x2b12be[0x1]?.['trim']();return _0x23effa?_0x23effa:undefined;}function parseAliasDeleteKey(_0x7f156){const _0x1e58eb=a22_0x3296e2,_0x27191f=_0x7f156[_0x1e58eb(0x182)]('.');if(_0x27191f[_0x1e58eb(0x19c)]===0x2&&_0x27191f[0x0]===_0x1e58eb(0x17b)){const _0x50ad47=_0x27191f[0x1]?.['trim']();return _0x50ad47?{'alias':_0x50ad47}:undefined;}if(_0x27191f[_0x1e58eb(0x19c)]===0x3&&_0x27191f[0x0]===_0x1e58eb(0x17b)&&_0x27191f[0x2]===_0x1e58eb(0x178)){const _0x4c3a8e=_0x27191f[0x1]?.[_0x1e58eb(0x17f)]();return _0x4c3a8e?{'alias':_0x4c3a8e,'field':_0x1e58eb(0x178)}:undefined;}return undefined;}function setLocalAppAlias(_0x132950,_0xfeb674,_0x51d0b9){const _0x676449=a22_0x3296e2,_0x248bea=_0x132950[_0x676449(0x17b)]&&typeof _0x132950[_0x676449(0x17b)]===_0x676449(0x1b5)&&!Array[_0x676449(0x184)](_0x132950[_0x676449(0x17b)])?_0x132950[_0x676449(0x17b)]:{},_0x352023=_0x248bea[_0xfeb674]&&typeof _0x248bea[_0xfeb674]===_0x676449(0x1b5)&&!Array['isArray'](_0x248bea[_0xfeb674])?_0x248bea[_0xfeb674]:{};_0x352023[_0x676449(0x178)]=_0x51d0b9,_0x248bea[_0xfeb674]=_0x352023,_0x132950[_0x676449(0x17b)]=_0x248bea;}function deleteLocalAppAlias(_0x120c93,_0x39face){const _0x231837=a22_0x3296e2;if(!_0x120c93[_0x231837(0x17b)]||typeof _0x120c93[_0x231837(0x17b)]!==_0x231837(0x1b5)||Array[_0x231837(0x184)](_0x120c93[_0x231837(0x17b)]))return![];const _0x4db4ac=_0x120c93[_0x231837(0x17b)],_0x2d3624=_0x4db4ac[_0x39face[_0x231837(0x1b2)]];if(!_0x2d3624||typeof _0x2d3624!==_0x231837(0x1b5)||Array[_0x231837(0x184)](_0x2d3624))return![];if(!_0x39face[_0x231837(0x187)])return delete _0x4db4ac[_0x39face[_0x231837(0x1b2)]],!![];if(!(_0x39face[_0x231837(0x187)]in _0x2d3624))return![];return delete _0x2d3624[_0x39face[_0x231837(0x187)]],Object[_0x231837(0x1ad)](_0x2d3624)['length']===0x0&&delete _0x4db4ac[_0x39face[_0x231837(0x1b2)]],!![];}function a22_0x1702(_0x353b0f,_0x54e6e4){_0x353b0f=_0x353b0f-0x177;const _0x32be33=a22_0x32be();let _0x17022c=_0x32be33[_0x353b0f];return _0x17022c;}function a22_0x32be(){const _0x19706a=['value','read','Usage:\x20','trim','stringify','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','split','\x22\x20is\x20not\x20settable.','isArray','597144mteEWM',';\x20apps.<alias>.appcode','field','bool','pageSize','\x20(global)','\x22\x20not\x20found\x20at\x20top\x20level.','boolean','1lWIvMD','Key\x20\x22','config','format','Delete\x20a\x20config\x20value','raw','../../context.js','\x22.\x20Allowed:\x20','Set\x20a\x20config\x20value','Settable\x20keys:\x20','Key\x20not\x20found:\x20','key','List\x20current\x20config','219010pFIIaR','2750296iqJEqm','length','project-or-global-explicit','584079DrCktv','Set\x20`','Missing\x20key\x20or\x20value.','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20config\x20get\x20<key>','Write\x20to\x20global\x20config','Invalid\x20value\x20for\x20\x22','`\x20=\x20\x22','includes','11083707NhqRpm','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','validation','14ZHdZDw','write','Missing\x20key\x20argument.','keys','args','log','Value\x20to\x20assign','1024396GQggNY','alias','609120OmLPEX','delete','object','\x20\x20project:\x20','global','riskLevel','Deleted\x20`','Top-level\x20key\x20\x22','pretty','pageSize\x20must\x20be\x20a\x20positive\x20number','appcode','Config\x20files:\x0a','join','apps'];a22_0x32be=function(){return _0x19706a;};return a22_0x32be();}const listDef={'service':'config','command':'list','description':a22_0x3296e2(0x199),'risk':a22_0x3296e2(0x17d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x19e26c){const _0x1ad9a0=a22_0x3296e2,{buildConfigFromFlags:_0x49f30a}=await import(_0x1ad9a0(0x193)),_0x3c74e7=_0x49f30a({}),_0x50e2c8=getProjectConfigPath(),_0x39b9cd=resolveWriteConfigPath(_0x1ad9a0(0x1b7));if(_0x19e26c[_0x1ad9a0(0x190)]===_0x1ad9a0(0x1bb))return{'ok':!![],'message':_0x1ad9a0(0x1a1)+(JSON[_0x1ad9a0(0x180)](_0x3c74e7['raw'],null,0x2)+'\x0a\x0a')+_0x1ad9a0(0x179)+(_0x1ad9a0(0x1b6)+(_0x50e2c8??'(none)')+'\x0a')+('\x20\x20global:\x20\x20'+_0x39b9cd)};return{'ok':!![],'data':{'effective':_0x3c74e7[_0x1ad9a0(0x192)],'configFiles':{'project':_0x50e2c8??null,'global':_0x39b9cd}}};}},getDef={'service':a22_0x3296e2(0x18f),'command':'get','description':'Get\x20a\x20config\x20value','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a22_0x3296e2(0x181),'required':!![]}],'flags':[],async 'execute'(_0x41f37b){const _0x378b5a=a22_0x3296e2,_0x5a9943=_0x41f37b[_0x378b5a(0x1ae)][0x0];if(!_0x5a9943)throw CliErrors[_0x378b5a(0x1a9)](_0x378b5a(0x1ac),_0x378b5a(0x17e)+CLI_BIN_NAME+_0x378b5a(0x1a2));const {buildConfigFromFlags:_0x1ed65e}=await import('../../context.js'),{raw:_0x281523}=_0x1ed65e({});if(_0x5a9943['includes']('.')){const _0x18e458=_0x5a9943[_0x378b5a(0x182)]('.');let _0x2db43d=_0x281523;for(const _0x47fab2 of _0x18e458){if(_0x2db43d==null||typeof _0x2db43d!==_0x378b5a(0x1b5))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x5a9943);_0x2db43d=_0x2db43d[_0x47fab2];}if(_0x2db43d===undefined)throw CliErrors[_0x378b5a(0x1a9)](_0x378b5a(0x197)+_0x5a9943);return console[_0x378b5a(0x1af)](typeof _0x2db43d==='object'?JSON[_0x378b5a(0x180)](_0x2db43d,null,0x2):String(_0x2db43d)),{'ok':!![]};}const _0x138bc9=_0x281523[_0x5a9943];if(_0x138bc9===undefined)throw CliErrors[_0x378b5a(0x1a9)](_0x378b5a(0x197)+_0x5a9943);return console[_0x378b5a(0x1af)](typeof _0x138bc9===_0x378b5a(0x1b5)?JSON[_0x378b5a(0x180)](_0x138bc9,null,0x2):String(_0x138bc9)),{'ok':!![]};}},setDef={'service':a22_0x3296e2(0x18f),'command':'set','description':a22_0x3296e2(0x195),'risk':a22_0x3296e2(0x1ab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3296e2(0x198),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x3296e2(0x17c),'description':a22_0x3296e2(0x1b0),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x442738){const _0x1660ee=a22_0x3296e2,_0xd35bd2=_0x442738[_0x1660ee(0x1ae)][0x0],_0x35b163=_0x442738[_0x1660ee(0x1ae)][0x1];if(!_0xd35bd2||_0x35b163===undefined)throw CliErrors[_0x1660ee(0x1a9)](_0x1660ee(0x1a0),_0x1660ee(0x17e)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0xd35bd2]&&!ENUM_KEYS[_0xd35bd2][_0x1660ee(0x1a6)](_0x35b163))throw CliErrors['validation'](_0x1660ee(0x1a4)+_0xd35bd2+_0x1660ee(0x194)+ENUM_KEYS[_0xd35bd2][_0x1660ee(0x17a)](',\x20'));if(_0xd35bd2===_0x1660ee(0x1b8))throw CliErrors[_0x1660ee(0x1a9)](_0x1660ee(0x1a8));if(_0xd35bd2===_0x1660ee(0x189)){const _0x124d9e=Number(_0x35b163);if(isNaN(_0x124d9e)||_0x124d9e<=0x0)throw CliErrors['validation'](_0x1660ee(0x177));}const _0x5db644=resolveWriteScope({'explicitGlobal':_0x442738[_0x1660ee(0x188)]('global'),'policy':'project-or-global-explicit'}),_0x1a2c9a=toScopeFlags(_0x5db644),_0x452ca7=readScopedConfig(_0x1a2c9a),_0x5f1090=parseAliasAppcodeSetKey(_0xd35bd2);if(!_0x5f1090&&!isTopLevelConfigKey(_0xd35bd2))throw CliErrors[_0x1660ee(0x1a9)](_0x1660ee(0x1ba)+_0xd35bd2+_0x1660ee(0x183),_0x1660ee(0x196)+getTopLevelConfigKeySummary()+_0x1660ee(0x186));return _0x5f1090?setLocalAppAlias(_0x452ca7,_0x5f1090,_0x35b163):_0x452ca7[_0xd35bd2]=_0xd35bd2==='pageSize'?Number(_0x35b163):_0x35b163,console[_0x1660ee(0x1af)](_0x1660ee(0x19f)+_0xd35bd2+_0x1660ee(0x1a5)+_0x35b163+'\x22'+(_0x5db644===_0x1660ee(0x1b7)?_0x1660ee(0x18a):'')),writeScopedConfig(_0x452ca7,_0x1a2c9a),{'ok':!![]};}},deleteDef={'service':'config','command':a22_0x3296e2(0x1b4),'description':a22_0x3296e2(0x191),'risk':a22_0x3296e2(0x1ab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3296e2(0x198),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4ac283){const _0x4fff08=a22_0x3296e2,_0x56538e=_0x4ac283[_0x4fff08(0x1ae)][0x0];if(!_0x56538e)throw CliErrors[_0x4fff08(0x1a9)](_0x4fff08(0x1ac),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x2a7166=resolveWriteScope({'explicitGlobal':_0x4ac283[_0x4fff08(0x188)](_0x4fff08(0x1b7)),'policy':_0x4fff08(0x19d)}),_0x49d02c=toScopeFlags(_0x2a7166),_0x4a7a3b=readScopedConfig(_0x49d02c),_0x151cfb=parseAliasDeleteKey(_0x56538e);if(_0x151cfb){if(!deleteLocalAppAlias(_0x4a7a3b,_0x151cfb))throw CliErrors[_0x4fff08(0x1a9)](_0x4fff08(0x197)+_0x56538e);return console[_0x4fff08(0x1af)](_0x4fff08(0x1b9)+_0x56538e+'`'+(_0x2a7166===_0x4fff08(0x1b7)?_0x4fff08(0x18a):'')),writeScopedConfig(_0x4a7a3b,_0x49d02c),{'ok':!![]};}if(_0x4a7a3b[_0x56538e]===undefined)throw CliErrors[_0x4fff08(0x1a9)](_0x4fff08(0x18e)+_0x56538e+_0x4fff08(0x18b));return delete _0x4a7a3b[_0x56538e],console[_0x4fff08(0x1af)](_0x4fff08(0x1b9)+_0x56538e+'`'+(_0x2a7166===_0x4fff08(0x1b7)?_0x4fff08(0x18a):'')),writeScopedConfig(_0x4a7a3b,_0x49d02c),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a21_0x10930a=a21_0x8a9e;(function(_0x1833b3,_0x399119){const _0xb6d97a=a21_0x8a9e,_0x4000ea=_0x1833b3();while(!![]){try{const _0x10cce0=-parseInt(_0xb6d97a(0xeb))/0x1+-parseInt(_0xb6d97a(0xee))/0x2+-parseInt(_0xb6d97a(0xea))/0x3*(parseInt(_0xb6d97a(0x118))/0x4)+parseInt(_0xb6d97a(0x122))/0x5*(-parseInt(_0xb6d97a(0x105))/0x6)+parseInt(_0xb6d97a(0xf1))/0x7*(-parseInt(_0xb6d97a(0x127))/0x8)+parseInt(_0xb6d97a(0x10a))/0x9+-parseInt(_0xb6d97a(0x124))/0xa*(-parseInt(_0xb6d97a(0x11f))/0xb);if(_0x10cce0===_0x399119)break;else _0x4000ea['push'](_0x4000ea['shift']());}catch(_0x34a116){_0x4000ea['push'](_0x4000ea['shift']());}}}(a21_0xf6e0,0xdef04));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';function a21_0xf6e0(){const _0xdfda69=['3173654GjGMaE','key','includes','1246QalDwk','\x20(global)','pageSize','length','global','log','\x22\x20is\x20not\x20settable.','project-or-global-explicit','set','Key\x20\x22','\x20\x20global:\x20\x20','read','Set\x20a\x20config\x20value','isArray','Get\x20a\x20config\x20value','\x22.\x20Allowed:\x20','bool','`\x20=\x20\x22','alias','Write\x20to\x20global\x20config','18VxzfRa','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','trim','value','stringify','15511014QWlbIK','delete','Top-level\x20key\x20\x22','Missing\x20key\x20argument.','object','\x20config\x20delete\x20<key>\x20[--global]','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20\x20project:\x20','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','config','pretty','Delete\x20a\x20config\x20value','validation','Invalid\x20value\x20for\x20\x22','24guHGJu','Deleted\x20`','\x22\x20not\x20found\x20at\x20top\x20level.','Set\x20`','../../context.js','field','write','22sLdgju','join','Config\x20files:\x0a','2481890CnJeHE',';\x20apps.<alias>.appcode','23747430fnwanR','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','format','24088lOxphO','Value\x20to\x20assign','Usage:\x20','appcode','boolean','Key\x20not\x20found:\x20','\x20config\x20get\x20<key>','apps','raw','Settable\x20keys:\x20','List\x20current\x20config','870405EoewdE','207047ckYbIm','split','args'];a21_0xf6e0=function(){return _0xdfda69;};return a21_0xf6e0();}import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a21_0x10930a(0xf5),'type':a21_0x10930a(0x12b),'description':a21_0x10930a(0x104),'default':![]};function parseAliasAppcodeSetKey(_0x4f64fc){const _0x3004f9=a21_0x10930a,_0x3813e0=_0x4f64fc[_0x3004f9(0xec)]('.');if(_0x3813e0['length']!==0x3||_0x3813e0[0x0]!==_0x3004f9(0x12e)||_0x3813e0[0x2]!==_0x3004f9(0x12a))return undefined;const _0x4a16f3=_0x3813e0[0x1]?.[_0x3004f9(0x107)]();return _0x4a16f3?_0x4a16f3:undefined;}function parseAliasDeleteKey(_0x56152f){const _0x21b5d2=a21_0x10930a,_0x4c80a3=_0x56152f[_0x21b5d2(0xec)]('.');if(_0x4c80a3[_0x21b5d2(0xf4)]===0x2&&_0x4c80a3[0x0]===_0x21b5d2(0x12e)){const _0x1f7ad2=_0x4c80a3[0x1]?.[_0x21b5d2(0x107)]();return _0x1f7ad2?{'alias':_0x1f7ad2}:undefined;}if(_0x4c80a3[_0x21b5d2(0xf4)]===0x3&&_0x4c80a3[0x0]===_0x21b5d2(0x12e)&&_0x4c80a3[0x2]===_0x21b5d2(0x12a)){const _0xabf395=_0x4c80a3[0x1]?.[_0x21b5d2(0x107)]();return _0xabf395?{'alias':_0xabf395,'field':_0x21b5d2(0x12a)}:undefined;}return undefined;}function setLocalAppAlias(_0x5d8ca8,_0x1363b8,_0x2f7b90){const _0x14b48d=a21_0x10930a,_0x40553e=_0x5d8ca8[_0x14b48d(0x12e)]&&typeof _0x5d8ca8[_0x14b48d(0x12e)]===_0x14b48d(0x10e)&&!Array[_0x14b48d(0xfe)](_0x5d8ca8[_0x14b48d(0x12e)])?_0x5d8ca8[_0x14b48d(0x12e)]:{},_0x3baadf=_0x40553e[_0x1363b8]&&typeof _0x40553e[_0x1363b8]===_0x14b48d(0x10e)&&!Array[_0x14b48d(0xfe)](_0x40553e[_0x1363b8])?_0x40553e[_0x1363b8]:{};_0x3baadf[_0x14b48d(0x12a)]=_0x2f7b90,_0x40553e[_0x1363b8]=_0x3baadf,_0x5d8ca8[_0x14b48d(0x12e)]=_0x40553e;}function a21_0x8a9e(_0x676122,_0x4689fe){_0x676122=_0x676122-0xe7;const _0xf6e00e=a21_0xf6e0();let _0x8a9e12=_0xf6e00e[_0x676122];return _0x8a9e12;}function deleteLocalAppAlias(_0x4f2533,_0x3a141c){const _0x41e073=a21_0x10930a;if(!_0x4f2533['apps']||typeof _0x4f2533[_0x41e073(0x12e)]!==_0x41e073(0x10e)||Array['isArray'](_0x4f2533[_0x41e073(0x12e)]))return![];const _0xbd822e=_0x4f2533['apps'],_0x5dfce3=_0xbd822e[_0x3a141c[_0x41e073(0x103)]];if(!_0x5dfce3||typeof _0x5dfce3!==_0x41e073(0x10e)||Array[_0x41e073(0xfe)](_0x5dfce3))return![];if(!_0x3a141c['field'])return delete _0xbd822e[_0x3a141c['alias']],!![];if(!(_0x3a141c[_0x41e073(0x11d)]in _0x5dfce3))return![];return delete _0x5dfce3[_0x3a141c[_0x41e073(0x11d)]],Object['keys'](_0x5dfce3)[_0x41e073(0xf4)]===0x0&&delete _0xbd822e[_0x3a141c['alias']],!![];}const listDef={'service':a21_0x10930a(0x113),'command':'list','description':a21_0x10930a(0xe9),'risk':a21_0x10930a(0xfc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x412d82){const _0x37afbb=a21_0x10930a,{buildConfigFromFlags:_0x3bfd42}=await import('../../context.js'),_0x2a4eed=_0x3bfd42({}),_0x4e9fed=getProjectConfigPath(),_0x26efdd=resolveWriteConfigPath('global');if(_0x412d82[_0x37afbb(0x126)]===_0x37afbb(0x114))return{'ok':!![],'message':_0x37afbb(0x112)+(JSON[_0x37afbb(0x109)](_0x2a4eed[_0x37afbb(0xe7)],null,0x2)+'\x0a\x0a')+_0x37afbb(0x121)+(_0x37afbb(0x111)+(_0x4e9fed??'(none)')+'\x0a')+(_0x37afbb(0xfb)+_0x26efdd)};return{'ok':!![],'data':{'effective':_0x2a4eed[_0x37afbb(0xe7)],'configFiles':{'project':_0x4e9fed??null,'global':_0x26efdd}}};}},getDef={'service':a21_0x10930a(0x113),'command':'get','description':a21_0x10930a(0xff),'risk':a21_0x10930a(0xfc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x10930a(0xef),'description':a21_0x10930a(0x125),'required':!![]}],'flags':[],async 'execute'(_0x2491a1){const _0x3e785b=a21_0x10930a,_0x3f5d4f=_0x2491a1[_0x3e785b(0xed)][0x0];if(!_0x3f5d4f)throw CliErrors[_0x3e785b(0x116)]('Missing\x20key\x20argument.',_0x3e785b(0x129)+CLI_BIN_NAME+_0x3e785b(0x12d));const {buildConfigFromFlags:_0x4cfbe9}=await import(_0x3e785b(0x11c)),{raw:_0x13d85d}=_0x4cfbe9({});if(_0x3f5d4f[_0x3e785b(0xf0)]('.')){const _0x14e136=_0x3f5d4f[_0x3e785b(0xec)]('.');let _0x32fcbf=_0x13d85d;for(const _0x1dcc5f of _0x14e136){if(_0x32fcbf==null||typeof _0x32fcbf!==_0x3e785b(0x10e))throw CliErrors[_0x3e785b(0x116)](_0x3e785b(0x12c)+_0x3f5d4f);_0x32fcbf=_0x32fcbf[_0x1dcc5f];}if(_0x32fcbf===undefined)throw CliErrors[_0x3e785b(0x116)](_0x3e785b(0x12c)+_0x3f5d4f);return console[_0x3e785b(0xf6)](typeof _0x32fcbf===_0x3e785b(0x10e)?JSON['stringify'](_0x32fcbf,null,0x2):String(_0x32fcbf)),{'ok':!![]};}const _0x396148=_0x13d85d[_0x3f5d4f];if(_0x396148===undefined)throw CliErrors[_0x3e785b(0x116)](_0x3e785b(0x12c)+_0x3f5d4f);return console[_0x3e785b(0xf6)](typeof _0x396148===_0x3e785b(0x10e)?JSON[_0x3e785b(0x109)](_0x396148,null,0x2):String(_0x396148)),{'ok':!![]};}},setDef={'service':a21_0x10930a(0x113),'command':a21_0x10930a(0xf9),'description':a21_0x10930a(0xfd),'risk':a21_0x10930a(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a21_0x10930a(0x108),'description':a21_0x10930a(0x128),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xbe5172){const _0x451ec5=a21_0x10930a,_0x4e969f=_0xbe5172[_0x451ec5(0xed)][0x0],_0x5766b7=_0xbe5172[_0x451ec5(0xed)][0x1];if(!_0x4e969f||_0x5766b7===undefined)throw CliErrors[_0x451ec5(0x116)]('Missing\x20key\x20or\x20value.',_0x451ec5(0x129)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x4e969f]&&!ENUM_KEYS[_0x4e969f][_0x451ec5(0xf0)](_0x5766b7))throw CliErrors['validation'](_0x451ec5(0x117)+_0x4e969f+_0x451ec5(0x100)+ENUM_KEYS[_0x4e969f][_0x451ec5(0x120)](',\x20'));if(_0x4e969f==='riskLevel')throw CliErrors['validation'](_0x451ec5(0x106));if(_0x4e969f===_0x451ec5(0xf3)){const _0x24a6c8=Number(_0x5766b7);if(isNaN(_0x24a6c8)||_0x24a6c8<=0x0)throw CliErrors[_0x451ec5(0x116)](_0x451ec5(0x110));}const _0x148672=resolveWriteScope({'explicitGlobal':_0xbe5172['bool'](_0x451ec5(0xf5)),'policy':_0x451ec5(0xf8)}),_0x305e4e=toScopeFlags(_0x148672),_0x13fbbb=readScopedConfig(_0x305e4e),_0x4076cf=parseAliasAppcodeSetKey(_0x4e969f);if(!_0x4076cf&&!isTopLevelConfigKey(_0x4e969f))throw CliErrors[_0x451ec5(0x116)](_0x451ec5(0x10c)+_0x4e969f+_0x451ec5(0xf7),_0x451ec5(0xe8)+getTopLevelConfigKeySummary()+_0x451ec5(0x123));return _0x4076cf?setLocalAppAlias(_0x13fbbb,_0x4076cf,_0x5766b7):_0x13fbbb[_0x4e969f]=_0x4e969f===_0x451ec5(0xf3)?Number(_0x5766b7):_0x5766b7,console[_0x451ec5(0xf6)](_0x451ec5(0x11b)+_0x4e969f+_0x451ec5(0x102)+_0x5766b7+'\x22'+(_0x148672==='global'?_0x451ec5(0xf2):'')),writeScopedConfig(_0x13fbbb,_0x305e4e),{'ok':!![]};}},deleteDef={'service':a21_0x10930a(0x113),'command':a21_0x10930a(0x10b),'description':a21_0x10930a(0x115),'risk':a21_0x10930a(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5e29ce){const _0x41e78d=a21_0x10930a,_0x5dac45=_0x5e29ce[_0x41e78d(0xed)][0x0];if(!_0x5dac45)throw CliErrors[_0x41e78d(0x116)](_0x41e78d(0x10d),_0x41e78d(0x129)+CLI_BIN_NAME+_0x41e78d(0x10f));const _0x174017=resolveWriteScope({'explicitGlobal':_0x5e29ce[_0x41e78d(0x101)](_0x41e78d(0xf5)),'policy':_0x41e78d(0xf8)}),_0x2682dc=toScopeFlags(_0x174017),_0xbddf92=readScopedConfig(_0x2682dc),_0x13f9f4=parseAliasDeleteKey(_0x5dac45);if(_0x13f9f4){if(!deleteLocalAppAlias(_0xbddf92,_0x13f9f4))throw CliErrors['validation'](_0x41e78d(0x12c)+_0x5dac45);return console[_0x41e78d(0xf6)](_0x41e78d(0x119)+_0x5dac45+'`'+(_0x174017===_0x41e78d(0xf5)?_0x41e78d(0xf2):'')),writeScopedConfig(_0xbddf92,_0x2682dc),{'ok':!![]};}if(_0xbddf92[_0x5dac45]===undefined)throw CliErrors[_0x41e78d(0x116)](_0x41e78d(0xfa)+_0x5dac45+_0x41e78d(0x11a));return delete _0xbddf92[_0x5dac45],console[_0x41e78d(0xf6)](_0x41e78d(0x119)+_0x5dac45+'`'+(_0x174017===_0x41e78d(0xf5)?_0x41e78d(0xf2):'')),writeScopedConfig(_0xbddf92,_0x2682dc),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a22_0x2150(_0x8dfb12,_0x49225b){_0x8dfb12=_0x8dfb12-0x144;var _0x6eacfa=a22_0x6eac();var _0x2150e9=_0x6eacfa[_0x8dfb12];return _0x2150e9;}(function(_0xbd2a75,_0x37a854){var _0x5bef6e=a22_0x2150,_0x403f8e=_0xbd2a75();while(!![]){try{var _0x4e6a67=parseInt(_0x5bef6e(0x145))/0x1+-parseInt(_0x5bef6e(0x148))/0x2+-parseInt(_0x5bef6e(0x149))/0x3*(-parseInt(_0x5bef6e(0x144))/0x4)+-parseInt(_0x5bef6e(0x14d))/0x5+-parseInt(_0x5bef6e(0x14c))/0x6*(-parseInt(_0x5bef6e(0x147))/0x7)+parseInt(_0x5bef6e(0x146))/0x8*(parseInt(_0x5bef6e(0x14b))/0x9)+-parseInt(_0x5bef6e(0x14a))/0xa;if(_0x4e6a67===_0x37a854)break;else _0x403f8e['push'](_0x403f8e['shift']());}catch(_0x35c57f){_0x403f8e['push'](_0x403f8e['shift']());}}}(a22_0x6eac,0x3810e));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a22_0x6eac(){var _0x4a6e17=['401706CEUjbM','27EwIDGJ','6391600jbJdxM','55656BdqYmv','1026WURrJE','1031600TSioyl','64908tDvIrg','351661kPkfvs','504AMpKxH','15911kwVfUl'];a22_0x6eac=function(){return _0x4a6e17;};return a22_0x6eac();}export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x2cb561=a24_0x3eb9;(function(_0x13883f,_0x1a84ca){const _0x361041=a24_0x3eb9,_0x3bcdf2=_0x13883f();while(!![]){try{const _0x4233bd=parseInt(_0x361041(0x1e1))/0x1*(-parseInt(_0x361041(0x212))/0x2)+-parseInt(_0x361041(0x237))/0x3+-parseInt(_0x361041(0x1e7))/0x4*(-parseInt(_0x361041(0x222))/0x5)+-parseInt(_0x361041(0x231))/0x6+-parseInt(_0x361041(0x1e3))/0x7+-parseInt(_0x361041(0x22a))/0x8*(parseInt(_0x361041(0x20f))/0x9)+parseInt(_0x361041(0x1f5))/0xa;if(_0x4233bd===_0x1a84ca)break;else _0x3bcdf2['push'](_0x3bcdf2['shift']());}catch(_0x5a41d4){_0x3bcdf2['push'](_0x3bcdf2['shift']());}}}(a24_0x4a25,0x73c7d));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x4a25(){const _0x39d38c=['25168070lkjqLY','\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}}','dryRun','\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}]','delete','data','paramsRequired','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','Preview:\x20data\x20','batchCreate','code','\x20on\x20dataset\x20','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','str','create','\x20\x20AGGREGATE\x20TYPES','command','filter','paramsHint','now','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20PARAMS\x20STRUCTURE','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','aggregate','2295rvpbUm','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','1229104rKwzlt','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','description','\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}}','high-risk-write','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20LOGICAL\x20COMBINATORS','\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]','body','\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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Update\x20an\x20existing\x20record','update','\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}}','length','20bgAFpC','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\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$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','build','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','14968HceEdg','\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}]','/api/{appCode}/','getOne','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','data\x20','POST','5120826ObJzqA','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','params','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','291807pGqLSN','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','1Jyermx','\x20completed\x20in\x20','2471343lyNHFt','\x20\x20WHERE\x20OPERATORS','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\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','352876BXHSXb','join','risk','read','batch','operation','\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\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$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$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}}','write','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}'];a24_0x4a25=function(){return _0x39d38c;};return a24_0x4a25();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x2cb561(0x208),'operation':a24_0x2cb561(0x208),'risk':a24_0x2cb561(0x1ea),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x2cb561(0x1fe)+a24_0x2cb561(0x236),'helpExtra':[a24_0x2cb561(0x1e4),a24_0x2cb561(0x1ef),a24_0x2cb561(0x1f2),a24_0x2cb561(0x220),a24_0x2cb561(0x21c),a24_0x2cb561(0x210),a24_0x2cb561(0x1f1),a24_0x2cb561(0x225),a24_0x2cb561(0x224),a24_0x2cb561(0x216),a24_0x2cb561(0x1f6),'',a24_0x2cb561(0x219),a24_0x2cb561(0x1df),a24_0x2cb561(0x1dd),'',a24_0x2cb561(0x1de),a24_0x2cb561(0x22e),a24_0x2cb561(0x234),a24_0x2cb561(0x22b),a24_0x2cb561(0x21d),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION',a24_0x2cb561(0x226),a24_0x2cb561(0x211),a24_0x2cb561(0x227)][a24_0x2cb561(0x1e8)]('\x0a')},{'command':a24_0x2cb561(0x22d),'operation':a24_0x2cb561(0x22d),'risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x2cb561(0x214)},{'command':a24_0x2cb561(0x205),'operation':a24_0x2cb561(0x205),'risk':'write','paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a24_0x2cb561(0x1e5)},{'command':'batchCreate','operation':a24_0x2cb561(0x200),'risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a24_0x2cb561(0x21f),'operation':a24_0x2cb561(0x21f),'risk':a24_0x2cb561(0x1f3),'paramsRequired':!![],'description':a24_0x2cb561(0x21e),'paramsHint':a24_0x2cb561(0x229)+a24_0x2cb561(0x20b)},{'command':a24_0x2cb561(0x1fa),'operation':a24_0x2cb561(0x1fa),'risk':a24_0x2cb561(0x217),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a24_0x2cb561(0x214)},{'command':a24_0x2cb561(0x20e),'operation':a24_0x2cb561(0x20e),'risk':a24_0x2cb561(0x1ea),'paramsRequired':![],'description':a24_0x2cb561(0x218),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a24_0x2cb561(0x20d),'helpExtra':[a24_0x2cb561(0x206),a24_0x2cb561(0x1ee),'\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_0x2cb561(0x1ed),'\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_0x2cb561(0x1f4),a24_0x2cb561(0x203),'',a24_0x2cb561(0x20c),a24_0x2cb561(0x21a),a24_0x2cb561(0x213),a24_0x2cb561(0x1fd),a24_0x2cb561(0x232),a24_0x2cb561(0x223),a24_0x2cb561(0x1f9),'','\x20\x20EXAMPLES',a24_0x2cb561(0x1f8),a24_0x2cb561(0x1e0),'',a24_0x2cb561(0x1f0),a24_0x2cb561(0x1e6),'',a24_0x2cb561(0x235)]['join']('\x0a')}];function a24_0x3eb9(_0x21e03e,_0x4d6aa1){_0x21e03e=_0x21e03e-0x1dd;const _0x4a2590=a24_0x4a25();let _0x3eb9b2=_0x4a2590[_0x21e03e];return _0x3eb9b2;}function makeDataCommand(_0xbf071b){const _0x32acc3=a24_0x2cb561,_0xb26c7a=_0x32acc3(0x22f)+_0xbf071b['command'],_0x471953={'service':_0x32acc3(0x1fb),'command':_0xbf071b[_0x32acc3(0x207)],'description':_0xbf071b['description'],'risk':_0xbf071b[_0x32acc3(0x1e9)],'helpExtra':_0xbf071b['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xbf071b[_0x32acc3(0x209)]}],'validate':async _0x33c97b=>{const _0x58100b=_0x32acc3;_0xbf071b[_0x58100b(0x1fc)]&&requireAnyOf(_0x33c97b,['params'],_0xb26c7a),_0xbf071b[_0x58100b(0x1ec)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x33c97b[_0x58100b(0x204)](_0x58100b(0x233)))),_0xbf071b[_0x58100b(0x1ec)]===_0x58100b(0x21f)&&parseUpdateIdsFromParams(parseJsonParams(_0x33c97b[_0x58100b(0x204)]('params'))??{});},async 'execute'(_0x2efcdb){const _0x1aa20b=_0x32acc3,_0x38b609=_0x2efcdb[_0x1aa20b(0x204)](_0x1aa20b(0x201)),_0x41f2ff=_0xbf071b[_0x1aa20b(0x1ec)]===_0x1aa20b(0x200)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2efcdb[_0x1aa20b(0x204)](_0x1aa20b(0x233)))):parseJsonParams(_0x2efcdb['str']('params'))??{},_0x5ee737=_0xbf071b['operation']==='update'?parseUpdateIdsFromParams(_0x41f2ff):undefined,_0xd1e717=_0x5ee737?normalizeUpdateParamsForRuntime(_0x41f2ff,_0x5ee737):_0x41f2ff,_0x54a224=Date['now'](),_0x545dc9=await executeData(_0x38b609,_0xbf071b['operation'],_0xd1e717),_0x4aa2bf=Date[_0x1aa20b(0x20a)]()-_0x54a224,_0x24c52f=_0x5ee737&&_0x5ee737[_0x1aa20b(0x221)]>0x1?buildBatchUpdateResult(_0x5ee737,_0x545dc9):_0x545dc9;return{'ok':!![],'data':{'result':_0x24c52f,'elapsed':_0x4aa2bf},'message':_0x1aa20b(0x22f)+_0xbf071b[_0x1aa20b(0x207)]+_0x1aa20b(0x1e2)+_0x4aa2bf+'ms'};}};return _0xbf071b[_0x32acc3(0x1e9)]!==_0x32acc3(0x1ea)&&(_0x471953[_0x32acc3(0x1f7)]=async _0x250d74=>{const _0x1a6b96=_0x32acc3,_0x138536=_0x250d74[_0x1a6b96(0x204)](_0x1a6b96(0x201)),_0x4f2b97=_0xbf071b[_0x1a6b96(0x1ec)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x250d74[_0x1a6b96(0x204)](_0x1a6b96(0x233)))):parseJsonParams(_0x250d74[_0x1a6b96(0x204)](_0x1a6b96(0x233)))??{};let _0x190cfd=_0x4f2b97;if(_0xbf071b['operation']===_0x1a6b96(0x21f)){const _0x1202ed=parseUpdateIdsFromParams(_0x4f2b97);_0x190cfd=normalizeUpdateParamsForRuntime(_0x4f2b97,_0x1202ed);}return dryRun(_0x1a6b96(0x230),_0x1a6b96(0x22c)+_0x138536+'/'+_0xbf071b[_0x1a6b96(0x1ec)])[_0x1a6b96(0x21b)](_0x190cfd)[_0x1a6b96(0x215)](_0x1a6b96(0x1ff)+_0xbf071b[_0x1a6b96(0x207)]+_0x1a6b96(0x202)+_0x138536)[_0x1a6b96(0x228)]();}),_0x471953;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0x41d869,_0x43a6d4){const _0x4e75ef=a24_0x2cb561;return{'operation':_0x4e75ef(0x21f),'mode':_0x4e75ef(0x1eb),'ids':_0x41d869,'total':_0x41d869[_0x4e75ef(0x221)],'result':_0x43a6d4};}
|
|
1
|
+
function a23_0x59e2(_0x5edd16,_0x1e192d){_0x5edd16=_0x5edd16-0x185;const _0x2bfcd=a23_0x2bfc();let _0x59e28c=_0x2bfcd[_0x5edd16];return _0x59e28c;}const a23_0x167b1a=a23_0x59e2;(function(_0x24cc67,_0x2a0a6a){const _0x4611e3=a23_0x59e2,_0x2b7841=_0x24cc67();while(!![]){try{const _0x3c17e9=parseInt(_0x4611e3(0x1cc))/0x1+-parseInt(_0x4611e3(0x1a2))/0x2*(-parseInt(_0x4611e3(0x1a4))/0x3)+parseInt(_0x4611e3(0x1a0))/0x4+-parseInt(_0x4611e3(0x1b8))/0x5+-parseInt(_0x4611e3(0x1b2))/0x6*(-parseInt(_0x4611e3(0x1d0))/0x7)+parseInt(_0x4611e3(0x198))/0x8+-parseInt(_0x4611e3(0x1da))/0x9*(parseInt(_0x4611e3(0x1bd))/0xa);if(_0x3c17e9===_0x2a0a6a)break;else _0x2b7841['push'](_0x2b7841['shift']());}catch(_0x162650){_0x2b7841['push'](_0x2b7841['shift']());}}}(a23_0x2bfc,0x9d447));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a23_0x167b1a(0x19b),'operation':a23_0x167b1a(0x19b),'risk':a23_0x167b1a(0x1cf),'paramsRequired':![],'description':a23_0x167b1a(0x1cd),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a23_0x167b1a(0x19a),'helpExtra':[a23_0x167b1a(0x1c8),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a23_0x167b1a(0x1b6),a23_0x167b1a(0x185),a23_0x167b1a(0x187),a23_0x167b1a(0x1af),a23_0x167b1a(0x195),a23_0x167b1a(0x19d),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}',a23_0x167b1a(0x1b0),a23_0x167b1a(0x1d4),'',a23_0x167b1a(0x1b5),a23_0x167b1a(0x1d8),a23_0x167b1a(0x19c),'',a23_0x167b1a(0x1ca),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a23_0x167b1a(0x193),a23_0x167b1a(0x189),a23_0x167b1a(0x1c6),a23_0x167b1a(0x1b1),'',a23_0x167b1a(0x19e),a23_0x167b1a(0x1a9),a23_0x167b1a(0x1c9),a23_0x167b1a(0x188)][a23_0x167b1a(0x1a1)]('\x0a')},{'command':a23_0x167b1a(0x18e),'operation':'getOne','risk':a23_0x167b1a(0x1cf),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a23_0x167b1a(0x18a)},{'command':a23_0x167b1a(0x18d),'operation':a23_0x167b1a(0x18d),'risk':a23_0x167b1a(0x194),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a23_0x167b1a(0x18b)},{'command':a23_0x167b1a(0x1c2),'operation':a23_0x167b1a(0x1c2),'risk':a23_0x167b1a(0x194),'paramsRequired':!![],'description':a23_0x167b1a(0x1ce),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a23_0x167b1a(0x19f),'operation':a23_0x167b1a(0x19f),'risk':'write','paramsRequired':!![],'description':a23_0x167b1a(0x1bb),'paramsHint':a23_0x167b1a(0x1b9)+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a23_0x167b1a(0x1ae),'operation':a23_0x167b1a(0x1ae),'risk':'high-risk-write','paramsRequired':!![],'description':a23_0x167b1a(0x1ab),'paramsHint':a23_0x167b1a(0x18a)},{'command':a23_0x167b1a(0x18c),'operation':a23_0x167b1a(0x18c),'risk':'read','paramsRequired':![],'description':a23_0x167b1a(0x1d2),'paramsHint':a23_0x167b1a(0x1bf)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a23_0x167b1a(0x1a5),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a23_0x167b1a(0x1bc),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}',a23_0x167b1a(0x191),a23_0x167b1a(0x1ba),a23_0x167b1a(0x196),a23_0x167b1a(0x1d3),'','\x20\x20PARAMS\x20STRUCTURE',a23_0x167b1a(0x18f),a23_0x167b1a(0x1d9),a23_0x167b1a(0x1c0),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a23_0x167b1a(0x1aa),a23_0x167b1a(0x1b7),'',a23_0x167b1a(0x1d6),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a23_0x167b1a(0x197),'',a23_0x167b1a(0x1be),a23_0x167b1a(0x1a7),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a23_0x167b1a(0x1a1)]('\x0a')}];function makeDataCommand(_0x3923b2){const _0x47c5ae=a23_0x167b1a,_0x3469b5='data\x20'+_0x3923b2[_0x47c5ae(0x1ac)],_0x334caa={'service':_0x47c5ae(0x1c5),'command':_0x3923b2[_0x47c5ae(0x1ac)],'description':_0x3923b2[_0x47c5ae(0x199)],'risk':_0x3923b2[_0x47c5ae(0x1a6)],'helpExtra':_0x3923b2['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3923b2[_0x47c5ae(0x192)]}],'validate':async _0x6483cb=>{const _0x4e8636=_0x47c5ae;_0x3923b2[_0x4e8636(0x1a8)]&&requireAnyOf(_0x6483cb,[_0x4e8636(0x1d7)],_0x3469b5),_0x3923b2['operation']===_0x4e8636(0x1c2)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x6483cb[_0x4e8636(0x1c4)](_0x4e8636(0x1d7)))),_0x3923b2[_0x4e8636(0x1a3)]===_0x4e8636(0x19f)&&parseUpdateIdsFromParams(parseJsonParams(_0x6483cb['str'](_0x4e8636(0x1d7)))??{});},async 'execute'(_0xa3e73){const _0x949b5c=_0x47c5ae,_0x50a467=_0xa3e73[_0x949b5c(0x1c4)](_0x949b5c(0x1cb)),_0x5bea09=_0x3923b2[_0x949b5c(0x1a3)]===_0x949b5c(0x1c2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xa3e73['str'](_0x949b5c(0x1d7)))):parseJsonParams(_0xa3e73[_0x949b5c(0x1c4)](_0x949b5c(0x1d7)))??{},_0xd06d94=_0x3923b2[_0x949b5c(0x1a3)]===_0x949b5c(0x19f)?parseUpdateIdsFromParams(_0x5bea09):undefined,_0x230c6e=_0xd06d94?normalizeUpdateParamsForRuntime(_0x5bea09,_0xd06d94):_0x5bea09,_0x5224dc=Date[_0x949b5c(0x1c7)](),_0x41a93a=await executeData(_0x50a467,_0x3923b2[_0x949b5c(0x1a3)],_0x230c6e),_0x1288e6=Date[_0x949b5c(0x1c7)]()-_0x5224dc,_0x4eb3d4=_0xd06d94&&_0xd06d94['length']>0x1?buildBatchUpdateResult(_0xd06d94,_0x41a93a):_0x41a93a;return{'ok':!![],'data':{'result':_0x4eb3d4,'elapsed':_0x1288e6},'message':_0x949b5c(0x1d1)+_0x3923b2[_0x949b5c(0x1ac)]+_0x949b5c(0x1ad)+_0x1288e6+'ms'};}};return _0x3923b2[_0x47c5ae(0x1a6)]!=='read'&&(_0x334caa[_0x47c5ae(0x1b3)]=async _0x29453a=>{const _0xd997ac=_0x47c5ae,_0x3bfcd7=_0x29453a[_0xd997ac(0x1c4)]('code'),_0x5f0f8c=_0x3923b2[_0xd997ac(0x1a3)]===_0xd997ac(0x1c2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x29453a['str']('params'))):parseJsonParams(_0x29453a['str'](_0xd997ac(0x1d7)))??{};let _0x32bbdc=_0x5f0f8c;if(_0x3923b2[_0xd997ac(0x1a3)]===_0xd997ac(0x19f)){const _0x33d9d4=parseUpdateIdsFromParams(_0x5f0f8c);_0x32bbdc=normalizeUpdateParamsForRuntime(_0x5f0f8c,_0x33d9d4);}return dryRun(_0xd997ac(0x186),'/api/{appCode}/'+_0x3bfcd7+'/'+_0x3923b2[_0xd997ac(0x1a3)])[_0xd997ac(0x1d5)](_0x32bbdc)[_0xd997ac(0x199)](_0xd997ac(0x1c3)+_0x3923b2[_0xd997ac(0x1ac)]+_0xd997ac(0x1c1)+_0x3bfcd7)[_0xd997ac(0x190)]();}),_0x334caa;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0x549486,_0x73e960){const _0x166e4c=a23_0x167b1a;return{'operation':'update','mode':'batch','ids':_0x549486,'total':_0x549486[_0x166e4c(0x1b4)],'result':_0x73e960};}function a23_0x2bfc(){const _0x18cc89=['\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','body','\x20\x20EXAMPLES','params','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','45cVdelL','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','POST','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','aggregate','create','getOne','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','build','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','paramsHint','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','write','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','10129312znrViM','description','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','filter','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20PAGINATION','update','5023708wlPTsa','join','6OjjyuW','operation','603933FsBPJG','\x20\x20AGGREGATE\x20TYPES','risk','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','paramsRequired','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','command','\x20completed\x20in\x20','delete','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','414NivhgX','dryRun','length','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','6309210uYgSLA','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','Update\x20an\x20existing\x20record','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','5560010AMUzIm','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20on\x20dataset\x20','batchCreate','Preview:\x20data\x20','str','data','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','now','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','code','519677bEoakx','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','read','105539CegROI','data\x20','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)'];a23_0x2bfc=function(){return _0x18cc89;};return a23_0x2bfc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a24_0x1543(){const _0x307e9b=['creatorNameField','length','type','24362MphKuT','1442691hrymjW','indexes','7tIwYhV','68zbvLjO','120874DEAiKc','updateTimeField','fields','properties','name','70470CTqiwi','dbtableConfig','doVersion','createTimeField','afterScriptId','responseBody','pkField','extend','appCode','map','sourceType','requestBody','804uiZqbf','15OcpFDy','2aZEBiv','description','responseFields','allFieldNames','dataType','isArray','split','columnCodeListWithDeleted','allFields','tableComment','options','find','object','method','filter','required','doType','source','132qxXyja','requestFields','parse','tableName','dbId','formatRules','modelId','beforeScriptId','push','13149uyrFLj','trim','path','str','host','displayName','relatedPageInfoList','datasetKey','code','validateRules','dbName','operations','deleted','253624tbJFks','235002TUkwiS','string'];a24_0x1543=function(){return _0x307e9b;};return a24_0x1543();}(function(_0x25d73c,_0x49b50d){const _0x5bba71=a24_0x4f9a,_0xd35131=_0x25d73c();while(!![]){try{const _0x430343=-parseInt(_0x5bba71(0x185))/0x1*(-parseInt(_0x5bba71(0x198))/0x2)+-parseInt(_0x5bba71(0x1b3))/0x3*(-parseInt(_0x5bba71(0x184))/0x4)+parseInt(_0x5bba71(0x197))/0x5*(-parseInt(_0x5bba71(0x1c1))/0x6)+parseInt(_0x5bba71(0x183))/0x7*(-parseInt(_0x5bba71(0x1c0))/0x8)+parseInt(_0x5bba71(0x1c7))/0x9+parseInt(_0x5bba71(0x18a))/0xa*(parseInt(_0x5bba71(0x1aa))/0xb)+-parseInt(_0x5bba71(0x196))/0xc*(parseInt(_0x5bba71(0x1c6))/0xd);if(_0x430343===_0x49b50d)break;else _0xd35131['push'](_0xd35131['shift']());}catch(_0x53558d){_0xd35131['push'](_0xd35131['shift']());}}}(a24_0x1543,0x2866e));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x526a9c){const _0x5b8c20=a24_0x4f9a;if(_0x526a9c[_0x5b8c20(0x1bf)])return null;const _0x47b588=Boolean(_0x526a9c[_0x5b8c20(0x1b8)]!==undefined||_0x526a9c[_0x5b8c20(0x1a8)]!==undefined);let _0x15b462={};if(!_0x47b588&&typeof _0x526a9c[_0x5b8c20(0x191)]===_0x5b8c20(0x1c2))try{_0x15b462=JSON['parse'](_0x526a9c[_0x5b8c20(0x191)]);}catch{}const _0x2557b8=_0x47b588?_0x526a9c[_0x5b8c20(0x189)]:_0x526a9c['code'],_0x51e2f3=_0x47b588?_0x526a9c['displayName']:_0x526a9c[_0x5b8c20(0x189)],_0x4af94a=_0x47b588?_0x526a9c[_0x5b8c20(0x1a8)]:_0x526a9c[_0x5b8c20(0x1c5)]||_0x526a9c[_0x5b8c20(0x19c)],_0x4cb1ee=_0x47b588?_0x526a9c['pkField']===!![]:_0x15b462[_0x5b8c20(0x190)]===!![],_0x4985ce=_0x47b588?_0x526a9c['required']===!![]:_0x15b462[_0x5b8c20(0x1a7)]===!![],_0x4fee4c=_0x47b588?_0x526a9c['options']??null:_0x15b462[_0x5b8c20(0x1a2)]??null,_0x69d878={'name':_0x2557b8,'displayName':_0x51e2f3||_0x2557b8,'type':_0x4af94a,'dbType':_0x526a9c['dbType'],'pk':_0x4cb1ee,'required':_0x4985ce,'description':_0x526a9c['description']||undefined};return Array[_0x5b8c20(0x19d)](_0x4fee4c)&&_0x4fee4c['length']>0x0&&(_0x69d878[_0x5b8c20(0x1a2)]=_0x4fee4c),_0x69d878;}function parseJsonMaybe(_0x76ef04){const _0x51be43=a24_0x4f9a;if(typeof _0x76ef04!==_0x51be43(0x1c2))return _0x76ef04;try{return JSON[_0x51be43(0x1ac)](_0x76ef04);}catch{return _0x76ef04;}}function normalizeOperationEntry(_0x2e5139,_0x47a972){const _0x13d8ea=a24_0x4f9a;if(!_0x47a972||typeof _0x47a972!==_0x13d8ea(0x1a4))return null;if(!_0x47a972['method']||!_0x47a972[_0x13d8ea(0x1b5)])return null;const _0x295923={'name':_0x2e5139,'method':_0x47a972[_0x13d8ea(0x1a5)],'path':_0x47a972[_0x13d8ea(0x1b5)]};if(_0x47a972[_0x13d8ea(0x1b7)])_0x295923['host']=_0x47a972[_0x13d8ea(0x1b7)];if(_0x47a972[_0x13d8ea(0x195)]!=null)_0x295923[_0x13d8ea(0x195)]=parseJsonMaybe(_0x47a972['requestBody']);if(_0x47a972[_0x13d8ea(0x18f)]!=null)_0x295923[_0x13d8ea(0x18f)]=parseJsonMaybe(_0x47a972[_0x13d8ea(0x18f)]);if(_0x47a972[_0x13d8ea(0x1b1)]!=null)_0x295923[_0x13d8ea(0x1b1)]=_0x47a972[_0x13d8ea(0x1b1)];if(_0x47a972[_0x13d8ea(0x18e)]!=null)_0x295923['afterScriptId']=_0x47a972[_0x13d8ea(0x18e)];if(Array[_0x13d8ea(0x19d)](_0x47a972[_0x13d8ea(0x1ab)]))_0x295923[_0x13d8ea(0x1ab)]=_0x47a972[_0x13d8ea(0x1ab)];if(Array[_0x13d8ea(0x19d)](_0x47a972['responseFields']))_0x295923[_0x13d8ea(0x19a)]=_0x47a972[_0x13d8ea(0x19a)];return _0x295923;}function a24_0x4f9a(_0x40ef38,_0x1fd9c1){_0x40ef38=_0x40ef38-0x183;const _0x1543bc=a24_0x1543();let _0x4f9aba=_0x1543bc[_0x40ef38];return _0x4f9aba;}function summarizeDbtable(_0x15969e){const _0x18402f=a24_0x4f9a,_0x415bc8={},_0x2648dd=['dbId','dbName','tableName',_0x18402f(0x1ba),'pkField',_0x18402f(0x1a0),'logicField',_0x18402f(0x18d),_0x18402f(0x186),'creatorIdField',_0x18402f(0x1c3),'modifierIdField','modifierNameField','labelField','dblinkInfoDTO'];for(const _0x1314f5 of _0x2648dd){if(_0x15969e[_0x1314f5]!==undefined)_0x415bc8[_0x1314f5]=_0x15969e[_0x1314f5];}return typeof _0x415bc8[_0x18402f(0x1a0)]===_0x18402f(0x1c2)&&_0x415bc8['allFields']['length']>0x0&&(_0x415bc8[_0x18402f(0x19b)]=_0x415bc8[_0x18402f(0x1a0)][_0x18402f(0x19e)](',')[_0x18402f(0x193)](_0xa68fd2=>_0xa68fd2[_0x18402f(0x1b4)]())[_0x18402f(0x1a6)](Boolean)),_0x415bc8;}function normalizeRelatedPages(_0xdc66aa){const _0x432247=a24_0x4f9a;if(!Array['isArray'](_0xdc66aa))return[];return _0xdc66aa[_0x432247(0x1a6)](_0x46ef2b=>_0x46ef2b&&typeof _0x46ef2b===_0x432247(0x1a4))[_0x432247(0x193)](_0x291e03=>({'id':_0x291e03['id'],'type':_0x291e03[_0x432247(0x1c5)],'code':_0x291e03['code'],'title':_0x291e03['title'],'deleted':_0x291e03[_0x432247(0x1bf)]===!![]}));}function normalizeFallbackFieldName(_0x306f86,_0x1e7c10){const _0x402f1a=a24_0x4f9a,_0x1fee76=_0x306f86[_0x402f1a(0x1b4)]();if(!_0x1fee76)return null;return{'name':_0x1fee76,'displayName':_0x1fee76,'type':undefined,'dbType':undefined,'pk':_0x1fee76===_0x1e7c10,'required':![],'description':undefined};}async function loadListFieldFallback(_0x2e108a,_0x9b1936){const _0x2530bd=a24_0x4f9a;if(!_0x2e108a||!_0x9b1936)return[];try{const _0x1c00da=await listDatasets(_0x2e108a,{'code':_0x9b1936}),_0x503a44=_0x1c00da[_0x2530bd(0x1a3)](_0x33cb6f=>_0x33cb6f['code']===_0x9b1936)??_0x1c00da[0x0],_0x899fde=_0x503a44?.[_0x2530bd(0x18b)]??{},_0x20b580=typeof _0x899fde[_0x2530bd(0x1a0)]===_0x2530bd(0x1c2)?_0x899fde[_0x2530bd(0x1a0)][_0x2530bd(0x19e)](','):[];return _0x20b580['map'](_0x3ae513=>normalizeFallbackFieldName(_0x3ae513,_0x899fde['pkField']))[_0x2530bd(0x1a6)](_0x67257e=>_0x67257e!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0x58c70d){const _0x5171f9=a24_0x4f9a,_0x38a387=await getDatasetDetail(_0x58c70d[_0x5171f9(0x1b6)]('code')),_0x3b9cb2=Array[_0x5171f9(0x19d)](_0x38a387[_0x5171f9(0x187)])?_0x38a387[_0x5171f9(0x187)]:Array[_0x5171f9(0x19d)](_0x38a387['properties'])?_0x38a387[_0x5171f9(0x188)]:[];let _0x2449f7=_0x3b9cb2[_0x5171f9(0x193)](_0x4c4efb=>normalizeField(_0x4c4efb))['filter'](_0x437701=>_0x437701!==null);_0x2449f7['length']===0x0&&(_0x2449f7=await loadListFieldFallback(_0x58c70d[_0x5171f9(0x192)],_0x58c70d['str'](_0x5171f9(0x1bb))));const _0x5c956c=_0x38a387[_0x5171f9(0x1be)]??{},_0x53eb4e=[];for(const [_0x10dd20,_0x2108ee]of Object['entries'](_0x5c956c)){const _0x468740=normalizeOperationEntry(_0x10dd20,_0x2108ee);if(_0x468740)_0x53eb4e[_0x5171f9(0x1b2)](_0x468740);}const _0x31cbba=_0x38a387['dbtableConfig']??{},_0x3a2a78=_0x38a387['dataset']??{},_0x39a28c=_0x31cbba[_0x5171f9(0x1ae)]!=null?{'id':_0x31cbba[_0x5171f9(0x1ae)],'name':_0x31cbba[_0x5171f9(0x1bd)]??null}:undefined;let _0x3e0ba7;return typeof _0x38a387[_0x5171f9(0x191)]===_0x5171f9(0x1c2)&&(_0x3e0ba7=parseJsonMaybe(_0x38a387[_0x5171f9(0x191)])),{'ok':!![],'data':{'id':_0x38a387[_0x5171f9(0x1b0)]??_0x38a387['id'],'name':_0x38a387[_0x5171f9(0x189)],'code':_0x38a387['modelCode']||_0x38a387[_0x5171f9(0x1bb)],'doVersion':_0x38a387[_0x5171f9(0x18c)],'description':_0x38a387[_0x5171f9(0x199)]||_0x3a2a78[_0x5171f9(0x1a1)]||undefined,'source':_0x38a387[_0x5171f9(0x1a9)]||_0x3a2a78[_0x5171f9(0x194)],'table':_0x31cbba[_0x5171f9(0x1ad)]||_0x3a2a78[_0x5171f9(0x1ad)],'datasetKey':_0x31cbba[_0x5171f9(0x1ba)],'pk':_0x31cbba[_0x5171f9(0x190)],'db':_0x39a28c,'dbtable':summarizeDbtable(_0x31cbba),'fields':_0x2449f7,'operations':_0x53eb4e,'indexes':Array[_0x5171f9(0x19d)](_0x3a2a78[_0x5171f9(0x1c8)])?_0x3a2a78['indexes']:[],'relations':_0x38a387['relations']??null,'relatedPages':normalizeRelatedPages(_0x38a387[_0x5171f9(0x1b9)]),...Array[_0x5171f9(0x19d)](_0x38a387[_0x5171f9(0x19f)])?{'columnCodeListWithDeleted':_0x38a387[_0x5171f9(0x19f)]}:{},'formatRules':Array[_0x5171f9(0x19d)](_0x38a387[_0x5171f9(0x1af)])?_0x38a387[_0x5171f9(0x1af)]:[],'validateRules':Array[_0x5171f9(0x19d)](_0x38a387[_0x5171f9(0x1bc)])?_0x38a387['validateRules']:[],..._0x3e0ba7!==undefined?{'extend':_0x3e0ba7}:{},'stats':{'fieldCount':_0x2449f7['length'],'operationCount':_0x53eb4e[_0x5171f9(0x1c4)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a25_0x1837(){const _0x482b69=['1132BDrOzK','50721yhBdis','2823EHGPyf','2538648bqAuAw','522XjbanB','2681640gtATZj','2710rNSbXf','18PwAqLC','362595NyPcRr','830TbVRMO','3549384hZPhgC'];a25_0x1837=function(){return _0x482b69;};return a25_0x1837();}function a25_0x483a(_0x14db31,_0x1dca9f){_0x14db31=_0x14db31-0x1f3;const _0x1837ba=a25_0x1837();let _0x483a2b=_0x1837ba[_0x14db31];return _0x483a2b;}(function(_0x1453fd,_0x2bc16f){const _0x597bed=a25_0x483a,_0x55938d=_0x1453fd();while(!![]){try{const _0x2c2c68=parseInt(_0x597bed(0x1fc))/0x1*(-parseInt(_0x597bed(0x1f7))/0x2)+-parseInt(_0x597bed(0x1f5))/0x3*(parseInt(_0x597bed(0x1f3))/0x4)+parseInt(_0x597bed(0x1fb))/0x5*(parseInt(_0x597bed(0x1fa))/0x6)+parseInt(_0x597bed(0x1f6))/0x7+-parseInt(_0x597bed(0x1f8))/0x8+-parseInt(_0x597bed(0x1fd))/0x9+parseInt(_0x597bed(0x1f9))/0xa*(parseInt(_0x597bed(0x1f4))/0xb);if(_0x2c2c68===_0x2bc16f)break;else _0x55938d['push'](_0x55938d['shift']());}catch(_0x21494f){_0x55938d['push'](_0x55938d['shift']());}}}(a25_0x1837,0x96b48));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 a26_0x437f0e=a26_0x178b;(function(_0x1aabd9,_0x413c7f){const _0x3611c7=a26_0x178b,_0x354483=_0x1aabd9();while(!![]){try{const _0x4b82ab=-parseInt(_0x3611c7(0xcf))/0x1*(parseInt(_0x3611c7(0xd6))/0x2)+-parseInt(_0x3611c7(0xd3))/0x3+-parseInt(_0x3611c7(0xcd))/0x4+parseInt(_0x3611c7(0xd7))/0x5+-parseInt(_0x3611c7(0xd9))/0x6*(parseInt(_0x3611c7(0xd0))/0x7)+-parseInt(_0x3611c7(0xdd))/0x8*(-parseInt(_0x3611c7(0xd8))/0x9)+parseInt(_0x3611c7(0xd2))/0xa;if(_0x4b82ab===_0x413c7f)break;else _0x354483['push'](_0x354483['shift']());}catch(_0x15da02){_0x354483['push'](_0x354483['shift']());}}}(a26_0x59be,0xc0a99));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a26_0x178b(_0x275eb2,_0x27527e){_0x275eb2=_0x275eb2-0xca;const _0x59be1d=a26_0x59be();let _0x178b3b=_0x59be1d[_0x275eb2];return _0x178b3b;}function a26_0x59be(){const _0x39e61b=['code','108768WMTjXm','tableName','177983aPGATG','339976ZYIolk','source','11605740imvgHa','892914AqTpFr','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','split','4SzTczc','3349140RBQnlJ','27weeXRv','174LACKsW','map','list','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','2794696fNejHm','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','name'];a26_0x59be=function(){return _0x39e61b;};return a26_0x59be();}export const datasetList={'service':'dataset','command':a26_0x437f0e(0xdb),'description':a26_0x437f0e(0xca),'risk':'read','flags':[{'name':a26_0x437f0e(0xcb),'type':'string','description':a26_0x437f0e(0xd4)},{...CODE_FLAG,'required':![],'description':a26_0x437f0e(0xdc)}],async 'execute'(_0xe72538){const _0x353f99=a26_0x437f0e,_0x7a7c1b=_0xe72538['str'](_0x353f99(0xcb)),_0x2e6c55=_0xe72538['str']('code'),_0x2f5a26=await listDatasets(_0xe72538['appCode'],{..._0x7a7c1b&&{'name':_0x7a7c1b},..._0x2e6c55&&{'code':_0x2e6c55}});return{'ok':!![],'data':{'total':_0x2f5a26['length'],'datasets':_0x2f5a26[_0x353f99(0xda)](_0x3cffbb=>{const _0x31361d=_0x353f99,_0x22dab0=_0x3cffbb['dbtableConfig']??{};return{'id':_0x3cffbb['id'],'code':_0x3cffbb[_0x31361d(0xcc)],'name':_0x3cffbb[_0x31361d(0xcb)],'source':_0x3cffbb[_0x31361d(0xd1)],'description':_0x3cffbb['description'],'table':_0x22dab0[_0x31361d(0xce)],'datasetKey':_0x22dab0['datasetKey'],'pk':_0x22dab0['pkField'],'fields':_0x22dab0['allFields']?_0x22dab0['allFields'][_0x31361d(0xd5)](',')['map'](_0x53cc4d=>_0x53cc4d['trim']()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x7f3f53=a27_0x3e7f;function a27_0x3e7f(_0x4fd7fd,_0x46287a){_0x4fd7fd=_0x4fd7fd-0x110;const _0x457663=a27_0x4576();let _0x3e7f77=_0x457663[_0x4fd7fd];return _0x3e7f77;}(function(_0x4fc4cc,_0x1a97c9){const _0x14c6e0=a27_0x3e7f,_0x58838e=_0x4fc4cc();while(!![]){try{const _0x3786dd=-parseInt(_0x14c6e0(0x112))/0x1+-parseInt(_0x14c6e0(0x120))/0x2+-parseInt(_0x14c6e0(0x111))/0x3+-parseInt(_0x14c6e0(0x11b))/0x4+-parseInt(_0x14c6e0(0x114))/0x5*(parseInt(_0x14c6e0(0x110))/0x6)+-parseInt(_0x14c6e0(0x11f))/0x7*(parseInt(_0x14c6e0(0x11c))/0x8)+parseInt(_0x14c6e0(0x115))/0x9;if(_0x3786dd===_0x1a97c9)break;else _0x58838e['push'](_0x58838e['shift']());}catch(_0x463f2e){_0x58838e['push'](_0x58838e['shift']());}}}(a27_0x4576,0x40f65));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a27_0x4576(){const _0x282481=['dataset','appCode','trim','1405700CyClLE','16XDOkcD','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','str','1199779UIvpTp','777316ZnlESE','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','762tCEwyM','1360500QPncHt','316015LXoPtA','code','16705VQSjcX','22885056NTCYcR','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','string'];a27_0x4576=function(){return _0x282481;};return a27_0x4576();}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a27_0x7f3f53(0x116);export function formatDatasetSdkMarkdown(_0x51a5f9){const _0x3b597a=a27_0x7f3f53,_0x331914=typeof _0x51a5f9===_0x3b597a(0x117)?_0x51a5f9[_0x3b597a(0x11a)]():'';return _0x331914||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a27_0x7f3f53(0x118),'command':'sdk-doc','description':a27_0x7f3f53(0x121),'risk':'read','flags':[{...CODE_FLAG,'description':a27_0x7f3f53(0x11d)}],async 'execute'(_0xf4288c){const _0x38e5a3=a27_0x7f3f53,_0x28c629=_0xf4288c[_0x38e5a3(0x11e)](_0x38e5a3(0x113)),_0xcb96a5=await getDatasetSdkUsageDoc(_0x28c629,_0xf4288c[_0x38e5a3(0x119)]);return{'ok':!![],'data':{'code':_0x28c629,'appCode':_0xf4288c[_0x38e5a3(0x119)],'markdown':formatDatasetSdkMarkdown(_0xcb96a5)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x1748ed=a28_0x4d57;function a28_0x4d57(_0x223e6b,_0xa7538b){_0x223e6b=_0x223e6b-0x15c;const _0x501fd0=a28_0x501f();let _0x4d57df=_0x501fd0[_0x223e6b];return _0x4d57df;}(function(_0x10a254,_0x1bd2ef){const _0x5e8af5=a28_0x4d57,_0x1edb5a=_0x10a254();while(!![]){try{const _0x498097=parseInt(_0x5e8af5(0x15e))/0x1+parseInt(_0x5e8af5(0x16b))/0x2*(-parseInt(_0x5e8af5(0x1b1))/0x3)+-parseInt(_0x5e8af5(0x19d))/0x4*(-parseInt(_0x5e8af5(0x180))/0x5)+parseInt(_0x5e8af5(0x1aa))/0x6*(-parseInt(_0x5e8af5(0x19f))/0x7)+parseInt(_0x5e8af5(0x1a3))/0x8+parseInt(_0x5e8af5(0x179))/0x9+parseInt(_0x5e8af5(0x1af))/0xa*(-parseInt(_0x5e8af5(0x16a))/0xb);if(_0x498097===_0x1bd2ef)break;else _0x1edb5a['push'](_0x1edb5a['shift']());}catch(_0x1cacf8){_0x1edb5a['push'](_0x1edb5a['shift']());}}}(a28_0x501f,0x62c2d));import a28_0x4c4d13 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';function a28_0x501f(){const _0x515d66=['serviceCount','(unnamed)','✗\x20Invalid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','60TbLRDw','green','7DDZvKH','riskLevel','verbose','\x20Imported\x20from:\x20','5451096kExGDt','(no\x20file)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','path','gray','(set,\x20length=','registryPath','2030838QKspwm','ClientAk','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','(none)','4770XmtgdR','message','63RzVbdb','empty','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','locale','commandCount','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','604535AWnxQX','✓\x20Loaded','\x20\x20auth\x20(effective):\x20','log','\x20doctor','\x20commands)','status','appCode','padEnd','serviceCode','\x20\x20─','\x20\x20Auth','7953yOKaTY','61130tJIHRm','\x20\x20Service\x20Tree','services','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20Merged\x20Config','(default)','\x20\x20Config\x20JSON','Global','accessKey','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','Project','arch','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','275058hdEwjy','(default:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','(not\x20set)','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20API\x20Endpoints','137750ybOKMV','⚠\x20Empty','\x20\x20Config\x20Files','repeat','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20(legacy/compat\x20only)','check','missing','read','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','✗\x20Invalid','red','version','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','yellow','(missing)','(not\x20found)'];a28_0x501f=function(){return _0x515d66;};return a28_0x501f();}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(_0x578211){const _0xccc413=a28_0x4d57,_0x4e7c07=getCliVersion(),_0x44ef42=buildConfigFromFlags({});await initGlobalEnvironment(_0x44ef42),console[_0xccc413(0x161)](),console[_0xccc413(0x161)](a28_0x4c4d13[_0xccc413(0x16f)](CLI_BIN_NAME+_0xccc413(0x162))),console[_0xccc413(0x161)](a28_0x4c4d13['gray']('─'[_0xccc413(0x183)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4e7c07),console[_0xccc413(0x161)](_0xccc413(0x189)+process[_0xccc413(0x18d)]),console[_0xccc413(0x161)](_0xccc413(0x175)+process[_0xccc413(0x190)]+'\x20'+process[_0xccc413(0x177)]),console['log'](),console[_0xccc413(0x161)](a28_0x4c4d13[_0xccc413(0x16f)](_0xccc413(0x182))),console['log'](a28_0x4c4d13[_0xccc413(0x1a7)](_0xccc413(0x168)['repeat'](0x1e)));const _0x1cbdaa=getGlobalConfigPath(),_0x2f2bc9=getProjectConfigPath();console[_0xccc413(0x161)](_0xccc413(0x15d)+(_0x1cbdaa||a28_0x4c4d13['gray']('(not\x20found)'))),console[_0xccc413(0x161)](_0xccc413(0x1a5)+(_0x2f2bc9||a28_0x4c4d13[_0xccc413(0x1a7)](_0xccc413(0x194)))),console[_0xccc413(0x161)](),console[_0xccc413(0x161)](a28_0x4c4d13[_0xccc413(0x16f)](_0xccc413(0x172))),console[_0xccc413(0x161)](a28_0x4c4d13['gray'](_0xccc413(0x168)[_0xccc413(0x183)](0x1e)));const _0x2abef9=(_0x2c72c3,_0x58e689)=>{const _0x44b6b1=_0xccc413;if(!_0x58e689){console[_0x44b6b1(0x161)]('\x20\x20'+_0x2c72c3['padEnd'](0x11)+'\x20'+a28_0x4c4d13[_0x44b6b1(0x1a7)](_0x44b6b1(0x1a4)));return;}const _0x4681ed=inspectCliConfigJsonFile(_0x58e689);if(_0x4681ed[_0x44b6b1(0x164)]==='ok')console[_0x44b6b1(0x161)]('\x20\x20'+_0x2c72c3[_0x44b6b1(0x166)](0x11)+'\x20'+a28_0x4c4d13['green']('✓\x20Valid\x20JSON'));else{if(_0x4681ed[_0x44b6b1(0x164)]===_0x44b6b1(0x1b2))console[_0x44b6b1(0x161)]('\x20\x20'+_0x2c72c3[_0x44b6b1(0x166)](0x11)+'\x20'+a28_0x4c4d13[_0x44b6b1(0x192)](_0x44b6b1(0x19a)));else _0x4681ed[_0x44b6b1(0x164)]===_0x44b6b1(0x187)?console[_0x44b6b1(0x161)]('\x20\x20'+_0x2c72c3[_0x44b6b1(0x166)](0x11)+'\x20'+a28_0x4c4d13[_0x44b6b1(0x1a7)](_0x44b6b1(0x193))):(console['log']('\x20\x20'+_0x2c72c3[_0x44b6b1(0x166)](0x11)+'\x20'+a28_0x4c4d13[_0x44b6b1(0x18c)](_0x44b6b1(0x197))),console['log']('\x20\x20'+''[_0x44b6b1(0x166)](0x11)+'\x20'+a28_0x4c4d13[_0x44b6b1(0x18c)](_0x4681ed[_0x44b6b1(0x1b0)])));}};_0x2abef9(_0xccc413(0x173),_0x1cbdaa),_0x2abef9(_0xccc413(0x176),_0x2f2bc9),console[_0xccc413(0x161)](),console[_0xccc413(0x161)](a28_0x4c4d13['bold'](_0xccc413(0x170))),console[_0xccc413(0x161)](a28_0x4c4d13['gray'](_0xccc413(0x168)[_0xccc413(0x183)](0x1e))),console['log'](_0xccc413(0x18e)+(_0x44ef42[_0xccc413(0x165)]||a28_0x4c4d13['red'](_0xccc413(0x17d)))),console[_0xccc413(0x161)](_0xccc413(0x1ac)+_0x44ef42['env']);const _0x1b4039=isLegacyCompatConfigKey(_0xccc413(0x1b5))?a28_0x4c4d13[_0xccc413(0x1a7)](_0x44ef42['locale']+_0xccc413(0x185)):_0x44ef42['locale'];console['log'](_0xccc413(0x18f)+_0x1b4039),console['log'](_0xccc413(0x178)+(_0x44ef42['defaultApp']||a28_0x4c4d13[_0xccc413(0x1a7)](_0xccc413(0x1ae)))),console[_0xccc413(0x161)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x44ef42['currentApp']||a28_0x4c4d13[_0xccc413(0x1a7)](_0xccc413(0x1ae)))),console[_0xccc413(0x161)](_0xccc413(0x1b3)+(_0x44ef42[_0xccc413(0x17c)]||a28_0x4c4d13[_0xccc413(0x1a7)](_0xccc413(0x17a)+DEFAULT_CONFIG_VALUES[_0xccc413(0x17c)]+')'))),console[_0xccc413(0x161)](_0xccc413(0x1b4)+(_0x44ef42['pageSize']??a28_0x4c4d13['gray'](_0xccc413(0x171)))),console[_0xccc413(0x161)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x44ef42[_0xccc413(0x1a0)]),console['log'](_0xccc413(0x17b)+_0x44ef42[_0xccc413(0x1a1)]),console[_0xccc413(0x161)](_0xccc413(0x160)+AUTH_MODE[_0xccc413(0x1ab)]),console[_0xccc413(0x161)](_0xccc413(0x1ad)+(_0x44ef42[_0xccc413(0x174)]?a28_0x4c4d13[_0xccc413(0x19e)](_0xccc413(0x1a8)+_0x44ef42[_0xccc413(0x174)]['length']+')'):a28_0x4c4d13[_0xccc413(0x1a7)](_0xccc413(0x1ae)))),console[_0xccc413(0x161)](),console[_0xccc413(0x161)](a28_0x4c4d13['bold'](_0xccc413(0x17f))),console[_0xccc413(0x161)](a28_0x4c4d13[_0xccc413(0x1a7)]('\x20\x20─'[_0xccc413(0x183)](0x1e))),console[_0xccc413(0x161)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0xccc413(0x161)](_0xccc413(0x191)+getUserDomain()),console[_0xccc413(0x161)](_0xccc413(0x17e)+getRuntimeDomain()),console[_0xccc413(0x161)](),console['log'](a28_0x4c4d13[_0xccc413(0x16f)](_0xccc413(0x16c))),console[_0xccc413(0x161)](a28_0x4c4d13[_0xccc413(0x1a7)](_0xccc413(0x168)[_0xccc413(0x183)](0x1e)));const _0x320234=inspectServiceRegistry();console[_0xccc413(0x161)](_0xccc413(0x19b)+_0x320234[_0xccc413(0x1a9)]),console['log'](_0xccc413(0x199)+formatServiceRegistryStatus(_0x320234)),console[_0xccc413(0x161)](_0xccc413(0x16e)+_0x320234[_0xccc413(0x195)]),console['log']('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x320234['commandCount']);for(const _0x1ada87 of _0x320234[_0xccc413(0x16d)]){console[_0xccc413(0x161)]('\x20\x20'+(_0x1ada87[_0xccc413(0x167)]+':')[_0xccc413(0x166)](0x11)+'\x20'+(_0x1ada87['name']||a28_0x4c4d13[_0xccc413(0x1a7)](_0xccc413(0x196)))+'\x20('+_0x1ada87[_0xccc413(0x15c)]+_0xccc413(0x163)),console['log']('\x20\x20'+''[_0xccc413(0x166)](0x11)+_0xccc413(0x1a2)+_0x1ada87['source'][_0xccc413(0x1a6)]);}return console[_0xccc413(0x161)](),console[_0xccc413(0x161)](a28_0x4c4d13[_0xccc413(0x16f)](_0xccc413(0x169))),console[_0xccc413(0x161)](a28_0x4c4d13['gray'](_0xccc413(0x168)[_0xccc413(0x183)](0x1e))),console[_0xccc413(0x161)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a28_0x4c4d13[_0xccc413(0x19e)](AUTH_MODE['ClientAk']+'\x20(accessKey)')),console[_0xccc413(0x161)](_0xccc413(0x19c)+a28_0x4c4d13[_0xccc413(0x1a7)](_0xccc413(0x184))),console[_0xccc413(0x161)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x5dea02){const _0x1baa8f=a28_0x4d57;if(_0x5dea02['status']==='ok')return a28_0x4c4d13[_0x1baa8f(0x19e)](_0x1baa8f(0x15f));if(_0x5dea02['status']===_0x1baa8f(0x187))return a28_0x4c4d13[_0x1baa8f(0x1a7)](_0x1baa8f(0x194));if(_0x5dea02['status']===_0x1baa8f(0x1b2))return a28_0x4c4d13[_0x1baa8f(0x192)](_0x1baa8f(0x181));return a28_0x4c4d13[_0x1baa8f(0x18c)](_0x1baa8f(0x18b)+(_0x5dea02['message']?':\x20'+_0x5dea02[_0x1baa8f(0x1b0)]:''));}export const doctorDefinition={'service':a28_0x1748ed(0x18a),'command':a28_0x1748ed(0x186),'description':a28_0x1748ed(0x198),'risk':a28_0x1748ed(0x188),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x5395ff=a29_0x21f3;(function(_0x5192b2,_0x5760d7){const _0x4cda92=a29_0x21f3,_0x2991b0=_0x5192b2();while(!![]){try{const _0x345b02=-parseInt(_0x4cda92(0x1f5))/0x1+parseInt(_0x4cda92(0x1f1))/0x2*(parseInt(_0x4cda92(0x201))/0x3)+-parseInt(_0x4cda92(0x20d))/0x4*(-parseInt(_0x4cda92(0x1ff))/0x5)+-parseInt(_0x4cda92(0x200))/0x6*(parseInt(_0x4cda92(0x20a))/0x7)+parseInt(_0x4cda92(0x1f7))/0x8*(parseInt(_0x4cda92(0x1fe))/0x9)+parseInt(_0x4cda92(0x1f6))/0xa+parseInt(_0x4cda92(0x209))/0xb*(parseInt(_0x4cda92(0x1fa))/0xc);if(_0x345b02===_0x5760d7)break;else _0x2991b0['push'](_0x2991b0['shift']());}catch(_0x18477e){_0x2991b0['push'](_0x2991b0['shift']());}}}(a29_0x170d,0x601a7));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':a29_0x5395ff(0x20e),'type':a29_0x5395ff(0x1f0),'required':!![],'description':a29_0x5395ff(0x1ef)},FILEPATH_FLAG={'name':a29_0x5395ff(0x207),'type':a29_0x5395ff(0x1f0),'required':!![],'description':a29_0x5395ff(0x1f9)},DOWNLOAD_FLAG={'name':'download','type':a29_0x5395ff(0x1f8),'description':a29_0x5395ff(0x205)},LONG_TERM_FLAG={'name':a29_0x5395ff(0x1fc),'type':a29_0x5395ff(0x1f8),'description':a29_0x5395ff(0x1fd)};function requireFilePath(_0x5a8a55){const _0x19b159=a29_0x5395ff,_0x3c1a08=_0x5a8a55[_0x19b159(0x203)]();if(!_0x3c1a08)throw CliErrors[_0x19b159(0x208)]('filePath\x20is\x20required.');return _0x3c1a08;}function a29_0x170d(){const _0x3ff148=['str','description','Uploaded\x20file:\x20','497985OdrywF','1953810JyFfrG','257096mOyvrS','boolean','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','36nsBrDM','appCode','long-term','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','27CBXybN','136615qRXyBR','6iJfTei','3fcSgHY','read','trim','download','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','File','filepath','validation','1368466ayUhEL','4493713hcznXG','\x20to\x20runtime\x20app\x20','/client/uploadFile','64vmjiAC','file','path','Preview:\x20upload\x20','write','bool','filePath','Path\x20to\x20the\x20local\x20file\x20to\x20upload','string','862810jhNryi'];a29_0x170d=function(){return _0x3ff148;};return a29_0x170d();}const fileUpload={'service':a29_0x5395ff(0x20e),'command':'upload','description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a29_0x5395ff(0x1ec),'flags':[FILE_FLAG],async 'dryRun'(_0x2c0d45){const _0x531eb0=a29_0x5395ff,_0x314ca0=requireRuntimeUploadFile(_0x2c0d45['str']('file'),_0x531eb0(0x206));return dryRun('POST',_0x531eb0(0x20c))['body']({'appCode':_0x2c0d45[_0x531eb0(0x1fb)],'multipart':{'file':_0x314ca0}})[_0x531eb0(0x1f3)](_0x531eb0(0x1eb)+_0x314ca0['path']+_0x531eb0(0x20b)+_0x2c0d45['appCode'])['build']();},async 'execute'(_0x32f4b6){const _0x50aceb=a29_0x5395ff,_0x4f6171=requireRuntimeUploadFile(_0x32f4b6[_0x50aceb(0x1f2)](_0x50aceb(0x20e)),'File'),_0x1d5724=await uploadRuntimeFile(_0x32f4b6[_0x50aceb(0x1fb)],_0x4f6171[_0x50aceb(0x1ea)]);return{'ok':!![],'data':_0x1d5724,'message':_0x1d5724[_0x50aceb(0x1ee)]?_0x50aceb(0x1f4)+_0x1d5724[_0x50aceb(0x1ee)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':'file','command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a29_0x5395ff(0x202),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x17e1ce){const _0x158b6d=a29_0x5395ff,_0xaccec=requireFilePath(_0x17e1ce['str'](_0x158b6d(0x207))),_0x2e64cb=await queryRuntimeFileUrl(_0xaccec,{'download':_0x17e1ce[_0x158b6d(0x1ed)](_0x158b6d(0x204)),'longTerm':_0x17e1ce['bool'](_0x158b6d(0x1fc))});return{'ok':!![],'data':_0x2e64cb};}};function a29_0x21f3(_0x39e7ce,_0xaa5aee){_0x39e7ce=_0x39e7ce-0x1ea;const _0x170db3=a29_0x170d();let _0x21f3c9=_0x170db3[_0x39e7ce];return _0x21f3c9;}export const fileDefinitions=[fileUpload,fileQueryUrl];
|